/* ===========================================================================
   RIFT — Complete Apple-Inspired Design System
   Massive typography. Rich interactions. Every spec represented.
   =========================================================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --paper: #FAFAFA;
  --ink: #1D1D1F;
  --pencil: #86868B;
  --muted: #6E6E73;
  --void: #000000;
  --accent: #C9A0A0;
  --accent-light: rgba(201, 160, 160, 0.15);
  --success: #34C759;
  --error: #FF453A;
  --warning: #FF9F0A;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 3rem;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo);
}

.sticky-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  opacity: 1 !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: #424245;
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS — Full viewport, generous padding
   ═══════════════════════════════════════════════════════════════════════════ */

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.section.dark {
  background: var(--void);
  color: var(--paper);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO — Cinematic Apple-grade opening
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height - accounts for browser chrome */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 2rem 2rem; /* Account for sticky nav */
  box-sizing: border-box;
}

/* ─── Subtle backdrop for light hero ─── */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.backdrop-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201, 160, 160, 0.08) 0%, transparent 50%);
  opacity: 0;
  animation: backdropReveal 3s ease 0.5s forwards;
}

.backdrop-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  animation: orbReveal 4s ease 1s forwards;
}

.backdrop-orb.orb-1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 160, 160, 0.1) 0%, transparent 70%);
  animation: orbPulse 8s ease-in-out infinite 2s;
}

.backdrop-orb.orb-2 {
  display: none; /* Simpler for light mode */
}

.backdrop-noise {
  display: none; /* Not needed for light mode */
}

@keyframes backdropReveal {
  to { opacity: 1; }
}

@keyframes orbReveal {
  to { opacity: 1; }
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

/* ─── Main stage ─── */
.hero-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* ─── The wordmark ─── */
/* ─── Alpha Badge ─── */
.alpha-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 160, 160, 0.08);
  border: 1px solid rgba(201, 160, 160, 0.2);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: alphaBadgeReveal 0.5s ease-out 0.1s forwards;
}

@keyframes alphaBadgeReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-wordmark {
  font-size: clamp(12rem, 35vw, 28rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--ink);
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.hero-wordmark .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charReveal 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  will-change: transform, opacity;
}

.hero-wordmark .char:nth-child(1) { animation-delay: 0.05s; }
.hero-wordmark .char:nth-child(2) { animation-delay: 0.1s; }
.hero-wordmark .char:nth-child(3) { animation-delay: 0.15s; }
.hero-wordmark .char:nth-child(4) { animation-delay: 0.2s; }

/* The "i" gets a subtle glow — clean, not distracting */
.hero-wordmark .char[data-char="i"] {
  text-shadow: 0 0 60px rgba(201, 160, 160, 0.3);
}

@keyframes charReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Hero Waveform ─── */
.hero-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 60px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: waveformReveal 0.8s ease-out 0.35s forwards;
}

.hero-waveform .wave-bar {
  width: 4px;
  background: linear-gradient(to top, var(--accent), rgba(201, 160, 160, 0.4));
  border-radius: 2px;
  animation: waveformPulse 1.8s ease-in-out infinite;
}

.hero-waveform .wave-bar:nth-child(1) { height: 15px; animation-delay: 0s; }
.hero-waveform .wave-bar:nth-child(2) { height: 26px; animation-delay: 0.12s; }
.hero-waveform .wave-bar:nth-child(3) { height: 38px; animation-delay: 0.24s; }
.hero-waveform .wave-bar:nth-child(4) { height: 50px; animation-delay: 0.18s; }
.hero-waveform .wave-bar:nth-child(5) { height: 34px; animation-delay: 0.3s; }
.hero-waveform .wave-bar:nth-child(6) { height: 45px; animation-delay: 0.1s; }
.hero-waveform .wave-bar:nth-child(7) { height: 60px; animation-delay: 0.22s; }
.hero-waveform .wave-bar:nth-child(8) { height: 45px; animation-delay: 0.14s; }
.hero-waveform .wave-bar:nth-child(9) { height: 34px; animation-delay: 0.28s; }
.hero-waveform .wave-bar:nth-child(10) { height: 50px; animation-delay: 0.16s; }
.hero-waveform .wave-bar:nth-child(11) { height: 38px; animation-delay: 0.26s; }
.hero-waveform .wave-bar:nth-child(12) { height: 26px; animation-delay: 0.08s; }
.hero-waveform .wave-bar:nth-child(13) { height: 15px; animation-delay: 0.2s; }

