:root {
  --bg: #ffffff;
  --bg-2: #f6f6f5;
  --line: #e6e6e3;
  --fg: #1a1a19;
  --fg-2: #5c5c58;
  --fg-3: #8a8a85;
  --accent: #0e7c66;
  --accent-ink: #ffffff;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --bg-2: #1f1f1f;
    --line: #2f2f2f;
    --fg: #f0f0ee;
    --fg-2: #b4b4b0;
    --fg-3: #85857f;
    --accent: #4cc2a5;
    --accent-ink: #0b1f1a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 16px; }
.logo:hover { text-decoration: none; }
.logo img { width: 26px; height: 26px; border-radius: 6px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--fg-2); }
.top nav a:hover { color: var(--fg); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.quiet { color: var(--fg); border: 1px solid var(--line); }
.btn.quiet:hover { background: var(--bg-2); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 auto 18px; max-width: 15ch; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--fg-2); max-width: 40ch; margin: 0 auto 28px; }
.ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 14px; font-size: 14px; color: var(--fg-3); }
.shot { margin: 48px auto 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .12); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.sub { color: var(--fg-2); font-size: 19px; max-width: 52ch; margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: 26px; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 12px; }
.feature p { color: var(--fg-2); margin: 0 0 12px; }
.feature ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--fg-2); }
.feature li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 2px; background: var(--accent); }
.feature .shot { margin: 0; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; counter-reset: step; }
.steps div { counter-increment: step; }
.steps div::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--fg-2); font-size: 16px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { padding: 24px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts strong { display: block; font-size: 17px; margin-bottom: 4px; }
.facts span { color: var(--fg-2); font-size: 16px; }

.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--fg-2); }

.cta-end { text-align: center; }
.cta-end .sub { margin: 0 auto 24px; }

/* Articles */
.article { max-width: 700px; margin: 0 auto; padding: 56px 20px 80px; }
.article .crumbs { font-size: 14px; color: var(--fg-3); margin-bottom: 18px; }
.article h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
.article .meta { color: var(--fg-3); font-size: 15px; margin-bottom: 32px; }
.article h2 { font-size: 24px; margin: 40px 0 10px; }
.article p, .article li { color: var(--fg); }
.article ol, .article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .shot { margin: 28px 0; }
.article .note { background: var(--bg-2); border-radius: 10px; padding: 16px 18px; color: var(--fg-2); font-size: 16px; }
.article .box { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-top: 40px; }
.article .box h2 { margin-top: 0; }
kbd { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-2); }

