/* =============================================
   VOICE INPUT — Landing Page Styles
   MUI Light Theme (gray bg · blue primary · black text)
   ============================================= */

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

/* =============================================
   MUI LIGHT THEME DESIGN TOKENS
   Palette aligned with @mui/material default theme
   ============================================= */
:root {
  /* Backgrounds — dark blue-gray with white cards that clearly pop */
  --bg:            #1e2a3a;   /* deep navy-gray page background */
  --bg-alt:        #162030;   /* darker for alternating sections */
  --bg-card:       #ffffff;   /* paper — pure white */
  --bg-card-hover: #f5f8ff;   /* faint blue tint on hover */

  /* Borders */
  --border:        rgba(255,255,255,0.12); /* visible on dark bg */
  --border-hover:  rgba(255,255,255,0.22);
  --border-card:   rgba(0,0,0,0.10);       /* subtle on white cards */
  --border-card-hover: rgba(0,0,0,0.20);

  /* Typography — dark text on white cards, light on dark bg */
  --text:          #ffffff;   /* primary on dark bg */
  --text-muted:    #94a3b8;   /* secondary on dark bg */
  --text-dim:      #64748b;   /* tertiary on dark bg */

  /* Card-specific text (black on white) */
  --card-text:     #0d1117;
  --card-text-muted: #4b5563;
  --card-text-dim:   #9ca3af;

  /* Primary — MUI blue */
  --primary:       #1565c0;   /* primary.dark — better contrast on white */
  --primary-dark:  #0d47a1;   /* primary.900  */
  --primary-light: #42a5f5;   /* primary.light */

  /* Legacy accent aliases — mapped to primary for UI chrome */
  --purple:        #1976d2;   /* → primary (hotkey, labels, active states) */
  --indigo:        #1565c0;   /* → primary.dark */

  /* Semantic status colours (MUI design system) */
  --blue:          #1976d2;   /* info / primary */
  --cyan:          #0288d1;   /* info.main */
  --green:         #2e7d32;   /* success.main */
  --orange:        #ed6c02;   /* warning.main */
  --red:           #d32f2f;   /* error.main */
  --pink:          #c2185b;   /* pink[700] */
  --yellow:        #f9a825;   /* yellow[800] */

  /* Shape */
  --radius:        16px;
  --radius-sm:     10px;

  /* Elevation (MUI dp2/dp8 — prominent enough on blue-gray bg) */
  --shadow:        0 2px 4px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 4px 8px rgba(0,0,0,0.14), 0 12px 32px rgba(0,0,0,0.12);
  /* Default card resting elevation (dp1) */
  --shadow-card:   0 1px 3px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);

  /* Motion */
  --transition:    0.25s cubic-bezier(0.4,0,0.2,1);  /* MUI easing */

  /* Typography */
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   UTILS
   ============================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

