/* ==========================================================================
   RBLX.SPACE — design system
   Original cartoony gaming identity: thick ink outlines, hard offset shadows,
   varied card silhouettes and per-section generated artwork.
   Brand palette is fixed by the brief; everything else derives from it.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Official brand palette */
  --bg: #16181D;
  --panel: #1E2127;
  --line: #333840;
  --blue: #3186D0;
  --text: #E5E7EB;
  --muted: #91A4C2;

  /* Derived shades (permitted: lighter/darker blues + small complements) */
  --ink: #0B0D11;
  --ink-soft: #12141A;
  --blue-100: #CBE4F8;
  --blue-300: #7FBCEE;
  --blue-400: #4E9BE0;
  --blue-700: #24669C;
  --blue-900: #163A56;
  --gold: #F0B03C;
  --mint: #48CE9E;
  --coral: #EF6F5C;

  --outline: 3px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 30px;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --shadow-hard-lg: 10px 10px 0 var(--ink);
  --glow: 0 0 0 1px rgba(49, 134, 208, 0.35), 0 0 30px rgba(49, 134, 208, 0.28);
  --glow-strong: 0 0 0 1px rgba(126, 188, 238, 0.6), 0 0 46px rgba(49, 134, 208, 0.5);

  --font-display: "Archivo Black", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, .68, .34, 1);
  --speed: 220ms;
}

/* ---------- Base ---------- */
html, body { overflow-x: hidden; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

::selection { background: var(--blue); color: #fff; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  border-radius: var(--radius-s);
  border: var(--outline) solid var(--ink);
  text-decoration: none;
  transition: top var(--speed) var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.15; }
h4 { font-size: 1rem; letter-spacing: .01em; }

p { color: var(--muted); }
p + p { margin-top: .9rem; }

a { color: var(--blue-300); }

strong { color: var(--text); font-weight: 700; }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.mark {
  position: relative;
  display: inline-block;
  padding: 0 .16em;
  color: #fff;
  background: var(--blue);
  border: var(--outline) solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-1.2deg);
}

.mono { font-family: var(--font-mono); letter-spacing: .08em; }

.text-muted { color: var(--muted); }
.text-blue { color: var(--blue-300); }

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 1.6rem, var(--maxw)); }
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Section headers ---------- */
.sec-head {
  display: grid;
  gap: .7rem;
  max-width: 62ch;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.sec-num {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--ink);
  background: var(--blue);
  padding: .18rem .55rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  width: fit-content;
}

/* ==========================================================================
   GENERATED BACKGROUND ART
   Each page variant layers different geometry so no two pages repeat.
   ========================================================================== */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg);
}

.scene__grid,
.scene__dots,
.scene__band,
.scene__ring,
.scene__blob {
  position: absolute;
}

/* faint blueprint grid */
.scene__grid {
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(51, 56, 64, .5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 56, 64, .5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
}

/* halftone dots */
.scene__dots {
  inset: 0;
  background-image: radial-gradient(rgba(145, 164, 194, .18) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 55% at 78% 18%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 78% 18%, #000 0%, transparent 70%);
}

/* diagonal brand band */
.scene__band {
  width: 160vw;
  height: 360px;
  left: -30vw;
  top: 420px;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, rgba(49, 134, 208, .16), rgba(49, 134, 208, 0));
  border-block: 2px solid rgba(51, 56, 64, .8);
}

/* big offset rings */
.scene__ring {
  width: 640px;
  height: 640px;
  border: 2px dashed rgba(51, 56, 64, .95);
  border-radius: 50%;
  right: -220px;
  top: -180px;
}
.scene__ring--2 {
  width: 380px; height: 380px;
  right: -80px; top: 120px;
  border-style: solid;
  border-color: rgba(49, 134, 208, .22);
}

/* soft comic blob */
.scene__blob {
  width: 520px;
  height: 520px;
  left: -240px;
  bottom: -220px;
  background: radial-gradient(circle at 40% 40%, rgba(49, 134, 208, .18), transparent 62%);
  border-radius: 48% 52% 44% 56% / 56% 44% 56% 44%;
}

/* per-page art variants */
.art--orbit .scene__ring { border-color: rgba(49, 134, 208, .3); }
.art--grid .scene__grid { mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 85%); }

.art--stripes .scene__band {
  top: 220px;
  height: 520px;
  transform: rotate(9deg);
  background: repeating-linear-gradient(
    90deg,
    rgba(49, 134, 208, .1) 0 18px,
    transparent 18px 46px
  );
  border: 0;
}

