:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #4b5160;
  --ink-3: #7b8190;
  --line: #e6e7e2;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --ok: #0f8a5f;
  --warn: #b7791f;
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: 88px 0 56px; }
.hero .eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06;
  letter-spacing: -0.03em; margin: 20px 0 18px; max-width: 16ch;
}
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 58ch; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* Source chips */
.sources { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; font-weight: 500;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip.pending .dot { background: var(--warn); }

/* Preview mock */
.mock {
  margin-top: 56px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(20, 30, 60, .35);
}
.mock .bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.mock .cell { background: var(--surface); padding: 18px 20px; }
.mock .cell .k { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.mock .cell .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.mock .cell .d { font-size: 13px; margin-top: 4px; }
.mock .cell .d.up { color: var(--ok); }
.mock .cell .d.down { color: #b42318; }
.mock .chart { padding: 20px; border-top: 1px solid var(--line); }
.mock .chart svg { width: 100%; height: 150px; }
.mock .legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.mock .legend span::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--accent); }
.mock .legend span.prev::before { background: #c9ccd6; }
@media (max-width: 720px) { .mock .grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
section.alt .card { background: var(--bg); }
.card .ic {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 32px; }
.principles li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.principles li b { color: var(--ink); }
.principles li svg { flex: none; margin-top: 4px; color: var(--ok); }
.principles { padding: 0; margin: 0; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { position: relative; padding: 22px 22px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: s; content: counter(s);
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* CTA */
.cta-block {
  border-radius: 20px; background: var(--ink); color: #fff; padding: 48px 32px;
  display: grid; gap: 20px; grid-template-columns: 1.4fr 1fr; align-items: center;
}
.cta-block h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.cta-block p { margin: 0; color: #c7cbd6; }
.cta-block .btn { background: #fff; color: var(--ink); border-color: #fff; justify-self: end; }
@media (max-width: 720px) { .cta-block { grid-template-columns: 1fr; } .cta-block .btn { justify-self: start; } }

/* Footer */
footer { padding: 36px 0 48px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 64px 0 80px; max-width: 72ch; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.legal .meta { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal .box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px 20px; }
