/* ========================================
   Zenith — Marketing Website Styles
   ======================================== */

/* --- Tokens --- */
:root {
  --bg: #1A1816;
  --surface: #22201D;
  --surface-hover: #2D2A26;
  --border: #3D3630;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-primary: #E8E2DA;
  --text-secondary: #A69985;
  --text-muted: #73676D;
  --accent: #C8A064;
  --accent-hover: #D4AE74;
  --success: #7EC896;
  --error: #D4756A;
  --info: #6BA3BE;
  --purple: #9B7DB8;
  --deep-teal: #2E4A4D;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* --- Light Mode Overrides --- */
[data-mode="light"] {
  --bg: #F5F2EE;
  --surface: #EBE7E1;
  --surface-hover: #E0DBD4;
  --border: #D0C8BE;
  --border-subtle: rgba(0, 0, 0, 0.07);
  --text-primary: #2A2420;
  --text-secondary: #6B5D50;
  --text-muted: #8A7E74;
  --accent: #8A6820;
  --accent-hover: #9A7830;
  --success: #2E7A48;
  --error: #B84A3E;
  --info: #3A7A94;
  --purple: #6A4A8E;
  --deep-teal: #1A3538;
}

[data-mode="light"] .glass {
  background: rgba(245, 242, 238, 0.85);
}

[data-mode="light"] .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(138, 104, 32, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 60%, rgba(26, 53, 56, 0.04) 0%, transparent 60%);
}

[data-mode="light"] .hero-cta {
  color: #FFFAF3;
}

[data-mode="light"] .hero-cta:hover {
  box-shadow: 0 8px 32px rgba(138, 104, 32, 0.2);
}

[data-mode="light"] .feature-card:hover {
  border-color: rgba(138, 104, 32, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-mode="light"] .feature-icon {
  background: rgba(138, 104, 32, 0.08);
}

[data-mode="light"] .viz-card:hover {
  box-shadow: 0 8px 32px rgba(138, 104, 32, 0.08);
}

/* Viz previews follow theme */
[data-mode="light"] .viz-preview {
  background: #E8E3DB;
}

[data-mode="light"] .privacy-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(138, 104, 32, 0.06) 30%, rgba(138, 104, 32, 0.06) 70%, var(--bg) 100%);
}

/* App window — light mode */
[data-mode="light"] .app-window {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

[data-mode="light"] .app-chrome {
  background: rgba(235, 231, 225, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-mode="light"] .app-chrome-title {
  color: var(--text-secondary);
}

/* Viz area follows theme */
[data-mode="light"] .app-viz-area {
  background: #E8E3DB;
}

[data-mode="light"] .app-status-bar {
  background: rgba(235, 231, 225, 0.7);
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-mode="light"] .transcript-entry.visible {
  border-left-color: var(--accent);
}

[data-mode="light"] .transcript-text .cursor {
  background: var(--accent);
}

[data-mode="light"] .nav-icon .planet {
  background: radial-gradient(circle at 35% 35%, var(--accent), #6B5020);
}

/* --- Metal Mode (Dark) --- */
[data-metal="true"] {
  --bg: #0A0A0C;
  --surface: #141416;
  --surface-hover: #1E1E22;
  --border: #2A2A30;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --text-primary: #E0DDE6;
  --text-secondary: #8A8896;
  --text-muted: #5A586A;
  --accent: #C0392B;
  --accent-hover: #D44637;
  --success: #7EC896;
  --error: #D4756A;
  --info: #6BA3BE;
  --purple: #9B7DB8;
  --deep-teal: #1A2A3D;
}

/* --- Metal Mode (Light) --- */
[data-metal="true"][data-mode="light"] {
  --bg: #F0EDEA;
  --surface: #E5E2DE;
  --surface-hover: #DAD7D2;
  --border: #C8C4BE;
  --border-subtle: rgba(0, 0, 0, 0.07);
  --text-primary: #1C1A20;
  --text-secondary: #4A4450;
  --text-muted: #7A7480;
  --accent: #8C2318;
  --accent-hover: #A22D20;
  --success: #2E7A48;
  --error: #B84A3E;
  --info: #3A7A94;
  --purple: #6A4A8E;
  --deep-teal: #1A2A3D;
}

/* Metal glass nav — cold blue tint */
[data-metal="true"] .glass {
  background: rgba(10, 10, 14, 0.85);
  border-bottom-color: rgba(192, 57, 43, 0.1);
}

[data-metal="true"][data-mode="light"] .glass {
  background: rgba(240, 237, 234, 0.88);
  border-bottom-color: rgba(140, 35, 24, 0.1);
}

/* Metal hero bg — cold gradients */
[data-metal="true"] .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(192, 57, 43, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 60%, rgba(26, 42, 61, 0.08) 0%, transparent 60%);
}

[data-metal="true"][data-mode="light"] .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(140, 35, 24, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 60%, rgba(26, 42, 61, 0.04) 0%, transparent 60%);
}

/* Metal CTA button */
[data-metal="true"] .hero-cta {
  color: #F0EDEA;
}

[data-metal="true"] .hero-cta:hover {
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.3);
}

