/* megabrain.us — neon lounge. Black-violet ground, one hue lit as light, rounded and welcoming. */

@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url("assets/fonts/unbounded-latin.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; src: url("assets/fonts/martian-mono-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0b0813;
  --bg-2: #100c1c;
  --panel: #140f21;
  --panel-2: #1a1330;
  --line: rgba(192, 132, 252, 0.16);
  --line-2: rgba(192, 132, 252, 0.34);
  --text: #ece7ff;
  --text-2: #b3aad1;
  --text-3: #8a80a8;
  --violet: #a855f7;
  --violet-2: #c084fc;
  --violet-3: #7c3aed;
  --violet-deep: #3b1d6e;
  --glow: rgba(168, 85, 247, 0.55);
  --glow-soft: rgba(168, 85, 247, 0.22);
  --warn: #ffd166;

  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, Consolas, monospace;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;

  accent-color: var(--violet);
  scrollbar-color: var(--violet-deep) var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 500;
  font-variant-numeric: tabular-nums; caret-color: var(--violet-2);
  overflow-x: clip;
}
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 4px; border-radius: 6px; }
a { color: var(--violet-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.84em; background: rgba(192, 132, 252, 0.1); padding: 0.1em 0.4em; border-radius: 6px; color: var(--violet-2); }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; }
.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 { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-pill); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap > *, .join-grid > * { min-width: 0; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 6.6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; color: #f6f1ff; text-shadow: 0 0 2px #fff, 0 0 8px rgba(192, 132, 252, 0.9), 0 0 24px rgba(168, 85, 247, 0.7), 0 0 56px rgba(168, 85, 247, 0.45); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.015em; }
.lead { margin-top: 16px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 56ch; line-height: 1.55; }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.005em; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; border: 1px solid transparent; }
.pill-lit { color: #f3e8ff; background: rgba(168, 85, 247, 0.22); border-color: var(--violet-2); box-shadow: 0 0 22px -4px var(--glow); text-shadow: 0 0 10px var(--glow); }
.pill-dim { color: var(--text-2); background: rgba(255, 255, 255, 0.03); border-color: var(--line); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s; will-change: transform; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn-glow, .btn-glow:hover { color: #fff; }
.btn-glow { background: linear-gradient(135deg, var(--violet-3), #9333ea); box-shadow: 0 10px 40px -10px var(--glow); }
.btn-glow:hover { box-shadow: 0 18px 60px -12px var(--glow), 0 0 0 1px rgba(192, 132, 252, 0.5); transform: translateY(-2px); }
.btn-glow:hover svg { transform: translateX(4px); }
.btn-glow:active { transform: translateY(0) scale(0.98); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(168, 85, 247, 0.1); border-color: var(--violet-2); }
.btn-sm { padding: 11px 18px; font-size: 0.9rem; }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; }
.nav { position: relative; display: flex; align-items: center; gap: 24px; max-width: var(--wrap); margin-inline: auto; padding: 10px 12px 10px 16px; border-radius: var(--r-pill); background: rgba(16, 12, 28, 0.72); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.9); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.mark { width: 32px; height: 32px; filter: drop-shadow(0 0 10px var(--glow-soft)); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; padding: 9px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.94rem; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(168, 85, 247, 0.12); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; place-items: center; padding: 0; }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(48px, 6vw, 80px); text-align: center; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero-inner { max-width: 880px; margin-inline: auto; display: grid; justify-items: center; gap: 24px; }
.hero-line { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--text-2); letter-spacing: -0.005em; }
.rotator { position: relative; display: inline-grid; vertical-align: baseline; text-align: left; color: var(--violet-2); text-shadow: 0 0 2px rgba(255,255,255,0.6), 0 0 14px var(--glow), 0 0 32px var(--glow-soft); }
.rotator-word { grid-area: 1 / 1; justify-self: start; opacity: 0; transform: translateY(0.6em); filter: blur(6px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.5s var(--ease); white-space: nowrap; }
.rotator-word.is-on { opacity: 1; transform: none; filter: none; }
.rotator-word.is-off { opacity: 0; transform: translateY(-0.6em); filter: blur(6px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* split headline */
.display .w { display: inline-block; white-space: pre; }
.display.is-split .w { opacity: 0; transform: translateY(0.35em); filter: blur(10px); animation: word-in 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }

/* pipeline */
.pipeline-wrap { position: relative; max-width: 880px; margin: clamp(48px, 7vw, 96px) auto 0; padding: 22px clamp(12px, 3vw, 32px) 20px; border-radius: var(--r-lg); background: rgba(20, 15, 33, 0.7); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; z-index: 1; }
.rail { position: absolute; left: 10%; width: 80%; top: calc(22px + 26px - 1px); height: 2px; overflow: visible; }
.rail line { stroke: var(--line-2); stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke 0.6s, filter 0.6s; }
.pipeline-wrap.is-charged .rail line { stroke: var(--violet-2); filter: drop-shadow(0 0 6px var(--violet)) drop-shadow(0 0 16px var(--glow)); }
.pipeline li { display: grid; justify-items: center; gap: 12px; }
.node { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); transition: color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pipeline li.is-lit .node { color: #fff; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18), 0 0 28px var(--glow); transform: scale(1.06); }
.node-t { font-family: var(--display); font-weight: 500; font-size: 0.82rem; color: var(--text-2); transition: color 0.3s; }
.pipeline li.is-lit .node-t { color: var(--text); }
.pulse { position: absolute; top: calc(22px + 26px); left: 10%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle, #fff 0 20%, var(--violet-2) 45%, transparent 70%); filter: blur(1px) drop-shadow(0 0 14px var(--violet)); opacity: 0; pointer-events: none; }
.pulse.is-running { animation: pulse-run 6s var(--ease) infinite; }
@keyframes pulse-run { 0% { left: 10%; opacity: 0; } 4% { opacity: 1; } 92% { left: 90%; opacity: 1; } 100% { left: 90%; opacity: 0; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section .wrap > .h2 + .lead { margin-bottom: clamp(36px, 5vw, 56px); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* versus */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.vs-card { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.vs-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.14), transparent 45%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.vs-card:hover::before { opacity: 1; }
.vs-card h3 { font-size: 1.2rem; margin-bottom: 18px; }
.vs-card ul { list-style: none; display: grid; gap: 12px; }
.vs-card li { position: relative; padding-left: 28px; font-size: 1.02rem; line-height: 1.5; color: var(--text-2); }
.vs-card li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text-3); }
.vs-mb { border-color: var(--line-2); box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.15), 0 30px 80px -40px var(--glow); }
.vs-mb li { color: var(--text); }
.vs-mb li::before { border-color: var(--violet-2); background: radial-gradient(circle, var(--violet-2) 0 35%, transparent 40%); box-shadow: 0 0 10px var(--glow); }
.vs-verdict { margin-top: 22px; }
.vs-mid { display: grid; place-items: center; }
.vs-mid span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); font-family: var(--display); font-weight: 600; font-size: 0.8rem; color: var(--violet-2); text-shadow: 0 0 12px var(--glow); }

/* pace statement */
.section-pace { padding-block: clamp(24px, 4vw, 48px); }
.pace { position: relative; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 40px 120px -60px var(--glow); }
.pace::before { content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%; background: radial-gradient(closest-side at 30% 40%, rgba(168, 85, 247, 0.22), transparent 70%); pointer-events: none; }
.pace > * { position: relative; }
.pace-h { max-width: 18ch; }
.pace-lead { margin-top: 18px; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--text); max-width: 46ch; font-weight: 500; }
.pace-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.pace-facts li { display: grid; gap: 6px; }
.pace-k { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--violet-2); text-shadow: 0 0 12px var(--glow); }
.pace-facts li span:last-child { color: var(--text-2); line-height: 1.5; font-size: 0.98rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease); transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, 0.18), transparent 50%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { border-color: var(--line-2); box-shadow: 0 30px 80px -40px var(--glow); }
.card:hover::before { opacity: 1; }
.frag { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; align-content: center; min-height: 108px; margin-bottom: 22px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-stretch: 87.5%; font-size: 0.74rem; line-height: 1.5; color: var(--text-2); font-variant-numeric: tabular-nums; }
.frag-files span { padding: 3px 8px; border-radius: 8px; background: rgba(192, 132, 252, 0.1); color: var(--violet-2); }
.frag-k { color: var(--violet-2); font-weight: 700; }
.frag-receipt { justify-content: space-between; }
.frag-ok { color: #f3e8ff; text-shadow: 0 0 10px var(--glow); }
.cards-note { margin-top: 16px; font-size: 0.86rem; color: var(--text-3); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-2); line-height: 1.55; }

/* rules */
.rules { list-style: none; display: grid; gap: 14px; }
.rules li { padding: clamp(20px, 2.6vw, 28px) clamp(20px, 3vw, 32px); border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s; }
.rules li:hover { border-color: var(--line-2); }
.rules h3 { font-size: 1.12rem; margin-bottom: 6px; }
.rules p { color: var(--text-2); line-height: 1.55; }

/* status board: lit rows pass, unlit rows are open */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: grid; gap: 6px; padding: 24px 22px 22px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--line); }
.tile.is-lit { border-color: var(--line-2); }
.tile.is-lit::after { background: var(--violet-2); box-shadow: 0 0 12px var(--violet), 0 0 28px var(--glow); }
.tile-k { font-size: 0.86rem; font-weight: 700; color: var(--text-2); }
.tile-v { font-family: var(--mono); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tile.is-lit .tile-v { color: #f6f1ff; text-shadow: 0 0 2px #fff, 0 0 12px var(--violet-2), 0 0 30px var(--glow); }
.tile-v-text { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: 0; }
.tile-s { font-size: 0.86rem; color: var(--text-3); }
.board-note { margin-top: 20px; font-size: 0.9rem; color: var(--text-3); max-width: 70ch; }

/* accordion */
.acc { display: grid; gap: 12px; }
.acc-item { border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s; }
.acc-item[open] { border-color: var(--line-2); }
.acc-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--text); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--violet-2); }
.acc-item summary svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.acc-item[open] summary svg { transform: rotate(180deg); }
.acc-body { padding: 0 24px 24px; display: grid; gap: 18px; animation: acc-in 0.45s var(--ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.acc-note { font-size: 0.94rem; color: var(--text-2); line-height: 1.6; max-width: 76ch; }
.tbl thead th { padding: 10px 14px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.tbl tbody > tr > * { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; line-height: 1.5; }
.tbl tbody th { color: var(--text); font-weight: 700; width: 26%; }
.tbl tbody td { color: var(--text-2); }
.tbl tbody td:last-child { white-space: nowrap; }
.tbl em { font-style: normal; color: var(--violet-2); font-weight: 700; }
.code { margin: 0; padding: 20px 22px; overflow-x: auto; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-stretch: 87.5%; font-size: 0.78rem; line-height: 1.6; color: var(--text-2); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.facts div { padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.facts dt { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 4px 0 0; font-size: 0.95rem; color: var(--text); line-height: 1.5; }

/* join */
.section-join { position: relative; }
.section-join::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 70% 60%, rgba(124, 58, 237, 0.18), transparent 60%); pointer-events: none; }
.join-grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.join-terms { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.join-terms li { position: relative; padding-left: 26px; color: var(--text-2); line-height: 1.5; }
.join-terms li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 12px var(--glow); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: rgba(20, 15, 33, 0.85); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -50px var(--glow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.field { display: grid; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--text-2); }
.field label .opt { font-weight: 500; color: var(--text-3); margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color 0.25s, box-shadow 0.35s var(--ease); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--violet-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2), 0 0 30px -8px var(--glow); }
.field ::placeholder { color: var(--text-3); }
.field [aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.15); }
.err { font-size: 0.86rem; color: var(--warn); }
.sel { position: relative; }
.sel select { appearance: none; padding-right: 44px; cursor: pointer; }
.sel svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: 0.88rem; color: var(--text-3); }
.busy { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-busy { pointer-events: none; opacity: 0.85; }
.btn.is-busy .busy { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { grid-column: 1 / -1; font-size: 0.98rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--violet-2); font-weight: 700; }
.form-status.is-err { color: var(--warn); }
.form.is-sent .field { display: none; }
.form.is-sent .form-status { font-size: 1.15rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 44px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; font-size: 0.9rem; color: var(--text-3); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--violet-2); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--r-md); background: rgba(16, 12, 28, 0.96); border: 1px solid var(--line-2); backdrop-filter: blur(16px); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn-sm { margin-left: auto; }
  .nav-toggle { display: grid; }
  .versus { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .pace-facts { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td, .tbl th { display: block; width: auto; }
  .tbl tbody tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl tbody > tr > * { padding: 3px 0; border: 0; }
  .tbl tbody td:last-child { white-space: normal; padding-top: 8px; }
}
@media (max-width: 560px) {
  .nav .btn-sm { display: none; }
  .nav-links { display: none; }
  .nav-links.is-open { display: flex; }
  .nav-toggle { margin-left: auto; }
  .board { grid-template-columns: 1fr; }
  .node { width: 44px; height: 44px; }
  .node svg { width: 18px; height: 18px; }
  .node-t { font-size: 0.7rem; }
  .pulse { top: calc(22px + 22px); }
  .rail { top: calc(22px + 22px - 1px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .display.is-split .w { opacity: 1; transform: none; filter: none; animation: none; }
  .pulse { display: none; }
}
