/* ==========================================================================
   Voxbrief · Simplicity, Professional & Geek Design System
   Modern Apple Silicon & High-Performance On-Device Aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS (Dark Mode Default + Light Mode)
   -------------------------------------------------------------------------- */
:root {
  /* Dark Mode (Obsidian & High-Tech Slate) */
  --bg-canvas: #08090d;
  --bg-surface: #0e1118;
  --bg-elevated: #141824;
  --bg-card: rgba(16, 21, 32, 0.72);
  --bg-card-hover: rgba(22, 29, 44, 0.9);
  --bg-terminal: #0b0e15;
  --bg-terminal-header: #080a0f;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(56, 189, 248, 0.4);
  --border-glow: rgba(56, 189, 248, 0.18);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #ffffff;
  
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #818cf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --gradient-brand: linear-gradient(135deg, #ffffff 0%, #cbd5e1 45%, #94a3b8 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 70%);
  
  --btn-primary-bg: #f8fafc;
  --btn-primary-text: #08090d;
  --btn-primary-hover: #ffffff;
  
  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-border: rgba(255, 255, 255, 0.12);
  --btn-secondary-text: #f8fafc;
  --btn-secondary-hover: rgba(255, 255, 255, 0.09);
  
  --chip-bg: rgba(255, 255, 255, 0.04);
  --chip-border: rgba(255, 255, 255, 0.08);
  --chip-text: #cbd5e1;
  
  --card-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-default);
  --terminal-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-default);
  
  --grid-dot-color: rgba(255, 255, 255, 0.05);
  
  /* Atmospheric Aurora & Ambient Lighting Tokens */
  --aurora-1: rgba(56, 189, 248, 0.22);
  --aurora-2: rgba(129, 140, 248, 0.18);
  --aurora-3: rgba(16, 185, 129, 0.14);
  --aurora-4: rgba(216, 180, 254, 0.16);
  --spotlight-glow: rgba(56, 189, 248, 0.08);
  --beam-color: rgba(56, 189, 248, 0.25);
  --particle-color: rgba(255, 255, 255, 0.45);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  /* Light Mode (Architectural Paper & Slate) */
  --bg-canvas: #fafbfc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-terminal: #0f172a;
  --bg-terminal-header: #090e17;
  
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-default: rgba(15, 23, 42, 0.11);
  --border-focus: rgba(2, 132, 199, 0.45);
  --border-glow: rgba(2, 132, 199, 0.15);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  
  --gradient-brand: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  --gradient-accent: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08), transparent 70%);
  
  --btn-primary-bg: #0f172a;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #1e293b;
  
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: rgba(15, 23, 42, 0.14);
  --btn-secondary-text: #0f172a;
  --btn-secondary-hover: #f8fafc;
  
  --chip-bg: rgba(15, 23, 42, 0.04);
  --chip-border: rgba(15, 23, 42, 0.09);
  --chip-text: #334155;
  
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--border-default);
  --terminal-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px var(--border-default);
  
  --grid-dot-color: rgba(15, 23, 42, 0.04);
  
  /* Atmospheric Aurora & Ambient Lighting Tokens (Light Theme) */
  --aurora-1: rgba(2, 132, 199, 0.14);
  --aurora-2: rgba(99, 102, 241, 0.12);
  --aurora-3: rgba(5, 150, 105, 0.10);
  --aurora-4: rgba(192, 132, 252, 0.11);
  --spotlight-glow: rgba(2, 132, 199, 0.05);
  --beam-color: rgba(2, 132, 199, 0.18);
  --particle-color: rgba(15, 23, 42, 0.22);
}

/* --------------------------------------------------------------------------
   02. RESET & BASE STYLING
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* --------------------------------------------------------------------------
   02A. ATMOSPHERIC ANIMATED BACKGROUND (Premium Luminous Auroras & Grid)
   -------------------------------------------------------------------------- */
.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-canvas);
}

/* Luminous Floating Aurora Orbs (Hardware-accelerated fluid motion) */
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  filter: blur(110px);
  -webkit-filter: blur(110px);
  opacity: 0.85;
  transition: opacity 0.5s ease;
}

/* Orb 1: Electric Cyan (Hero Primary Aura) */
.aurora-orb-1 {
  width: clamp(500px, 55vw, 850px);
  height: clamp(500px, 55vw, 850px);
  top: -15%;
  left: 10%;
  background: radial-gradient(circle, var(--aurora-1) 0%, rgba(56, 189, 248, 0.04) 52%, transparent 72%);
  animation: aurora-float-1 22s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

/* Orb 2: Neon Indigo / Violet (Right Horizon Aura) */
.aurora-orb-2 {
  width: clamp(450px, 50vw, 800px);
  height: clamp(450px, 50vw, 800px);
  top: -8%;
  right: 5%;
  background: radial-gradient(circle, var(--aurora-2) 0%, rgba(129, 140, 248, 0.04) 50%, transparent 70%);
  animation: aurora-float-2 26s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

/* Orb 3: Luminous Emerald / Teal (Geek Core Pulse) */
.aurora-orb-3 {
  width: clamp(380px, 42vw, 680px);
  height: clamp(380px, 42vw, 680px);
  top: 36%;
  left: 18%;
  background: radial-gradient(circle, var(--aurora-3) 0%, rgba(16, 185, 129, 0.03) 50%, transparent 72%);
  animation: aurora-float-3 28s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

/* Orb 4: Soft Quartz / Violet Glow (Deep Ambience) */
.aurora-orb-4 {
  width: clamp(420px, 46vw, 720px);
  height: clamp(420px, 46vw, 720px);
  bottom: 5%;
  right: 12%;
  background: radial-gradient(circle, var(--aurora-4) 0%, rgba(216, 180, 254, 0.03) 50%, transparent 70%);
  animation: aurora-float-4 24s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

/* Keyframe Choreography for Organic Celestial Drift */
@keyframes aurora-float-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(90px, 100px, 0) scale(1.14) rotate(12deg);
  }
  100% {
    transform: translate3d(-70px, 60px, 0) scale(0.92) rotate(-8deg);
  }
}

@keyframes aurora-float-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(-100px, 120px, 0) scale(1.18) rotate(-16deg);
  }
  100% {
    transform: translate3d(60px, 80px, 0) scale(0.95) rotate(10deg);
  }
}

@keyframes aurora-float-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  50% {
    transform: translate3d(80px, -80px, 0) scale(1.18);
  }
  100% {
    transform: translate3d(-60px, 45px, 0) scale(1);
  }
}

@keyframes aurora-float-4 {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-90px, -70px, 0) scale(0.92);
  }
  100% {
    transform: translate3d(70px, 60px, 0) scale(1.16);
  }
}

/* Interactive Cursor Spotlight */
.interactive-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(650px circle at var(--mouse-x, 50vw) var(--mouse-y, 30vh), var(--spotlight-glow), transparent 70%);
  opacity: 0.95;
  transition: opacity 0.3s ease;
  will-change: background;
}

/* Optical Horizon Beam (Apple Silicon Top Edge) */
.beam-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--beam-color) 20%, var(--accent-cyan) 50%, var(--beam-color) 80%, transparent 100%);
  opacity: 0.75;
  box-shadow: 0 0 24px 2px var(--accent-cyan);
  animation: beam-breathe 8s ease-in-out infinite alternate;
}

@keyframes beam-breathe {
  0% { opacity: 0.4; transform: translateX(-50%) scaleX(0.85); }
  100% { opacity: 0.85; transform: translateX(-50%) scaleX(1.08); }
}

/* Technical Masked Dot Grid with Soft Horizon Fade */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at center, var(--grid-dot-color) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, black 45%, transparent 95%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, black 45%, transparent 95%);
}

/* Ambient Dust Particles Canvas */
.bg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
}

/* Backward-compatible static glow fallback */
.bg-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

@media (prefers-reduced-motion: reduce) {
  .aurora-orb-1,
  .aurora-orb-2,
  .aurora-orb-3,
  .aurora-orb-4,
  .beam-glow {
    animation: none !important;
  }
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-cyan);
  color: #08090d;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 6px;
  z-index: 999;
  transition: top 0.2s ease;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus {
  top: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

code, pre, kbd, .mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   03. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-canvas);
  background: rgba(var(--bg-canvas), 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-emerald);
  margin-left: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
}

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