[data-metal="true"][data-mode="light"] .hero-cta {
  color: #FFF5F3;
}

[data-metal="true"][data-mode="light"] .hero-cta:hover {
  box-shadow: 0 8px 32px rgba(140, 35, 24, 0.2);
}

/* Metal feature cards — sharper, red accent */
[data-metal="true"] .feature-card {
  border-radius: var(--radius-sm);
}

[data-metal="true"] .feature-card:hover {
  border-color: rgba(192, 57, 43, 0.25);
  box-shadow: 0 4px 24px rgba(192, 57, 43, 0.08), 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-metal="true"][data-mode="light"] .feature-card:hover {
  border-color: rgba(140, 35, 24, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

[data-metal="true"] .feature-icon {
  background: rgba(192, 57, 43, 0.1);
}

[data-metal="true"][data-mode="light"] .feature-icon {
  background: rgba(140, 35, 24, 0.08);
}

/* Metal viz cards */
[data-metal="true"] .viz-card:hover {
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.1);
}

[data-metal="true"] .viz-preview {
  background: #08080A;
}

[data-metal="true"][data-mode="light"] .viz-preview {
  background: #DDD9D4;
}

/* Metal privacy section */
[data-metal="true"] .privacy-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(192, 57, 43, 0.06) 30%, rgba(192, 57, 43, 0.06) 70%, var(--bg) 100%);
}

[data-metal="true"][data-mode="light"] .privacy-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(140, 35, 24, 0.05) 30%, rgba(140, 35, 24, 0.05) 70%, var(--bg) 100%);
}

/* Metal app window chrome */
[data-metal="true"] .app-window {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(192, 57, 43, 0.08);
}

[data-metal="true"] .app-chrome {
  background: rgba(14, 14, 18, 0.95);
  border-bottom-color: rgba(192, 57, 43, 0.06);
}

[data-metal="true"] .app-viz-area {
  background: #08080A;
}

[data-metal="true"][data-mode="light"] .app-window {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(140, 35, 24, 0.08);
}

