:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --surface: #0e1528;
  --surface-2: #121b33;
  --line: #1d2742;
  --line-2: #2a3760;
  --text: #e7ecf6;
  --muted: #93a0ba;
  --faint: #66738f;
  --cobalt: #3a66ff;
  --cobalt-2: #6a90ff;
  --cobalt-glow: rgba(58, 102, 255, .35);
  --red: #ff6b6b;
  --amber: #f5b94a;
  --green: #44d19a;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: var(--cobalt-2); text-decoration: none; }
a:hover { color: #9db6ff; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; color: #c8d4ff; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--cobalt); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--cobalt-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  background: linear-gradient(180deg, #4a74ff, #2f55ec);
  color: #fff; font-weight: 600; font-size: 15px;
  border: 1px solid #5a80ff;
  box-shadow: 0 6px 24px -8px var(--cobalt-glow), inset 0 1px 0 rgba(255,255,255,.18);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px -8px var(--cobalt-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--ghost {
  background: transparent; border-color: var(--line-2); color: var(--text); box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); box-shadow: none; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(29, 39, 66, .6);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand:hover { color: var(--text); }
.brand--sm { font-size: 15px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 6px; justify-content: center;
    width: 40px; height: 40px; padding: 0 9px; border-radius: 8px;
    background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; background: var(--bg);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(58,102,255,.28), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42,55,96,.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42,55,96,.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cobalt-2); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 750; }
.lede { margin-top: 22px; font-size: 18.5px; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.finding {
  margin: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(106,144,255,.06);
  overflow: hidden;
}
.finding__head {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: rgba(7,11,20,.5);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.finding__title { margin-left: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.finding__body { padding: 22px 22px 24px; }
.finding__tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--faint); border: 1px dashed var(--line-2); padding: 2px 8px; border-radius: 6px; margin-bottom: 12px;
}
.finding__name { font-size: 19px; font-weight: 650; margin-bottom: 16px; }
.finding dl { margin: 0; display: grid; gap: 10px; }
.finding dl > div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; font-size: 14.5px; }
.finding dt { font-family: var(--mono); font-size: 12.5px; color: var(--faint); padding-top: 2px; }
.finding dd { margin: 0; color: #cdd6e8; }
.sev { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 1px 8px; border-radius: 6px; margin-right: 6px; }
.sev--high { background: rgba(255,107,107,.12); color: var(--red); border: 1px solid rgba(255,107,107,.35); }

@media (max-width: 920px) {
  .hero { padding: 64px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Band ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.band__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; align-items: start; }
.band__lead { font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }
.band__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.band__list li { display: grid; gap: 3px; padding-left: 18px; border-left: 2px solid var(--cobalt); }
.band__list strong { font-weight: 600; }
.band__list span { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .band__inner { grid-template-columns: 1fr; gap: 28px; } .band__lead { font-size: 21px; } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 720; }
.section__head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section__head--left { text-align: left; margin: 0; }
@media (max-width: 820px) { .section { padding: 76px 0; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(58,102,255,.12); border: 1px solid rgba(106,144,255,.25); margin-bottom: 18px;
}
.card__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--cobalt-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; font-weight: 650; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps__n { font-family: var(--mono); font-size: 13px; color: var(--cobalt-2); display: block; margin-bottom: 14px; }
.steps h3 { font-size: 17.5px; font-weight: 650; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Research note ---------- */
.note {
  max-width: 820px; margin: 0 auto; padding: 36px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius);
}
.note__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(58,102,255,.14); color: var(--cobalt-2); border: 1px solid rgba(106,144,255,.3); }
.pill--muted { background: transparent; color: var(--faint); border-color: var(--line-2); }
.note h3 { font-size: 24px; font-weight: 680; margin-bottom: 16px; }
.note p { color: #c3cce0; font-size: 16.5px; }
.note p + p { margin-top: 14px; }
@media (max-width: 620px) { .note { padding: 24px; } .note h3 { font-size: 21px; } }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rules li {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--muted); font-size: 15.5px;
}
.rules strong { color: var(--text); font-weight: 600; margin-right: 4px; }

/* ---------- Engagement tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier {
  display: flex; flex-direction: column; padding: 30px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.tier--featured {
  border-color: rgba(106,144,255,.55);
  background: linear-gradient(180deg, rgba(58,102,255,.12), var(--surface) 55%);
  box-shadow: 0 24px 60px -30px var(--cobalt-glow);
}
.tier__kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px;
}
.tier--featured .tier__kicker { color: var(--cobalt-2); }
.tier h3 { font-size: 22px; font-weight: 680; }
.tier__time { font-family: var(--mono); font-size: 13px; color: var(--cobalt-2); margin: 6px 0 14px; }
.tier__desc { color: var(--muted); font-size: 15px; }
.tier__list { list-style: none; margin: 20px 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tier__list li { position: relative; padding-left: 24px; font-size: 14.5px; color: #cdd6e8; }
.tier__list li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px;
  border-left: 2px solid var(--cobalt-2); border-bottom: 2px solid var(--cobalt-2); transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }
.tiers__note { text-align: center; color: var(--faint); font-size: 14.5px; margin-top: 28px; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Contact form ---------- */
.section--contact { background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(58,102,255,.10), transparent 70%); }
.contact__direct { margin-top: 26px !important; font-size: 15.5px !important; }
.contact__direct a { font-weight: 600; font-size: 17px; }

.form { display: grid; gap: 16px; padding: 30px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.form__row { display: grid; gap: 7px; }
.form label { font-size: 14px; font-weight: 550; color: #cdd6e8; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder { color: var(--faint); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(58,102,255,.25); }
.form [aria-invalid="true"] { border-color: var(--red); }
.form__note { font-size: 13.5px; color: var(--faint); text-align: center; }
.form__note.is-error { color: var(--red); }
.form__note.is-ok { color: var(--green); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--faint); font-size: 14px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--text); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }
