:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #f1f3f9; --text: #141826; --muted: #5d6478;
  --line: #e3e6ef; --accent: #4f46e5; --accent-2: #06b6d4; --accent-soft: #eef0ff; --ok: #0f9d6b; --warn: #b7791f;
  --warn-soft: #fff7e6; --soon: #8a8fa3; --shadow: 0 1px 2px rgba(20,24,38,.05), 0 6px 24px rgba(20,24,38,.06);
  --r: 14px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1017; --surface: #151a24; --surface-2: #1b2130; --text: #e8ebf4; --muted: #9aa2b8; --line: #262d3d;
    --accent: #818cf8; --accent-2: #22d3ee; --accent-soft: #1e2140; --ok: #34d399; --warn: #f6c15b; --warn-soft: #2a2414;
    --soon: #6b7186; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1017; --surface: #151a24; --surface-2: #1b2130; --text: #e8ebf4; --muted: #9aa2b8; --line: #262d3d;
  --accent: #818cf8; --accent-2: #22d3ee; --accent-soft: #1e2140; --ok: #34d399; --warn: #f6c15b; --warn-soft: #2a2414;
  --soon: #6b7186; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap { gap: 8px; margin-top: 10px; }
.wrap-gap { flex-wrap: wrap; gap: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); text-decoration: none; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); position: relative; }
.logo::after { content: ""; position: absolute; inset: 7px 6px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px); mask: linear-gradient(#000 0 0); border-radius: 2px; opacity: .9; }
.top-right { display: flex; align-items: center; gap: 10px; }
.badge { font-size: 12px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.badge.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.badge.demo { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }

/* hero */
.hero { padding: 36px 0 18px; }
h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.02em; max-width: 820px; }
.lead { font-size: 17px; color: var(--muted); max-width: 760px; margin: 0 0 22px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: all .3s; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; background: var(--surface-2); }
.steps li.active { color: var(--text); border-color: var(--accent); }
.steps li.active .dot { background: var(--accent); color: #fff; animation: pulse 1s infinite; }
.steps li.done { color: var(--text); }
.steps li.done .dot { background: var(--ok); color: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); } }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; }
.num { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.input { margin-bottom: 18px; }

.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.tabs button { white-space: nowrap; border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.llm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; cursor: pointer; display: flex; align-items: center; gap: 6px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.seg.small { flex-wrap: nowrap; }
.seg.small button { padding: 4px 9px; font-size: 13px; }
.tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.tag.live { color: var(--ok); }
.tag.soon { color: var(--soon); }
.pane { margin-top: 16px; }

.samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sample { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
.sample:hover { border-color: var(--accent); transform: translateY(-1px); }
.sample.on { border-color: var(--accent); background: var(--accent-soft); }
.sample .s-top { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sample .s-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); flex: none; font-size: 15px; }
.sample .s-meta { font-size: 13px; color: var(--muted); }
.wave { height: 26px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 2px; opacity: .55; }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { display: none; }
.drop-ico { font-size: 26px; color: var(--accent); }

.rec { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mic { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 99px; padding: 12px 20px 12px 14px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.mic-ico { width: 22px; height: 22px; border-radius: 50%; background: #fff; position: relative; }
.mic-ico::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #ef4444; }
.mic.on { background: #ef4444; }
.mic.on .mic-ico::after { border-radius: 2px; inset: 7px; }
.rec-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 220px; }
.timer { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 650; }
#meter { width: 100%; max-width: 320px; height: 48px; }
.small-t { font-size: 13px; }
.live-cap { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-style: italic; }
.limits { font-size: 13px; margin: 14px 0 0; }

/* results */
.results { margin-bottom: 18px; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); margin-bottom: 14px; font-size: 14px; }
.grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
audio, video { width: 100%; margin-bottom: 10px; border-radius: 10px; }
video { max-height: 200px; background: #000; }
.segments { max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.seg-line { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; border: 0; background: transparent; text-align: left; }
.seg-line:hover { background: var(--surface-2); }
.seg-line.now { background: var(--accent-soft); }
.seg-line time { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.plain { white-space: pre-wrap; padding: 6px 8px; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-2); resize: vertical; }
.summary { margin: 0; font-size: 15.5px; }
.tasks { width: 100%; border-collapse: collapse; font-size: 14px; }
.tasks th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 0 8px 6px; border-bottom: 1px solid var(--line); }
.tasks td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tasks tr:last-child td { border-bottom: 0; }
.tasks td:nth-child(2), .tasks td:nth-child(3) { white-space: nowrap; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); }
.empty { color: var(--muted); font-style: italic; }
.reply { margin: 0 0 12px; font-size: 15px; padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: var(--accent-soft); }
button.primary { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; }
button.primary.playing { background: var(--accent-2); }
button.ghost { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 9px; cursor: pointer; }
button.ghost:hover { border-color: var(--accent); }
button.ghost.sm { font-size: 13px; padding: 4px 10px; }
button:disabled { opacity: .5; cursor: default; }
.reveal { animation: reveal .45s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 8px 0; }
@keyframes sk { to { background-position: -200% 0; } }

.about { margin-bottom: 18px; }
.about h2 { margin-bottom: 10px; }
.feat { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 32px; font-size: 13px; }
.foot a { color: var(--accent); }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .top-in .brand span:last-child { font-size: 14px; }
}
@media (max-width: 480px) {
  .brand { font-size: 14px; gap: 8px; }
  .badge { font-size: 11px; padding: 2px 7px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 6px 4px; font-size: 14px; }
  .seg button { padding: 6px 9px; font-size: 13px; }
  .tasks td:nth-child(2), .tasks td:nth-child(3) { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