.art--dots .scene__dots { mask-image: none; -webkit-mask-image: none; opacity: .55; }

.art--blocks .scene__ring {
  border-radius: 40px;
  border-color: rgba(51, 56, 64, .9);
  transform: rotate(18deg);
}
.art--blocks .scene__ring--2 { border-radius: 28px; transform: rotate(-12deg); }

.art--waves .scene__band {
  height: 600px;
  background: repeating-radial-gradient(
    circle at 85% 0%,
    rgba(49, 134, 208, .12) 0 2px,
    transparent 2px 40px
  );
  border: 0;
  transform: none;
  top: 0;
}

/* ==========================================================================
   NAVBAR
   Floating dock: solid (never see-through), thick base rule + blue scanner line.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--outline) solid var(--line);
  isolation: isolate;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue) 22%, var(--blue-300) 50%, var(--blue) 78%, transparent);
  opacity: .85;
  box-shadow: 0 0 18px rgba(49, 134, 208, .6);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 32px rgba(0, 0, 0, .55);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding-block: .6rem;
}

/* --- Brand + moon logo --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}

.brand__moon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  perspective: 620px;
  flex: 0 0 auto;
}

/* Raster moon logo: rotate only — never scaled, never bounced. */
.brand__moon img,
.moon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 420ms var(--ease);
  filter: drop-shadow(0 3px 10px rgba(49, 134, 208, .45));
  will-change: transform;
}

.brand:hover .brand__moon img,
.brand:focus-visible .brand__moon img,
.brand__moon:hover img {
  transform: rotate(-7deg);
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__dot { color: var(--blue); }

/* --- Desktop nav dock --- */
.nav-dock {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-inline: auto;
  padding: .3rem;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
}

.nav-dock__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.nav-dock__link:hover { color: var(--text); background: rgba(49, 134, 208, .16); }

.nav-dock__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--blue-300);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--speed) var(--ease);
}

.nav-dock__link:hover::after { width: 42%; }

.nav-dock__link[aria-current="page"] {
  color: #fff;
  background: var(--blue);
  box-shadow: inset 0 -2px 0 rgba(11, 13, 17, .45), 0 0 18px rgba(49, 134, 208, .45);
}
.nav-dock__link[aria-current="page"]::after { width: 0; }

/* --- Account button --- */
.account-slot { flex: 0 0 auto; }

/* --- Mobile toggle --- */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--panel);
  border: var(--outline) solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobile drawer --- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: var(--outline) solid var(--line);
  padding: 1.2rem 1.1rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 320ms var(--ease), visibility 320ms;
}

.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--blue) 0 10px, var(--ink) 10px 20px);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1rem;
  margin-bottom: .6rem;
  border-bottom: 2px solid var(--line);
}

.drawer__links { display: grid; gap: .35rem; }

.drawer__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem .9rem;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.drawer__links a::after {
  content: "›";
  font-size: 1.3rem;
  color: var(--blue-300);
  line-height: 1;
}

.drawer__links a:hover { background: var(--panel); border-color: var(--line); }

.drawer__links a[aria-current="page"] {
  background: rgba(49, 134, 208, .18);
  border-color: var(--blue);
  color: #fff;
}

.drawer__foot { margin-top: auto; padding-top: 1.4rem; display: grid; gap: .8rem; }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   BUTTONS
   Thick graphic outline + hard depth; presses down instead of glowing.
   ========================================================================== */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-edge: var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--outline) solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--btn-edge), 0 8px 0 var(--ink), 0 14px 24px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background var(--speed) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { background: var(--blue-400); transform: translateY(-2px); }

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--btn-edge), 0 2px 0 var(--ink);
}

.btn--ghost {
  --btn-bg: var(--panel);
  --btn-fg: var(--text);
  --btn-edge: #191C22;
  border-color: var(--line);
}
.btn--ghost:hover { background: #262A32; border-color: var(--blue); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-edge: #A5741F; }
.btn--gold:hover { background: #F7C264; }

.btn--sm { padding: .55rem .95rem; font-size: .74rem; border-radius: 11px; box-shadow: 0 4px 0 var(--btn-edge), 0 6px 0 var(--ink); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; border-radius: 16px; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 3px 0 var(--btn-edge), 0 5px 0 var(--ink);
}

/* Small square icon button */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.icon-btn:hover { border-color: var(--blue); background: #262A32; }

/* ==========================================================================
   BADGES / CHIPS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .65rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  background: #262A32;
  border: 2px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.badge--blue { background: rgba(49, 134, 208, .18); border-color: var(--blue); color: var(--blue-100); }
.badge--mint { background: rgba(72, 206, 158, .14); border-color: rgba(72, 206, 158, .55); color: #9BEBD0; }
.badge--gold { background: rgba(240, 176, 60, .14); border-color: rgba(240, 176, 60, .55); color: #F7D79A; }
.badge--coral { background: rgba(239, 111, 92, .14); border-color: rgba(239, 111, 92, .5); color: #F8B4A9; }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ==========================================================================
   CARDS — deliberately varied silhouettes
   ========================================================================== */
.card {
  position: relative;
  padding: 1.4rem;
  background: var(--panel);
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-hard);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.card > * + * { margin-top: .6rem; }

.card__title {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text);
}

.card__text { font-size: .93rem; color: var(--muted); }

/* hover lift (opt-in) */
.card--lift:hover {
  transform: translate(-2px, -4px) rotate(-.5deg);
  box-shadow: 9px 11px 0 var(--ink);
  border-color: var(--blue);
}

/* 1. folded corner */
.card--fold { border-top-right-radius: 0; }
.card--fold::after {
  content: "";
  position: absolute;
  top: calc(var(--outline) * -1);
  right: calc(var(--outline) * -1);
  width: 34px;
  height: 34px;
  background: var(--bg);
  border-left: var(--outline) solid var(--line);
  border-bottom: var(--outline) solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* 2. ticket with perforation */
.card--ticket {
  border-radius: 6px 20px 20px 6px;
  border-left: 3px dashed var(--line);
  padding-left: 1.6rem;
}
.card--ticket::before,
.card--ticket::after {
  content: "";
  position: absolute;
  left: -11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
}
.card--ticket::before { top: 14px; }
.card--ticket::after { bottom: 14px; }

/* 3. stacked sheets */
.card--stack { margin-top: 10px; }
.card--stack::before {
  content: "";
  position: absolute;
  inset: -8px 10px auto;
  height: 100%;
  background: #191C22;
  border: 2px solid var(--line);
  border-radius: var(--radius-l);
  z-index: -1;
  transform: rotate(-1.6deg);
}

/* 4. ribbon tag */
.card--tag { padding-top: 2.1rem; }
.card--tag .tag {
  position: absolute;
  top: -14px;
  left: 16px;
  padding: .22rem .7rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--blue-300);
  border: 2px solid var(--ink);
  border-radius: 6px;
  transform: rotate(-1.5deg);
}

/* 5. blue glow ring (promo) */
.card--glow { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(49, 134, 208, .35), var(--shadow-hard); }

/* 6. dark inset panel */
.panel {
  padding: 1.25rem;
  background: var(--ink-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
}

/* ---------- Stat blocks ---------- */
.stat {
  padding: 1.15rem 1.25rem;
  background: var(--panel);
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-hard-sm);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__value {
  display: block;
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__value--blue { color: var(--blue-300); }

/* ==========================================================================
   PAGE HEADER (interior pages)
   ========================================================================== */
.page-head {
  position: relative;
  padding-block: clamp(2.4rem, 6vw, 4.2rem) clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(49, 134, 208, .1), transparent 70%),
    repeating-linear-gradient(135deg, rgba(51, 56, 64, .35) 0 2px, transparent 2px 12px);
}

.page-head__inner { display: grid; gap: .85rem; max-width: 70ch; }

.page-head h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }

.page-head__note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .86rem;
  color: var(--muted);
  padding: .6rem .85rem;
  background: var(--ink-soft);
  border: 2px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-s);
  width: fit-content;
  max-width: 100%;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue-300); }
.crumb span[aria-hidden] { color: var(--line); }

/* ==========================================================================
   HERO
   Asymmetric: stacked headline left, orbit composition right.
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.6rem, 6vw, 4.5rem) clamp(2.4rem, 5vw, 4rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__copy { display: grid; gap: 1.15rem; justify-items: start; }

.hero h1 { max-width: 15ch; }

.hero__sub { font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 52ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  padding-top: .4rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(72, 206, 158, .8);
}

/* --- Orbit composition --- */
.orbit {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

.orbit__ring {
  position: absolute;
  inset: 8%;
  border: 2px dashed rgba(51, 56, 64, 1);
  border-radius: 50%;
  animation: spin 42s linear infinite;
}
.orbit__ring--2 {
  inset: 20%;
  border-style: solid;
  border-color: rgba(49, 134, 208, .38);
  animation-direction: reverse;
  animation-duration: 30s;
}

.orbit__ring--3 {
  inset: 0;
  border: 2px solid rgba(49, 134, 208, .18);
  border-radius: 50%;
  animation: none;
}

.orbit__glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 134, 208, .32), transparent 68%);
  filter: blur(6px);
}

