:root {
  --bg: #f6f8ff;
  --panel: #ffffff;
  --panel-alt: #edf1fb;
  --border: rgba(15, 23, 42, 0.11);
  --text: #0f172a;
  --muted: #475569;
  --accent: #4338ca;
  --accent-2: #0284c7;
  --accent-ink: #ffffff;
  --success: #15803d;
  --success-bg: rgba(22, 163, 74, 0.12);
  --well: #0e1320;
  --well-border: rgba(148, 163, 184, 0.25);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --panel: #131b33;
    --panel-alt: #182240;
    --border: rgba(255, 255, 255, 0.11);
    --text: #eef2ff;
    --muted: #a5b4cf;
    --accent: #818cf8;
    --accent-2: #38bdf8;
    --accent-ink: #090d1a;
    --success: #4ade80;
    --success-bg: rgba(34, 197, 94, 0.15);
    --well: #090d16;
    --well-border: rgba(255, 255, 255, 0.14);
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 10px 14px;
  background: var(--accent); color: var(--accent-ink); border-radius: 8px; z-index: 99;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

header.site {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
}
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 36px; align-items: center;
  padding: 48px 0 36px;
}
.hero > *, .steps > *, .grid > *, .voices-grid > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--accent); margin: 0 0 12px;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 850;
}
.lede { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 19px; border-radius: 999px; font: inherit; font-weight: 650; font-size: 14.5px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  cursor: pointer; transition: transform 0.12s ease, border-color 0.12s ease;
  min-height: 44px;
}
.button:hover { transform: translateY(-1px); border-color: var(--accent); }
.button.primary {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
}
.button.secondary {
  background: var(--panel-alt); color: var(--text); border-color: var(--border);
}

.meta-note {
  margin: 12px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere;
}
.sha-pill {
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--panel-alt); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 11.5px; color: var(--muted); word-break: break-all;
}

.demo-box {
  background: var(--well); color: #eef2ff;
  border: 1px solid var(--well-border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.demo-box h2 { margin: 0 0 6px; font-size: 18px; color: #ffffff; letter-spacing: -0.02em; }
.demo-sub { margin: 0 0 16px; font-size: 13.5px; color: #a5b4cf; }
.voice-sample {
  padding: 13px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}
.voice-sample:last-child { margin-bottom: 0; }
.voice-sample-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 650; margin-bottom: 8px;
}
.voice-tag {
  font-size: 11.5px; font-weight: 600; color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12); padding: 2px 8px; border-radius: 999px;
}
.voice-sample audio { width: 100%; height: 36px; }

.section { padding: 34px 0; }
.section h2 {
  margin: 0 0 8px; font-size: 27px; letter-spacing: -0.025em;
}
.section-sub {
  margin: 0 0 22px; color: var(--muted); max-width: 680px;
}
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.voices-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step-num {
  width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13.5px;
  margin-bottom: 10px;
}
.pill-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--success);
  background: var(--success-bg); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.9em; padding: 1px 5px; border-radius: 5px;
  background: var(--panel-alt); border: 1px solid var(--border);
  overflow-wrap: anywhere;
}

details.faq {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px;
}
details.faq summary { font-weight: 650; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

footer.site {
  border-top: 1px solid var(--border); margin-top: 28px; padding: 24px 0 40px;
  font-size: 13.5px; color: var(--muted);
}
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 860px) {
  .hero, .steps, .grid, .voices-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 32px 0 22px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { height: auto; min-height: 56px; padding: 10px 0; flex-wrap: wrap; gap: 8px 12px; }
  .nav-links { gap: 10px; font-size: 13px; flex-wrap: wrap; }
  .hero h1 { font-size: 32px; }
  .voice-sample-head { flex-wrap: wrap; gap: 6px; }
}
