/* ==========================================================================
   Workflow Recorder — Product Landing Website Stylesheet
   Theme: Light (Modern, Crisp, Developer-Grade Aesthetics)
   ========================================================================== */

:root {
  /* Surface & Background Colors */
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-code: #f8fafc;

  /* Typography & Neutral Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --text-inverted: #ffffff;

  /* Accent & Brand Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-active: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  /* Google Chrome Identity Palette */
  --chrome-blue: #4285f4;
  --chrome-red: #ea4335;
  --chrome-yellow: #fbbc05;
  --chrome-green: #34a853;

  /* Status Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --error: #ef4444;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-hover: #94a3b8;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 35px -5px rgba(37, 99, 235, 0.22);
  --shadow-chrome-btn: 0 8px 24px -4px rgba(37, 99, 235, 0.35), 0 4px 10px -2px rgba(37, 99, 235, 0.2);

  /* Layout & Sizing */
  --container-max: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  /* Surface & Background Colors (Deep Developer Midnight) */
  --bg-page: #0b0f19;
  --bg-subtle: #0f172a;
  --bg-muted: #1e293b;
  --bg-card: #131d31;
  --bg-card-hover: #1a2742;
  --bg-glass: rgba(11, 15, 25, 0.92);
  --bg-code: #080d1a;

  /* Typography & Neutral Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-inverted: #0f172a;

  /* Accent & Brand Colors */
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-active: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-border: rgba(59, 130, 246, 0.35);

  /* Status Colors (Adjusted for dark backgrounds) */
  --success: #34d399;
  --success-bg: rgba(16, 185, 129, 0.15);
  --success-border: rgba(16, 185, 129, 0.35);
  --warning: #fbbf24;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --error: #f87171;

  /* Borders & Dividers */
  --border-light: #1e293b;
  --border-subtle: #334155;
  --border-hover: #475569;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.55), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.65), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.8), 0 8px 20px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 45px -5px rgba(59, 130, 246, 0.3);
  --shadow-chrome-btn: 0 8px 24px -4px rgba(59, 130, 246, 0.4), 0 4px 10px -2px rgba(59, 130, 246, 0.25);
}

/* ==========================================================================
   Reset & Baseline
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-page);
  color: var(--text-primary);
}

body {
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-secondary);
  overflow-x: hidden;
  position: relative;
}

/* Decorative Background Glows */
.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.decor-glow-1 {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.12) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 75%);
  filter: blur(80px);
}

.decor-glow-2 {
  position: absolute;
  top: 1400px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  filter: blur(90px);
}

.decor-glow-3 {
  position: absolute;
  top: 2800px;
  left: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(251, 188, 5, 0.06) 0%, transparent 70%);
  filter: blur(100px);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section Shared Utilities */
.section {
  padding: 100px 0;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  margin-bottom: 16px;
}

.section-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: var(--bg-glass);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* ==========================================================================
   Button Components ("Add to Chrome")
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* Primary "Add to Chrome" Button */
.btn-chrome {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: var(--shadow-chrome-btn);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-chrome::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-chrome:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.45);
}

.btn-chrome:hover::before {
  left: 100%;
}

.btn-chrome:active {
  transform: translateY(0);
}