@keyframes waveformReveal {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes waveformPulse {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ─── The claim ─── */
.hero-claim {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}

.claim-line {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  color: var(--pencil);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: claimReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.claim-line:nth-child(1) {
  animation-delay: 0.5s;
}

.claim-line:nth-child(2) {
  animation-delay: 0.6s;
}

.claim-accent {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: claimReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

@keyframes claimReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Actions ─── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: actionsReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

@keyframes actionsReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.action-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.action-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.action-primary:hover .action-arrow {
  transform: translateX(4px);
}

.action-secondary {
  font-size: 1rem;
  font-weight: 500;
  color: var(--pencil);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.action-secondary::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.action-secondary:hover {
  color: var(--accent);
}

.action-secondary:hover::after {
  width: 100%;
}

.action-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--pencil);
  text-decoration: none;
  transition: color 0.3s ease;
}

.action-github svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.action-github:hover {
  color: var(--ink);
}

.action-github:hover svg {
  transform: scale(1.1);
}

/* ─── Scroll cue ─── */
.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: scrollReveal 1s ease 2s forwards;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
  position: relative;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollReveal {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(50px); opacity: 0; }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-claim {
    padding: 0 1rem;
  }
  
  .action-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAT HERO — Full-screen stat moments (Apple-style)
   ═══════════════════════════════════════════════════════════════════════════ */

.stat-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.stat-hero.dark {
  background: var(--void);
}

.stat-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.stat-number {
  font-size: clamp(8rem, 25vw, 20rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.stat-hero.dark .stat-number {
  color: var(--paper);
}

.stat-number .stat-unit {
  font-size: 0.4em;
  font-weight: 500;
  opacity: 0.6;
  vertical-align: baseline;
}

.stat-label {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.stat-context {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--pencil);
  max-width: 550px;
  margin: 0 auto;
}

.stat-hero.dark .stat-context {
  color: rgba(255, 255, 255, 0.6);
}

/* Subtle background accent for depth */
.stat-hero::before {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.stat-content {
  position: relative;
  z-index: 1;
}

/* Scroll indicator between stats */
.stat-hero::after {
  content: '↓';
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--pencil);
  opacity: 0.3;
  animation: scrollBounce 2s ease-in-out infinite;
}

.stat-hero.dark::after {
  color: rgba(255, 255, 255, 0.3);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STORY
   ═══════════════════════════════════════════════════════════════════════════ */

.story {
  background: var(--paper);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* No gradient needed - hero and story are both light */

.story-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.story-statement {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  justify-content: center;
}

.story-statement .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.story-statement .word.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-statement .word.accent {
  color: var(--accent);
}

/* Staggered delays for words */
.story-statement .word:nth-child(1) { transition-delay: 0s; }
.story-statement .word:nth-child(2) { transition-delay: 0.15s; }
.story-statement .word:nth-child(3) { transition-delay: 0.3s; }
.story-statement .word:nth-child(4) { transition-delay: 0.45s; }

.story-body {
  max-width: 600px;
  margin: 0 auto;
}

.story-line {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--pencil);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
}

.story-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-line em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

/* Staggered delays for lines */
.story-line:nth-child(1) { transition-delay: 0.6s; }
.story-line:nth-child(2) { transition-delay: 0.75s; }
.story-line:nth-child(3) { transition-delay: 0.9s; }
.story-line:nth-child(4) { transition-delay: 1.05s; }

/* Subtle animated background */
.story-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 100%, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.5;
  animation: storyBgPulse 8s ease-in-out infinite;
}

@keyframes storyBgPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE INTRO
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-intro {
  background: transparent; /* Inherits from zone */
}

/* Section labels on light backgrounds */
.section-label {
  color: var(--accent);
}

.section-headline {
  color: var(--ink);
}

.section-label {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.section-headline {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section-subhead {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--pencil);
  line-height: 1.5;
  margin-top: 2.5rem;
  max-width: 600px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHAPTER OPENERS — Dramatic section dividers (Apple-style)
   ═══════════════════════════════════════════════════════════════════════════ */

.chapter-opener {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-opener.chapter-two {
  background: linear-gradient(180deg, var(--ink) 0%, #1a1a1a 100%);
}

.chapter-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.chapter-number {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.chapter-title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chapter-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4rem;
}

.chapter-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.chapter-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.chapter-icon svg {
  width: 36px;
  height: 36px;
  color: var(--paper);
  opacity: 0.8;
}

.chapter-icon.mic svg {
  color: var(--accent);
  opacity: 1;
}

.chapter-icon.speaker svg {
  color: var(--accent);
  opacity: 1;
}

.chapter-icon.text-result,
.chapter-icon.text-source {
  flex-direction: column;
  gap: 6px;
  padding: 1.5rem;
}

.chapter-icon.text-result span,
.chapter-icon.text-source span {
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}

.chapter-icon.text-result span:nth-child(1) { width: 40px; }
.chapter-icon.text-result span:nth-child(2) { width: 32px; }
.chapter-icon.text-result span:nth-child(3) { width: 36px; }

.chapter-icon.text-source span:nth-child(1) { width: 36px; }
.chapter-icon.text-source span:nth-child(2) { width: 28px; }
.chapter-icon.text-source span:nth-child(3) { width: 32px; }

.chapter-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .chapter-opener {
    min-height: 80vh;
  }
  
  .chapter-visual {
    gap: 1rem;
  }
  
  .chapter-icon {
    width: 60px;
    height: 60px;
  }
  
  .chapter-arrow {
    font-size: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PATIENCE VISUAL — Voice to Text intro (shows patient waiting)
   ═══════════════════════════════════════════════════════════════════════════ */

.patience-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.patience-mic {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.patience-mic svg {
  width: 60px;
  height: 60px;
  color: var(--accent);
}

.patience-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent);
  border-radius: 50%;
  animation: patienceExpand 3s ease-out infinite;
  opacity: 0;
}

.patience-ring.delay {
  animation-delay: 1.5s;
}

@keyframes patienceExpand {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.patience-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--pencil);
  letter-spacing: 0.02em;
}

.patience-timer {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.timer-elapsed {
  font-size: 2rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  animation: timerCount 1s steps(1) infinite;
}

@keyframes timerCount {
  0% { content: "2:34"; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.timer-label {
  font-size: 1rem;
  color: var(--pencil);
  font-style: italic;
}

/* Intro Visuals — Direction indicators */
.intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.intro-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.intro-icon svg {
  width: 56px;
  height: 56px;
  color: var(--ink);
}

.intro-icon.mic {
  color: var(--accent);
}

.intro-icon.mic svg {
  color: var(--accent);
}

/* Pulse ring for microphone */
.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
  opacity: 0;
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Text lines icon */
.text-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 56px;
}

.text-lines span {
  height: 6px;
  background: var(--ink);
  border-radius: 3px;
  opacity: 0.6;
}

.text-lines span:nth-child(1) { width: 100%; }
.text-lines span:nth-child(2) { width: 75%; }
.text-lines span:nth-child(3) { width: 50%; }

/* Animate text lines in V2T (appearing) */
.v2t .intro-icon.text .text-lines span {
  animation: lineAppear 2s ease-out infinite;
}

.v2t .intro-icon.text .text-lines span:nth-child(1) { animation-delay: 0s; }
.v2t .intro-icon.text .text-lines span:nth-child(2) { animation-delay: 0.2s; }
.v2t .intro-icon.text .text-lines span:nth-child(3) { animation-delay: 0.4s; }

@keyframes lineAppear {
  0%, 20% { transform: scaleX(0); transform-origin: left; opacity: 0; }
  40%, 80% { transform: scaleX(1); opacity: 0.6; }
  100% { transform: scaleX(1); opacity: 0.6; }
}

/* Flow arrow */
.flow-arrow {
  font-size: 2.5rem;
  color: var(--pencil);
  opacity: 0.5;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 0.6; transform: translateX(4px); }
}

/* Speaker icon */
.intro-icon.speaker {
  color: var(--accent);
}

.intro-icon.speaker svg {
  color: var(--accent);
}

/* Sound waves emanating from speaker */
.sound-waves {
  position: absolute;
  right: -28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sound-waves span {
  width: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: waveEmanate 1s ease-out infinite;
  opacity: 0;
}

.sound-waves span:nth-child(1) { animation-delay: 0s; }
.sound-waves span:nth-child(2) { animation-delay: 0.15s; }
.sound-waves span:nth-child(3) { animation-delay: 0.3s; }

@keyframes waveEmanate {
  0% { transform: translateX(0) scaleX(0.5); opacity: 0; }
  30% { opacity: 0.8; }
  100% { transform: translateX(12px) scaleX(1); opacity: 0; }
}

/* T2V: text lines shrink/disappear as they become audio */
.t2v .intro-icon.text .text-lines span {
  animation: lineFade 2s ease-out infinite;
}

.t2v .intro-icon.text .text-lines span:nth-child(1) { animation-delay: 0s; }
.t2v .intro-icon.text .text-lines span:nth-child(2) { animation-delay: 0.15s; }
.t2v .intro-icon.text .text-lines span:nth-child(3) { animation-delay: 0.3s; }

@keyframes lineFade {
  0%, 20% { transform: scaleX(1); opacity: 0.6; }
  50%, 100% { transform: scaleX(0); transform-origin: right; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT MODE DEFAULTS — Apple-style predominantly light page
   ═══════════════════════════════════════════════════════════════════════════ */

/* All feature sections default to light */
.feature-intro,
.feature-hero,
.engine-callout {
  background: var(--paper);
  color: var(--ink);
}

/* Feature text on light backgrounds */
.feature-stat {
  color: var(--ink);
}

.stat-unit {
  color: var(--pencil);
}

.feature-label {
  color: var(--accent);
}

.feature-desc {
  color: var(--pencil);
}

/* Demo components on light backgrounds */
.typing-demo {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.typing-text {
  color: var(--ink);
}

.typing-cursor {
  background: var(--accent);
}

.comparison-card.bad {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.comparison-card.good {
  background: rgba(201, 160, 160, 0.08);
  border-color: rgba(201, 160, 160, 0.2);
}

.comparison-label {
  color: var(--pencil);
}

.comparison-text {
  color: var(--ink);
}

.comparison-note {
  color: var(--pencil);
}

.clause-visual {
  background: transparent;
}

.clause-item {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.clause-item.playing {
  border-color: var(--accent);
}

.poll-timeline {
  background: transparent;
}

.poll-tick {
  background: var(--accent);
}

.poll-labels span,
.poll-caption {
  color: var(--pencil);
}

.pause-btn {
  background: var(--ink);
  color: var(--paper);
}

.pause-status {
  color: var(--pencil);
}

.slider {
  background: rgba(0, 0, 0, 0.1);
}

.speed-labels span {
  color: var(--pencil);
}

.speed-current {
  color: var(--ink);
}

.ephemeral-visual .file-icon {
  background: var(--paper);
  border-color: rgba(0, 0, 0, 0.1);
}

.ephemeral-label {
  color: var(--pencil);
}

/* Engine callout — light theme */
.engine-callout {
  background: var(--paper);
}

.engine-badge {
  color: var(--pencil);
}

.engine-name {
  color: var(--ink);
}

.engine-desc {
  color: var(--pencil);
}

.engine-spec {
  background: none !important;
  padding: 0;
  border: none;
  border-radius: 0;
}

.spec-value {
  color: var(--ink);
  background: none;
}

.spec-label {
  color: var(--pencil);
  background: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE HERO — Stats as massive visual anchors
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-hero {
  background: var(--paper);
}

.feature-stat {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 90%;
}

.dark .feature-stat {
  color: var(--paper);
}

.stat-unit {
  font-size: 0.4em;
  font-weight: 500;
  vertical-align: baseline;
  margin-left: 0.05em;
  color: var(--pencil);
}

.dark .stat-unit {
  color: rgba(255, 255, 255, 0.5);
}

/* Numeric stats (with countup or unit) get larger treatment */
.feature-stat .countup {
  font-size: 1em;
  display: inline-block;
}

.feature-stat:only-child {
  font-size: clamp(4rem, 14vw, 10rem);
}

/* Pulse animation when count completes */
.feature-stat.counted {
  animation: countPulse 0.4s var(--ease-out-expo);
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.feature-label {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.dark .feature-label {
  color: var(--accent);
}

.feature-desc {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--pencil);
  max-width: 600px;
}

.dark .feature-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUFFER VISUAL — 250ms lead-in timeline
   ═══════════════════════════════════════════════════════════════════════════ */

.buffer-visual {
  margin-top: 4rem;
  width: 100%;
  max-width: 700px;
}

.buffer-timeline {
  display: flex;
  align-items: stretch;
  height: 120px;
  position: relative;
}

.buffer-zone {
  flex: 0 0 30%;
  background: linear-gradient(90deg, transparent, var(--accent-glow));
  border-radius: 12px 0 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px dashed var(--accent);
  border-right: none;
}

.buffer-wave, .capture-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 50px;
}

.buffer-wave span, .capture-wave span {
  width: 5px;
  background: var(--accent);
  border-radius: 3px;
  animation: waveBar 1s ease-in-out infinite;
}

.buffer-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.buffer-wave span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.buffer-wave span:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.buffer-wave span:nth-child(4) { height: 80%; animation-delay: 0.15s; }
.buffer-wave span:nth-child(5) { height: 60%; animation-delay: 0.05s; }

.buffer-label, .capture-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.75rem;
}

.buffer-marker {
  position: relative;
  width: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.marker-line {
  width: 3px;
  height: 100%;
  background: var(--ink);
}

.marker-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper);
}

.marker-label {
  position: absolute;
  bottom: -2.5rem;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.capture-zone {
  flex: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.03), transparent);
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: none;
}

.capture-wave span {
  background: var(--ink);
  opacity: 0.3;
}

.capture-wave span:nth-child(1) { height: 50%; animation-delay: 0.25s; }
.capture-wave span:nth-child(2) { height: 80%; animation-delay: 0.35s; }
.capture-wave span:nth-child(3) { height: 60%; animation-delay: 0.45s; }
.capture-wave span:nth-child(4) { height: 90%; animation-delay: 0.4s; }
.capture-wave span:nth-child(5) { height: 70%; animation-delay: 0.3s; }
.capture-wave span:nth-child(6) { height: 85%; animation-delay: 0.5s; }
.capture-wave span:nth-child(7) { height: 55%; animation-delay: 0.55s; }
.capture-wave span:nth-child(8) { height: 75%; animation-delay: 0.6s; }

.capture-label {
  color: var(--pencil);
}

@keyframes waveBar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); }
}

.buffer-caption {
  margin-top: 3.5rem;
  font-size: 1.125rem;
  color: var(--pencil);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSTANT DEMO — 150ms Apple-style response visualization
   ═══════════════════════════════════════════════════════════════════════════ */

.instant-demo {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
}

/* Input text — light background */
.instant-input {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  width: 100%;
  justify-content: center;
}

.input-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  color: var(--ink);
  opacity: 0;
  animation: typeIn 2s steps(12) infinite;
}

.input-cursor {
  width: 2px;
  height: 1.2em;
  background: var(--ink);
  margin-left: 2px;
  animation: cursorFade 2s infinite;
}

@keyframes typeIn {
  0%, 10% { width: 0; opacity: 1; }
  40%, 60% { width: auto; opacity: 1; }
  70%, 100% { opacity: 0.3; }
}

@keyframes cursorFade {
  0%, 40% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Flash effect - the instant moment */
.instant-flash {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  opacity: 0;
  animation: flashPulse 2s ease-in-out infinite;
}

@keyframes flashPulse {
  0%, 35% { opacity: 0; transform: scaleX(0.5); }
  40% { opacity: 1; transform: scaleX(1); }
  45%, 100% { opacity: 0; transform: scaleX(0.5); }
}

/* Output audio */
.instant-output {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: outputAppear 2s ease-out infinite;
}

@keyframes outputAppear {
  0%, 40% { opacity: 0; transform: translateY(10px); }
  45%, 90% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; }
}

.output-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
}

.output-wave span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: wavePlay 0.8s ease-in-out infinite;
}

.output-wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.output-wave span:nth-child(2) { height: 60%; animation-delay: 0.05s; }
.output-wave span:nth-child(3) { height: 90%; animation-delay: 0.1s; }
.output-wave span:nth-child(4) { height: 70%; animation-delay: 0.15s; }
.output-wave span:nth-child(5) { height: 100%; animation-delay: 0.2s; }
.output-wave span:nth-child(6) { height: 80%; animation-delay: 0.25s; }
.output-wave span:nth-child(7) { height: 50%; animation-delay: 0.3s; }
.output-wave span:nth-child(8) { height: 70%; animation-delay: 0.35s; }
.output-wave span:nth-child(9) { height: 40%; animation-delay: 0.4s; }
.output-wave span:nth-child(10) { height: 20%; animation-delay: 0.45s; }

@keyframes wavePlay {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.output-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--pencil);
}

/* Badge */
.instant-badge {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(201, 160, 160, 0.1);
  border: 1px solid rgba(201, 160, 160, 0.2);
  border-radius: 100px;
}

.badge-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.badge-label {
  font-size: 0.875rem;
  color: var(--pencil);
}

/* ═══════════════════════════════════════════════════════════════════════════
   POLL RATE VISUAL — 20ms rapid ticks
   ═══════════════════════════════════════════════════════════════════════════ */

.poll-visual {
  margin-top: 4rem;
  width: 100%;
  max-width: 700px;
}

.poll-timeline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  padding: 0 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.poll-tick {
  width: 4px;
  height: 40px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.3;
  animation: tickPulse 0.4s ease-out infinite;
}

/* Stagger the ticks to create a wave effect */
.poll-tick:nth-child(1) { animation-delay: 0s; }
.poll-tick:nth-child(2) { animation-delay: 0.027s; }
.poll-tick:nth-child(3) { animation-delay: 0.054s; }
.poll-tick:nth-child(4) { animation-delay: 0.081s; }
.poll-tick:nth-child(5) { animation-delay: 0.108s; }
.poll-tick:nth-child(6) { animation-delay: 0.135s; }
.poll-tick:nth-child(7) { animation-delay: 0.162s; }
.poll-tick:nth-child(8) { animation-delay: 0.189s; }
.poll-tick:nth-child(9) { animation-delay: 0.216s; }
.poll-tick:nth-child(10) { animation-delay: 0.243s; }
.poll-tick:nth-child(11) { animation-delay: 0.27s; }
.poll-tick:nth-child(12) { animation-delay: 0.297s; }
.poll-tick:nth-child(13) { animation-delay: 0.324s; }
.poll-tick:nth-child(14) { animation-delay: 0.351s; }
.poll-tick:nth-child(15) { animation-delay: 0.378s; }

@keyframes tickPulse {
  0% { 
    opacity: 1; 
    height: 60px;
    box-shadow: 0 0 12px var(--accent);
  }
  100% { 
    opacity: 0.3; 
    height: 40px;
    box-shadow: none;
  }
}

.poll-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.5);
}

.poll-caption {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--pencil);
  text-align: center;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EPHEMERAL FILE VISUAL — Zero File I/O
   ═══════════════════════════════════════════════════════════════════════════ */

.ephemeral-visual {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ephemeral-file {
  position: relative;
  width: 80px;
  height: 100px;
}

.file-icon {
  width: 80px;
  height: 100px;
  background: linear-gradient(145deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.08) 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: relative;
  animation: fileAppear 4s ease-in-out infinite;
}

.file-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.05) 50%);
  border-bottom-left-radius: 4px;
}

.file-lines {
  position: absolute;
  top: 30px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-lines span {
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  animation: lineType 4s ease-in-out infinite;
}

.file-lines span:nth-child(1) { width: 100%; animation-delay: 0.2s; }
.file-lines span:nth-child(2) { width: 80%; animation-delay: 0.4s; }
.file-lines span:nth-child(3) { width: 60%; animation-delay: 0.6s; }

.file-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.file-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0;
  animation: particleFly 4s ease-out infinite;
}

.file-particles span:nth-child(1) { left: 20%; top: 30%; animation-delay: 2s; }
.file-particles span:nth-child(2) { left: 50%; top: 20%; animation-delay: 2.1s; }
.file-particles span:nth-child(3) { left: 70%; top: 40%; animation-delay: 2.2s; }
.file-particles span:nth-child(4) { left: 30%; top: 60%; animation-delay: 2.3s; }
.file-particles span:nth-child(5) { left: 60%; top: 50%; animation-delay: 2.15s; }
.file-particles span:nth-child(6) { left: 40%; top: 70%; animation-delay: 2.25s; }
.file-particles span:nth-child(7) { left: 80%; top: 25%; animation-delay: 2.05s; }
.file-particles span:nth-child(8) { left: 15%; top: 45%; animation-delay: 2.35s; }

.ephemeral-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: labelFade 4s ease-in-out infinite;
}

@keyframes fileAppear {
  0%, 10% { 
    opacity: 0; 
    transform: scale(0.9); 
  }
  20%, 45% { 
    opacity: 1; 
    transform: scale(1); 
  }
  60%, 100% { 
    opacity: 0; 
    transform: scale(0.95); 
  }
}

@keyframes lineType {
  0%, 15% { transform: scaleX(0); transform-origin: left; }
  25%, 45% { transform: scaleX(1); }
  55%, 100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes particleFly {
  0%, 45% { 
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  80%, 100% {
    opacity: 0;
    transform: translate(var(--tx, 20px), var(--ty, -30px)) scale(0);
  }
}

.file-particles span:nth-child(1) { --tx: -30px; --ty: -40px; }
.file-particles span:nth-child(2) { --tx: 10px; --ty: -50px; }
.file-particles span:nth-child(3) { --tx: 40px; --ty: -30px; }
.file-particles span:nth-child(4) { --tx: -25px; --ty: 20px; }
.file-particles span:nth-child(5) { --tx: 35px; --ty: 15px; }
.file-particles span:nth-child(6) { --tx: -15px; --ty: 40px; }
.file-particles span:nth-child(7) { --tx: 45px; --ty: -45px; }
.file-particles span:nth-child(8) { --tx: -40px; --ty: -20px; }

@keyframes labelFade {
  0%, 55% { opacity: 0; transform: translateY(10px); }
  65%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPARISON CARDS — Apple-style minimal
   ═══════════════════════════════════════════════════════════════════════════ */

.comparison {
  display: flex;
  gap: 1.5rem;
  margin-top: 5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.comparison-card {
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  min-width: 300px;
  max-width: 380px;
  text-align: center;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.comparison-card:hover {
  transform: translateY(-8px);
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.comparison-card.bad {
  opacity: 0.7;
}

.comparison-card.bad:hover {
  opacity: 0.85;
}

.comparison-card.good {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.comparison-card.good::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.comparison-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--pencil);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.comparison-card.bad .comparison-label::before {
  content: '✗';
  font-size: 1rem;
  color: #D64545;
}

.comparison-card.good .comparison-label {
  color: var(--accent);
}

.comparison-card.good .comparison-label::before {
  content: '✓';
  font-size: 1rem;
  color: #2E8B57;
}

.comparison-text {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.35;
  font-style: normal;
}

.comparison-card.bad .comparison-text {
  color: var(--pencil);
  text-decoration: none;
}

.comparison-note {
  font-size: 0.9375rem;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.comparison-card.good .comparison-note {
  color: var(--pencil);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPING DEMO
   ═══════════════════════════════════════════════════════════════════════════ */

.typing-demo {
  margin-top: 4rem;
  background: #F5F5F7;
  border-radius: 16px;
  padding: 1.75rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.dark .typing-demo {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.typing-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 5s steps(44) infinite;
}

.dark .typing-text {
  color: var(--paper);
}

.typing-cursor {
  width: 2px;
  height: 1.25rem;
  background: var(--ink);
  animation: blink 0.8s infinite;
  flex-shrink: 0;
}

.dark .typing-cursor {
  background: var(--paper);
}

@keyframes typing {
  0%, 5% { width: 0; }
  45%, 55% { width: 100%; }
  95%, 100% { width: 0; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIX DEMO (Hallucination)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   AUTOFIX LIVE DEMO — Masterclass Animation
   ═══════════════════════════════════════════════════════════════════════════ */

.autofix-demo {
  margin-top: 4rem;
  width: 100%;
  max-width: 600px;
}

.demo-terminal {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.5rem 2rem 2rem;
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}

.terminal-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.demo-prefix {
  color: var(--accent);
  margin-right: 0.75rem;
}

.demo-static {
  opacity: 0;
  animation: typeIn 0.1s forwards;
}

.demo-static:nth-of-type(1) { animation-delay: 0.3s; }
.demo-static:nth-of-type(2) { animation-delay: 2.2s; }

.demo-word-container {
  position: relative;
  display: inline-block;
}

.demo-wrong {
  opacity: 0;
  color: var(--ink);
  animation: 
    typeIn 0.1s 0.5s forwards,
    wrongHighlight 0.8s 1.5s forwards,
    fadeOutWord 0.3s 2.5s forwards;
}

.demo-correct {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  color: #2E8B57;
  animation: correctIn 0.4s 2.8s forwards;
}

.demo-cursor {
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

.demo-status {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  height: 1.2rem;
}

.status-detecting {
  color: var(--pencil);
  opacity: 0;
  animation: fadeIn 0.2s 1.5s forwards, fadeOut 0.2s 2.5s forwards;
}

.status-fixed {
  color: #2E8B57;
  opacity: 0;
  animation: fadeIn 0.3s 2.9s forwards;
}

/* Keyframes */
@keyframes typeIn {
  to { opacity: 1; }
}

@keyframes wrongHighlight {
  0% { 
    background: transparent;
    color: var(--ink);
  }
  30% {
    background: rgba(255, 100, 100, 0.15);
    color: #D64545;
  }
  100% {
    background: rgba(255, 100, 100, 0.1);
    color: #D64545;
    text-decoration: line-through;
  }
}

@keyframes fadeOutWord {
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes correctIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 600px) {
  .terminal-content {
    font-size: 1rem;
  }
  
  .demo-terminal {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REALTIME DEMO — Audio → Text streaming visualization
   ═══════════════════════════════════════════════════════════════════════════ */

.realtime-demo {
  margin-top: 4rem;
  width: 100%;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 20px;
  padding: 2rem;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.row-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil);
  width: 50px;
  flex-shrink: 0;
}

.audio-stream {
  display: flex;
  gap: 8px;
  flex: 1;
}

.audio-chunk {
  height: 40px;
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(201, 160, 160, 0.3) 100%);
  border-radius: 6px;
  animation: chunkPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.audio-chunk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: chunkShine 3s ease-in-out infinite;
}

.audio-chunk.c1 { animation-delay: 0s; }
.audio-chunk.c1::after { animation-delay: 0s; }
.audio-chunk.c2 { animation-delay: 0.5s; }
.audio-chunk.c2::after { animation-delay: 0.5s; }
.audio-chunk.c3 { animation-delay: 1s; }
.audio-chunk.c3::after { animation-delay: 1s; }
.audio-chunk.c4 { animation-delay: 1.5s; }
.audio-chunk.c4::after { animation-delay: 1.5s; }
.audio-chunk.c5 { animation-delay: 2s; }
.audio-chunk.c5::after { animation-delay: 2s; }

@keyframes chunkPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  20% { opacity: 1; transform: scaleY(1); }
  40% { opacity: 0.7; transform: scaleY(0.8); }
}

@keyframes chunkShine {
  0%, 100% { transform: translateX(-100%); }
  20%, 80% { transform: translateX(100%); }
}

.demo-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  text-align: center;
  margin: 1rem 0;
  opacity: 0.6;
}

.text-stream {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
}

.text-word {
  opacity: 0;
  transform: translateY(8px);
  animation: wordAppear 3s ease-out infinite;
  color: var(--ink);
}

.text-word.w1 { animation-delay: 0.2s; }
.text-word.w2 { animation-delay: 0.7s; }
.text-word.w3 { animation-delay: 1.2s; }
.text-word.w4 { animation-delay: 1.7s; }
.text-word.w5 { animation-delay: 2.2s; }

@keyframes wordAppear {
  0%, 5% { opacity: 0; transform: translateY(8px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(-4px); }
}

.text-cursor {
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENGINE CALLOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.engine-callout {
  min-height: 70vh;
}

.engine-badge {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.dark .engine-badge {
  color: rgba(255, 255, 255, 0.5);
}

.engine-callout .engine-name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.dark .engine-name {
  color: var(--paper);
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.engine-desc {
  font-size: 1.125rem;
  color: var(--pencil);
  max-width: 550px;
  line-height: 1.6;
  margin-bottom: 3rem;
  text-align: center;
}

.dark .engine-desc {
  color: rgba(255, 255, 255, 0.6);
}

.engine-specs {
  display: flex;
  gap: 5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.engine-spec {
  text-align: center;
  background: none !important;
  padding: 0;
  border: none;
}

.engine-spec .spec-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
  background: none;
}

.dark .engine-spec .spec-value {
  color: var(--paper);
}

.engine-spec .spec-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.5rem;
  opacity: 0.7;
  background: none;
}

.dark .engine-spec .spec-label {
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLAUSE VISUAL (TTS Streaming) — Apple-style minimal
   ═══════════════════════════════════════════════════════════════════════════ */

.clause-visual {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  max-width: 500px;
}

.clause-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clause-item:last-child {
  border-bottom: none;
}

.clause-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.clause-item.playing {
  color: var(--ink);
}

.clause-item.playing::before {
  background: var(--ink);
  animation: pulse 1.5s ease-in-out infinite;
}

.clause-item.buffered {
  color: var(--pencil);
}

.clause-item.buffered::before {
  background: var(--pencil);
  opacity: 0.5;
}

.clause-item.generating {
  color: var(--pencil);
  opacity: 0.5;
}

.clause-item.generating::before {
  background: transparent;
  border: 1px solid var(--pencil);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTEXT WINDOW VISUAL
   ═══════════════════════════════════════════════════════════════════════════ */

.context-window {
  margin-top: 4rem;
  width: 100%;
  max-width: 800px;
}

.context-timeline {
  display: flex;
  align-items: center;
  height: 72px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.context-past {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.02));
}

.context-active {
  flex: 1;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(201, 160, 160, 0.15) 0%, 
    rgba(201, 160, 160, 0.25) 50%,
    rgba(201, 160, 160, 0.3) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: contextPulse 3s ease-in-out infinite;
}

@keyframes contextPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.context-label {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.context-now {
  width: 6px;
  height: 100%;
  background: var(--ink);
  position: relative;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.now-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.now-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pencil);
  white-space: nowrap;
}

.context-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.context-markers span {
  font-size: 0.9375rem;
  color: rgba(0, 0, 0, 0.5);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAUSE DEMO
   ═══════════════════════════════════════════════════════════════════════════ */

.pause-demo {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pause-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pause-btn:hover {
  transform: scale(1.05);
  background: #424245;
}

.pause-btn .pause-icon,
.pause-btn .play-icon {
  font-size: 1.5rem;
  color: var(--paper);
}

.pause-btn .play-icon {
  display: none;
}

.pause-btn.paused .pause-icon {
  display: none;
}

.pause-btn.paused .play-icon {
  display: block;
}

.pause-status {
  font-size: 0.875rem;
  color: var(--pencil);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPEED SLIDER
   ═══════════════════════════════════════════════════════════════════════════ */

.speed-slider {
  margin-top: 4rem;
  width: 100%;
  max-width: 400px;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.speed-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--pencil);
}

.speed-current {
  font-weight: 600;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE PASSAGE — Black hole as privacy metaphor
   ═══════════════════════════════════════════════════════════════════════════ */

/* Text Section — Pure darkness, text breathes */
.passage-text {
  background: #000000 !important;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

/* Smooth fade from previous light section */
.passage-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--paper), var(--void));
  pointer-events: none;
}

.passage-eyebrow {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.passage-headline {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  line-height: 1.15;
  max-width: 1000px;
}

.passage-body {
  font-size: clamp(1.3125rem, 2vw, 1.3125rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
  line-height: 1.55;
  margin: 0 auto;
}

/* Visual Section — Black hole gets its moment */
.passage-visual-section {
  background: #000000 !important;
  min-height: auto;
  padding: 0 0 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.passage-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blackhole-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: contain;
}

/* Vignette — smooth fade to black on all edges */
.passage-visual::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    ellipse 60% 50% at center,
    transparent 20%,
    var(--void) 70%
  );
  pointer-events: none;
}

/* Explanation Grid */
.passage-explain {
  background: var(--void);
  min-height: auto;
  padding: 6rem 2rem 8rem;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.explain-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.explain-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.explain-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.explain-body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* Explain Visuals */
.explain-visual {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  position: relative;
}

/* 1. Singularity — converging orbits */
.singularity-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.singularity-core {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent);
  animation: corePulse 2s ease-in-out infinite;
}

.singularity-orbit {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(201, 160, 160, 0.2);
  border-radius: 50%;
  animation: orbitSpin 4s linear infinite;
}

.singularity-orbit span {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}

.singularity-orbit.delay-1 {
  width: 45px;
  height: 45px;
  animation-duration: 3s;
  animation-direction: reverse;
}

.singularity-orbit.delay-2 {
  width: 30px;
  height: 30px;
  animation-duration: 2s;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* 2. Accretion Disk — spiral rings */
.accretion-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.accretion-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(201, 160, 160, 0.4);
  animation: diskSpin 3s linear infinite;
}

.accretion-ring.ring-1 {
  width: 70px;
  height: 70px;
}

.accretion-ring.ring-2 {
  width: 50px;
  height: 50px;
  animation-duration: 2s;
  border-top-color: rgba(201, 160, 160, 0.5);
}

.accretion-ring.ring-3 {
  width: 30px;
  height: 30px;
  animation-duration: 1.2s;
  border-top-color: rgba(201, 160, 160, 0.6);
}

.accretion-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: particleSpiral 2s ease-in infinite;
}

.accretion-particle.p1 { animation-delay: 0s; }
.accretion-particle.p2 { animation-delay: 0.6s; }
.accretion-particle.p3 { animation-delay: 1.2s; }

@keyframes diskSpin {
  to { transform: rotate(360deg); }
}

@keyframes particleSpiral {
  0% {
    transform: translate(35px, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
}

/* 3. Event Horizon — boundary with inward arrows */
.horizon-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.horizon-boundary {
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: horizonPulse 2s ease-in-out infinite;
}

.horizon-inner {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--void);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.horizon-arrow {
  position: absolute;
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  animation: arrowIn 2s ease-out infinite;
}

.horizon-arrow.a1 {
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
}

.horizon-arrow.a2 {
  top: 10px;
  left: 10px;
  transform: rotate(45deg);
  animation-delay: 0.4s;
}

.horizon-arrow.a3 {
  bottom: 10px;
  left: 10px;
  transform: rotate(-45deg);
  animation-delay: 0.8s;
}

@keyframes horizonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 160, 160, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(201, 160, 160, 0); }
}

@keyframes arrowIn {
  0% { opacity: 0; transform: translateX(-15px) translateY(-50%); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(20px) translateY(-50%); }
}

/* 4. Gravitational Lensing — bending lines */
.lensing-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lensing-center {
  width: 16px;
  height: 16px;
  background: var(--void);
  border: 2px solid rgba(201, 160, 160, 0.4);
  border-radius: 50%;
  z-index: 2;
}

.lensing-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(201, 160, 160, 0.1) 0%,
    rgba(201, 160, 160, 0.5) 30%,
    transparent 50%,
    rgba(201, 160, 160, 0.5) 70%,
    rgba(201, 160, 160, 0.1) 100%
  );
  animation: lensBend 3s ease-in-out infinite;
}

.lensing-line.l1 {
  top: 25px;
}

.lensing-line.l2 {
  top: 40px;
  animation-delay: 0.3s;
}

.lensing-line.l3 {
  top: 55px;
  animation-delay: 0.6s;
}

@keyframes lensBend {
  0%, 100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  50% {
    clip-path: polygon(0 30%, 45% 0, 55% 0, 100% 30%, 100% 70%, 55% 100%, 45% 100%, 0 70%);
  }
}

@media (max-width: 768px) {
  .explain-grid {
    grid-template-columns: 1fr;
  }
  
  .explain-visual {
    width: 60px;
    height: 60px;
  }
}

/* Technical Deep Dive (Collapsible) — part of The Passage */
.passage-tech {
  background: var(--void);
  color: var(--paper);
  min-height: auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.tech-details {
  max-width: 1000px;
  margin: 0 auto;
  display: block; /* Ensure visibility on Safari */
}

.tech-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  transition: color 0.2s ease;
}

.tech-summary:hover {
  color: var(--paper);
}

.tech-summary::-webkit-details-marker {
  display: none;
}

.tech-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.tech-details[open] .tech-toggle {
  transform: rotate(45deg);
}

.tech-details[open] .tech-grid {
  padding-top: 3rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
}

.tech-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: left;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(10px);
}

.tech-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-stat {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.tech-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  font-weight: 400;
}

.tech-credit {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  word-break: break-word;
  padding-left: 1rem;
  padding-right: 1rem;
}

.tech-credit a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tech-credit a:hover {
  color: var(--paper);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARCHITECTURE — Elegant sequential flow
   ═══════════════════════════════════════════════════════════════════════════ */

.architecture {
  background: var(--paper);
  min-height: 60vh;
  padding: 8rem 2rem 4rem;
}

.arch-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.arch-subtitle {
  font-size: 1.25rem;
  color: var(--pencil);
  max-width: 400px;
}

/* Pipeline Section */
.pipeline-section {
  background: var(--paper);
  min-height: auto;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipeline-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 4rem;
}

.pipeline-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.pipeline-label {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Keyboard Shortcut Trigger — Apple-style key caps */
.shortcut-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.shortcut-keys {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 1rem;
  background: linear-gradient(180deg, #fafafa 0%, #e8e8e8 100%);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.key.small {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

.key-plus {
  font-size: 1rem;
  color: var(--pencil);
  font-weight: 300;
}

.shortcut-hint {
  font-size: 0.875rem;
  color: var(--pencil);
  letter-spacing: 0.02em;
}

/* Controls hint for TTS */
.controls-hint {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.control-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-label {
  font-size: 0.8125rem;
  color: var(--pencil);
}

/* Pipeline Steps */
.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 500px;
  width: 100%;
}

.pipeline-step {
  display: flex;
  gap: 2rem;
  position: relative;
  padding-bottom: 3rem;
}

.step-line {
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(201, 160, 160, 0.3), rgba(201, 160, 160, 0.1));
}

.step-line.last {
  display: none;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--void);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.step-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 1rem;
  color: var(--pencil);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .shortcut-trigger {
    margin-bottom: 2rem;
  }
  
  .key {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 1rem;
  }
  
  .controls-hint {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .pipeline-step {
    gap: 1.5rem;
  }
  
  .step-line {
    left: 15px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRIVACY SECTION — Apple-grade design
   ═══════════════════════════════════════════════════════════════════════════ */

.privacy-section {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
}

.privacy-content {
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The shield icon - LARGE and prominent */
.privacy-icon {
  position: relative;
  margin-bottom: 4rem;
}

.privacy-icon svg {
  width: 140px;
  height: 168px;
}

.privacy-icon svg path {
  fill: rgba(201, 160, 160, 0.12);
  stroke: var(--accent);
  stroke-width: 2;
}

.privacy-icon .shield-check {
  stroke: var(--accent) !important;
  stroke-width: 5;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkDraw 1s ease 0.4s forwards;
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.privacy-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 160, 160, 0.25) 0%, rgba(201, 160, 160, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: glowBreath 3s ease-in-out infinite;
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Headline — Apple's signature style */
.privacy-headline {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.privacy-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #B08080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* The key statement */
.privacy-statement {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--pencil);
  line-height: 1.5;
  margin-bottom: 4rem;
  max-width: 480px;
}

/* Clean feature list */
.privacy-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}

.privacy-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--pencil);
  transition: color 0.3s ease;
}

.privacy-feature:hover {
  color: var(--ink);
}

.feature-bullet {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(201, 160, 160, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
  .privacy-section {
    padding: 6rem 1.5rem;
  }
  
  .privacy-features {
    width: 100%;
    padding: 0 1rem;
  }
}

/* Zero File I/O - integrated into privacy - PROMINENT dark card */
.zero-io {
  margin-top: 5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem;
  background: var(--void);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 600px;
}

.zero-io-visual {
  flex-shrink: 0;
  position: relative;
}

.ephemeral-file.large {
  width: 100px;
  height: 120px;
  position: relative;
}

.ephemeral-file.large .file-icon {
  width: 100px;
  height: 120px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  animation: fileFloat 3s ease-in-out infinite;
}

@keyframes fileFloat {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-8px); opacity: 1; }
}

.ephemeral-file.large .file-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.2) 50%);
  border-bottom-left-radius: 8px;
}

.ephemeral-file.large .file-lines {
  position: absolute;
  top: 40px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ephemeral-file.large .file-lines span {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  display: block;
}

.ephemeral-file.large .file-lines span:nth-child(1) { width: 55px; }
.ephemeral-file.large .file-lines span:nth-child(2) { width: 45px; }
.ephemeral-file.large .file-lines span:nth-child(3) { width: 35px; }

.ephemeral-file.large .file-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ephemeral-file.large .file-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFade 3s ease-in-out infinite;
}

.ephemeral-file.large .file-particles span:nth-child(1) { top: 20%; left: -10px; animation-delay: 0s; }
.ephemeral-file.large .file-particles span:nth-child(2) { top: 40%; right: -10px; animation-delay: 0.4s; }
.ephemeral-file.large .file-particles span:nth-child(3) { top: 60%; left: -8px; animation-delay: 0.8s; }
.ephemeral-file.large .file-particles span:nth-child(4) { top: 80%; right: -8px; animation-delay: 1.2s; }
.ephemeral-file.large .file-particles span:nth-child(5) { top: 10%; left: 50%; animation-delay: 0.2s; }
.ephemeral-file.large .file-particles span:nth-child(6) { bottom: 10%; left: 50%; animation-delay: 0.6s; }
.ephemeral-file.large .file-particles span:nth-child(7) { top: 30%; left: -5px; animation-delay: 1s; }
.ephemeral-file.large .file-particles span:nth-child(8) { top: 70%; right: -5px; animation-delay: 1.4s; }

@keyframes particleFade {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1); }
}

.zero-io-text {
  flex: 1;
}

.zero-io-stat {
  font-size: 2rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.zero-io-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 380px;
}

@media (max-width: 700px) {
  .zero-io {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
    margin: 4rem auto 0;
  }
  
  .zero-io-stat {
    font-size: 1.75rem;
  }
  
  .zero-io-desc {
    max-width: 100%;
    font-size: 1rem;
  }
  
  .ephemeral-file.large {
    width: 80px;
    height: 96px;
  }
  
  .ephemeral-file.large .file-icon {
    width: 80px;
    height: 96px;
  }
  
  .ephemeral-file.large .file-lines {
    top: 32px;
    left: 12px;
    gap: 8px;
  }
  
  .ephemeral-file.large .file-lines span {
    height: 5px;
  }
  
  .ephemeral-file.large .file-lines span:nth-child(1) { width: 44px; }
  .ephemeral-file.large .file-lines span:nth-child(2) { width: 36px; }
  .ephemeral-file.large .file-lines span:nth-child(3) { width: 28px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BENCHMARKS
   ═══════════════════════════════════════════════════════════════════════════ */

.benchmarks {
  background: var(--paper);
  min-height: auto;
  padding: 8rem 2rem;
}

.bench-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bench-subtitle {
  font-size: 1.125rem;
  color: var(--pencil);
  margin-bottom: 4rem;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
}

.bench-card {
  background: #f5f5f7;
  border-radius: 24px;
  padding: 2.5rem;
  text-align: left;
  transition: all 0.4s var(--ease-out-expo);
}

.bench-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.bench-card.featured {
  background: linear-gradient(145deg, #1D1D1F 0%, #000000 100%);
  color: var(--paper);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.bench-card.featured:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.bench-chip {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.bench-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bench-row:last-child {
  margin-bottom: 0;
}

.bench-label {
  font-size: 0.8125rem;
  color: var(--pencil);
  min-width: 80px;
}

.bench-card.featured .bench-label {
  color: rgba(255, 255, 255, 0.6);
}

.bench-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.bench-card.featured .bench-bar-container {
  background: rgba(255, 255, 255, 0.1);
}

.bench-bar {
  height: 100%;
  width: var(--width);
  background: var(--accent);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease-out-expo);
}

.bench-bar.animate {
  transform: scaleX(1);
}

.bench-value {
  font-size: 0.8125rem;
  font-weight: 600;
  min-width: 85px;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════════════════════════════════ */

.comparison-table {
  background: var(--paper);
  min-height: auto;
  padding: 8rem 2rem;
}

.compare-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 0;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.compare-header {
  background: transparent;
  padding: 1.25rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.compare-header:first-child {
  text-align: left;
}

.compare-header:nth-child(2) {
  color: var(--accent);
}

.compare-row-label {
  background: transparent;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--pencil);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.compare-cell {
  background: transparent;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.compare-cell.yes {
  color: var(--ink);
}

.compare-cell.no {
  color: rgba(0, 0, 0, 0.3);
}

.compare-cell.partial {
  color: var(--pencil);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REQUIREMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.requirements {
  background: var(--paper);
  min-height: auto;
  padding: 6rem 2rem;
}

.req-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: center;
}

.req-list li {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
}

.req-key {
  color: var(--pencil);
}

.req-val {
  color: var(--ink);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */

.faq {
  background: var(--paper);
  min-height: auto;
  padding: 8rem 2rem;
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--void), var(--paper));
  pointer-events: none;
  z-index: 0;
}

.faq-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.faq-list {
  max-width: 700px;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1.75rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--pencil);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-out-expo);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--pencil);
  line-height: 1.7;
  padding-bottom: 1.75rem;
  max-width: 600px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TECHNOLOGY SECTION — Dramatic, Apple-inspired
   ═══════════════════════════════════════════════════════════════════════════ */

.technology-section {
  background: var(--paper);
  min-height: auto;
  padding: 10rem 2rem;
}

.tech-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tech-headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.tech-explainer {
  font-size: 1.25rem;
  color: var(--pencil);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 5rem;
}

/* Three-column Tech Grid */
.tech-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
}

.tech-card-hero {
  background: linear-gradient(145deg, #FAFAFA 0%, #F0F0F2 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}

.tech-card-hero:hover {
  transform: translateY(-8px);
  background: #FFFFFF;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

/* Tech Visuals Container */
.tech-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.tech-icon-svg {
  width: 80px;
  height: 80px;
}

/* Card Text Styles */
.tech-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.tech-card-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.tech-card-desc {
  font-size: 0.9375rem;
  color: var(--pencil);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tech-card-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-card-metrics span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pencil);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
}

/* Responsive */
@media (max-width: 900px) {
  .tech-trio {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .technology-section {
    padding: 6rem 1.5rem;
  }
  
  .tech-headline {
    margin-bottom: 3rem;
  }
}

/* Legacy credits (keeping for backwards compatibility) */
.credit-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.credit-desc {
  font-size: 0.875rem;
  color: var(--pencil);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LLM FEATURES — Smart Formatting, Filler Removal, Polish Modes, etc.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Transform Demo (Smart Formatting) ─── */
.transform-demo {
  margin-top: 4rem;
  width: 100%;
  max-width: 600px;
}

.transform-terminal {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2rem;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  overflow: hidden;
}

.transform-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 2.5rem;
}

.transform-spoken {
  color: var(--pencil);
  font-size: 1rem;
  opacity: 0;
  animation: transformSpoken 6s ease-in-out infinite;
}

.transform-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  opacity: 0;
  animation: transformArrow 6s ease-in-out infinite;
}

.transform-result {
  color: #2E8B57;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  animation: transformResult 6s ease-in-out infinite;
}

@keyframes transformSpoken {
  0%, 5% { opacity: 0; transform: translateX(-10px); }
  10%, 40% { opacity: 1; transform: translateX(0); }
  50%, 100% { opacity: 0.3; transform: translateX(0); }
}

@keyframes transformArrow {
  0%, 15% { opacity: 0; }
  20%, 45% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

@keyframes transformResult {
  0%, 20% { opacity: 0; transform: translateX(10px); }
  30%, 90% { opacity: 1; transform: translateX(0); }
  95%, 100% { opacity: 0; }
}

.transform-examples {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.transform-examples .transform-row:nth-child(1) { animation-delay: 0s; }
.transform-examples .transform-row:nth-child(1) .transform-spoken { animation-delay: 0s; }
.transform-examples .transform-row:nth-child(1) .transform-arrow { animation-delay: 0s; }
.transform-examples .transform-row:nth-child(1) .transform-result { animation-delay: 0s; }

.transform-examples .transform-row:nth-child(2) { animation-delay: 2s; }
.transform-examples .transform-row:nth-child(2) .transform-spoken { animation-delay: 2s; }
.transform-examples .transform-row:nth-child(2) .transform-arrow { animation-delay: 2s; }
.transform-examples .transform-row:nth-child(2) .transform-result { animation-delay: 2s; }

.transform-examples .transform-row:nth-child(3) { animation-delay: 4s; }
.transform-examples .transform-row:nth-child(3) .transform-spoken { animation-delay: 4s; }
.transform-examples .transform-row:nth-child(3) .transform-arrow { animation-delay: 4s; }
.transform-examples .transform-row:nth-child(3) .transform-result { animation-delay: 4s; }

/* ─── Filler Removal Demo ─── */
.filler-demo {
  margin-top: 4rem;
  width: 100%;
  max-width: 700px;
}

.filler-terminal {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}

.filler-word {
  display: inline;
  position: relative;
  color: var(--ink);
  animation: fillerFade 7s ease-in-out infinite;
}

@keyframes fillerFade {
  0%, 30% { 
    opacity: 1; 
    color: var(--ink);
    text-decoration: none;
  }
  35%, 42% { 
    opacity: 1; 
    color: #D64545;
    text-decoration: underline;
    text-decoration-color: #D64545;
  }
  48%, 55% { 
    opacity: 0.4; 
    color: #D64545;
    text-decoration: line-through;
    text-decoration-color: #D64545;
  }
  60%, 90% { 
    opacity: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
  }
  95%, 100% {
    opacity: 1;
    color: var(--ink);
    text-decoration: none;
    font-size: 1rem;
  }
}

.filler-word:nth-child(1) { animation-delay: 0s; }
.filler-word:nth-child(2) { animation-delay: 0.1s; }
.filler-word:nth-child(3) { animation-delay: 0.2s; }
.filler-word:nth-child(4) { animation-delay: 0.15s; }

.filler-static {
  color: var(--ink);
}

/* ─── Polish Mode Switcher ─── */
.polish-modes-demo {
  margin-top: 4rem;
  width: 100%;
  max-width: 700px;
}

.mode-switcher {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.5rem;
  border-radius: 100px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.mode-pill {
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pencil);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.mode-pill:hover {
  color: var(--ink);
}

.mode-pill.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.polish-input {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--pencil);
  line-height: 1.6;
}

.polish-output-container {
  position: relative;
  min-height: 80px;
}

.polish-output {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.6;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.polish-output.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.mode-label {
  display: block;
  font-size: 0.75rem;
  color: var(--pencil);
  margin-top: 0.5rem;
  text-align: center;
}

/* ─── Silence Timer Ring ─── */
.silence-demo {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 700px;
}

.silence-text-container {
  position: relative;
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.silence-text-before,
.silence-text-after {
  position: absolute;
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: left;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.silence-text-before {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--pencil);
  opacity: 1;
  transform: translateY(0);
  animation: silenceBeforeText 9s ease-in-out infinite;
}

.silence-text-after {
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.08), rgba(46, 139, 87, 0.04));
  border: 1px solid rgba(46, 139, 87, 0.25);
  color: var(--ink);
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  animation: silenceAfterText 9s ease-in-out infinite;
}

@keyframes silenceBeforeText {
  0%, 50% { opacity: 1; transform: translateY(0); }
  60%, 85% { opacity: 0; transform: translateY(-8px); }
  92%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes silenceAfterText {
  0%, 55% { opacity: 0; transform: translateY(8px); }
  65%, 82% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(8px); }
}

.silence-timer {
  position: relative;
  width: 100px;
  height: 100px;
}

.silence-ring-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 5;
}

.silence-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: fillSilenceRing 9s ease-out infinite;
}

@keyframes fillSilenceRing {
  0% { stroke-dashoffset: 283; stroke: var(--pencil); }
  50% { stroke-dashoffset: 28; stroke: var(--pencil); }
  58% { stroke-dashoffset: 0; stroke: var(--accent); }
  62%, 70% { 
    stroke-dashoffset: 0; 
    stroke: var(--accent);
    filter: drop-shadow(0 0 12px var(--accent));
  }
  78%, 100% { stroke-dashoffset: 283; stroke: var(--pencil); }
}

.silence-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
}

.silence-status {
  height: 1.5rem;
  position: relative;
}

.silence-status span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.status-waiting {
  color: var(--pencil);
  animation: statusWaiting 9s ease-in-out infinite;
}

.status-done {
  color: #2E8B57;
  animation: statusDone 9s ease-in-out infinite;
}

@keyframes statusWaiting {
  0%, 50% { opacity: 1; }
  58%, 85% { opacity: 0; }
  92%, 100% { opacity: 1; }
}

@keyframes statusDone {
  0%, 55% { opacity: 0; transform: translateX(-50%) scale(0.9); }
  65%, 80% { opacity: 1; transform: translateX(-50%) scale(1); }
  88%, 100% { opacity: 0; transform: translateX(-50%) scale(0.9); }
}

/* ─── List Formatting Demo ─── */
.list-demo {
  margin-top: 4rem;
  width: 100%;
  max-width: 900px;
}

.list-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.list-spoken, .list-formatted {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
}

.list-spoken {
  color: var(--pencil);
  opacity: 0;
  animation: listSpokenAppear 6s ease-in-out infinite;
}

@keyframes listSpokenAppear {
  0%, 5% { opacity: 0; transform: translateX(-20px); }
  15%, 60% { opacity: 1; transform: translateX(0); }
  70%, 90% { opacity: 0.3; transform: translateX(0); }
  95%, 100% { opacity: 0; }
}

.list-arrow {
  font-size: 2rem;
  color: var(--accent);
  align-self: center;
  opacity: 0;
  animation: listArrowAppear 6s ease-in-out infinite;
}

@keyframes listArrowAppear {
  0%, 30% { opacity: 0; transform: scale(0.8); }
  40%, 80% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; }
}

.list-formatted {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}

.list-formatted ol {
  margin: 0;
  padding-left: 1.5rem;
}

.list-formatted li {
  opacity: 0;
  animation: listItemAppear 6s ease-out infinite;
}

.list-formatted li:nth-child(1) { animation-delay: 0.4s; }
.list-formatted li:nth-child(2) { animation-delay: 0.6s; }
.list-formatted li:nth-child(3) { animation-delay: 0.8s; }

@keyframes listItemAppear {
  0%, 35% { opacity: 0; transform: translateX(-10px); }
  45%, 80% { opacity: 1; transform: translateX(0); }
  90%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
  .list-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .list-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ─── Model Tiers Visual ─── */
.model-tiers {
  margin-top: 4rem;
  width: 100%;
  max-width: 1000px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tier-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(30px);
}

.tier-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tier-card:nth-child(1).visible { transition-delay: 0s; }
.tier-card:nth-child(2).visible { transition-delay: 0.15s; }
.tier-card:nth-child(3).visible { transition-delay: 0.3s; }

.tier-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(201, 160, 160, 0.2);
}

.tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.tier-size {
  font-size: 0.875rem;
  color: var(--pencil);
  margin-bottom: 1.5rem;
}

.tier-uses {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.tier-uses li {
  font-size: 0.875rem;
  color: var(--ink);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tier-uses li:last-child {
  border-bottom: none;
}

.tier-latency {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.tier-strategy {
  font-size: 0.75rem;
  color: var(--pencil);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .tiers-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* ─── Chunk-and-Commit Timeline ─── */
.chunk-demo {
  margin-top: 4rem;
  width: 100%;
  max-width: 800px;
}

.chunk-timeline {
  position: relative;
  height: 120px;
}

.chunk-audio-bar {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.chunk-audio-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), rgba(201, 160, 160, 0.6));
  border-radius: 4px;
  animation: chunkFill 8s linear infinite;
}

@keyframes chunkFill {
  0% { width: 0; }
  100% { width: 100%; }
}

.chunk-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
}

.chunk-marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

.chunk-marker:nth-child(1) { left: 25%; animation: markerAppear 8s ease-out infinite; animation-delay: 2s; }
.chunk-marker:nth-child(2) { left: 55%; animation: markerAppear 8s ease-out infinite; animation-delay: 4.4s; }
.chunk-marker:nth-child(3) { left: 85%; animation: markerAppear 8s ease-out infinite; animation-delay: 6.8s; }

@keyframes markerAppear {
  0%, 5% { opacity: 0; }
  10%, 90% { opacity: 1; }
  95%, 100% { opacity: 0; }
}

.marker-line {
  width: 2px;
  height: 40px;
  background: var(--ink);
}

.marker-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: -5px;
}

.marker-label {
  font-size: 0.7rem;
  color: var(--pencil);
  margin-top: 0.5rem;
  white-space: nowrap;
}

.chunk-cards {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 1rem;
  justify-content: space-around;
  padding: 0 5%;
}

.chunk-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-10px);
}

.chunk-card:nth-child(1) { animation: chunkCardAppear 8s ease-out infinite; animation-delay: 2.2s; }
.chunk-card:nth-child(2) { animation: chunkCardAppear 8s ease-out infinite; animation-delay: 4.6s; }
.chunk-card:nth-child(3) { animation: chunkCardAppear 8s ease-out infinite; animation-delay: 7s; }

@keyframes chunkCardAppear {
  0%, 5% { opacity: 0; transform: translateY(-10px); }
  15%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; }
}

/* ─── Tech Grid Update for 4 cards ─── */
.tech-quartet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .tech-quartet {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }
}

@media (max-width: 600px) {
  .tech-quartet {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DOWNLOAD
   ═══════════════════════════════════════════════════════════════════════════ */

.download {
  background: var(--void);
  color: var(--paper);
  position: relative;
}

/* Clean transition from light to dark */
.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--paper), var(--void));
  pointer-events: none;
  z-index: 0;
}

.download-title {
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 1rem;
}

.download-tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
}

.download-button {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  padding: 1.125rem 2.25rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.download-button:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25);
}

.download-meta {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

.download-meta a {
  color: var(--accent);
  text-decoration: none;
}

.download-meta a:hover {
  text-decoration: underline;
}

.download-version {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--void);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .section {
    padding: 5rem 1.5rem;
  }
  
  .sticky-nav {
    padding: 0.75rem 1.5rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  
  .highlights-track {
    padding: 0 1.5rem;
  }
  
  .highlight-card {
    flex: 0 0 260px;
  }
  
  .comparison {
    flex-direction: column;
    align-items: center;
  }
  
  .comparison-card {
    width: 100%;
    max-width: 100%;
  }
  
  .typing-demo {
    padding: 1.5rem 2rem;
  }
  
  .typing-text {
    font-size: 0.9375rem;
  }
  
  .arch-flow {
    flex-direction: column;
  }
  
  .arch-arrow {
    transform: rotate(90deg);
  }
  
  .comparison-table {
    padding: 4rem 1rem;
  }
  
  .compare-grid {
    grid-template-columns: minmax(100px, 1fr) repeat(3, minmax(70px, 1fr));
    font-size: 0.75rem;
    max-width: 100%;
    overflow-x: auto;
  }
  
  .compare-header {
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .compare-row-label {
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .compare-cell {
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
  }
  
  /* Tech visualization cards - MUST stack on tablet/mobile */
  .tech-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .tech-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  .tech-stat {
    font-size: 1.25rem;
  }
  
  .tech-desc {
    font-size: 0.875rem;
  }
  
  /* Tech details container */
  .tech-details {
    max-width: 100%;
    overflow: hidden;
  }
  
  .passage-tech {
    padding: 3rem 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(6rem, 25vw, 10rem);
  }
  
  /* Feature stats - Apple accessibility: 40-44px */
  .feature-stat {
    font-size: 2.5rem !important;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 100%;
    padding: 0 1rem;
    line-height: 1.15;
  }
  
  .section-headline {
    font-size: 2.25rem !important;
    word-break: break-word;
  }
  
  /* FAQ section */
  .faq-question {
    padding-left: 1rem;
    padding-right: 2rem;
  }
  
  .faq-answer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Tech cards - Apple accessibility */
  .tech-card {
    padding: 1.5rem !important;
  }
  
  .tech-stat {
    font-size: 1.375rem;
  }
  
  .tech-desc {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Black hole section - remove white edges, reduce dead space */
  .passage-visual-section {
    margin: 0;
    padding: 0 0 1rem 0;
    min-height: auto;
  }
  
  .blackhole-image {
    width: 100vw;
    max-width: none;
  }
  
  .bench-grid {
    grid-template-columns: 1fr;
  }
  
  .engine-specs {
    gap: 2rem;
  }
  
  /* Global headline fixes for mobile */
  .feature-headline,
  .chapter-headline,
  .section-headline,
  .passage-headline,
  [class*="headline"] {
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  
  /* Reduce large headlines on small screens - Apple accessibility: 36-44px */
  .feature-headline {
    font-size: 2.25rem !important;
    padding: 0 1rem;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .chapter-headline {
    font-size: 2.5rem !important;
    padding: 0 1rem;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .section-headline {
    font-size: 2.25rem !important;
    padding: 0 1rem;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  /* Consistent padding on small screens */
  .section {
    padding: 4rem 1.25rem;
  }
  
  /* Ensure all content stays within viewport */
  .section > * {
    max-width: 100%;
  }
  
  /* Chapter titles - Apple accessibility: 40-44px */
  .chapter-title {
    font-size: 2.5rem !important;
    padding: 0 1rem;
  }
  
  .chapter-subtitle {
    font-size: 1.125rem !important;
    padding: 0 1rem;
  }
  
  .chapter-content {
    padding: 1.5rem;
    width: 100%;
  }
  
  .chapter-number {
    padding: 0 1rem;
  }
  
  .chapter-visual {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  /* Model tiers - stack on mobile */
  .model-tiers {
    gap: 1rem;
  }
  
  .model-tier-card {
    min-width: 100%;
  }
  
  /* Polish modes demo - fit width */
  .polish-modes-demo {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Passage section - Apple accessibility: 40px */
  .passage-headline {
    font-size: 2.5rem !important;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  
  .passage-eyebrow {
    padding: 0 1rem;
  }
  
  .passage-subhead {
    font-size: 1.1875rem !important;
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .passage-body {
    font-size: 1rem !important;
    padding: 0 1rem;
  }
  
  /* Feature descriptions - Apple accessibility: 18px min */
  .feature-desc {
    font-size: 1.125rem;
    padding: 0 1rem;
    max-width: 100%;
    line-height: 1.5;
  }
  
  /* Feature labels - Apple accessibility: 16px min */
  .feature-label {
    font-size: 1rem;
  }
  
  /* Download section - Apple accessibility */
  .download-title {
    font-size: 2.5rem !important;
  }
  
  .download-tagline {
    font-size: 1.125rem;
  }
  
  /* Comparison cards - prevent overflow */
  .comparison {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .compare-card {
    min-width: auto;
    width: 100%;
  }
  
  /* FAQ section - ensure text doesn't clip */
  .faq {
    padding: 6rem 1rem 4rem 1rem;
  }
  
  .faq::before {
    height: 40px;
  }
  
  .faq-title {
    padding-top: 1rem;
  }
  
  .faq-item {
    padding: 1rem 0;
  }
  
  /* FAQ - Apple accessibility: readable questions */
  .faq-question {
    font-size: 1.125rem;
    padding-right: 2rem;
    text-align: left;
  }
  
  .faq-answer {
    font-size: 1rem;
    padding-right: 1rem;
    line-height: 1.6;
  }
  
  /* Technical deep dive section - fix overflow */
  .passage-tech {
    padding: 3rem 1rem !important;
    overflow-x: hidden;
  }
  
  .tech-details {
    max-width: 100% !important;
    width: 100%;
    overflow-x: hidden;
  }
  
  .tech-summary {
    padding: 1rem 0.5rem;
    font-size: 1.125rem;
    min-height: 48px; /* Ensure tappable on mobile */
  }
  
  /* Black hole visual - full width */
  .passage-visual {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  
  .blackhole-image {
    width: 100%;
    max-width: 100vw;
    object-fit: cover;
  }
  
  /* All containers should respect viewport width */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
  
  .hero-letter,
  .tagline-line {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
