:root {
  --ink: #14161f;
  --ink-soft: #4a4f63;
  --muted: #6b7088;
  --line: #e4e6ef;
  --bg: #fbfbfd;
  --card: #ffffff;
  --brand: #4f46e5;
  --brand-2: #0ea5e9;
  --brand-ink: #3730a3;
  --tint: #eef0ff;
  --radius: 16px;
  --max: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
}
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(79, 70, 229, 0.18), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -50% -10%; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(14, 165, 233, 0.14), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand-ink);
  background: var(--tint); border: 1px solid #dcdffd; border-radius: 999px; padding: 5px 12px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.03em;
  margin: 20px 0 18px; max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 60ch; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 20px rgba(20, 22, 31, 0.18); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { color: var(--ink); border-color: #cfd2de; box-shadow: 0 8px 20px rgba(20, 22, 31, 0.10); }

/* Hero pill links */
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: #f4f5fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: 32px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.flow li {
  list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative;
}
.flow li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.flow li strong { display: block; margin-bottom: 4px; }
.flow li span { color: var(--ink-soft); font-size: 15px; }
ol.flow { padding: 0; margin: 0; }

/* Copy box */
.copy-list { display: grid; gap: 12px; max-width: 760px; }
.copy-row {
  display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.copy-row .label { font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.copy-row code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14.5px;
  color: var(--ink); overflow-wrap: anywhere;
}
.copy-btn {
  border: 1px solid var(--line); background: #f7f8fb; color: var(--ink); border-radius: 8px;
  padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.copy-btn:hover { background: var(--tint); border-color: #d2d6fb; color: var(--brand-ink); }
.note { margin-top: 18px; color: var(--muted); font-size: 14.5px; max-width: 760px; }

/* Policy page */
.doc-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f3f4ff 0%, var(--bg) 100%); }
.doc-hero h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; margin: 16px 0 10px; line-height: 1.1; }
.doc-hero p { color: var(--ink-soft); margin: 0; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 88px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14.5px; }
.toc p { font-weight: 700; margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2b2f3d; font-size: 16.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.callout {
  border: 1px solid #d9dcfb; background: var(--tint); border-radius: 14px; padding: 18px 20px; margin: 20px 0;
}
.callout p { margin: 0; color: #2a2e6b; }
table.scopes { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
table.scopes th, table.scopes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.scopes th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .copy-row { grid-template-columns: 1fr auto; }
  .copy-row .label { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .hero { padding: 64px 0 56px; }
}