.orbit__moon {
  position: relative;
  width: min(52%, 220px);
  height: auto;
  transform: none;
  filter: drop-shadow(0 0 34px rgba(126, 188, 238, .5));
  animation: float 7s ease-in-out infinite;
}

/* Moon tilt applies on the hero art too — rotate only. */
.orbit:hover .orbit__moon { animation-play-state: paused; transform: rotate(-7deg); }

.orbit__node {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue-300);
  border: 2px solid var(--ink);
  box-shadow: 0 0 14px rgba(126, 188, 238, .9);
}
.orbit__node--a { top: 6%; left: 50%; }
.orbit__node--b { bottom: 16%; left: 8%; background: var(--gold); box-shadow: 0 0 14px rgba(240, 176, 60, .8); }
.orbit__node--c { top: 38%; right: 4%; background: var(--mint); box-shadow: 0 0 14px rgba(72, 206, 158, .8); }

/* floating sticker cards over the orbit */
.hero-float {
  position: absolute;
  display: grid;
  gap: .1rem;
  padding: .7rem .9rem;
  background: var(--panel);
  border: var(--outline) solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  animation: float 6s ease-in-out infinite;
}
.hero-float strong { font-family: var(--font-display); font-size: .95rem; color: var(--text); letter-spacing: 0; }
.hero-float--a { top: 4%; left: -4%; animation-delay: -1.5s; border-color: var(--blue); }
.hero-float--b { bottom: 8%; right: -2%; animation-delay: -3.2s; }

/* --- Ticker --- */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 2px solid var(--line);
  background: var(--ink-soft);
  padding-block: .55rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: slide 32s linear infinite;
}
.ticker__track span {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__track span::after { content: "◆"; margin-left: 2.5rem; color: var(--blue); }

/* ==========================================================================
   STEPS (numbered process)
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }

/* Badge occupies column 1; every real child stacks in column 2.
   The badge is generated content, so it must be pinned explicitly —
   otherwise the heading auto-places into a collapsed second track and
   escapes the card. */
.step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: .3rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  background: var(--panel);
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-hard-sm);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  background: var(--blue-300);
  border: var(--outline) solid var(--ink);
  border-radius: 12px;
  transform: rotate(-3deg);
}

/* Keep content in the text column and let it shrink/wrap instead of
   pushing a track to zero or overflowing the card. */
.step > h3,
.step > p,
.step > div {
  grid-column: 2;
  min-width: 0;
}

/* rewards.html supplies its own visible number span. Render that as the badge
   and suppress only the *generated* duplicate, so "01" is never printed twice
   and no real text is hidden. */
.step:has(> .step__num)::before { content: none; }

.step > .step__num {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  background: var(--blue-300);
  border: var(--outline) solid var(--ink);
  border-radius: 12px;
  transform: rotate(-3deg);
}

.step h3 { margin-bottom: .2rem; }
.step p { font-size: .92rem; }

/* ==========================================================================
   TABLES (responsive -> stacked)
   ========================================================================== */
.table-wrap {
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }

.table caption {
  padding: .9rem 1.1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}

.table th,
.table td {
  padding: .8rem 1.1rem;
  text-align: left;
  border-bottom: 2px solid rgba(51, 56, 64, .6);
  vertical-align: middle;
}

.table thead th {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--ink-soft);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(49, 134, 208, .07); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.amount { font-family: var(--font-mono); font-weight: 700; }
.amount--in { color: var(--mint); }
.amount--out { color: var(--gold); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { display: grid; gap: .35rem; }
.field + .field { margin-top: .9rem; }

.field label,
.label {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: .72rem .85rem;
  background: var(--ink-soft);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.input::placeholder, .textarea::placeholder { color: #6D7C93; }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 134, 208, .25);
}

.textarea { min-height: 130px; resize: vertical; }

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.help { font-size: .78rem; color: var(--muted); }

.form-status {
  margin-top: .9rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-s);
  border: 2px solid var(--line);
  background: var(--ink-soft);
  font-size: .87rem;
  display: none;
}
.form-status.is-shown { display: block; }
.form-status[data-tone="error"] { border-color: var(--coral); color: #F8B4A9; }
.form-status[data-tone="ok"] { border-color: var(--mint); color: #9BEBD0; }
.form-status[data-tone="info"] { border-color: var(--blue); color: var(--blue-100); }

/* ==========================================================================
   EMPTY / CONNECTION STATES
   ========================================================================== */
.state {
  display: grid;
  gap: .6rem;
  justify-items: start;
  padding: 1.6rem;
  background: var(--ink-soft);
  border: 2px dashed var(--line);
  border-radius: var(--radius-m);
}
.state__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(49, 134, 208, .16);
  border: 2px solid var(--blue);
  color: var(--blue-300);
  font-family: var(--font-mono);
  font-weight: 700;
}
.state h3 { text-transform: none; letter-spacing: 0; }
.state p { font-size: .9rem; max-width: 60ch; }

/* ==========================================================================
   ACCORDION (native details)
   ========================================================================== */
.acc {
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
}
.acc + .acc { margin-top: .75rem; }

.acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  list-style: none;
}
.acc > summary::-webkit-details-marker { display: none; }

.acc > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--ink-soft);
  border: 2px solid var(--line);
  color: var(--blue-300);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.acc[open] > summary::after { content: "−"; background: var(--blue); color: #fff; border-color: var(--ink); }

.acc > summary:hover { background: rgba(49, 134, 208, .08); }

.acc__body { padding: 0 1.15rem 1.15rem; }
.acc__body p { font-size: .93rem; }

/* ==========================================================================
   OFFER / REWARD / LEADERBOARD COMPONENTS
   ========================================================================== */
.offer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-hard-sm);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.offer-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.offer-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(49, 134, 208, .16);
  border: 2px solid var(--blue);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-300);
  text-transform: uppercase;
}

.offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.reward-card { display: grid; gap: .7rem; align-content: start; }

.reward-card__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-s);
  border: 2px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(49, 134, 208, .12) 0 10px, transparent 10px 20px),
    var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blue-300);
  text-transform: uppercase;
}

.reward-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-top: .6rem;
  border-top: 2px solid rgba(51, 56, 64, .7);
}

.cost {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cost small { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

/* leaderboard */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; align-items: end; }

.podium__item {
  display: grid;
  gap: .4rem;
  justify-items: center;
  padding: 1.1rem .9rem;
  background: var(--panel);
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-m) var(--radius-m) 8px 8px;
  box-shadow: var(--shadow-hard-sm);
  text-align: center;
}
.podium__item--1 { border-color: var(--gold); padding-block: 1.5rem; box-shadow: 0 0 0 1px rgba(240, 176, 60, .4), var(--shadow-hard-sm); }
.podium__item--2 { border-color: var(--muted); }
.podium__item--3 { border-color: #A9793F; }

.podium__rank {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-300);
}
.podium__item--1 .podium__rank { color: var(--gold); }
.podium__name { font-weight: 700; color: var(--text); font-size: .95rem; word-break: break-word; }
.podium__score { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.lb-list { display: grid; gap: .5rem; }

.lb-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: center;
  padding: .7rem .95rem;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 12px;
}
.lb-row--you { border-color: var(--blue); background: rgba(49, 134, 208, .1); }
.lb-row__rank { font-family: var(--font-mono); font-weight: 700; color: var(--blue-300); }
.lb-row__name { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row__score { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }

/* referral link box */
.copybox {
  display: flex;
  gap: .5rem;
  align-items: stretch;
  padding: .5rem;
  background: var(--ink-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
}
.copybox input {
  flex: 1 1 auto;
  min-width: 0;
  padding: .5rem .6rem;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .82rem;
}
.copybox input:focus { outline: none; }

/* tabs / filters */
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; }

.tab {
  padding: .48rem .9rem;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--blue); }
.tab[aria-pressed="true"] { background: var(--blue); border-color: var(--ink); color: #fff; }

/* ==========================================================================
   PROSE (legal pages)
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 1.1rem;
  background: var(--panel);
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-hard-sm);
}
.toc ol { display: grid; gap: .35rem; counter-reset: toc; }
.toc a {
  display: block;
  padding: .3rem .35rem;
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
  border-radius: 6px;
  border-left: 3px solid transparent;
}
.toc a:hover { color: var(--text); border-left-color: var(--blue); background: rgba(49, 134, 208, .1); }

/* FAQ: sticky quick-jump rail + grouped accordions */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.faq-group {
  font-family: var(--font-display);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue-300);
  padding-bottom: .55rem;
  border-bottom: 2px dashed var(--line);
  scroll-margin-top: 100px;
}
.faq-group:not(:first-child) { margin-top: 1.6rem; }