.btn-github-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-github-nav:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--border-default);
  transform: translateY(-1px);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--btn-secondary-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.theme-toggle-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--text-heading);
  border-color: var(--border-default);
  background: var(--btn-secondary-hover);
}

.theme-icon {
  stroke-width: 2;
}

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

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--btn-secondary-bg);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   04. HERO SECTION (Geek Simplicity & Telemetry)
   -------------------------------------------------------------------------- */
.hero {
  padding: 72px 0 64px;
  text-align: center;
}

.hero-pill-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.geek-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pulse-dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-heading);
  max-width: 980px;
  margin: 0 auto 22px;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-subtitle strong {
  color: var(--text-heading);
  font-weight: 600;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--border-default);
  transform: translateY(-2px);
}

/* Telemetry HUD Strip */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 52px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
}

.telemetry-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: border-color 0.2s ease;
}

.telemetry-card:hover {
  border-color: var(--border-focus);
}

.telemetry-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.telemetry-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Hero Showcase Graphic */
.hero-showcase {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.hero-showcase-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  box-shadow: var(--terminal-shadow);
}

.hero-showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   05. INTERACTIVE WORKBENCH & DEMO SECTION (Geek Core)
   -------------------------------------------------------------------------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.section-header {
  margin-bottom: 48px;
}
.section-header.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Terminal & Workbench Container */
.workbench {
  border-radius: 16px;
  background: var(--bg-terminal);
  border: 1px solid var(--border-default);
  box-shadow: var(--terminal-shadow);
  overflow: hidden;
  color: #e2e8f0;
}

/* Terminal Header Bar */
.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-terminal-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.traffic-red { background-color: #ff5f56; }
.traffic-yellow { background-color: #ffbd2e; }
.traffic-green { background-color: #27c93f; }

.scenario-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scenario-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.15s ease;
}

.scenario-btn:hover {
  color: #ffffff;
}

.scenario-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  font-weight: 600;
}

.workbench-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Audio Player Simulator Ribbon */
.audio-ribbon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #38bdf8;
  color: #08090d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.audio-play-btn:hover {
  transform: scale(1.05);
  background: #7dd3fc;
}

.waveform-scrubber {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  flex: 1;
  min-width: 140px;
  cursor: pointer;
  padding: 2px 0;
}

.waveform-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  min-height: 4px;
  transition: height 0.1s ease, background-color 0.15s ease;
}

.waveform-bar.active {
  background: #38bdf8;
}

.audio-timer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.audio-spec-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 12px;
}

/* Two-Stage Transformation Grid */
.workbench-split {
  display: grid;
  grid-template-columns: 1fr 50px 1.4fr;
  min-height: 480px;
}

.split-raw-panel {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.panel-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.raw-transcript-body {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
  flex: 1;
}

.filler-token {
  color: #f43f5e;
  text-decoration: line-through;
  opacity: 0.75;
  background: rgba(244, 63, 94, 0.1);
  padding: 0 4px;
  border-radius: 3px;
}

.jargon-token {
  color: #38bdf8;
  font-weight: 600;
  border-bottom: 1px dotted #38bdf8;
}

/* Pipeline Divider / Hardware Node Flow */
.split-pipeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  gap: 12px;
}

.pipeline-node {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.pipeline-arrow {
  color: #64748b;
  font-size: 0.8rem;
}

/* Structured Spec Panel */
.split-spec-panel {
  padding: 24px;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* View Mode Switcher (Rendered / Raw / AST) */
.view-modes {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.view-mode-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  color: #94a3b8;
  transition: all 0.15s ease;
}

.view-mode-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Rendered Spec Styles */
.spec-content-view {
  flex: 1;
}

.rendered-spec {
  font-size: 0.92rem;
  color: #e2e8f0;
}

.spec-title-h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.spec-callout {
  padding: 10px 14px;
  border-left: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  border-radius: 0 6px 6px 0;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 0.88rem;
}

.spec-h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.spec-bullets {
  list-style: none;
  margin-bottom: 14px;
}

.spec-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: #cbd5e1;
  line-height: 1.5;
}

.spec-bullets li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #38bdf8;
  font-weight: bold;
}

.spec-checklist {
  list-style: none;
  margin-bottom: 16px;
}

