:root {
  --bg: #f7f8fa;
  --tint: #edeff3;
  --surface: #ffffff;
  --text: #14161c;
  --muted: #4b5262;
  --line: #dfe2e8;
  --accent: #1f2a5c;
  --accent-soft: #e3e6f2;
  --accent-text: #ffffff;
  --header-bg: rgba(247, 248, 250, 0.88);
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --tint: #161920;
    --surface: #1c2029;
    --text: #e6e8ef;
    --muted: #a0a7b8;
    --line: #2a2f3a;
    --accent: #7b8cde;
    --accent-soft: #1e2440;
    --accent-text: #0b0f2e;
    --header-bg: rgba(14, 16, 21, 0.88);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow > * { max-width: 680px; }

.band { padding: 64px 0; }
@media (min-width: 768px) { .band { padding: 96px 0; } }
.tint { background: var(--tint); }

/* ---------- base ---------- */
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  background: var(--surface); color: var(--text); padding: 8px 12px;
}
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); }
h1, h2 { font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); line-height: 1.1; margin: 0 0 36px; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 0 0 8px; }
p { margin: 0; }

.note { color: var(--muted); margin-top: 32px; max-width: 680px; }

/* ---------- buttons ---------- */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  white-space: nowrap;
}
.button:hover { filter: brightness(1.08); }
.button-sm { padding: 8px 14px; font-size: 0.9rem; }
.textlink { font-weight: 500; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.2rem; line-height: 1;
  color: var(--text); text-decoration: none;
  margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav { display: none; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
@media (min-width: 720px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero { padding: 48px 0 64px; }
@media (min-width: 900px) { .hero { padding: 104px 0 128px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.hero-text { max-width: 680px; }
h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.04;
  margin: 0 0 24px;
}
.lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 40px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.hero-art { margin: 0; max-width: 300px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .hero-art { max-width: 480px; } }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art .ink { stroke: var(--text); }
.hero-art .accent { stroke: var(--accent); }
.hero-art .accent-fill { fill: var(--accent); }
.hero-art .paper { fill: var(--bg); }

/* ---------- cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
@media (min-width: 640px) { .card { padding: 28px; } }
.card p { color: var(--muted); }
.card .role { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.card a { display: inline-block; margin-top: 14px; }
.card h3 { font-size: 1.1rem; }

.icon {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 18px;
  border-radius: 10px; background: var(--accent-soft);
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- why us: 2x2 ---------- */
.grid-2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 56px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 li { border-top: 2px solid var(--accent); padding-top: 18px; }
.grid-2 p { color: var(--muted); }

/* ---------- what we collect ---------- */
.plain { margin: 0; padding-left: 1.2em; }
.plain li { margin-bottom: 12px; }
.plain li::marker { color: var(--accent); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.timeline p { padding-top: 7px; }
.dot {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--accent);
  border: 2px solid var(--accent);
  font-family: var(--mono); font-size: 0.95rem; font-weight: 500;
}
/* vertical connector (mobile) */
.timeline li:not(:last-child)::before {
  content: ""; position: absolute;
  left: 19px; top: 40px; bottom: -28px; width: 2px;
  background: var(--line);
}
@media (min-width: 820px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .timeline li { grid-template-columns: 1fr; gap: 18px; }
  .timeline p { padding-top: 0; }
  /* horizontal connector (desktop) */
  .timeline li:not(:last-child)::before {
    left: 40px; right: -32px; top: 19px; bottom: auto; width: auto; height: 2px;
  }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot .wrap { padding-top: 56px; padding-bottom: 56px; }
.foot p { margin: 0 0 12px; }
.cta { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; }
.copy { color: var(--muted); font-size: 0.95rem; }
