/* ─────────────────────────────────────────────────────────────
   Suinance · design system (static HTML edition)
   Grid paper, heavy black ink, highlighter yellow.
   Every component reads the tokens below. Never hard-code colours.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #ffffff;
  --grid: #efefef;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #5b5b5b;
  --line: #e4e4e4;
  --yellow: #ffe11a;
  --yellow-2: #ffd400;
  --yellow-soft: #fff6b3;
  --yellow-wash: #fffbe0;
  --success: #12804a;
  --success-soft: #e3f6ec;
  --danger: #c2183c;
  --danger-soft: #fde8ec;
  --shadow-c: #111111;
  --glow: 0.6;
  --radius: 14px;
  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0b0b0c;
  --grid: #1a1a1c;
  --ink: #f3f3f1;
  --ink-2: #d9d9d6;
  --muted: #a3a3a0;
  --line: #2a2a2d;
  --yellow-soft: #2b260c;
  --yellow-wash: #141309;
  --success: #4ad48c;
  --success-soft: #0f2a1d;
  --danger: #ff6b86;
  --danger-soft: #331018;
  --shadow-c: #ffd400;
  --glow: 0.22;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0b0c;
    --grid: #1a1a1c;
    --ink: #f3f3f1;
    --ink-2: #d9d9d6;
    --muted: #a3a3a0;
    --line: #2a2a2d;
    --yellow-soft: #2b260c;
    --yellow-wash: #141309;
    --success: #4ad48c;
    --success-soft: #0f2a1d;
    --danger: #ff6b86;
    --danger-soft: #331018;
    --shadow-c: #ffd400;
    --glow: 0.22;
    color-scheme: dark;
  }
}

/* Panels that keep a dark ink background in both themes. */
.surface-dark {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #5b5b5b;
  --line: #e4e4e4;
  --yellow-soft: #fff6b3;
  --yellow-wash: #fffbe0;
  --success: #12804a;
  --success-soft: #e3f6ec;
  --danger: #c2183c;
  --danger-soft: #fde8ec;
  --shadow-c: #ffd400;
  background: var(--ink);
  color: var(--paper);
  color-scheme: light;
}
:root[data-theme="dark"] .surface-dark { --ink: #18181a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .surface-dark { --ink: #18181a; } }

/* Solid yellow surfaces always carry black text. */
.on-yellow,
.highlight {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #3d3d3d;
  --line: rgb(17 17 17 / 0.16);
  --shadow-c: #111111;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; border-color: var(--line); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--yellow); color: #111; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.grid > *, .stack > *, .split > *, .page-hero-inner > *, .heading > *, .form-card > *, .card > * { min-width: 0; }

/* ───────── Layout ───────── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
.section { padding: 80px 0; }
@media (min-width: 640px) { .section { padding: 112px 0; } }
.section.pt-0 { padding-top: 0; }
.stack { display: grid; gap: var(--gap, 24px); align-content: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.grid { display: grid; gap: var(--gap, 20px); }
.cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
.cols-2-sm { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cols-2, .cols-4 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
  .split.even { grid-template-columns: 1fr 1fr; }
  .split.hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.border-y { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.border-t { border-top: 1.5px solid var(--ink); }
.bg-wash { background: var(--yellow-wash); }
.bg-yellow { background: var(--yellow); color: #111; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ───────── Type ───────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--yellow-2); box-shadow: 0 0 0 1.5px var(--ink); }
.surface-dark .eyebrow { color: rgb(255 255 255 / 0.6); }
.heading { display: grid; gap: 16px; align-content: start; }
.heading h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.heading p { max-width: 62ch; font-size: 17px; color: var(--muted); }
.surface-dark .heading p { color: rgb(255 255 255 / 0.7); }
.display { font-size: clamp(38px, 5vw, 66px); font-weight: 800; line-height: 1.02; }
.lead { max-width: 52ch; font-size: 17px; color: var(--muted); }
@media (min-width: 640px) { .lead { font-size: 18px; } }
.big-num { font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: clamp(28px, 3.6vw, 44px); }
.text-yellow { color: var(--yellow); }
.highlight { position: relative; z-index: 0; white-space: nowrap; color: #111; }
.highlight::before { content: ""; position: absolute; z-index: -1; inset: 0.2em -0.12em 0.02em -0.08em; background: var(--yellow); transform: rotate(-1.4deg) skewX(-8deg); border-radius: 3px 8px 4px 10px; }
.underline-yellow { box-shadow: inset 0 -0.38em 0 var(--yellow); }
:root[data-theme="dark"] .underline-yellow { box-shadow: inset 0 -0.38em 0 rgb(255 225 26 / 0.45); }
.prose { display: grid; gap: 20px; font-size: 17px; }

/* ───────── Buttons ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 500; font-size: 15px; white-space: nowrap; user-select: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg.arrow-up { transform: translate(2px, -2px); }
.btn:hover svg.arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(17 17 17 / 0.6); }
.btn-outline { background: var(--paper); color: var(--ink); }
.btn-outline:hover { background: var(--yellow-soft); }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: rgb(127 127 127 / 0.1); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 99px; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font-weight: 500; width: fit-content; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.underline { text-decoration: underline; text-underline-offset: 4px; }

/* ───────── Header ───────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px 12px 0; transition: transform 0.35s var(--ease); }
@media (min-width: 640px) { .site-header { padding: 12px 20px 0; } }
.site-header.is-hidden { transform: translateY(-110px); }
.nav-shell {
  max-width: 1240px; margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 12px 0 16px; border-radius: 16px; border: 1.5px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled .nav-shell { background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--ink); box-shadow: 4px 4px 0 0 var(--shadow-c); }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand svg { height: 30px; width: auto; }
.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgb(127 127 127 / 0.08); }
.nav-links a[aria-current="page"] { color: #111; background: var(--yellow); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); transition: background-color 0.2s, transform 0.2s; }
.icon-btn:hover { background: var(--yellow-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.hide-sm { display: none !important; }
@media (min-width: 640px) { .hide-sm { display: inline-flex !important; } }
.menu-btn { display: grid; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; padding: 96px 24px 40px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--paper); clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden;
  transition: clip-path 0.55s var(--ease), visibility 0s linear 0.55s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path 0.55s var(--ease); }
.mobile-menu a.m-link { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 30px; opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.mobile-menu.is-open a.m-link { opacity: 1; transform: none; }
.mobile-menu a.m-link span.n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mobile-menu a.m-link[aria-current="page"] .t { box-shadow: inset 0 -0.38em 0 var(--yellow); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ───────── Home hero ───────── */
.home-hero { position: relative; overflow: hidden; padding-top: 112px; }
@media (min-width: 640px) { .home-hero { padding-top: 128px; } }
.bg-grid { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.bg-grid-fade { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 70%, transparent); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hex-dot { width: 10px; height: 10px; }

/* 3D logo coin: stacked layers give real depth, the stage tilts with the pointer */
.coin-stage { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; perspective: 1100px; }
@media (min-width: 640px) { .coin-stage { max-width: 440px; } }
.coin-stage::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, var(--yellow) 0%, transparent 65%); opacity: var(--glow); filter: blur(30px); }
.coin { position: absolute; inset: 14%; transform-style: preserve-3d; animation: coin-spin 14s linear infinite; }
.coin-stage.is-tilting .coin { animation-play-state: paused; }
.coin svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.coin .layer { color: #8a6400; }
.coin .face { color: var(--yellow-2); filter: drop-shadow(0 0 0 #111); }
.coin .face .ink { fill: #111; }
@keyframes coin-spin { from { transform: rotateY(0deg) rotateX(8deg); } to { transform: rotateY(360deg) rotateX(8deg); } }
.coin-shadow { position: absolute; left: 22%; right: 22%; bottom: 4%; height: 8%; border-radius: 50%; background: radial-gradient(ellipse, rgb(0 0 0 / 0.28), transparent 70%); }
.orbit-hex { position: absolute; animation: floaty 6s ease-in-out infinite; }

/* ───────── Live stats ───────── */
.stats { overflow: hidden; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats-grid > div { display: grid; gap: 6px; padding: 20px; border-color: color-mix(in srgb, var(--ink) 10%, transparent); }
.stats-grid > div:nth-child(odd) { border-right: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid > div { padding: 24px; border: 0 !important; }
  .stats-grid > div + div { border-left: 1px solid color-mix(in srgb, var(--ink) 10%, transparent) !important; }
}
.stats-grid .v { font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: clamp(24px, 3vw, 34px); }
.stats-grid .l { font-size: 13px; color: var(--muted); }
.stats-foot { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); background: var(--yellow-wash); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ping { position: relative; width: 8px; height: 8px; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 99px; background: var(--success); }
.ping::before { animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.6; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.skeleton { display: inline-block; min-width: 3ch; height: 0.9em; border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--yellow-wash), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────── Cards ───────── */
.card { display: grid; align-content: start; gap: 16px; height: 100%; padding: 28px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--paper); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.card.sm { padding: 20px; gap: 12px; }
.card.hoverable:hover { box-shadow: 4px 4px 0 0 var(--shadow-c); }
.card h3 { font-size: 22px; font-weight: 700; }
.card p { color: var(--muted); }
.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid #111; background: var(--yellow); color: #111; transition: transform 0.3s var(--ease); }
.icon-tile svg { width: 20px; height: 20px; }
.card:hover .icon-tile { transform: rotate(-6deg); }
.tilt { transform-style: preserve-3d; transition: transform 0.25s var(--ease); will-change: transform; }
.dark-card { display: grid; align-content: start; gap: 12px; height: 100%; padding: 24px; border-radius: var(--radius); border: 1.5px solid rgb(255 255 255 / 0.2); transition: border-color 0.25s; }
.dark-card:hover { border-color: var(--yellow); }
.dark-card .note { font-size: 13px; color: rgb(255 255 255 / 0.6); }
.dark-card p { color: rgb(255 255 255 / 0.7); font-size: 15px; }
.fact { display: grid; gap: 8px; height: 100%; padding: 24px; border-radius: var(--radius); border: 1.5px solid var(--ink); }
.fact .l { font-size: 14px; color: var(--muted); }

/* ───────── Steps ───────── */
.steps { position: relative; display: grid; gap: 40px; padding-left: 56px; }
.steps::before, .steps .progress { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps .progress { background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.steps li { position: relative; display: grid; gap: 12px; align-content: start; }
.steps .num { position: absolute; left: -56px; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; border: 1.5px solid #111; background: var(--yellow); color: #111; font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { font-size: 15px; color: var(--muted); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 64px 0 0; }
  .steps::before, .steps .progress { left: 0; right: 0; top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps .progress { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .steps .num { left: 0; top: -64px; }
}

/* ───────── Page hero (banner) ───────── */
.page-hero { padding: 96px 12px 0; }
@media (min-width: 640px) { .page-hero { padding: 112px 20px 0; } }
.page-hero-frame { position: relative; max-width: 1240px; margin: 0 auto; overflow: hidden; border-radius: 28px; border: 1.5px solid var(--ink); background: var(--yellow-wash); }
.page-hero-inner { position: relative; display: grid; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 640px) { .page-hero-inner { padding-top: 80px; padding-bottom: 80px; } }
.page-hero.compact .page-hero-inner { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 1024px) {
  .page-hero.has-aside .page-hero-inner { grid-template-columns: 1.05fr 0.95fr; min-height: 480px; }
}
.page-hero h1 { font-weight: 800; line-height: 1.05; font-size: clamp(34px, 4.6vw, 58px); }
.page-hero.compact h1 { font-size: clamp(32px, 4.2vw, 52px); }
.page-hero .desc { max-width: 56ch; font-size: 17px; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.crumbs { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.crumbs svg { width: 12px; height: 12px; }
.backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.backdrop .grid-layer { position: absolute; inset: 0; opacity: 0.7; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%); }
.glow { position: absolute; border-radius: 50%; filter: blur(40px); }
.glow.a { left: -10%; top: -30%; width: 520px; height: 520px; background: radial-gradient(circle, var(--yellow) 0%, transparent 65%); opacity: var(--glow); animation: drift-a 18s ease-in-out infinite; }
.glow.b { right: -5%; bottom: -40%; width: 460px; height: 460px; background: radial-gradient(circle, var(--yellow-2) 0%, transparent 60%); opacity: calc(var(--glow) * 0.7); animation: drift-b 22s ease-in-out infinite; }
@keyframes drift-a { 50% { transform: translate(80px, 40px); } }
@keyframes drift-b { 50% { transform: translate(-60px, -30px); } }
.backdrop .mark { position: absolute; right: -64px; bottom: -96px; height: 420px; width: auto; color: var(--ink); opacity: 0.045; transform: rotate(-8deg); }
@media (min-width: 640px) { .backdrop .mark { height: 520px; right: -40px; } }
.backdrop .slashes { position: absolute; right: 4%; top: 6%; width: 176px; display: none; }
@media (min-width: 768px) { .backdrop .slashes { display: block; } }
.backdrop .slashes path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 0.8s var(--ease) forwards; }
.backdrop .slashes path:nth-child(2) { animation-delay: 0.12s; } .backdrop .slashes path:nth-child(3) { animation-delay: 0.24s; } .backdrop .slashes path:nth-child(4) { animation-delay: 0.36s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.floater { position: absolute; display: none; animation: floaty 6s ease-in-out infinite; }
@media (min-width: 640px) { .floater { display: block; } }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(12deg); } }
.ticker { position: relative; overflow: hidden; border-top: 1.5px solid var(--ink); padding: 12px 0; }
.ticker-track { display: flex; width: max-content; gap: 40px; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; animation: marquee 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 40px; }
.ticker-track svg { width: 10px; height: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chapter-nav { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 8px 16px 0; scrollbar-width: none; }
.chapter-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .chapter-nav { flex-wrap: wrap; overflow: visible; } }
.pill { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); font-size: 14px; transition: background-color 0.2s; }
.pill:hover, .pill[aria-pressed="true"] { background: var(--yellow); color: #111; }
.pill .n { margin-right: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* Hero illustration panels */
.visual { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.panel { border-radius: 24px; border: 1.5px solid var(--ink); background: var(--paper); padding: 20px; box-shadow: 4px 4px 0 0 var(--shadow-c); animation: floaty-sm 6s ease-in-out infinite; }
@keyframes floaty-sm { 50% { transform: translateY(-8px); } }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.flow .node { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 11px; line-height: 1.2; color: var(--muted); }
.flow .node span.box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; border: 1.5px solid #111; background: var(--yellow); color: #111; }
.flow .node span.box.dark { background: #18181a; color: var(--yellow); }
.flow .node svg { width: 20px; height: 20px; }
.flow .wire { position: relative; margin-bottom: 20px; width: 28px; height: 2px; background: color-mix(in srgb, var(--ink) 20%, transparent); }
@media (min-width: 640px) { .flow .wire { width: 40px; } }
.flow .wire::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 99px; background: var(--ink); animation: wire 1.6s ease-in-out infinite; }
.flow .wire.b::after { animation-delay: 0.8s; }
@keyframes wire { 0% { left: 0; opacity: 0; } 50% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; opacity: 0; animation: slide-in 0.5s var(--ease) forwards; }
.check-row .ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: #18181a; color: var(--yellow); }
.check-row .ok svg { width: 12px; height: 12px; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.tile { border-radius: 12px; padding: 12px; }
.tile .l { display: block; font-size: 11px; color: var(--muted); }
.tile .v { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--success-soft); color: var(--success); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--success); }
.float-card { position: absolute; }
@media (max-width: 520px) {
  .visual .float-card:nth-child(1) { width: 74% !important; }
  .visual .float-card:nth-child(2) { width: 66% !important; top: 30% !important; }
  .visual .float-card:nth-child(3) { width: 96% !important; left: 0 !important; }
}

/* ───────── Badges ───────── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; border: 1px solid transparent; }
.badge.yellow { background: var(--yellow); color: #111; }
.badge.success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.badge.neutral { background: var(--yellow-wash); color: var(--muted); border-color: var(--line); }

/* ───────── Accordion ───────── */
.accordion { border-top: 1.5px solid var(--ink); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
@media (min-width: 640px) { .accordion summary { font-size: 18px; } }
.accordion summary::-webkit-details-marker { display: none; }
.accordion .plus { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; border: 1.5px solid var(--ink); transition: transform 0.3s var(--ease), background-color 0.2s; }
.accordion .plus svg { width: 14px; height: 14px; }
.accordion details[open] .plus { transform: rotate(45deg); background: var(--yellow); color: #111; }
.accordion .answer { padding: 0 48px 20px 0; color: var(--muted); animation: fade-down 0.35s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
.group-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }

/* ───────── CTA ───────── */
.cta-wrap { padding: 0 12px 64px; }
@media (min-width: 640px) { .cta-wrap { padding: 0 20px 64px; } }
.cta { position: relative; max-width: 1240px; margin: 0 auto; display: grid; gap: 32px; overflow: hidden; border-radius: 28px; border: 1.5px solid #111; background: var(--yellow); color: #111; padding: 56px 24px; }
@media (min-width: 640px) { .cta { padding: 80px 48px; } }
@media (min-width: 1024px) { .cta { grid-template-columns: 1.4fr 1fr; align-items: center; } .cta .actions { justify-content: flex-end; } }
.cta .bg-grid { position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: multiply; --grid: #e8cf00; }
.cta h2 { position: relative; font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
.cta p { position: relative; max-width: 46ch; font-size: 18px; color: rgb(17 17 17 / 0.75); }
.cta .actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-primary { background: #111; color: #fff; border-color: #111; }
.cta .btn-outline { background: #fff; color: #111; border-color: #111; }

/* ───────── Network canvas ───────── */
.network { width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto; }

/* ───────── Table ───────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 44px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--ink); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
thead th { position: sticky; top: 0; padding: 14px 16px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap; }
thead th button { display: inline-flex; align-items: center; gap: 4px; text-transform: inherit; letter-spacing: inherit; }
thead th button[aria-sort]::after { content: "↕"; opacity: 0.5; }
thead th button[aria-sort="descending"]::after { content: "↓"; opacity: 1; color: var(--yellow); }
thead th button[aria-sort="ascending"]::after { content: "↑"; opacity: 1; color: var(--yellow); }
tbody tr { border-top: 1px solid var(--line); transition: background-color 0.15s; }
tbody tr:hover { background: var(--yellow-wash); }
td { padding: 12px 16px; white-space: nowrap; }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.v-name { display: flex; align-items: center; gap: 12px; text-align: left; }
.v-name .t { font-weight: 500; }
.v-name small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); object-fit: cover; }
.avatar.fallback { display: grid; place-items: center; background: var(--yellow); color: #111; font-family: var(--font-display); font-weight: 700; font-size: 13px; border: 0; }
.compare-table th[scope="row"] { font-family: var(--font-display); font-weight: 700; padding: 16px 20px; }
.compare-table td { padding: 16px 20px; white-space: normal; }
.compare-table tr.is-sui { background: var(--yellow-wash); font-weight: 500; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgb(17 17 17 / 0.4); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 80; width: 100%; max-width: 448px; display: grid; align-content: start; gap: 24px; overflow-y: auto; padding: 24px; border-left: 1.5px solid var(--ink); background: var(--paper); transform: translateX(100%); transition: transform 0.45s var(--ease); }
@media (min-width: 640px) { .drawer { padding: 32px; } }
.drawer.is-open { transform: none; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kv > div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 0; font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ───────── Forms ───────── */
.field { display: grid; align-content: start; gap: 6px; }
.field label, .label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; }
.field .opt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { height: auto; padding: 12px 16px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hint { font-size: 13px; color: var(--muted); }
.error { font-size: 13px; color: var(--danger); }
.pw-wrap, .prefix-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 99px; color: var(--muted); }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 18px; height: 18px; }
.prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 15px; color: var(--muted); pointer-events: none; }
.prefix-wrap .input { padding-left: 100px; }
.strength { display: grid; gap: 6px; margin-top: -8px; }
.strength .bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength .bars span { height: 4px; border-radius: 99px; background: var(--line); transition: background-color 0.3s; }
.strength .bars span.on { background: var(--ink); }
.strength.s4 .bars span.on { background: var(--success); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); }
.check input { margin-top: 2px; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.alert { display: flex; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.alert.danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert.success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert.info { background: var(--yellow-wash); color: var(--ink); border-color: var(--line); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { height: 56px; text-align: center; font-family: var(--font-mono); font-size: 22px; padding: 0; }
.form-card { display: grid; gap: 20px; padding: 24px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--paper); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-card.shadow { box-shadow: 4px 4px 0 0 var(--shadow-c); }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Program checks list */
.checks { display: grid; gap: 8px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.checks .ic { flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; color: #fff; }
.checks .ic svg { width: 14px; height: 14px; }
.checks .pass .ic { background: var(--success); }
.checks .fail .ic { background: var(--danger); }
.checks .manual .ic { background: var(--line); color: var(--ink); }
.checks .t { font-weight: 500; }
.checks .d { font-size: 14px; color: var(--muted); }
.results { display: grid; gap: 4px; margin-top: -8px; }
.results button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; transition: background-color 0.15s; }
.results button:hover, .results button:focus-visible { background: var(--yellow-wash); }

/* ───────── Auth layout ───────── */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 1024px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-side { position: relative; display: none; overflow: hidden; padding: 40px; }
@media (min-width: 1024px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-side .brand svg { height: 32px; }
.auth-side h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; max-width: 16ch; }
.auth-main { display: flex; flex-direction: column; padding: 20px 16px 40px; }
@media (min-width: 640px) { .auth-main { padding: 24px 40px 48px; } }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-top .brand svg { height: 28px; }
.auth-body { flex: 1; display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 440px; display: grid; gap: 24px; }
.auth-card h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.auth-card .center-link { text-align: center; font-size: 15px; color: var(--muted); }
.auth-card .center-link a { font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) { .auth-top .brand { visibility: hidden; } }

/* ───────── Legal ───────── */
.legal { max-width: 760px; }
.legal section { display: grid; gap: 12px; padding: 32px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 24px; font-weight: 700; }
.legal p, .legal li { color: var(--muted); }
.legal ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }

/* ───────── Learn widgets ───────── */
.seg { display: inline-flex; width: fit-content; padding: 4px; border-radius: 999px; border: 1.5px solid var(--ink); }
.seg button { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.lanes { display: grid; align-content: center; gap: 12px; height: 192px; overflow: hidden; padding: 16px; border-radius: 12px; background: var(--yellow-wash); }
.lane { position: relative; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--paper) 80%, transparent); overflow: hidden; }
.lane i { position: absolute; top: 4px; left: -10%; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--yellow); animation: lane var(--d, 2.4s) linear infinite; animation-delay: var(--delay, 0s); }
.lane.acct i { background: color-mix(in srgb, var(--ink) 80%, transparent); }
@keyframes lane { from { left: -10%; } to { left: 105%; } }
.dag .scroll svg { width: 100%; min-width: 520px; height: auto; }
.dag .scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.dag line { stroke: var(--ink); stroke-opacity: 0.22; stroke-width: 1.3; }
.dag rect { stroke: var(--ink); stroke-width: 1.5; fill: var(--paper); transition: fill 0.4s; }
.dag rect.on { fill: color-mix(in srgb, var(--ink) 12%, var(--paper)); }
.dag rect.leader { fill: var(--yellow-2); }
.dag rect.done { fill: var(--ink); }
.dag text { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.donut-wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) { .donut-wrap { grid-template-columns: 300px 1fr; } }
.donut { width: 100%; max-width: 300px; margin: 0 auto; }
.donut path { cursor: pointer; transition: transform 0.3s var(--ease), opacity 0.3s; transform-origin: 150px 150px; stroke: var(--paper); stroke-width: 2; }
.donut path.dim { opacity: 0.35; }
.donut path.active { transform: scale(1.04); }
.legend button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; text-align: left; transition: background-color 0.2s, border-color 0.2s; }
.legend button[aria-pressed="true"] { background: var(--yellow-wash); border-color: var(--line); }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink); flex-shrink: 0; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.tab-panel { padding: 28px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--paper); display: grid; gap: 16px; animation: fade-down 0.35s var(--ease); }
.tab-panel ul { display: grid; gap: 10px; }
.tab-panel li { display: flex; gap: 10px; color: var(--muted); }
.tab-panel li::before { content: ""; flex-shrink: 0; margin-top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--yellow-2); box-shadow: 0 0 0 1.5px var(--ink); }
.tech-card { cursor: pointer; text-align: left; }
.tech-card .more { display: none; color: var(--muted); font-size: 15px; }
.tech-card[aria-expanded="true"] { background: var(--yellow-wash); }
.tech-card[aria-expanded="true"] .more { display: block; animation: fade-down 0.35s var(--ease); }
.tech-card .short { font-size: 15px; color: var(--muted); }
.founder .av { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 99px; font-family: var(--font-display); font-weight: 700; }
.role { width: fit-content; padding: 0 6px; border-radius: 4px; background: var(--yellow-soft); font-size: 12.5px; font-weight: 600; }

/* Ecosystem */
.eco-card { display: grid; align-content: start; gap: 16px; height: 100%; padding: 24px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--paper); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.eco-card:hover { transform: translateY(-4px); box-shadow: 4px 4px 0 0 var(--shadow-c); }
.eco-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.eco-card .letter { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid #111; background: var(--yellow); color: #111; font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.eco-card .cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.eco-card p { font-size: 15px; color: var(--muted); }
.eco-card svg.go { width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s; }
.eco-card:hover svg.go { transform: translate(2px, -2px); color: var(--ink); }
.eco-card.is-hidden { display: none; }
.orbit { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); animation: rot 60s linear infinite; }
.orbit .ring.inner { inset: 20%; animation-duration: 40s; animation-direction: reverse; }
.orbit .center { position: absolute; inset: 36%; display: grid; place-items: center; border-radius: 28px; border: 1.5px solid #111; background: #18181a; color: var(--yellow); box-shadow: 4px 4px 0 0 var(--shadow-c); }
.orbit .center svg { width: 55%; height: auto; }
.orbit .tag { position: absolute; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); font-size: 13px; font-weight: 500; white-space: nowrap; transform: translate(-50%, -50%); animation: rot-counter 60s linear infinite; }
.orbit .ring.inner .tag { animation-duration: 40s; animation-direction: reverse; background: var(--yellow); color: #111; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes rot-counter { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ───────── Footer ───────── */
.site-footer { position: relative; overflow: hidden; border-top: 1.5px solid var(--line); }
.footer-grid { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; padding-top: 80px; padding-bottom: 80px; } }
.site-footer .brand { color: var(--yellow); }
.site-footer .brand svg { height: 36px; }
.site-footer .about { max-width: 24rem; font-size: 15px; color: rgb(255 255 255 / 0.7); }
.site-footer .indep { max-width: 24rem; font-size: 13px; color: rgb(255 255 255 / 0.5); }
.f-nav { display: grid; align-content: start; gap: 12px; }
.f-nav .h { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: rgb(255 255 255 / 0.5); }
.f-nav a { width: fit-content; color: rgb(255 255 255 / 0.8); transition: color 0.2s; }
.f-nav a:hover { color: var(--yellow); }
.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; border: 1.5px solid rgb(255 255 255 / 0.25); color: rgb(255 255 255 / 0.8); transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s; }
.socials a:hover { transform: translateY(-2px); background: var(--yellow); border-color: var(--yellow); color: #111; }
.socials svg { width: 18px; height: 18px; }
.footer-word { color: rgb(255 255 255 / 0.06); pointer-events: none; user-select: none; }
.footer-word svg { width: 110%; max-width: none; height: auto; margin: 0 auto -3%; transform: translateX(-4.5%); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 13px; color: rgb(255 255 255 / 0.5); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ───────── Motion ───────── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); animation: word-up 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes word-up { to { transform: none; } }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; }
}

/* Backend additions: captcha picture on login / register / forgot password */
.captcha-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.captcha-row img{display:block;width:150px;height:48px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff)}
.captcha-field .input{text-transform:uppercase;letter-spacing:.3em;max-width:220px}
.hint.ok { color: var(--success, #1f9d6b); font-weight: 500; }
.hint.bad { color: var(--danger, #d6455d); font-weight: 500; }
.btn.is-busy { pointer-events: none; opacity: .85; }
.auth-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper, #fff); }
.auth-id small { display: block; font-size: 12px; color: var(--muted); }
.auth-id strong { font-family: var(--font-mono, monospace); font-size: 22px; letter-spacing: .06em; }
.auth-state { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.auth-state svg { width: 28px; height: 28px; }
.auth-state.ok { background: #e6f6ef; color: #1f9d6b; } .auth-state.fail { background: #fdecef; color: #d6455d; } .auth-state.warn { background: #fff6d6; color: #a07c00; }
.auth-rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.auth-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.auth-rows div:last-child { border-bottom: 0; }
.auth-rows span { color: var(--muted); } .auth-rows b { font-family: var(--font-mono, monospace); font-weight: 500; overflow-wrap: anywhere; text-align: right; }

/* Sponsor card on the sign-up form (assets/js/auth.js) */
.sp-card{display:flex;align-items:center;gap:12px;margin-top:10px;padding:10px 12px 10px 10px;border:1.5px solid var(--line);border-radius:14px;background:var(--paper,#fff);position:relative;overflow:hidden;animation:sp-in .45s var(--ease) both}
.sp-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--line)}
.sp-card.is-ok{border-color:color-mix(in srgb,var(--success) 45%,var(--line));background:linear-gradient(100deg,var(--success-soft) 0%,var(--paper,#fff) 70%)}
.sp-card.is-ok::before{background:linear-gradient(180deg,var(--yellow),var(--success))}
.sp-card.is-bad{border-color:color-mix(in srgb,var(--danger) 45%,var(--line));background:linear-gradient(100deg,var(--danger-soft) 0%,var(--paper,#fff) 70%)}
.sp-card.is-bad::before{background:var(--danger)}
.sp-av{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.02em;color:#111;background:linear-gradient(135deg,var(--yellow) 0%,var(--yellow-2) 55%,#ffb800 100%);box-shadow:0 6px 16px -8px rgba(255,190,0,.9),inset 0 1px 0 rgba(255,255,255,.6)}
.sp-av svg{width:20px;height:20px}
.sp-card.is-bad .sp-av{color:var(--danger);background:var(--danger-soft);box-shadow:none}
.sp-tx{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.sp-tx small{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.sp-tx b{font-family:var(--font-display);font-weight:600;font-size:16px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-tx em{font-style:normal;font-family:var(--font-mono);font-size:12px;color:var(--muted)}
.sp-badge{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:6px;padding:5px 10px 5px 6px;border-radius:999px;font-size:12px;font-weight:600;color:var(--success);background:var(--success-soft);border:1px solid color-mix(in srgb,var(--success) 30%,transparent)}
.sp-badge svg{width:16px;height:16px;padding:2px;border-radius:50%;color:#fff;background:var(--success)}
.sp-skel,.sp-skel-line{background:linear-gradient(90deg,var(--line) 0%,var(--grid) 50%,var(--line) 100%);background-size:200% 100%;animation:sp-shine 1.1s linear infinite;box-shadow:none}
.sp-skel-line{display:block;width:140px;height:12px;border-radius:6px;margin-top:6px}
@keyframes sp-shine{to{background-position:-200% 0}}
@keyframes sp-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (max-width:420px){.sp-badge span{display:none}.sp-badge{padding:5px}}