kbd {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ffffff;
  box-shadow: 0 2px 0 #000;
  white-space: nowrap;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(30,42,58,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.nav-mic-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(25,118,210,0.35);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(25,118,210,0.30);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25,118,210,0.40);
}
.btn-ghost {
  background: rgba(0,0,0,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn-download {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1rem;
  border-radius: 14px;
  flex-direction: column;
  gap: 4px;
}
.btn-mac {
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  color: white;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-mac:hover {
  background: linear-gradient(135deg, #2c2c2e, #3c3c3e);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}
.btn-win {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  box-shadow: 0 4px 16px rgba(25,118,210,0.25);
}
.btn-win:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(25,118,210,0.40);
}
.btn-win-beta {
  background: #2a2a2a;
  border: 1px solid #444;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}
.btn-win-beta:hover {
  transform: none;
  box-shadow: none;
  background: #2a2a2a;
}
.dl-version {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.7;
}

/* =============================================
   SECTION BASE
   ============================================= */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(25,118,210,0.08);
  border: 1px solid rgba(25,118,210,0.20);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -200px; left: -200px;
  animation: float1 8s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  bottom: -150px; right: -100px;
  animation: float2 10s ease-in-out infinite;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--primary-light), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 12s ease-in-out infinite;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,-20px); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-45%,-55%); } }

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--green); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* DEMO WINDOW */
.hero-demo {
  margin: 0 auto 64px;
  max-width: 560px;
}
.demo-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
}
.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid var(--border);
}
.demo-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.demo-dot.red    { background: #ff5f56; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green  { background: #27c93f; }
.demo-title-bar {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: -50px;
}
.demo-body {
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* MIC ANIMATION */
.demo-mic-area {
  position: relative;
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mic-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0;
}
.ring-1 { width: 72px; height: 72px; }
.ring-2 { width: 86px; height: 86px; }
.ring-3 { width: 100px; height: 100px; }
.demo-mic-area.active .ring-1 { animation: ring-pulse 1.8s ease-out infinite 0.0s; }
.demo-mic-area.active .ring-2 { animation: ring-pulse 1.8s ease-out infinite 0.3s; }
.demo-mic-area.active .ring-3 { animation: ring-pulse 1.8s ease-out infinite 0.6s; }
@keyframes ring-pulse {
  0%   { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.1); }
}

.mic-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(25,118,210,0.35);
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 1;
}
.mic-circle.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 24px rgba(239,68,68,0.4);
}
.mic-circle.transcribing {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 4px 24px rgba(249,115,22,0.4);
}
.mic-circle.rephrasing {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 24px rgba(25,118,210,0.4);
}
.mic-circle.done {
  background: linear-gradient(135deg, #388e3c, #2e7d32);
  box-shadow: 0 4px 24px rgba(46,125,50,0.4);
}

.demo-status {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  min-height: 1.4em;
  transition: color var(--transition);
}
.demo-status.active { color: var(--text); }

/* PIPELINE STEPS */
.demo-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
.pipeline-step::after {
  content: attr(data-label);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color var(--transition);
}
.pipeline-step.active::after { color: var(--text-muted); }
.pipeline-step.done-step::after { color: var(--green); }
.ps-icon { font-size: 1.3rem; filter: grayscale(1) opacity(0.4); transition: filter var(--transition); }
.pipeline-step.active .ps-icon,
.pipeline-step.done-step .ps-icon { filter: none; }
.ps-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background var(--transition), box-shadow var(--transition);
}
.pipeline-step.active .ps-dot {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(25,118,210,0.5);
  animation: dot-blink 1s ease-in-out infinite;
}
.pipeline-step.done-step .ps-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(46,125,50,0.5);
}
@keyframes dot-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.pipeline-connector {
  width: 24px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin-bottom: 20px;
}

.demo-output {
  width: 100%;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 56px;
}
.demo-output-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.demo-output-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 1.4em;
}
.demo-output-text.active { color: var(--text); }
.typing-cursor::after {
  content: '|';
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--primary);
}
@keyframes blink-cursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* HERO STATS */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.82rem; color: var(--text-dim); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* =============================================
   HOW IT WORKS — STEP CARDS
   ============================================= */

/* Grid: 4 cards + 3 connectors = 7 columns */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: start;
}

/* Connector arrow between cards */
.step-connector-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 88px; /* vertically aligns with the icon circles */
}
.step-conn-chevron {
  color: var(--text-dim);
  animation: conn-nudge 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes conn-nudge {
  0%, 100% { transform: translateX(0);   opacity: 0.45; }
  50%       { transform: translateX(5px); opacity: 0.9;  }
}

/* Card */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 24px 20px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(25,118,210,0.04), transparent 65%);
  pointer-events: none;
}
.step-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25,118,210,0.35);
}

/* Step number badge */
.step-card-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.step-card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(25,118,210,0.08);
  border: 1px solid rgba(25,118,210,0.20);
  padding: 3px 10px;
  border-radius: 50px;
}

/* Visual / animation area */
.step-visual {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon circle (the colored round bg) */
.step-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.sic-red    { background: rgba(211,47,47,0.10);  color: var(--red);    border: 1.5px solid rgba(211,47,47,0.25); }
.sic-orange { background: rgba(237,108,2,0.10);  color: var(--orange); border: 1.5px solid rgba(237,108,2,0.25); }
.sic-blue   { background: rgba(25,118,210,0.10); color: var(--primary);border: 1.5px solid rgba(25,118,210,0.25); }
.sic-green  { background: rgba(46,125,50,0.10);  color: var(--green);  border: 1.5px solid rgba(46,125,50,0.25); }

.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--card-text); }
.step-card p  { font-size: 0.87rem; color: var(--card-text-muted); line-height: 1.65; }
.step-card kbd { font-size: 0.75em; }

/* ─── Step 1: Pulsing rings ─── */
.step-ring-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(211,47,47,0.45);
  animation: step-ring-expand 2.4s ease-out infinite;
}
.sr1 { width: 68px;  height: 68px;  animation-delay: 0s;    }
.sr2 { width: 84px;  height: 84px;  animation-delay: 0.65s; }
.sr3 { width: 100px; height: 100px; animation-delay: 1.3s;  }
@keyframes step-ring-expand {
  0%   { opacity: 0.75; transform: scale(0.82); }
  100% { opacity: 0;    transform: scale(1.12); }
}

