/* OffRecord RP public site. Southern Aurora (ADR-009): graphite, frost text, violet to mint aurora. */

@font-face { font-family: 'Sora'; font-weight: 400; font-display: swap; src: url('fonts/Sora-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 500; font-display: swap; src: url('fonts/Sora-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('fonts/Sora-SemiBold.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #07080c;
  --surface-1: #11121a;
  --surface-2: #191b26;
  --glass: rgba(14, 15, 22, 0.72);
  --text-1: #e8e7f2;
  --text-2: rgba(232, 231, 242, 0.74);
  --text-3: rgba(232, 231, 242, 0.5);
  --line: rgba(232, 231, 242, 0.1);
  --line-strong: rgba(232, 231, 242, 0.22);
  --violet: #7b6cf6;
  --mint: #43e0a8;
  --aurora: linear-gradient(135deg, #7b6cf6, #43e0a8);
  --rec: #ff5a6e;
  --cls-a: #5cb3f0;
  --cls-b: #f5a623;
  --cls-c: #ff7a6b;
  --cls-d: #ff4fa8;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-1);
  font: 400 16px/1.65 'Sora', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; }
code { padding: .1em .45em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); color: var(--text-1); white-space: nowrap; }
::selection { background: rgba(123, 108, 246, .45); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* ── Background: aurora + scanlines (the loading screen's look) ─────────── */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse 90% 60% at 50% 115%, rgba(123, 108, 246, .2), transparent 70%), var(--bg); }
.sky i { position: absolute; width: 80vmax; height: 62vmax; border-radius: 50%; opacity: .5; filter: blur(10px); will-change: transform; }
.sky i:nth-child(1) { left: -22vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(123, 108, 246, .55), transparent); animation: drift1 26s ease-in-out infinite alternate; }
.sky i:nth-child(2) { right: -26vmax; top: 10vh; background: radial-gradient(closest-side, rgba(67, 224, 168, .32), transparent); animation: drift2 32s ease-in-out infinite alternate; }
.sky i:nth-child(3) { left: 10vw; bottom: -36vmax; background: radial-gradient(closest-side, rgba(59, 63, 158, .55), transparent); animation: drift3 38s ease-in-out infinite alternate; }
.sky i:nth-child(4) { left: 40vw; top: -30vmax; width: 50vmax; height: 40vmax; background: radial-gradient(closest-side, rgba(176, 108, 246, .3), transparent); animation: drift2 22s ease-in-out infinite alternate-reverse; }
.sky::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 18vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(14vw, -12vh) scale(1.2); } }

/* ── Header ────────────────────────────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; background: var(--aurora); transform: scaleX(0); transform-origin: 0 50%; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(9, 10, 15, .78); border-bottom-color: var(--line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 600; font-style: italic; font-size: 19px; letter-spacing: -.01em; text-transform: uppercase; }
.brand b span { color: var(--violet); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--aurora); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--text-1); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--glass); color: var(--text-1); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), background .2s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: rgba(255, 255, 255, .04); color: var(--text-1); font: 600 15px/1 'Sora', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); border-color: rgba(232, 231, 242, .4); background: rgba(255, 255, 255, .08); }
.btn:active { transform: translateY(0); }
.btn-primary { border-color: transparent; background: var(--violet); color: #fff; box-shadow: 0 8px 28px -8px rgba(123, 108, 246, .7); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--aurora); opacity: 0; transition: opacity .3s; }
.btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { background: var(--violet); border-color: transparent; box-shadow: 0 12px 34px -8px rgba(67, 224, 168, .55); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { left: 120%; }
.btn-discord { border-color: rgba(88, 101, 242, .55); background: rgba(88, 101, 242, .16); }
.btn-discord:hover { border-color: rgba(88, 101, 242, .9); background: rgba(88, 101, 242, .3); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; display: grid; align-items: center; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 96px; }
.hero .wrap { display: grid; justify-items: center; text-align: center; }
.hero-mark { width: clamp(92px, 14vw, 132px); height: auto; margin-bottom: 26px; overflow: visible; }
.hero-mark .ring { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 1.4s var(--ease) .15s forwards; }
.hero-mark .slash { opacity: 0; transform: translate(6px, -8px); animation: slash .5s var(--ease) 1.1s forwards; }
.hero-mark .rec { animation: rec 2.4s ease-in-out 1.6s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slash { to { opacity: 1; transform: none; } }
@keyframes rec { 0%, 100% { fill: #e8e7f2; } 50% { fill: var(--rec); } }
.eyebrow { margin: 0 0 14px; color: var(--text-2); font-size: clamp(11px, 1.3vw, 14px); font-weight: 500; letter-spacing: .38em; text-transform: uppercase; }
.wordmark { margin: 0; font-size: clamp(50px, 12vw, 160px); font-style: italic; font-weight: 600; line-height: .92; letter-spacing: -.02em; text-transform: uppercase; }
.wordmark .off { display: inline-block; color: var(--violet); }
.wordmark .rec-word { display: inline-block; background: linear-gradient(180deg, #f4f3fb 30%, #c9c7dc); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .14em; margin-right: -.08em; }
.hero-sub { max-width: 640px; margin: 22px auto 0; color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px); }
.hero-sub strong { color: var(--text-1); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.connect { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 22px; padding: 5px 5px 5px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.connect span { color: var(--text-3); }
.connect code { padding: 0; border: 0; background: none; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: 8px; padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text-1); font: 500 13px/1 'Sora', sans-serif; cursor: pointer; transition: background .2s; }
.copy:hover { background: rgba(255, 255, 255, .15); }
.copy svg { width: 14px; height: 14px; }
.copy.done { background: rgba(67, 224, 168, .2); color: var(--mint); }
.status-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 13px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(67, 224, 168, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(67, 224, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(67, 224, 168, 0); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid var(--line-strong); border-radius: 14px; }
.scroll-cue::after { content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* Hero entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1s); }
.wordmark .off { opacity: 0; transform: translateX(-40px) skewX(-8deg); animation: in-left 1s var(--ease) .35s forwards; }
.wordmark .rec-word { opacity: 0; transform: translateX(40px); animation: in-right 1s var(--ease) .45s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes in-left { to { opacity: 1; transform: none; } }
@keyframes in-right { to { opacity: 1; transform: none; } }

/* ── Ticker ────────────────────────────────────────────────────────────── */
.ticker { position: relative; overflow: hidden; padding: 16px 0; border-block: 1px solid var(--line); background: rgba(9, 10, 15, .6); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker li { display: flex; align-items: center; gap: 28px; padding-right: 28px; color: var(--text-2); font-size: 14px; font-weight: 500; font-style: italic; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--aurora); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Sections ──────────────────────────────────────────────────────────── */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--mint); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.kicker::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--aurora); }
h2 { margin: 0 0 18px; font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
h2 em { font-style: italic; color: var(--violet); }
.lead { max-width: 720px; color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); }

