/* ── CaptionFit landing page styles ───────────────────────────────────────── */
:root {
  --bg: #07070d;
  --bg-grad-1: #0b0b18;
  --bg-grad-2: #07070d;
  --surface: #10101c;
  --surface-2: #15162a;
  --surface-3: #1c1e36;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text: #ecedf6;
  --text-2: #b8b9cc;
  --muted: #6e7088;
  --muted-2: #4b4d63;
  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --indigo-3: #4f46e5;
  --indigo-soft: rgba(99,102,241,0.12);
  --indigo-glow: rgba(99,102,241,0.45);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --shadow-lg:
    0 30px 80px -30px rgba(99,102,241,0.45),
    0 12px 40px -10px rgba(0,0,0,0.6);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --container: 1240px;
  --font-sans: "Geist","Inter",system-ui,-apple-system,sans-serif;
  --font-mono: "Geist Mono","JetBrains Mono",ui-monospace,monospace;
  --font-serif: "Instrument Serif","Times New Roman",serif;
}

*,*::before,*::after { box-sizing: border-box; }
html,body { padding:0; margin:0; }
html { background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -200px, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(129,140,248,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
  min-height: 100vh;
  font-feature-settings: "ss01","ss02","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 120px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--indigo-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--indigo-soft);
  border: 1px solid rgba(99,102,241,0.2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--indigo-2); box-shadow: 0 0 12px var(--indigo-glow);
}

h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(48px,7vw,92px); font-weight: 600; letter-spacing: -0.04em; }
h2 { font-size: clamp(36px,4.4vw,60px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px,2vw,28px); letter-spacing: -0.02em; }
p { margin: 0; color: var(--text-2); line-height: 1.55; }

.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,10,18,0.55);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* logo */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px;
  background: url("/favicon.svg") center/contain no-repeat;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1;
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--indigo-2), var(--indigo-3));
  color: white;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 10px 24px -8px var(--indigo-glow);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 16px 30px -8px var(--indigo-glow);
}
.btn-ghost { color: var(--text-2); padding: 10px 14px; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-outline {
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* hero */
.hero { padding: 80px 0 0; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { margin-bottom: 28px; }
.hero-sub { font-size: 19px; color: var(--text-2); max-width: 520px; line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.hero-meta-item .check { color: var(--green); display: inline-flex; }

/* hero waveform card */
.wave-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 200px at 50% -50%, rgba(129,140,248,0.18), transparent 60%),
    linear-gradient(180deg, #0d0d1a, #08080f);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.wave-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.wave-head-left { display: flex; align-items: center; gap: 10px; }
.wave-head-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(99,102,241,0.12); color: var(--indigo-2);
  border: 1px solid rgba(99,102,241,0.24);
}
.wave-head-pill .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-2);
  box-shadow: 0 0 8px var(--indigo-2);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(0.85); }
}
.wave-shell {
  position: relative; height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.2));
  border: 1px solid var(--border);
  overflow: visible;
  padding: 16px;
}
.wave-bars {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  height: 100px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1px;
}
.wave-bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.18));
  border-radius: 999px;
  transition: background 0.15s ease;
}
.wave-bar.passed {
  background: linear-gradient(180deg, var(--indigo-2), var(--indigo-3));
  box-shadow: 0 0 8px rgba(129,140,248,0.5);
}
.wave-bar.active {
  background: linear-gradient(180deg, #fff, var(--indigo-2));
  box-shadow: 0 0 14px rgba(255,255,255,0.6);
}
.wave-playhead {
  position: absolute; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, transparent, white 20%, white 80%, transparent);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}
.wave-playhead::after {
  content: ""; position: absolute; top: -4px; left: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: white; box-shadow: 0 0 12px rgba(255,255,255,0.8);
}
.wave-ruler {
  position: absolute; left: 16px; right: 16px; top: 16px;
  height: 14px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}