/* Wider page-head for split headers */
.page-head__inner--wide { max-width: 108ch; }
.split--head { align-items: start; }
.card--stat-inline { align-content: start; }

@media (max-width: 1000px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
}

.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-top: 2.2rem;
  margin-bottom: .7rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--line);
  scroll-margin-top: 100px;
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { margin-top: 1.4rem; margin-bottom: .4rem; text-transform: none; letter-spacing: 0; }
.prose p, .prose li { color: var(--muted); font-size: .95rem; }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: .45rem; margin-top: .6rem; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--text); }
.prose a { color: var(--blue-300); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.2rem, 4vw, 3rem);
  background:
    repeating-linear-gradient(135deg, rgba(11, 13, 17, .5) 0 14px, transparent 14px 28px),
    linear-gradient(120deg, var(--blue-700), var(--blue) 55%, var(--blue-400));
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard-lg);
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.cta-band h2 { color: #fff; text-shadow: 3px 3px 0 rgba(11, 13, 17, .45); }
.cta-band p { color: #EAF4FD; max-width: 56ch; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--ink); --btn-edge: #C6D8E9; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding-top: clamp(2.2rem, 5vw, 3.4rem);
  border-top: var(--outline) solid var(--line);
  background: var(--ink-soft);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 24px, transparent 24px 48px);
  opacity: .5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand { display: grid; gap: .8rem; align-content: start; }
.footer-brand p { font-size: .88rem; max-width: 36ch; }

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: .8rem;
}
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a {
  color: var(--text);
  font-size: .88rem;
  text-decoration: none;
  opacity: .85;
  transition: opacity var(--speed) var(--ease), color var(--speed) var(--ease);
}
.footer-col a:hover { opacity: 1; color: var(--blue-300); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  border-top: 2px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue-300); }

/* ==========================================================================
   DIALOG (connect account / confirmations)
   ========================================================================== */
dialog.modal {
  width: min(100% - 2rem, 520px);
  padding: 0;
  background: var(--panel);
  color: var(--text);
  border: var(--outline) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-hard-lg);
}
dialog.modal::backdrop {
  background: rgba(11, 13, 17, .78);
  backdrop-filter: blur(3px);
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem .6rem;
}
.modal__body { padding: .4rem 1.3rem 1.3rem; display: grid; gap: .8rem; }
.modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0 1.3rem 1.3rem;
}

.modal__close {
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 8px;
  width: 32px; height: 32px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.modal__close:hover { color: var(--text); border-color: var(--blue); }

.checklist { display: grid; gap: .55rem; }
.checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .6rem;
  font-size: .9rem;
  color: var(--muted);
}
.checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(72, 206, 158, .16);
  border: 2px solid rgba(72, 206, 158, .5);
  color: #9BEBD0;
  font-size: .72rem;
  line-height: 1;
}

/* ==========================================================================
   ANIMATION
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-dock { display: none; }
  .nav-toggle { display: inline-flex; }
  .account-slot { margin-left: auto; }
  .navbar { gap: .7rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .orbit { max-width: 380px; order: -1; }
  .hero h1 { max-width: 20ch; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .podium__item--1 { order: -1; }
  .offer-card { grid-template-columns: auto minmax(0, 1fr); }
  .offer-card > .btn { grid-column: 1 / -1; width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .brand__word { font-size: 1rem; }
  .account-slot .btn { padding: .62rem .95rem; font-size: .72rem; }
  .hero-float { display: none; }
  .card { padding: 1.15rem; }
  .site-header .account-slot .btn__long { display: none; }
}

@media (max-width: 560px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr {
    padding: .9rem 1rem;
    border-bottom: 2px solid var(--line);
  }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .3rem 0;
    border: 0;
    text-align: right;
  }
  .table--stack td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    flex: 0 0 auto;
  }
  .table--stack td.num { text-align: right; }
  .lb-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: .6rem; font-size: .85rem; }
  .copybox { flex-wrap: wrap; }
  .copybox .btn { width: 100%; }
  .modal__foot .btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orbit__ring, .ticker__track, .orbit__moon, .hero-float { animation: none !important; }
  .brand:hover .brand__moon img,
  .brand:focus-visible .brand__moon img,
  .brand__moon:hover img,
  .orbit:hover .orbit__moon { transform: rotate(-6deg); }
}
