:root {
  --ink: #07111f;
  --panel: #0d2036;
  --panel-2: #102842;
  --line: #20354e;
  --muted: #9eb1c8;
  --accent: #65adff;
  --mint: #45deb9;
  --gold: #ffcc73;
  --text: #eef4ff;
  --danger: #ff6b7a;
  --warn-bg: #2a2410;
  --warn-border: #6b5a12;
  --warn-text: #ffd76a;
  color-scheme: dark;
}

.noscript-fallback {
  padding: 2rem;
  font-family: sans-serif;
  color: #eef4ff;
  background: #07111f;
}

/* Readability baseline: keep information text at a practical size across Web and mobile. */
html {
  --aq-readable-root: 17px;
  font-size: var(--aq-readable-root);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 1200px) {
  html { --aq-readable-root: 18px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgb(69 222 185 / 12%), transparent 34%),
    radial-gradient(circle at 86% 6%, rgb(101 173 255 / 12%), transparent 36%),
    linear-gradient(150deg, #07111f, #0b1c30 55%, #07111f);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover { color: var(--mint); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel-2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(7 17 31 / 82%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand small {
  color: var(--mint);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--panel); }
.site-nav a.active { color: var(--text); background: var(--panel); border: 1px solid var(--line); }

.cta-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mint); color: #04231b; }
.btn-primary:hover { background: #6beccb; color: #04231b; }
.btn-accent { background: var(--accent); color: #04182e; }
.btn-accent:hover { background: #8cc6ff; color: #04182e; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--panel); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 72px 0 48px;
  text-align: center;
  background:
    radial-gradient(ellipse at 84% 42%, rgb(101 173 255 / 25%), transparent 39%),
    radial-gradient(circle at 69% 8%, rgb(69 222 185 / 15%), transparent 24%),
    repeating-linear-gradient(90deg, transparent 0 72px, rgb(101 173 255 / 7%) 73px 74px),
    linear-gradient(90deg, rgb(7 17 31 / 99%) 0%, rgb(7 17 31 / 94%) 52%, rgb(13 32 54 / 82%) 100%);
  border-bottom: 1px solid rgb(101 173 255 / 14%);
}
.hero .eyebrow {
  display: inline-block;
  color: var(--mint);
  border: 1px solid rgb(69 222 185 / 30%);
  background: rgb(69 222 185 / 8%);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--mint), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Trust row ──────────────────────────────────────────── */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px 0 8px;
}
.trust-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.trust-item .t { font-weight: 700; margin-bottom: 4px; }
.trust-item .d { color: var(--muted); font-size: 0.86rem; }

/* ── Sections / cards ───────────────────────────────────── */
.section { padding: 52px 0; }
.section.alt { background: rgb(13 32 54 / 45%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { font-size: 1.9rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.94rem; }
.card .icon { font-size: 1.4rem; display: block; margin-bottom: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.ok { color: var(--mint); border-color: rgb(69 222 185 / 35%); }
.pill.warn { color: var(--warn-text); border-color: var(--warn-border); }
.pill.off { color: var(--danger); border-color: rgb(255 107 122 / 40%); }

/* ── Pipeline ───────────────────────────────────────────── */
.pipeline { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.stage {
  flex: 1 1 150px;
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.stage .num {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stage .name { font-weight: 700; margin: 4px 0 6px; }
.stage .status { font-size: 0.8rem; }

/* ── FAQ ────────────────────────────────────────────────── */
details.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--mint); font-weight: 700; }
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body { padding: 0 18px 16px; color: var(--muted); }

/* ── Legal ──────────────────────────────────────────────── */
.legal-review-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin: 28px 0 10px; }
.prose h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.prose p, .prose li { color: #c6d4e6; }
.prose ul { padding-left: 22px; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--panel-2); }
.prose .muted { color: var(--muted); font-size: 0.88rem; }

.doc-list { display: grid; gap: 12px; }
.doc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
}
.doc-link:hover { border-color: var(--accent); }
.doc-link .d { color: var(--muted); font-size: 0.86rem; margin-top: 3px; }

/* ── Cookie banner / modal ──────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  z-index: 40;
  box-shadow: 0 18px 50px rgb(0 0 0 / 45%);
}
.cookie-banner p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.cookie-banner .row { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgb(4 10 18 / 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 18px;
}
.cookie-modal .box {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 24px;
  max-height: 85vh;
  overflow: auto;
}
.cookie-modal .opt {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-modal .opt:last-child { border-bottom: 0; }
.cookie-modal .opt .t { font-weight: 600; }
.cookie-modal .opt .d { color: var(--muted); font-size: 0.84rem; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: 0.15s;
  cursor: pointer;
}
.switch .track::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: 0.15s;
}
.switch input:checked + .track { background: var(--mint); }
.switch input:checked + .track::before { transform: translateX(20px); background: #04231b; }
.switch input:disabled + .track { opacity: 0.45; cursor: not-allowed; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 28px;
  margin-top: 24px;
  background: rgb(7 17 31 / 60%);
}
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.site-footer h4 { margin: 0 0 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Misc ───────────────────────────────────────────────── */
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.notice {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  color: var(--muted);
  margin: 16px 0;
}

/* ── Community Foundation ───────────────────────────────── */
.community-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .82fr); gap: 36px; align-items: center; padding: clamp(28px, 5vw, 58px); overflow: hidden; border: 1px solid rgb(101 173 255 / 36%); border-radius: 20px; background: linear-gradient(128deg, rgb(13 32 54 / 96%), rgb(7 17 31 / 88%)), radial-gradient(circle at 85% 12%, rgb(101 173 255 / 26%), transparent 40%); }
.community-hero h1 { max-width: 650px; margin: 0 0 14px; font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.08; letter-spacing: -.025em; }
.community-hero p { max-width: 620px; margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }
.community-brand-lockup { display: grid; justify-items: center; gap: 14px; padding: 28px; border: 1px solid rgb(255 204 115 / 30%); border-radius: 18px; background: linear-gradient(145deg, rgb(255 204 115 / 9%), rgb(101 173 255 / 7%)); }
.community-brand-lockup img { width: min(150px, 42vw); height: auto; filter: drop-shadow(0 12px 28px rgb(0 0 0 / 35%)); }
.community-eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: .14em; }
.community-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.community-lane { display: grid; align-content: start; gap: 11px; min-height: 235px; padding: 22px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 14px; background: linear-gradient(160deg, rgb(16 40 66 / 82%), rgb(13 32 54 / 72%)); }
.community-lane-gold { border-top-color: var(--gold); }
.community-lane-index { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: .1em; }
.community-lane-gold .community-lane-index { color: var(--gold); }
.community-lane h3 { margin: 0; font-size: 1.18rem; }
.community-lane p { margin: 0; color: var(--muted); }
.community-state { align-self: end; width: max-content; margin-top: auto; padding: 3px 9px; border: 1px solid rgb(101 173 255 / 40%); border-radius: 999px; color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: .05em; }
.community-state-gold { border-color: rgb(255 204 115 / 40%); color: var(--gold); }
.community-inline-link { align-self: end; margin-top: auto; color: var(--accent); font-size: .9rem; font-weight: 600; text-decoration: none; }
.community-inline-link:hover { color: var(--text); }
.community-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 22px; border: 1px solid rgb(101 173 255 / 28%); border-radius: 14px; background: rgb(7 17 31 / 46%); }
.community-cta h2 { margin: 0 0 5px; font-size: 1.15rem; }
.community-cta p { margin: 0; color: var(--muted); }

@media (max-width: 640px) {
  .site-header .wrap { gap: 10px; }
  .hero {
    padding: 48px 0 32px;
    background: linear-gradient(145deg, rgb(7 17 31 / 99%), rgb(13 32 54 / 96%));
  }
  .section { padding: 36px 0; }
  .community-hero { grid-template-columns: 1fr; gap: 24px; padding: 25px; }
  .community-brand-lockup { order: -1; justify-items: start; padding: 18px; }
  .community-brand-lockup img { width: 82px; }
  .community-lanes { grid-template-columns: 1fr; }
  .community-cta { align-items: flex-start; flex-direction: column; }
  .community-cta .btn { width: 100%; }
}