.wave-tick { position: relative; }
.wave-tick::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 1px; height: 6px; background: var(--border-strong);
}
.chip {
  position: absolute;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,240,255,0.92));
  color: #1a1a2e;
  font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.6) inset;
  white-space: nowrap;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  pointer-events: none;
  transition: transform 350ms cubic-bezier(.2,.9,.2,1.2), background 250ms, color 250ms, opacity 250ms;
}
.chip.snapped {
  background: linear-gradient(180deg, var(--indigo-2), var(--indigo));
  color: white;
  box-shadow: 0 8px 24px -6px var(--indigo-glow), 0 0 0 1px rgba(255,255,255,0.15) inset;
}
.chip-time {
  font-family: var(--font-mono); font-size: 10px;
  margin-right: 6px; opacity: 0.55;
}
.chip-tail {
  position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
}
.wave-strip {
  margin-top: 16px; padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; min-height: 48px;
}
.wave-strip-time { font-family: var(--font-mono); font-size: 11px; color: var(--indigo-2); letter-spacing: 0.05em; }
.wave-strip-text { color: var(--text); font-weight: 500; }
.wave-strip-text.empty { color: var(--muted-2); font-weight: 400; font-style: italic; }
.wave-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}

/* sections */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; font-size: 18px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--indigo-2); margin-bottom: 12px; display: block;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 15px; }

/* illos */
.illo {
  height: 180px; border-radius: var(--radius);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  position: relative; overflow: hidden; padding: 16px;
}

/* file rows */
.file-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  margin-bottom: 14px; font-size: 13px;
}
.file-row-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-row-name { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row-size { font-family: var(--font-mono); color: var(--muted); font-size: 11px; }
.file-row-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(99,102,241,0.15); color: var(--indigo-2);
  display: grid; place-items: center; flex-shrink: 0;
}

/* SRT block */
.srt-preview {
  background: #04040a; border-radius: var(--radius);
  padding: 16px 18px; font-family: var(--font-mono);
  font-size: 12px; line-height: 1.7; border: 1px solid var(--border); height: 100%;
}
.srt-preview .seg { display: flex; gap: 12px; padding: 4px 0; border-radius: 6px; }
.srt-preview .seg .idx { color: var(--muted); width: 20px; text-align: right; flex-shrink: 0; }
.srt-preview .seg .body { flex: 1; min-width: 0; }
.srt-preview .seg .ts { color: var(--indigo-2); font-size: 11px; }
.srt-preview .seg .text { color: var(--text); display: block; margin-top: 2px; }
.srt-preview .seg.highlight { background: rgba(99,102,241,0.1); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border-radius: var(--radius-lg);
  padding: 28px; position: relative; overflow: hidden;
  min-height: 320px; display: flex; flex-direction: column;
}
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 15px; }
.feature-art { margin-top: auto; padding-top: 24px; }

/* speed gauge */
.gauge { display: flex; flex-direction: column; gap: 10px; justify-content: center; height: 100%; }
.gauge-row { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; }
.gauge-name { width: 90px; color: var(--text-2); }
.gauge-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.05); overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--indigo-3), var(--indigo-2)); }
.gauge-fill.muted { background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.18)); }
.gauge-time { width: 56px; text-align: right; color: var(--text); }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: var(--font-mono); font-size: 11px; height: 100%; }
.compare-col { display: flex; flex-direction: column; gap: 6px; }
.compare-label { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-row { padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,0.03); }
.compare-row.bad { color: var(--red); border-left: 2px solid var(--red); }
.compare-row.good { color: var(--green); border-left: 2px solid var(--green); }

/* kbd */
.kbd {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong);
  color: var(--text-2);
}