/* ─── Step 2: Waveform bars ─── */
.wave-bars-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}
.wb {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--orange);
  animation: wave-bounce 1.1s ease-in-out infinite;
}
.wb:nth-child(1) { animation-delay: 0.00s; }
.wb:nth-child(2) { animation-delay: 0.12s; }
.wb:nth-child(3) { animation-delay: 0.24s; }
.wb:nth-child(4) { animation-delay: 0.08s; }
.wb:nth-child(5) { animation-delay: 0.20s; }
.wb:nth-child(6) { animation-delay: 0.04s; }
.wb:nth-child(7) { animation-delay: 0.16s; }
@keyframes wave-bounce {
  0%, 100% { height: 8px;  opacity: 0.45; }
  50%       { height: 32px; opacity: 1;    }
}

/* ─── Step 3: Orbiting dot ─── */
.step-visual-ai { overflow: visible; }
.ai-orbit-ring {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px dashed rgba(25,118,210,0.28);
  animation: orbit-spin 3.2s linear infinite;
}
.ai-orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
  top: -4.5px;
  left: calc(50% - 4.5px);
  box-shadow: 0 0 8px rgba(25,118,210,0.65);
}
@keyframes orbit-spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* ─── Step 4: Clipboard → checkmark flash ─── */
.paste-anim-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paste-clipboard-icon {
  position: absolute;
  animation: paste-board-fade 2.8s ease-in-out infinite;
}
.paste-check-icon {
  position: absolute;
  color: var(--green);
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: paste-check-draw 2.8s ease-in-out infinite;
}
@keyframes paste-board-fade {
  0%, 50%    { opacity: 1;   }
  68%, 88%   { opacity: 0.1; }
  100%       { opacity: 1;   }
}
@keyframes paste-check-draw {
  0%, 50%    { stroke-dashoffset: 30; opacity: 0;   }
  68%        { stroke-dashoffset: 0;  opacity: 1;   }
  88%        { stroke-dashoffset: 0;  opacity: 1;   }
  100%       { stroke-dashoffset: 30; opacity: 0;   }
}

/* =============================================
   FEATURES GRID
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card-large { grid-column: span 1; }

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(25,118,210,0.04), transparent 60%);
  pointer-events: none;
  transition: opacity var(--transition);
}
.feature-card:hover .feature-card-bg { opacity: 2; }

.feature-icon { margin-bottom: 16px; }
.icon-wrapper {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-purple { background: rgba(25,118,210,0.10);  color: var(--primary); border: 1px solid rgba(25,118,210,0.20); }
.icon-green  { background: rgba(46,125,50,0.10);   color: var(--green);   border: 1px solid rgba(46,125,50,0.20); }
.icon-blue   { background: rgba(25,118,210,0.10);  color: var(--primary); border: 1px solid rgba(25,118,210,0.20); }
.icon-orange { background: rgba(237,108,2,0.10);   color: var(--orange);  border: 1px solid rgba(237,108,2,0.20); }
.icon-pink   { background: rgba(194,24,91,0.10);   color: var(--pink);    border: 1px solid rgba(194,24,91,0.20); }
.icon-cyan   { background: rgba(2,136,209,0.10);   color: var(--cyan);    border: 1px solid rgba(2,136,209,0.20); }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--card-text); }
.feature-card p  { font-size: 0.88rem; color: var(--card-text-muted); line-height: 1.65; }

.feature-keys { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.key-combo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.key-combo span { color: var(--text-dim); font-size: 0.75rem; margin-left: 4px; }

/* =============================================
   MODES
   ============================================= */
.modes-interactive {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.modes-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
}
.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  color: var(--card-text-muted);
  font-family: var(--font);
  text-align: left;
}
.mode-tab:hover { background: rgba(0,0,0,0.04); color: var(--card-text); }
.mode-tab.active {
  border-bottom-color: var(--primary);
  color: var(--card-text);
  background: rgba(25,118,210,0.06);
}
.mode-tab-icon { font-size: 1.4rem; flex-shrink: 0; }
.mode-tab-name { font-weight: 600; font-size: 0.95rem; }
.mode-tab-desc { font-size: 0.78rem; color: var(--card-text-dim); margin-top: 1px; }

.mode-panel { display: none; padding: 32px; }
.mode-panel.active { display: block; }

.mode-example {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}
.mode-example-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--card-text-dim);
  margin-bottom: 10px;
}
.label-dot { width: 6px; height: 6px; border-radius: 50%; }
.label-dot-red   { background: var(--red); }
.label-dot-green { background: var(--green); }