.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.guides a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); }
.guides a:hover { background: var(--bg-2); text-decoration: none; }
.guides strong { display: block; margin-bottom: 6px; line-height: 1.3; }
.guides span { color: var(--fg-2); font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--fg-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer nav a { color: var(--fg-2); }
footer .legal { flex-basis: 100%; }

@media (max-width: 820px) {
  .top nav a:not(.btn) { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .text { order: 0; }
  .steps, .guides { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
  .facts div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  section { padding: 56px 0; }
}

/* ---------- Hero demo ---------- */
.demo { --p-bg: #242424; --p-bg-2: #2e2e2e; --p-line: #3b3b3b; --p-fg: #f0f0ee; --p-fg-2: #b6b6b2; --p-fg-3: #8c8c88; --p-accent: #4cc2a5; --p-soft: #1f3a33;
  position: relative; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 360px; gap: 0; height: 460px;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #161616; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); text-align: left; }
.d-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 6px 6px 56px; }
.d-tile { position: relative; border-radius: 8px; background: #262626; display: grid; place-items: center; transition: box-shadow .2s; }
.d-tile.speaking { box-shadow: inset 0 0 0 2px #e6e6e6; }
.d-face { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 22px; }
.d-name { position: absolute; left: 8px; bottom: 8px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 7px; border-radius: 4px; }
.d-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; display: flex; gap: 8px; align-items: center; justify-content: center; background: #111; }
.d-bar span { width: 34px; height: 34px; border-radius: 8px; background: #2a2a2a; }
.d-bar span.end { width: 56px; background: #c4314b; }
.d-cap { position: absolute; left: 50%; bottom: 66px; transform: translate(-50%, 8px); width: min(88%, 520px); padding: 8px 12px; border-radius: 6px; background: rgba(0, 0, 0, .82); color: #fff; opacity: 0; transition: opacity .25s, transform .25s; }
.d-cap.show { opacity: 1; transform: translate(-50%, 0); }
.d-cap-who { display: block; font-size: 12px; font-weight: 600; color: #cfcfcf; }
.d-cap-text { font-size: 15px; line-height: 1.4; }

.d-panel { display: flex; flex-direction: column; min-height: 0; background: var(--p-bg); color: var(--p-fg); border-left: 1px solid var(--p-line); font-size: 13px; }
.d-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px; font-weight: 600; }
.d-head .d-count { color: var(--p-fg-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.d-tools { display: flex; gap: 6px; padding: 0 10px 10px; border-bottom: 1px solid var(--p-line); }
.d-tools span { height: 26px; padding: 0 9px; border-radius: 6px; background: var(--p-bg-2); display: inline-flex; align-items: center; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, transform .1s; }
.d-tools .d-search { flex: 1; color: var(--p-fg-3); font-weight: 400; }
.d-tools .on { background: var(--p-soft); color: var(--p-accent); }
.d-tools .press { transform: scale(.94); background: var(--p-soft); color: var(--p-accent); }
.d-list { flex: 1; overflow: hidden; padding: 6px 0; display: flex; flex-direction: column; justify-content: flex-end; }
.d-row { padding: 5px 14px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.d-row.in { opacity: 1; transform: none; }
.d-who { font-size: 12px; font-weight: 600; }
.d-text { font-size: 14px; line-height: 1.45; }
.d-tr { font-size: 13px; line-height: 1.45; color: var(--p-accent); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .35s; }
.d-row.translated .d-tr { max-height: 60px; opacity: 1; margin-top: 1px; }
.d-pane { max-height: 0; overflow: hidden; background: var(--p-bg-2); border-top: 1px solid var(--p-line); transition: max-height .4s ease; }
.d-pane.open { max-height: 210px; }
.d-pane .d-ahead { display: flex; gap: 8px; align-items: baseline; padding: 9px 14px 4px; font-size: 12px; font-weight: 600; }
.d-pane .d-ahead span { color: var(--p-fg-3); font-weight: 400; font-size: 11px; }
.d-q { margin: 0 14px 8px; padding-left: 8px; border-left: 2px solid var(--p-line); color: var(--p-fg-2); font-size: 12px; }
.d-atext { padding: 0 14px 12px; font-size: 14px; line-height: 1.5; min-height: 40px; }
.d-foot { padding: 6px 14px; font-size: 11px; color: var(--p-fg-3); border-top: 1px solid var(--p-line); }

/* Trust line under the hero */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; color: var(--fg-3); font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Keycaps */
.keys { display: inline-flex; gap: 8px; margin: 18px 0 4px; }
.keys kbd { min-width: 46px; height: 46px; display: grid; place-items: center; padding: 0 12px; font: 600 17px -apple-system, system-ui, sans-serif; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 9px; transition: transform .08s, border-bottom-width .08s, background .08s; }
.keys kbd.down { transform: translateY(2px); border-bottom-width: 1px; background: var(--bg-2); }

/* Scroll reveal */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pending { opacity: 0; transform: translateY(18px); }

@media (max-width: 820px) {
  .demo { grid-template-columns: 1fr; height: auto; }
  .d-stage { height: 240px; }
  .d-panel { border-left: 0; border-top: 1px solid var(--p-line); height: 380px; }
}
@media (prefers-reduced-motion: reduce) { .reveal, .d-row, .d-tr, .d-pane, .d-cap { transition: none; } }