.spec-check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.spec-check-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  margin-top: 3px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.spec-check-item.checked .custom-checkbox {
  background: #10b981;
  border-color: #10b981;
  color: #08090d;
}

.spec-check-item.checked .check-label {
  text-decoration: line-through;
  color: #64748b;
}

.spec-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Raw Markdown / AST Monospace Box */
.raw-code-view {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 380px;
}

/* --------------------------------------------------------------------------
   06. ARCHITECTURE BLUEPRINT (Under The Hood)
   -------------------------------------------------------------------------- */
.blueprint-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--card-shadow);
}

.blueprint-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  margin: 32px 0 24px;
}

.blueprint-node {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.blueprint-node:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px var(--border-glow);
}

.node-step-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.node-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.node-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.node-spec-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
}

.blueprint-connector {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   07. GEEK BENTO GRID (Deep Engineering Features)
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-focus);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.bento-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.bento-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.bento-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
}

.bento-visual-preview {
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.bento-visual-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   08. TECHNICAL COMPARISON MATRIX (On-Device vs Cloud)
   -------------------------------------------------------------------------- */
.matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.matrix-table-wrap {
  overflow-x: auto;
}

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

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

.matrix-table th {
  background: var(--bg-canvas);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

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

.matrix-dim-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.matrix-dim-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.badge-cloud {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
  margin-bottom: 6px;
}

.badge-vox {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 6px;
}

.matrix-cell-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.matrix-col-vox {
  background: rgba(56, 189, 248, 0.03);
}

/* --------------------------------------------------------------------------
   09. PLATFORMS & SCREENSHOTS SHOWCASE
   -------------------------------------------------------------------------- */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.platform-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.platform-tab-btn.active {
  background: var(--accent-cyan);
  color: #08090d;
  font-weight: 600;
  border-color: var(--accent-cyan);
}

.screenshots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.screenshot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.screenshot-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}

.screenshot-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-caption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   10. DEVELOPER CLI & BUILD TERMINAL
   -------------------------------------------------------------------------- */
.cli-box {
  background: var(--bg-terminal);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--terminal-shadow);
}

.cli-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-terminal-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cli-tabs {
  display: flex;
  gap: 6px;
}

.cli-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 5px;
  color: #94a3b8;
  background: transparent;
  transition: all 0.15s ease;
}

.cli-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  font-weight: 600;
}

.cli-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #cbd5e1;
  position: relative;
}

.cli-prompt {
  color: #38bdf8;
  user-select: none;
}

.cli-comment {
  color: #64748b;
}

.cli-copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: all 0.15s ease;
}

.cli-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   11. PRIVACY BANNER
   -------------------------------------------------------------------------- */
.privacy-shield-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  margin-bottom: 16px;
}

.privacy-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.privacy-body {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 24px;
}

/* --------------------------------------------------------------------------
   12. LEGAL & DOCUMENTATION PAGES (Support, Terms, Privacy)
   -------------------------------------------------------------------------- */
.legal-page {
  padding: 64px 0 100px;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  padding: 48px;
  box-shadow: var(--card-shadow);
}

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 8px;
}

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

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.legal-body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--accent-cyan);
}

.legal-body p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 1rem;
}

.legal-body ul, .legal-body ol {
  margin-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.legal-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-body strong {
  color: var(--text-heading);
}

.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--chip-bg);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
}

.legal-body a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  padding: 64px 0 40px;
  font-size: 0.88rem;
}

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

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

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

.footer-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kbd-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--chip-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   14. TOAST NOTIFICATIONS & MICRO-COMPONENTS
   -------------------------------------------------------------------------- */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

.back-to-top {
  position: fixed;
  bottom: 76px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--text-heading);
  border-color: var(--accent-cyan);
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .blueprint-flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .blueprint-connector {
    display: none;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-2 {
    grid-column: span 1;
  }
  .screenshots-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .workbench-split {
    grid-template-columns: 1fr;
  }
  .split-raw-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .split-pipeline-rail {
    flex-direction: row;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .pipeline-arrow {
    transform: rotate(90deg);
  }
  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-default);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .blueprint-flow {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .screenshots-row {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .legal-content {
    padding: 28px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .telemetry-strip {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta a {
    width: 100%;
    justify-content: center;
  }
}