.btn-chrome-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-chrome-header {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-chrome-hero {
  padding: 16px 32px;
  font-size: 1.08rem;
  border-radius: var(--radius-full);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 12px 18px;
}

.btn-ghost:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 70px 0 90px 0;
  text-align: center;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-eyebrow-pill {
  background-color: #ecfdf5;
  color: #065f46;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-compat-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.compat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.compat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-faint);
}

.rating-stars {
  color: #eab308;
  letter-spacing: 2px;
}

/* Hero Stats Strip */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-stat-card {
  text-align: center;
  border-right: 1px solid var(--border-light);
  padding: 0 12px;
}

.hero-stat-card:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ==========================================================================
   Live Interactive Simulator Section
   ========================================================================== */

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

/* Mock Web App (Left Column) */
.mock-browser-col {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-right: 1px solid var(--border-light);
}

.browser-header-bar {
  padding: 14px 18px;
  background-color: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
}

.browser-traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-light.red { background-color: #ff5f56; }
.traffic-light.yellow { background-color: #ffbd2e; }
.traffic-light.green { background-color: #27c93f; }

.browser-url-pill {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-url-pill .lock-icon {
  color: var(--success);
}

.mock-app-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock-app-intro {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.mock-app-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-app-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mock-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mock-input, .mock-select {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-primary);
  background-color: #ffffff;
  transition: all var(--transition-fast);
}

.mock-input:focus, .mock-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.mock-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.mock-action-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.mock-btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.mock-btn-primary:hover {
  background-color: var(--primary-hover);
}

.mock-btn-outline {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.mock-btn-outline:hover {
  background-color: var(--bg-muted);
}

/* Floating HUD in Mock Browser */
.mock-floating-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
  margin-top: auto;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-rec-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--chrome-red);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 8px rgba(234, 67, 53, 0.6); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hud-step-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hud-timer {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Live Code Generation (Right Column) */
.demo-code-col {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-code);
}

.code-col-header {
  padding: 12px 18px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.code-framework-pills {
  display: flex;
  gap: 6px;
}

.framework-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.framework-pill:hover {
  color: var(--text-primary);
}

.framework-pill.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.copy-code-btn:hover {
  background-color: #ffffff;
  color: var(--primary);
  border-color: var(--primary-border);
}

/* Selector Intelligence Live Bar */
.selector-intel-bar {
  padding: 10px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.intel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--success);
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.demo-code-wrapper {
  padding: 20px;
  flex: 1;
  overflow-x: auto;
}

.demo-code-wrapper pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #1e293b;
  tab-size: 2;
}

/* Syntax Highlighting Light Palette */
.token-keyword { color: #8b5cf6; font-weight: 700; }
.token-function { color: #0284c7; }
.token-string { color: #059669; }
.token-comment { color: #94a3b8; font-style: italic; }
.token-variable { color: #d97706; }
.token-punct { color: #64748b; }

/* ==========================================================================
   Product Screenshot Gallery
   ========================================================================== */

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.gallery-tab-btn:hover {
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.gallery-tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.gallery-display-frame {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: var(--shadow-xl);
}

.gallery-browser-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #0f172a;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 250ms ease;
}

.gallery-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Feature Deep-Dive Grid (6 Core Features)
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-blue { background-color: var(--primary-light); color: var(--primary); }
.icon-green { background-color: #ecfdf5; color: #059669; }
.icon-yellow { background-color: #fffbeb; color: #d97706; }
.icon-purple { background-color: #f5f3ff; color: #7c3aed; }
.icon-teal { background-color: #f0fdfa; color: #0d9488; }
.icon-red { background-color: #fef2f2; color: #dc2626; }

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-icon {
  color: var(--success);
  font-weight: 800;
  font-size: 0.95rem;
}

/* ==========================================================================
   Selector Intelligence Visualizer Strip
   ========================================================================== */

.selector-strip-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.selector-strip-header {
  text-align: center;
  margin-bottom: 30px;
}

.selector-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tier-item {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tier-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.tier-score {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
}

.tier-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tier-code-sample {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   8+ Multi-Target Code Exporters
   ========================================================================== */

.exporter-tab-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.exporter-tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.exporter-tab-btn:hover {
  border-color: var(--border-subtle);
}

.exporter-tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.code-viewer-container {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.code-viewer-header {
  padding: 14px 24px;
  background-color: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-file-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.code-viewer-body {
  padding: 28px;
  background-color: var(--bg-code);
  overflow-x: auto;
}

.code-viewer-body pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* ==========================================================================
   Comparison Matrix
   ========================================================================== */

.comparison-table-wrapper {
  overflow-x: auto;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  background-color: var(--bg-muted);
}

.comparison-table th.highlight-col, .comparison-table td.highlight-col {
  background-color: #eff6ff;
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.badge-yes {
  color: var(--success);
  font-weight: 800;
  font-size: 1.15rem;
}

.badge-no {
  color: var(--text-faint);
  font-weight: 800;
  font-size: 1.15rem;
}

.badge-partial {
  color: var(--warning);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ==========================================================================
   How It Works (3 Simple Steps)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--border-subtle);
  line-height: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Installation Guide
   ========================================================================== */

.install-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.install-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.install-card.recommended {
  border: 2px solid var(--primary);
  position: relative;
}

.recommended-ribbon {
  position: absolute;
  top: -14px;
  left: 36px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.install-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.install-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}

.install-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.install-step-item {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.install-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */

.bottom-cta-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.bottom-cta-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.bottom-cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 36px auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Modal Dialog ("Add to Chrome" Install Popup)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-option-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  background-color: var(--bg-subtle);
  transition: all var(--transition-fast);
}

.modal-option-card:hover {
  border-color: var(--primary-border);
  background-color: #ffffff;
}

.modal-option-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-option-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-container {
    grid-template-columns: 1fr;
  }
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .hero-stat-card:nth-child(2) {
    border-right: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .selector-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-section {
    padding: 40px 0 60px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .install-options-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-stats-strip {
    grid-template-columns: 1fr;
  }
  .hero-stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
  }
  .hero-stat-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Advanced Theme Switcher
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 8px;
}

.theme-toggle-btn:hover {
  background: var(--bg-muted);
  color: var(--primary);
  border-color: var(--border-subtle);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root:not([data-theme="dark"]) .theme-icon-sun {
  display: none;
}

:root:not([data-theme="dark"]) .theme-icon-moon {
  display: block;
}

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs-separator {
  opacity: 0.45;
}

.breadcrumbs-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   Interactive Radial Selector Stability Gauge
   ========================================================================== */
.gauge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin: 32px 0;
}

.gauge-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.gauge-visual-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.radial-gauge-svg {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}

.gauge-circle-bg {
  fill: none;
  stroke: var(--bg-muted);
  stroke-width: 14;
}

.gauge-circle-meter {
  fill: none;
  stroke: var(--primary);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 565.48; /* 2 * PI * 90 */
  stroke-dashoffset: 56.5; /* Default 90% */
  transition: stroke-dashoffset 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.4s ease;
}

.gauge-center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.gauge-score-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.gauge-score-total {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.gauge-verdict-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gauge-verdict-solid {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.gauge-verdict-high {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.gauge-verdict-fair {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.gauge-verdict-fragile {
  background: rgba(239, 68, 68, 0.12);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.gauge-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gauge-input-box {
  display: flex;
  gap: 10px;
}

.gauge-input-box input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
}

.gauge-input-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.gauge-presets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gauge-preset-btn {
  padding: 6px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gauge-preset-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

.gauge-metrics-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.gauge-metric-item {
  background: var(--bg-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.gauge-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.gauge-metric-val {
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* ==========================================================================
   Documentation Page Layout & Sidebar
   ========================================================================== */
.docs-wrapper {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  padding: 30px 0 100px 0;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
  padding-right: 12px;
}

.docs-search {
  position: relative;
  margin-bottom: 24px;
}

.docs-search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast);
}

.docs-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.docs-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-heading {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 12px;
}

.docs-nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.docs-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.docs-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}

.docs-content {
  min-width: 0;
}

.docs-section {
  margin-bottom: 60px;
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.docs-section h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.docs-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px 0;
}

.docs-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.docs-callout {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  border-left: 4px solid;
  font-size: 0.92rem;
  line-height: 1.6;
}

.docs-callout-info {
  background: var(--primary-light);
  border-left-color: var(--primary);
  color: var(--text-secondary);
}

.docs-callout-warning {
  background: var(--warning-bg);
  border-left-color: var(--warning);
  color: var(--text-secondary);
}

.docs-callout-success {
  background: var(--success-bg);
  border-left-color: var(--success);
  color: var(--text-secondary);
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.docs-table th {
  background: var(--bg-subtle);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.docs-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Exporter Studio Workbench & Hub
   ========================================================================== */
.exporter-studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin: 32px 0;
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.studio-scenario-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-scenario-selector label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.studio-scenario-selector select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.studio-framework-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.studio-pill {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.studio-pill:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.studio-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.studio-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.studio-actions {
  display: flex;
  gap: 8px;
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.studio-btn:hover {
  background: var(--bg-muted);
  color: var(--primary);
  border-color: var(--primary-border);
}

.studio-code-pre {
  margin: 0;
  padding: 24px;
  background: var(--bg-code);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-x: auto;
  max-height: 520px;
}

@media (max-width: 900px) {
  .gauge-grid {
    grid-template-columns: 1fr;
  }
  .docs-wrapper {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 32px;
  }
}
