:root {
  --bg: #ffffff;
  --bg2: #f3f4f7;
  --card: #ffffff;
  --text: #111418;
  --muted: #5f6774;
  --accent: #2a7de1;
  --accent-text: #ffffff;
  --line: #e3e6eb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111316;
    --bg2: #181b1f;
    --card: #1c2025;
    --text: #eef0f3;
    --muted: #9aa2ad;
    --accent: #4d97ef;
    --line: #2a2f36;
  }
}
:root[data-theme="dark"] {
  --bg: #111316;
  --bg2: #181b1f;
  --card: #1c2025;
  --text: #eef0f3;
  --muted: #9aa2ad;
  --accent: #4d97ef;
  --line: #2a2f36;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.top { border-bottom: 1px solid var(--line); }
.top .row { justify-content: space-between; height: 56px; }
.logo { font-weight: 700; font-size: 18px; }
.link { color: var(--muted); text-decoration: none; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.title { font-weight: 600; }

.hero { padding: 56px 16px 32px; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 12px; background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none; }
.btn.secondary { background: var(--bg2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h2 { font-size: 22px; margin: 0 0 12px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.step { background: var(--bg2); border-radius: 16px; padding: 20px; }
.step ol { margin: 0; padding-left: 20px; }
.step li { margin-bottom: 8px; }

.demo { padding-top: 24px; padding-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.tile, .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.tile .value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .label { color: var(--muted); font-size: 14px; }
.chart { position: relative; margin-top: 12px; }
.chart svg { display: block; width: 100%; height: 180px; overflow: visible; }
.chart .bar { fill: var(--accent); }
.chart .bar.active { opacity: .75; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.tooltip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 13px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); }

.faq { padding-top: 24px; padding-bottom: 40px; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }
footer { padding-top: 24px; padding-bottom: 32px; }
