:root {
  --bg: #ffffff;
  --bg-alt: #f6f6fb;
  --ink: #16162a;
  --muted: #5b5b72;
  --line: #e4e4ee;
  --accent: #4338ca;
  --accent-ink: #3730a3;
  --on-accent: #ffffff;
  --card: #ffffff;
  --t1: #0f766e;
  --t2: #b45309;
  --t3: #be185d;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #161626;
    --ink: #ececf6;
    --muted: #a3a3bb;
    --line: #2a2a40;
    --accent: #818cf8;
    --accent-ink: #a5b4fc;
    --on-accent: #0f0f1a;
    --card: #191929;
    --t1: #2dd4bf;
    --t2: #fbbf24;
    --t3: #f472b6;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(8px); z-index: 5; }
.site-header .bar { min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.mark { width: 30px; height: 30px; color: var(--accent); }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--ink); }

.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px); background: radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 680px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; background: var(--card); }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.alt { background: var(--bg-alt); }
.section-lede { color: var(--muted); max-width: 640px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.card-head h3 { margin: 0; font-size: 1.3rem; }
.tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.t1 { background: var(--t1); } .t2 { background: var(--t2); } .t3 { background: var(--t3); }
@media (prefers-color-scheme: dark) { .tile { color: #0f0f1a; } }
.tag { color: var(--muted); font-size: .92rem; font-weight: 600; margin-bottom: .8em; }
.card p:not(.tag) { flex: 1; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.next { margin-top: 36px; padding: 20px 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.next h3 { margin-bottom: .4em; }
.next ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.next strong { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 24px; }
.grid p { color: var(--muted); margin: 0; }

.partner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.partner > div { max-width: 720px; }
.partner p { color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact p { color: var(--muted); }
dl { margin: 0; display: grid; gap: 20px; }
dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
dd { margin: 4px 0 0; }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } .site-header nav { gap: 14px; } }
@media (max-width: 520px) {
  .site-header .bar { flex-wrap: nowrap; }
  .site-header nav a.wide { display: none; }
}

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

.doc { max-width: 720px; padding-top: clamp(40px, 7vw, 72px); padding-bottom: 72px; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { font-size: .92rem; }