/* Features */
.grid { display: grid; gap: 16px; }
.features { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); transition: transform .35s var(--ease), border-color .35s, background .35s; }
.card::before { content: ''; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; background: var(--aurora); opacity: 0; transition: opacity .35s; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.card:hover { transform: translateY(-4px); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(123, 108, 246, .14); color: var(--text-1); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(even) .icon { background: rgba(67, 224, 168, .12); }

/* Join */
.join { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.steps { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .025); counter-increment: step; }
.steps li::before { content: '0' counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--violet); font-size: 18px; font-style: italic; font-weight: 600; }
.steps h3 { margin: 2px 0 6px; font-size: 18px; font-weight: 600; }
.steps p { margin: 0; color: var(--text-2); font-size: 15px; }
.steps a { color: var(--text-1); text-decoration-color: var(--violet); text-underline-offset: 3px; }
.join-panel { position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.join-panel::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 80%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(67, 224, 168, .22), transparent); pointer-events: none; }
.join-panel h3 { position: relative; margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.join-panel > p { position: relative; color: var(--text-2); font-size: 15px; }
.join-panel .btn { width: 100%; margin-top: 10px; }
.addr { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 6px; padding: 14px 14px 14px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: rgba(0, 0, 0, .25); }
.addr code { padding: 0; border: 0; background: none; font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
.hint { position: relative; margin: 14px 0 0; color: var(--text-3); font-size: 13px; }
.note { position: relative; display: flex; gap: 14px; margin-top: 22px; padding: 16px 18px; border: 1px solid rgba(67, 224, 168, .3); border-radius: var(--radius-md); background: rgba(67, 224, 168, .07); font-size: 14px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note p { margin: 0; color: var(--text-2); }
.note strong { color: var(--text-1); font-weight: 600; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.reqs li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 13px; }

/* ── Rules ─────────────────────────────────────────────────────────────── */
.rules-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.updated { color: var(--text-3); font-size: 14px; }
.rules-intro { max-width: 760px; margin-top: 8px; color: var(--text-2); font-size: 17px; }
.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; margin-top: 44px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc p { margin: 0 0 10px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { position: relative; display: flex; gap: 10px; padding: 7px 0 7px 16px; color: var(--text-3); font-size: 14px; text-decoration: none; transition: color .2s; }
.toc a span { font-style: italic; font-variant-numeric: tabular-nums; }
.toc a::before { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--aurora); transform: scaleY(0); transition: transform .3s var(--ease); }
.toc a:hover { color: var(--text-2); }
.toc a.active { color: var(--text-1); }
.toc a.active::before { transform: scaleY(1); }
.toolbar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(12, 13, 19, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.search { position: relative; flex: 1 1 220px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: rgba(0, 0, 0, .25); color: var(--text-1); font: 400 15px 'Sora', sans-serif; transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123, 108, 246, .25); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: transparent; color: var(--text-2); font: 500 14px 'Sora', sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { color: var(--text-1); border-color: var(--line-strong); }
.filters button[aria-pressed='true'] { border-color: transparent; background: var(--surface-2); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--violet); }
.empty { display: none; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--text-2); text-align: center; }
.empty.show { display: block; }

.rule-section { margin-bottom: 56px; }
.rule-section[hidden] { display: none; }
.rule-section > header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.rule-section .num { color: var(--violet); font-size: 15px; font-style: italic; font-weight: 600; font-variant-numeric: tabular-nums; }
.rule-section h3 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.rule-section .tag-zero { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(255, 79, 168, .14); color: var(--cls-d); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.rule-section .sec-lead { margin: -4px 0 18px; color: var(--text-2); }
.rule-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rule { position: relative; padding: 18px 20px 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .025); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.rule::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-strong); transition: background .25s; }
.rule[data-class~='A']::before { background: var(--cls-a); }
.rule[data-class~='B']::before { background: var(--cls-b); }
.rule[data-class~='C']::before { background: var(--cls-c); }
.rule[data-class~='D']::before { background: var(--cls-d); }
.rule:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); transform: translateX(3px); }
.rule[hidden] { display: none; }
.rule h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 6px; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.rule p, .rule li { color: var(--text-2); font-size: 15px; }
.rule p:last-child { margin-bottom: 0; }
.rule ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.rule ul li { position: relative; padding-left: 20px; }
.rule ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.rule strong { color: var(--text-1); font-weight: 600; }
.rule mark { padding: 0 2px; border-radius: 3px; background: rgba(123, 108, 246, .45); color: #fff; }
.cls { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.cls b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #0b0c12; font-size: 11px; }
.cls-a { background: rgba(92, 179, 240, .14); color: var(--cls-a); } .cls-a b { background: var(--cls-a); }
.cls-b { background: rgba(245, 166, 35, .14); color: var(--cls-b); } .cls-b b { background: var(--cls-b); }
.cls-c { background: rgba(255, 122, 107, .14); color: var(--cls-c); } .cls-c b { background: var(--cls-c); }
.cls-d { background: rgba(255, 79, 168, .14); color: var(--cls-d); } .cls-d b { background: var(--cls-d); }

.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.zones li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(67, 224, 168, .22); border-radius: var(--radius-sm); background: rgba(67, 224, 168, .06); color: var(--text-1); font-size: 14px; }
.rule .zones li { padding: 10px 12px; }
.rule .zones li::before { content: ''; position: static; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* Penalties */
.penalties { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.pen { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .025); border-top: 3px solid var(--c); }
.pen .letter { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.pen .letter span { color: var(--c); font-size: 40px; font-style: italic; font-weight: 600; line-height: 1; }
.pen .letter em { color: var(--text-3); font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; }
.pen h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.pen .pts { display: inline-block; margin-bottom: 10px; color: var(--c); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pen p { margin: 0; color: var(--text-2); font-size: 14px; }
.thresholds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.thr { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .025); }
.thr strong { color: var(--text-1); font-size: 28px; font-style: italic; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.thr p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.agree { margin-top: 32px; padding: 22px 24px; border-left: 3px solid var(--violet); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: rgba(123, 108, 246, .08); color: var(--text-1); }
.agree p:last-child { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; margin-top: 36px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .025); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 16.5px; font-weight: 500; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-top: -4px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); font-size: 15px; animation: open .35s var(--ease); }
.faq .answer p:last-child { margin: 0; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* CTA + footer */
.cta { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(123, 108, 246, .3), transparent 60%), radial-gradient(ellipse 60% 120% at 100% 100%, rgba(67, 224, 168, .2), transparent 60%), var(--surface-1); text-align: center; }
.cta h2 { max-width: 760px; margin: 0 auto 14px; }
.cta p { max-width: 560px; margin: 0 auto; color: var(--text-2); }
.cta .hero-cta { margin-top: 28px; }
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h2 { margin: 0 0 12px; color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--text-1); }
.foot .brand { margin-bottom: 12px; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.legal p { margin: 0 0 6px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 12px 18px; border: 1px solid rgba(67, 224, 168, .35); border-radius: var(--radius-md); background: rgba(12, 13, 19, .95); color: var(--text-1); font-size: 14px; opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .penalties { grid-template-columns: repeat(2, 1fr); }
  .join { grid-template-columns: 1fr; gap: 32px; }
  .join-panel { position: relative; top: 0; }
  .rules-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); background: rgba(9, 10, 15, .97); opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .nav .nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .menu-open .site-header { background: rgba(9, 10, 15, .97); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .thresholds { grid-template-columns: 1fr; }
}
@media (min-width: 881px) { .nav-cta { display: none; } }
@media (max-width: 600px) {
  .features, .penalties { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .connect { flex-wrap: wrap; justify-content: center; padding: 10px 12px; border-radius: var(--radius-md); }
  .connect .copy { margin: 6px 0 0; }
  .card, .join-panel { padding: 22px; }
  .steps li { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .rule { padding: 16px 16px 16px 18px; }
  .rule-section > header { flex-wrap: wrap; gap: 6px 14px; }
  .rule-section .tag-zero { margin-left: 0; }
  .filters { width: 100%; }
  .filters button { flex: 1; padding: 0 8px; }
  .scroll-cue { display: none; }
  .eyebrow { letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal, .rise, .wordmark .off, .wordmark .rec-word, .hero-mark .slash { opacity: 1; transform: none; }
  .hero-mark .ring { stroke-dashoffset: 0; }
  .ticker-track { animation: none; }
}