[data-metal="true"][data-mode="light"] .app-chrome {
  background: rgba(229, 226, 222, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-metal="true"][data-mode="light"] .app-viz-area {
  background: #DDD9D4;
}

[data-metal="true"] .app-status-bar {
  background: rgba(14, 14, 18, 0.7);
  border-top-color: rgba(192, 57, 43, 0.06);
}

[data-metal="true"][data-mode="light"] .app-status-bar {
  background: rgba(229, 226, 222, 0.7);
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Metal nav icon (skull SVG) */
.nav-skull-icon {
  width: 34px;
  height: 38px;
  transition: opacity 0.3s ease;
  color: var(--accent);
}

.nav-skull-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

[data-metal="true"] .nav-icon .planet {
  background: radial-gradient(circle at 35% 35%, var(--accent), #6B1A12);
}

[data-metal="true"][data-mode="light"] .nav-icon .planet {
  background: radial-gradient(circle at 35% 35%, var(--accent), #5A1810);
}

/* Metal wordmark font — stays Playfair but shifts tone */
[data-metal="true"] .nav-wordmark {
  letter-spacing: 0.04em;
}

/* Metal mode — strip page to hero + footer only */
[data-metal="true"] .features,
[data-metal="true"] .visualizers,
[data-metal="true"] .privacy-section,
[data-metal="true"] .download {
  display: none !important;
}

/* Metal mode demo stage — fullbleed skull, no app window */
[data-metal="true"] .demo-app {
  display: none !important;
}

[data-metal="true"] .demo-saturn {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

[data-metal="true"] #saturn-canvas {
  width: 100%;
  height: 100%;
}

[data-metal="true"] .demo-stage {
  pointer-events: auto;
}

/* Metal hero — more breathing room since it's the whole page */
[data-metal="true"] .hero {
  min-height: 100vh;
  padding-bottom: 120px;
}

[data-metal="true"] .demo-stage {
  width: 520px;
  height: 480px;
}

/* Smooth transitions when toggling metal mode */
[data-metal="true"] .hero-title,
[data-metal="true"] .hero-tagline,
[data-metal="true"] .feature-card,
[data-metal="true"] .viz-card,
[data-metal="true"] .privacy-section,
[data-metal="true"] .nav,
[data-metal="true"] .footer {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* --- Metal Toggle Button --- */
.metal-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
  padding: 0;
  position: relative;
}

.metal-toggle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  opacity: 0.4;
  transition: border-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  animation: ring-breathe 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ring-breathe {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.5; }
}

.metal-toggle-skull {
  width: 38px;
  height: 44px;
  display: block;
  pointer-events: none;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
  position: relative;
  z-index: 1;
}

.metal-toggle:hover .metal-toggle-ring {
  opacity: 0.65;
  border-color: var(--text-secondary);
}

.metal-toggle:hover .metal-toggle-skull {
  transform: scale(1.08);
  color: var(--text-secondary);
}

.metal-toggle:active .metal-toggle-skull {
  transform: scale(0.95);
}

/* Ripple on click */
.metal-toggle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.metal-toggle:active::after {
  opacity: 0.4;
  transform: scale(1.3);
  transition: none;
}

/* Metal toggle active state — red glow */
[data-metal="true"] .metal-toggle-skull {
  color: #C0392B;
  filter: drop-shadow(0 0 6px rgba(192, 57, 43, 0.5));
}

[data-metal="true"] .metal-toggle-ring {
  border-color: #C0392B;
  opacity: 0.6;
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.25), inset 0 0 8px rgba(192, 57, 43, 0.1);
}

[data-metal="true"] .metal-toggle:hover .metal-toggle-skull {
  color: #D44637;
  filter: drop-shadow(0 0 10px rgba(212, 70, 55, 0.6));
}

[data-metal="true"] .metal-toggle:hover .metal-toggle-ring {
  border-color: #D44637;
  opacity: 0.8;
  box-shadow: 0 0 18px rgba(192, 57, 43, 0.35), inset 0 0 12px rgba(192, 57, 43, 0.15);
}

[data-metal="true"][data-mode="light"] .metal-toggle-skull {
  color: #8C2318;
  filter: drop-shadow(0 0 6px rgba(140, 35, 24, 0.4));
}

[data-metal="true"][data-mode="light"] .metal-toggle-ring {
  border-color: #8C2318;
  opacity: 0.6;
  box-shadow: 0 0 12px rgba(140, 35, 24, 0.2), inset 0 0 8px rgba(140, 35, 24, 0.08);
}

[data-metal="true"][data-mode="light"] .metal-toggle:hover .metal-toggle-skull {
  color: #A22D20;
  filter: drop-shadow(0 0 10px rgba(162, 45, 32, 0.5));
}

[data-metal="true"][data-mode="light"] .metal-toggle:hover .metal-toggle-ring {
  border-color: #A22D20;
  opacity: 0.8;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Utilities --- */
.glass {
  background: rgba(26, 24, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-align: center;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 28px;
  height: 28px;
  position: relative;
}

.nav-icon .planet {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 35%, var(--accent), #856B4E);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-icon .ring {
  width: 28px;
  height: 10px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(65deg);
  opacity: 0.7;
}

.nav-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
}

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

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

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

/* --- Theme Toggle --- */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.theme-btn:hover {
  color: var(--text-secondary);
}

.theme-btn.active {
  background: var(--border-subtle);
  color: var(--accent);
}

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

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(200, 160, 100, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 60%, rgba(46, 74, 77, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--accent);
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter 0.8s var(--ease-out) 0.1s forwards;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter 0.8s var(--ease-out) 0.3s forwards;
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Demo Stage --- */
.demo-stage {
  margin-top: 48px;
  position: relative;
  width: 460px;
  height: 420px;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter 0.8s var(--ease-out) 0.5s forwards;
}

.demo-saturn,
.demo-app {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  will-change: opacity, transform;
}

/* Phase-based visibility */
.demo-stage[data-phase="saturn"] .demo-saturn,
.demo-stage[data-phase="morph-out"] .demo-saturn {
  opacity: 1;
  transform: scale(1);
}

.demo-stage[data-phase="saturn"] .demo-app {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.demo-stage[data-phase="morph-in"] .demo-saturn,
.demo-stage[data-phase="morph-out"] .demo-saturn {
  transition-duration: 1.2s;
}

.demo-stage[data-phase="morph-in"] .demo-saturn {
  opacity: 0;
  transform: scale(0.7);
}

.demo-stage[data-phase="morph-in"] .demo-app,
.demo-stage[data-phase="app-active"] .demo-app {
  opacity: 1;
  transform: scale(1);
}

.demo-stage[data-phase="app-active"] .demo-saturn {
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

.demo-stage[data-phase="morph-out"] .demo-app {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

#saturn-canvas {
  width: 300px;
  height: 300px;
  display: block;
}

/* --- App Window --- */
.app-window {
  width: 460px;
  height: 100%;
  background: var(--surface);
  border-radius: 12px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Chrome bar */
.app-chrome {
  height: 36px;
  flex-shrink: 0;
  background: rgba(30, 28, 25, 0.95);
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tl-close { background: #ED6A5E; }
.tl-minimize { background: #F5BF4F; }
.tl-maximize { background: #62C554; }

.app-chrome-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Viz area — fills available space, shrinks when transcript is visible */
.app-viz-area {
  flex: 1;
  min-height: 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: flex 0.5s var(--ease-out);
}

#demo-viz-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.recording-indicator {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.app-window.recording .recording-indicator {
  opacity: 1;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--error);
  animation: rec-pulse 1.5s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(212, 117, 106, 0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 8px rgba(212, 117, 106, 0.8); }
}

.rec-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--error);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Transcript area — collapsed by default, expands on result */
.app-transcript-area {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}

.app-transcript-area.open {
  max-height: 60px;
  padding: 8px 12px;
}

.transcript-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.3s ease;
}

.transcript-entry.visible {
  opacity: 1;
  transform: translateY(0);
  border-left-color: var(--accent);
}

.transcript-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
  min-width: 42px;
}

.transcript-text {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.45;
  min-height: 16px;
}

.transcript-text .cursor {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.8s step-end infinite;
}

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

/* Status bar */
.app-status-bar {
  height: 24px;
  flex-shrink: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(30, 28, 25, 0.6);
}

.app-status-bar span {
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 14px 32px;
  background: var(--accent);
  color: #1A1816;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter 0.8s var(--ease-out) 0.7s forwards;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 8px 32px rgba(200, 160, 100, 0.25);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
}

/* --- Features --- */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 160, 100, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(200, 160, 100, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Visualizers --- */
.visualizers {
  padding: 100px 0;
}

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

.viz-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  cursor: default;
}

.viz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(200, 160, 100, 0.1);
}

.viz-preview {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.viz-label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* --- Viz Canvas --- */
.viz-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Privacy Section --- */
.privacy-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(200, 160, 100, 0.08) 30%, rgba(200, 160, 100, 0.08) 70%, var(--bg) 100%);
}

.privacy-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.privacy-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  color: var(--accent);
}

.privacy-icon svg {
  width: 100%;
  height: 100%;
}

.privacy-content h2 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  line-height: 1.3;
}

.privacy-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Download CTA --- */
.download {
  padding: 100px 0 80px;
  text-align: center;
}

.download .hero-cta {
  opacity: 1;
  transform: none;
  animation: none;
  font-size: 16px;
  padding: 16px 40px;
}

.download-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.download-instructions {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.download-github {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.download-github:hover {
  color: var(--text-secondary);
  border-bottom-color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.footer-right svg {
  width: 16px;
  height: 16px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .viz-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .demo-stage {
    width: 380px;
    height: 380px;
  }

  .app-window {
    width: 380px;
  }

  #saturn-canvas {
    width: 240px;
    height: 240px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .viz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-content h2 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 34px;
  }

  .demo-stage {
    width: 320px;
    height: 340px;
  }

  .app-window {
    width: 320px;
  }

  #saturn-canvas {
    width: 200px;
    height: 200px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .viz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }
}