/* demo card */
.demo-card {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.3));
  padding: 16px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.demo-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 300px at 50% 0%, rgba(99,102,241,0.16), transparent 70%);
  pointer-events: none;
}
.demo-toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 12px; }
.demo-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.demo-body { display: grid; grid-template-columns: 280px 1fr; gap: 16px; position: relative; }
@media (max-width: 900px) { .demo-body { grid-template-columns: 1fr; } }
.demo-side {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.demo-side h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.demo-side-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--text-2);
}
.demo-side-row.active { background: var(--indigo-soft); color: var(--text); border: 1px solid rgba(99,102,241,0.2); }
.demo-side-row .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.demo-side-row.active .meta { color: var(--indigo-2); }
.demo-main {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.demo-main-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.demo-main-title { font-size: 15px; font-weight: 500; }
.demo-main-actions { display: flex; gap: 8px; }
.demo-cap-row {
  display: grid; grid-template-columns: 90px 1fr auto;
  align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.demo-cap-row:hover { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.2); }
.demo-cap-time { font-family: var(--font-mono); font-size: 11px; color: var(--indigo-2); letter-spacing: 0.04em; }
.demo-cap-text { font-size: 14px; color: var(--text); }
.demo-cap-conf { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* player + editor */
.pe-card {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.3));
  padding: 20px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.pe-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 300px at 50% 0%, rgba(99,102,241,0.14), transparent 70%);
  pointer-events: none;
}
.pe-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; position: relative; }
@media (max-width: 900px) { .pe-grid { grid-template-columns: 1fr; } }
.pe-player { display: flex; flex-direction: column; gap: 14px; }
.pe-screen {
  position: relative; aspect-ratio: 16/9;
  border-radius: 14px;
  background: linear-gradient(180deg, #0a0a14, #050509);
  border: 1px solid var(--border-strong); overflow: hidden;
}
.pe-screen-art { position: absolute; inset: 0; }
.pe-screen-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 30% 30%, rgba(129,140,248,0.35), transparent 60%),
    radial-gradient(50% 70% at 75% 65%, rgba(168,85,247,0.28), transparent 60%),
    linear-gradient(180deg, #1a1b2e 0%, #0a0a14 100%);
}
.pe-screen-silhouette {
  position: absolute; left: 50%; top: 35%;
  width: 38%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 20%, #0a0a14 0%, #0a0a14 28%, transparent 60%);
  filter: blur(8px);
}
.pe-screen-noise {
  position: absolute; inset: 0; opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.7'/></svg>");
}
.pe-burnin {
  position: absolute; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55); color: white;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  padding: 8px 14px; border-radius: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  white-space: nowrap;
  animation: pe-fade-in 0.3s ease;
  font-family: var(--font-sans);
}
@keyframes pe-fade-in {
  from { opacity:0; transform:translateX(-50%) translateY(4px); }
  to   { opacity:1; transform:translateX(-50%) translateY(0); }
}
.pe-aspect-pill {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2); background: rgba(0,0,0,0.55);
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border);
}
.pe-controls {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: rgba(0,0,0,0.35);
  border: 1px solid var(--border); border-radius: 12px;
}
.pe-ctrl {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; color: var(--text-2); transition: background 0.15s, color 0.15s;
}
.pe-ctrl:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.pe-ctrl-primary { background: var(--indigo-soft); color: var(--indigo-2); }
.pe-ctrl-primary:hover { background: rgba(99,102,241,0.2); }
.pe-timeline { flex: 1; }
.pe-timeline-track {
  position: relative; height: 6px;
  background: rgba(255,255,255,0.08); border-radius: 3px;
}
.pe-timeline-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--indigo-3), var(--indigo-2)); border-radius: 3px;
}
.pe-timeline-marker {
  position: absolute; top: -3px; width: 2px; height: 12px;
  background: rgba(255,255,255,0.35); border-radius: 1px; transform: translateX(-50%);
}
.pe-timeline-head {
  position: absolute; top: 50%;
  width: 12px; height: 12px; background: white; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.3), 0 0 12px rgba(255,255,255,0.4);
}
.pe-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.pe-render-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pe-style-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
  padding: 7px 11px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 999px;
}
.pe-style-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border-strong); }
.pe-render-row .btn { margin-left: auto; }
.pe-editor {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; min-height: 0;
}
.pe-editor-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.pe-tabs { display: flex; gap: 4px; }
.pe-tab {
  font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 7px;
  color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}