.mode-example-bubble {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.mode-example-bubble.voice {
  background: rgba(211,47,47,0.06);
  border: 1px solid rgba(211,47,47,0.15);
  color: var(--card-text-muted);
  font-style: italic;
}
.mode-example-bubble.output {
  background: rgba(46,125,50,0.06);
  border: 1px solid rgba(46,125,50,0.15);
  color: var(--card-text);
}
.mode-example-bubble.output code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.mode-arrow-col { display: flex; align-items: center; justify-content: center; padding-top: 30px; }
.mode-transform-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mode-description {
  font-size: 0.9rem;
  color: var(--card-text-muted);
  padding: 16px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  line-height: 1.6;
}
.mode-description strong { color: var(--card-text); }

/* =============================================
   STATUS INDICATORS
   ============================================= */
.indicators-demo {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.indicator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  min-width: 100px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: default;
}
.indicator-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.indicator-orb {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-idle         { background: rgba(0,0,0,0.06);          color: #9e9e9e;       border: 1.5px solid rgba(0,0,0,0.15); }
.orb-recording    { background: rgba(211,47,47,0.10);      color: var(--red);    border: 1.5px solid rgba(211,47,47,0.25); animation: orb-pulse-red 1.5s ease-in-out infinite; }
.orb-transcribing { background: rgba(237,108,2,0.10);      color: var(--orange); border: 1.5px solid rgba(237,108,2,0.25); animation: orb-pulse-orange 1.5s ease-in-out infinite; }
.orb-rephrasing   { background: rgba(25,118,210,0.10);     color: var(--primary);border: 1.5px solid rgba(25,118,210,0.25); animation: orb-spin 1.2s linear infinite; }
.orb-done         { background: rgba(46,125,50,0.10);      color: var(--green);  border: 1.5px solid rgba(46,125,50,0.25); }
.orb-error        { background: rgba(211,47,47,0.06);      color: var(--red);    border: 1.5px solid rgba(211,47,47,0.20); }

@keyframes orb-pulse-red {
  0%,100% { box-shadow: 0 0 0 0 rgba(211,47,47,0); }
  50%      { box-shadow: 0 0 0 8px rgba(211,47,47,0.12); }
}
@keyframes orb-pulse-orange {
  0%,100% { box-shadow: 0 0 0 0 rgba(237,108,2,0); }
  50%      { box-shadow: 0 0 0 8px rgba(237,108,2,0.12); }
}
@keyframes orb-spin {
  from { box-shadow: 0 0 0 0 rgba(25,118,210,0); border-top-color: var(--primary); }
  to   { box-shadow: 0 0 12px 0 rgba(25,118,210,0.25); }
}
.indicator-label { font-size: 0.82rem; font-weight: 600; color: var(--card-text); }
.indicator-desc  { font-size: 0.72rem; color: var(--card-text-muted); text-align: center; }

.indicator-flow { }
.flow-bar {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
}
.flow-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  padding: 0 8px;
  white-space: nowrap;
}

/* =============================================
   DOWNLOAD
   ============================================= */
.download-section {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.download-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.download-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.10;
}
.orb-dl-1 { width: 500px; height: 500px; background: var(--primary);       top: -200px; left: -100px; }
.orb-dl-2 { width: 400px; height: 400px; background: var(--primary-light); bottom: -150px; right: -100px; }

.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 32px;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.download-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.download-platform-icon { color: var(--text-muted); }
.download-platform-name { font-size: 1.5rem; font-weight: 800; color: var(--card-text); }
.download-platform-req  { font-size: 0.82rem; color: var(--card-text-muted); }
.download-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dl-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.coming-soon-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 50px;
}

.download-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 10px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-large { grid-column: span 2; }
  /* Step cards: collapse to 2×2, hide connectors */
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .step-connector-wrap { display: none; }
  .mode-example { grid-template-columns: 1fr; }
  .mode-arrow-col { display: none; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: rgba(30,42,58,0.97);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding: 20px 24px 28px;
    gap: 16px;
    z-index: 99;
    backdrop-filter: blur(20px);
  }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .stat { padding: 0 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .download-cards { grid-template-columns: 1fr; }
  .modes-tabs { flex-direction: column; }
  .mode-tab { border-bottom: none; border-right: 2px solid transparent; }
  .mode-tab.active { border-right-color: var(--primary); border-bottom: none; }
  /* Step cards: single column */
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .indicators-demo { gap: 12px; }
  .indicator-card { min-width: 80px; padding: 14px 10px; }
  .flow-segment { font-size: 0.68rem; padding: 0 6px; }
  .section { padding: 72px 0; }
}