.pe-tab:hover { color: var(--text-2); background: rgba(255,255,255,0.03); }
.pe-tab.active { color: var(--text); background: rgba(255,255,255,0.05); }
.pe-tab-count {
  font-family: var(--font-mono); font-size: 10px;
  padding: 1px 6px; border-radius: 999px;
  background: var(--indigo-soft); color: var(--indigo-2);
}
.pe-rows { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pe-row {
  display: grid; grid-template-columns: 12px auto 1fr auto;
  align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.12s, border-color 0.12s; position: relative;
}
.pe-row:hover { background: rgba(255,255,255,0.025); }
.pe-row.playing { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.18); }
.pe-row.active { background: rgba(99,102,241,0.14); border-color: rgba(99,102,241,0.4); }
.pe-row.active.playing { background: rgba(99,102,241,0.18); }
.pe-row-handle { color: var(--muted-2); display: grid; place-items: center; }
.pe-row-times {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap;
}
.pe-row.active .pe-row-times, .pe-row.playing .pe-row-times { color: var(--indigo-2); }
.pe-row-time.editing { color: var(--text); background: rgba(99,102,241,0.18); padding: 2px 5px; border-radius: 4px; }
.pe-row-arrow { opacity: 0.5; }
.pe-row-text {
  font-size: 13.5px; color: var(--text); letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center;
}
.pe-row.active .pe-row-text { color: white; }
.pe-caret {
  display: inline-block; width: 1.5px; height: 14px;
  background: var(--indigo-2); margin-left: 1px;
  animation: pe-caret 1s steps(2,end) infinite;
}
@keyframes pe-caret { 50% { opacity: 0; } }
.pe-row-actions {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 2px;
  background: rgba(20,20,32,0.9); padding: 3px; border-radius: 7px;
  border: 1px solid var(--border-strong);
}
.pe-row-actions button {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 5px; color: var(--text-2); transition: background 0.12s, color 0.12s;
}
.pe-row-actions button:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.pe-add-row {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; font-size: 12px; font-weight: 500; color: var(--muted);
  border: 1px dashed var(--border-strong); border-radius: 8px;
  margin-top: 6px; align-self: stretch; justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pe-add-row:hover { color: var(--indigo-2); border-color: rgba(99,102,241,0.4); background: var(--indigo-soft); }
.pe-shortcuts {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.pe-shortcuts span { display: inline-flex; align-items: center; gap: 5px; }

/* testimonials */
.tm-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .tm-grid { grid-template-columns: 1fr; } }
.tm {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.tm-quote { font-size: 17px; line-height: 1.5; color: var(--text); letter-spacing: -0.01em; }
.tm-quote::before {
  content: "\201C"; color: var(--indigo-2); font-size: 32px;
  line-height: 0; vertical-align: -8px; margin-right: 4px;
  font-family: var(--font-serif);
}
.tm-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tm-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-2), var(--indigo-3));
  display: grid; place-items: center; font-weight: 600; font-size: 13px; color: white;
}
.tm-name { font-size: 14px; font-weight: 500; }
.tm-role { font-size: 12px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; cursor: pointer; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 17px; font-weight: 500; color: var(--text); }
.faq-a { color: var(--text-2); margin-top: 12px; font-size: 15px; line-height: 1.6; }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text-2);
  flex-shrink: 0; transition: transform 0.2s, background 0.2s;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--indigo-soft); color: var(--indigo-2); border-color: rgba(99,102,241,0.3); }

/* CTA */
.cta-card {
  border-radius: var(--radius-xl); padding: 80px 60px; text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(129,140,248,0.25), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); position: relative; overflow: hidden;
}
.cta-card h2 { max-width: 720px; margin: 0 auto 16px; }
.cta-card p { max-width: 540px; margin: 0 auto; font-size: 17px; }
.cta-card .hero-cta { justify-content: center; margin-top: 32px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 36px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-2); font-size: 14px; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 16px;
}

/* icon helper */
.icon { display: inline-flex; }

/* selection */
::selection { background: var(--indigo-soft); color: var(--text); }

/* mobile nav */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 0; }
  .hero-sub { font-size: 16px; }
  .cta-card { padding: 48px 28px; }
}
