/* =========================================================
   UNSEEN — design system
   Concept: a classified dossier under blacklight.
   Motif: redaction bars that sweep over numbers.
   ========================================================= */
:root {
  --bg: #07040D;
  --surface: #100A1C;
  --surface-2: #181030;
  --line: rgba(169, 123, 255, .18);
  --line-2: rgba(169, 123, 255, .34);
  --ink: #F1EBFF;
  --muted: #A99CC8;
  --accent: #A97BFF;
  --accent-2: #E4D4FF;
  --deep: #6A2EE8;
  --btn-a: #7C44F0;
  --btn-b: #5B21D6;
  --ok: #4ADE80;
  --warn: #FBBF24;
  --err: #FB7185;
  --redact: #2A1650;

  --f-display: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --f-text: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 5rem; --s9: 7.5rem;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow: 0 20px 60px -20px rgba(106, 46, 232, .45), 0 2px 0 rgba(255,255,255,.03) inset;
  --glow: 0 0 0 1px var(--line-2), 0 0 40px -6px rgba(169, 123, 255, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --cabar-h: 0px;
  --nav-h: 68px;
  --wrap: 1180px;
}
body.has-cabar { --cabar-h: 40px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: var(--fs-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--deep); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- backdrop ---------- */
#backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
#backdrop canvas { width: 100%; height: 100%; }
.bg-glow { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 70% 0%, rgba(106,46,232,.22), transparent 70%),
    radial-gradient(50vw 40vh at 0% 100%, rgba(169,123,255,.10), transparent 70%),
    var(--bg); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ''; width: 18px; height: 8px; background: var(--accent); border-radius: 2px; }
.lede { font-size: var(--fs-lg); color: var(--muted); max-width: 46ch; }
.redacted { position: relative; display: inline-block; color: transparent; }
.redacted::after { content: ''; position: absolute; inset: .12em -.08em; background: linear-gradient(90deg, var(--deep), var(--accent)); border-radius: 3px; }
.h-redact { position: relative; white-space: nowrap; }
.h-redact .bar { position: absolute; left: -.06em; right: -.06em; top: .14em; bottom: .1em; background: linear-gradient(90deg, var(--btn-b), var(--accent)); border-radius: 6px; transform-origin: left; transform: scaleX(0); }
html.js .h-redact.on .bar { animation: redact 1.1s var(--ease) .5s forwards; }
html.js .h-redact.on .txt { animation: fadeink .5s linear 1.1s forwards; }
@keyframes redact { to { transform: scaleX(1); } }
@keyframes fadeink { to { color: transparent; } }

/* ---------- CA bar ---------- */
.cabar { position: sticky; top: 0; z-index: 60; height: 40px; display: flex; align-items: center; justify-content: center; gap: .7rem;
  background: linear-gradient(90deg, #12082A, #1C0D40, #12082A); border-bottom: 1px solid var(--line-2); font-size: var(--fs-xs); padding: 0 .75rem; }
.cabar .venue { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-2); font-weight: 700; }
.cabar .venue i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #7CF29A, #2BC56A); display: inline-block; }
.cabar .lbl { font-family: var(--f-mono); color: var(--muted); }
.cabar code { font-family: var(--f-mono); color: var(--ink); }
.cabar .cabtn { background: rgba(169,123,255,.16); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .15rem .6rem; cursor: pointer; font-size: var(--fs-xs); }
.cabar .cabtn:hover { background: rgba(169,123,255,.3); }
.cabar a { font-weight: 700; }
.cabar .full { display: inline; } .cabar .short { display: none; }
@media (max-width: 720px) { .cabar .full { display: none; } .cabar .short { display: inline; } .cabar .venue span { display: none; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: var(--cabar-h); z-index: 50; height: var(--nav-h); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7,4,13,.72); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(169,123,255,.55)); }
.brand small { font-family: var(--f-mono); font-size: .66rem; color: var(--muted); font-weight: 500; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .05rem .45rem; }
.nav-links { display: flex; gap: var(--s5); margin-left: auto; }
.nav-links a { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-cta { display: flex; gap: var(--s2); align-items: center; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ''; border-radius: 2px; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(7,4,13,.96); backdrop-filter: blur(10px); padding: 5rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.sheet a { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); }
.sheet .x { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 980px) { .nav-links { display: none; } .burger { display: inline-flex; } .nav-cta { margin-left: auto; } .nav-cta .btn-launch { display: none; } }
@media (max-width: 420px) { .brand small { display: none; } .nav-cta .wbtn .wlabel { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer; border-radius: var(--r-pill);
  padding: .7rem 1.15rem; font-weight: 700; font-size: var(--fs-sm); line-height: 1; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: #fff; box-shadow: 0 10px 30px -10px rgba(124,68,240,.8), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 40px -8px rgba(124,68,240,.95), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.btn-ghost { background: rgba(169,123,255,.08); border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(169,123,255,.18); color: #fff; }
.btn-quiet { background: transparent; color: var(--muted); padding-inline: .6rem; }
.btn-quiet:hover { color: var(--ink); }
.btn-lg { padding: .95rem 1.5rem; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn img { width: 18px; height: 18px; border-radius: 5px; }

/* ---------- inputs ---------- */
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.input { min-width: 0; display: flex; align-items: center; background: #0B0716; border: 1px solid var(--line-2); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s; }
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(169,123,255,.18); }
.input .pre { padding-left: .9rem; color: var(--accent); font-family: var(--f-mono); }
.input input, .input textarea, .input select { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: .8rem .9rem; }
.input input::placeholder { color: #6F6390; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- cards / chips ---------- */
.card { background: linear-gradient(180deg, rgba(24,16,48,.92), rgba(16,10,28,.92)); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .22rem .55rem; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--accent-2); background: rgba(169,123,255,.08); }
.chip.ok { color: var(--ok); border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.08); }
.chip.warn { color: var(--warn); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.chip.dim { color: var(--muted); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; background: #0B0716; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .35rem .4rem .35rem .85rem; font-family: var(--f-mono); font-size: var(--fs-xs); }
.pill { min-width: 0; }
.pill code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill button { flex: none; background: rgba(169,123,255,.18); border: 0; border-radius: var(--r-pill); padding: .3rem .7rem; cursor: pointer; font-size: var(--fs-xs); font-weight: 700; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: var(--s9) 0; }
.sec-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 720px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); position: relative; }
.divider::after { content: ''; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: var(--accent); box-shadow: 0 0 18px var(--accent); }

/* ---------- hero (index) ---------- */
.hero { padding: clamp(3rem, 6vw, 6rem) 0 var(--s8); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin: var(--s4) 0 var(--s5); }
.hero .lede { margin-bottom: var(--s5); }
.hero .wrap > * { min-width: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s5); }
.hero-logo { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--glow); margin-bottom: var(--s4); object-fit: cover; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- claim card ---------- */
.claim { padding: clamp(1.25rem, 2.5vw, 2rem); position: relative; overflow: hidden; }
.claim::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(169,123,255,.7), transparent 40%, transparent 60%, rgba(106,46,232,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.claim h2 { font-size: var(--fs-xl); margin-bottom: .35rem; }
.claim form { display: grid; gap: var(--s4); margin-top: var(--s5); }
.invited { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: var(--r-md); background: rgba(169,123,255,.12); border: 1px solid var(--line-2); font-size: var(--fs-sm); margin-bottom: var(--s4); }
.err { color: var(--err); font-size: var(--fs-sm); min-height: 1.2em; }
.wallet-strip { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .8rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--muted); cursor: pointer; background: transparent; width: 100%; text-align: left; }
.wallet-strip:hover { color: var(--ink); border-color: var(--accent); }
.wallet-strip .logos { display: flex; } .wallet-strip .logos img { width: 22px; height: 22px; border-radius: 6px; margin-left: -6px; border: 2px solid var(--surface); }
.find { border-top: 1px solid var(--line); padding-top: var(--s4); }
.find summary { cursor: pointer; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; list-style: none; }
.find summary::-webkit-details-marker { display: none; }
.find summary::after { content: ' +'; color: var(--accent); }
.find[open] summary::after { content: ' –'; }
.find .row { display: flex; gap: .5rem; margin-top: .75rem; }
.find .row .input { flex: 1; }
.seat-big { font-family: var(--f-display); font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: var(--s3) 0 var(--s4); }
.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: var(--s4) 0; }
.stat { background: #0B0716; border: 1px solid var(--line); border-radius: var(--r-md); padding: .7rem .8rem; }
.stat b { display: block; font-family: var(--f-display); font-size: 1.35rem; }
.stat span { font-size: var(--fs-xs); color: var(--muted); }
.linkrow { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: var(--s4); font-size: var(--fs-sm); }
.linkrow button { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; font-weight: 600; }
.meter { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.meter .top { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: .55rem; }
.meter .bars { display: grid; grid-template-columns: repeat(40, 1fr); gap: 3px; }
.meter .bars i { height: 14px; border-radius: 2px; background: rgba(169,123,255,.14); }
.meter .bars i.on { background: linear-gradient(180deg, var(--accent), var(--deep)); box-shadow: 0 0 8px rgba(169,123,255,.5); }
.state-center { text-align: center; padding: var(--s6) 0; }
.spinner { width: 34px; height: 34px; margin: 0 auto var(--s4); border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.step { padding: var(--s5); }
.step .n { font-family: var(--f-mono); color: var(--accent); font-size: var(--fs-sm); }
.step h3 { font-size: 1.35rem; margin: .5rem 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- leaderboard ---------- */
.board { padding: var(--s3); }
.board ol { list-style: none; margin: 0; padding: 0; }
.lrow { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: var(--r-md); }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow .rk { font-family: var(--f-mono); color: var(--muted); }
.lrow:nth-child(-n+3) .rk { color: var(--accent); font-weight: 700; }
.lrow .h { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.lrow .r { font-family: var(--f-mono); }
.lrow.me { background: rgba(169,123,255,.14); box-shadow: inset 0 0 0 1px var(--line-2); }
.board-empty { text-align: center; padding: var(--s6) var(--s4); display: grid; gap: var(--s3); justify-items: center; }
.reward { margin-top: var(--s4); text-align: center; font-size: var(--fs-sm); color: var(--accent-2); }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: var(--s8) var(--s5); display: grid; justify-items: center; gap: var(--s4); }
.final .row { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: center; margin-top: var(--s3); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s6); margin-top: var(--s7); background: linear-gradient(180deg, transparent, rgba(106,46,232,.06)); }
.foot .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.foot h4 { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot ul a { color: var(--ink); font-size: var(--fs-sm); }
.foot .about p { color: var(--muted); font-size: var(--fs-sm); margin: var(--s3) 0 var(--s4); max-width: 34ch; }
.foot .legal { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.foot .legal p { max-width: 80ch; }
@media (max-width: 820px) { .foot .grid { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: .5rem; pointer-events: none; }
.toast { background: #1C1236; border: 1px solid var(--line-2); color: var(--ink); padding: .65rem 1rem; border-radius: var(--r-pill); font-size: var(--fs-sm); box-shadow: var(--shadow); animation: toastin .3s var(--ease); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 1rem; background: rgba(4,2,8,.72); backdrop-filter: blur(6px); }
.modal .box { width: min(440px, 100%); padding: var(--s5); }
.modal .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); }
.modal .head h3 { font-size: 1.3rem; }
.wlist { display: grid; gap: .5rem; }
.wopt { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .8rem; border-radius: var(--r-md); border: 1px solid var(--line); background: #0B0716; cursor: pointer; text-align: left; }
.wopt:hover { border-color: var(--accent); }
.wopt img { width: 32px; height: 32px; border-radius: 8px; }
.wopt .nm { font-weight: 700; flex: 1; }
.modal .note { margin-top: var(--s4); font-size: var(--fs-xs); color: var(--muted); }
.wmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: .4rem; z-index: 70; }
.wmenu button, .wmenu a { display: block; width: 100%; text-align: left; padding: .6rem .7rem; border-radius: 10px; background: none; border: 0; color: var(--ink); cursor: pointer; font-size: var(--fs-sm); }
.wmenu button:hover, .wmenu a:hover { background: rgba(169,123,255,.14); }
.wwrap { position: relative; }

/* ---------- product page ---------- */
.p-hero { padding: clamp(3rem, 6vw, 5.5rem) 0 var(--s7); text-align: center; }
.p-hero .lede { margin: var(--s4) auto var(--s6); text-align: center; }
.window { border-radius: var(--r-lg); overflow: hidden; text-align: left; }
.window .bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: rgba(7,4,13,.6); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A1E46; }
.window .bar .t { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--muted); margin-left: .4rem; flex: 1; }
.window .body { padding: clamp(1rem, 2.5vw, 1.75rem); }
.flow { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s5); }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr; } }
.order { display: grid; gap: var(--s3); }
.order .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.toggle { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: #0B0716; border: 1px solid var(--line-2); }
.toggle button { border: 0; background: none; padding: .45rem .9rem; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); }
.toggle button[aria-pressed="true"] { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: #fff; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pipe li { display: grid; grid-template-columns: 22px 1fr auto; gap: .7rem; align-items: center; padding: .65rem .8rem; border-radius: var(--r-md); background: #0B0716; border: 1px solid var(--line); font-size: var(--fs-sm); transition: border-color .3s, background .3s; }
.pipe li .ic { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); }
.pipe li.running { border-color: var(--accent); }
.pipe li.running .ic { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.pipe li.done .ic { background: var(--ok); border-color: var(--ok); }
.pipe li .ts { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.pipe li .st { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.tracker { margin-top: var(--s4); padding: .9rem; border-radius: var(--r-md); border: 1px dashed var(--line-2); font-family: var(--f-mono); font-size: var(--fs-sm); }
.tracker .lbl { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; display: block; }
.statement { padding: var(--s8) 0; text-align: center; }
.statement p { font-family: var(--f-display); font-size: var(--fs-2xl); line-height: 1.12; max-width: 22ch; margin: 0 auto; }
.chapter { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: var(--s8) 0; border-top: 1px solid var(--line); }
.chapter:nth-of-type(even) .copy { order: 2; }
.chapter .num { font-family: var(--f-mono); color: var(--accent); font-size: var(--fs-sm); }
.chapter h3 { font-size: var(--fs-2xl); margin: .6rem 0 var(--s4); }
.chapter .copy p { color: var(--muted); }
.chapter .copy ul { padding-left: 1.1rem; color: var(--muted); margin: var(--s4) 0 0; }
@media (max-width: 900px) { .chapter { grid-template-columns: 1fr; } .chapter:nth-of-type(even) .copy { order: 0; } }
.demo-label { position: absolute; top: .7rem; right: .8rem; }
.demo { position: relative; }
.range { width: 100%; accent-color: var(--accent); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.compare .cside { padding: .9rem; border-radius: var(--r-md); background: #0B0716; border: 1px solid var(--line); font-family: var(--f-mono); font-size: var(--fs-sm); }
.compare .cside h4 { font-family: var(--f-text); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .5rem; }
.compare .big { font-family: var(--f-display); font-size: 1.6rem; margin: .2rem 0; }
@media (max-width: 520px) { .compare { grid-template-columns: 1fr; } }
.arch svg { width: 100%; height: auto; }
.arch .node rect { fill: #0B0716; stroke: var(--line-2); stroke-width: 1.5; transition: stroke .2s, fill .2s; }
.arch .node:hover rect, .arch .node:focus rect, .arch .node.on rect { stroke: var(--accent); fill: #1A1033; }
.arch .node text { fill: var(--ink); font-family: var(--f-text); font-weight: 700; font-size: 19px; }
.arch .node text.sub { fill: var(--muted); font-weight: 500; font-size: 13px; font-family: var(--f-mono); }
.arch .edge { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-dasharray: 5 6; opacity: .7; }
.arch .ring { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 5; opacity: .5; }
html.js:not(.reduce) .arch .edge { animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.arch-tip { margin-top: var(--s3); min-height: 3.2em; font-size: var(--fs-sm); color: var(--muted); padding: .7rem .9rem; border-radius: var(--r-md); background: #0B0716; border: 1px solid var(--line); }
.arch-tip b { color: var(--ink); }
.term { background: #06030C; font-family: var(--f-mono); font-size: .82rem; line-height: 1.7; min-height: 290px; }
.term .ln { white-space: pre-wrap; word-break: break-word; }
.term .p { color: var(--accent); }
.term .ok { color: var(--ok); }
.term .dim { color: var(--muted); }
.term .rd { background: var(--redact); color: var(--redact); border-radius: 3px; }
.term .cmdline { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.term .cmdline button { flex: none; background: rgba(169,123,255,.15); border: 1px solid var(--line-2); border-radius: 6px; padding: .05rem .45rem; font-size: .7rem; cursor: pointer; }
.caret { display: inline-block; width: .55em; height: 1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tile { padding: .8rem; border-radius: var(--r-md); background: #0B0716; border: 1px solid var(--line); }
.tile span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tile b { display: block; font-family: var(--f-display); font-size: 1.5rem; }
.spark { margin: var(--s3) 0; }
.spark svg { width: 100%; height: 90px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 220px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; font-family: var(--f-mono); font-size: .78rem; padding: .45rem .6rem; border-radius: 8px; background: #0B0716; animation: toastin .35s var(--ease); }
.feed li .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.feed li .amt.rd { background: var(--redact); color: transparent; border-radius: 3px; min-width: 70px; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr 1fr; } }
.ptable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ptable th, .ptable td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.ptable th { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.ptable td:not(:first-child) { white-space: nowrap; }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.phase { padding: var(--s5); display: grid; gap: .6rem; align-content: start; }
.phase .n { font-family: var(--f-mono); color: var(--muted); font-size: var(--fs-xs); }
.phase h3 { font-size: 1.25rem; }
.phase ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: var(--fs-sm); display: grid; gap: .3rem; }
@media (max-width: 980px) { .roadmap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }
.faq { display: grid; gap: .6rem; max-width: 820px; margin: 0 auto; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.25rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-family: var(--f-mono); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.seatcta { padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: var(--s5); align-items: center; }
@media (max-width: 760px) { .seatcta { grid-template-columns: 1fr; } }

/* ---------- studio ---------- */
.studio { min-height: calc(100vh - var(--nav-h)); }
.lock { min-height: calc(100vh - var(--nav-h) - 4rem); display: grid; place-items: center; padding: var(--s7) 0; }
.lock .card { width: min(480px, 100% - 2rem); padding: var(--s6); text-align: center; display: grid; gap: var(--s4); justify-items: center; }
.lock .card img { width: 72px; height: 72px; border-radius: 20px; box-shadow: var(--glow); }
.lock .card .row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.lock form { display: flex; gap: .5rem; width: 100%; }
.lock form .input { flex: 1; }
.app { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.side { border-right: 1px solid var(--line); padding: var(--s5) var(--s3); display: grid; align-content: start; gap: .3rem; background: rgba(7,4,13,.5); position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); }
.side button { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 12px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--muted); font-weight: 600; }
.side button svg { width: 18px; height: 18px; }
.side button[aria-selected="true"] { background: rgba(169,123,255,.14); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.side .who { margin-top: auto; padding: .8rem; font-size: var(--fs-xs); color: var(--muted); }
.main { padding: clamp(1.25rem, 3vw, 2.5rem); min-width: 0; }
.main h2 { font-size: var(--fs-xl); margin-bottom: .35rem; }
.panel { display: grid; gap: var(--s5); }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--s4); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.box { padding: var(--s5); }
.box h3 { font-size: 1.15rem; margin-bottom: var(--s3); }
.soon { padding: var(--s5); display: grid; gap: .5rem; opacity: .9; }
.soon h3 { font-size: 1.05rem; }
.soon p { color: var(--muted); font-size: var(--fs-sm); }
.formgrid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--s3); }
.formgrid .full { grid-column: 1 / -1; }
.btnrow { display: flex; gap: .6rem; flex-wrap: wrap; }
#pnlCanvas { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: #07040D; }
.plan { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: .8rem; }
.plan th, .plan td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.plan th { color: var(--muted); font-weight: 500; }
.tabs-m { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; padding-bottom: 72px; }
  .side { display: none; }
  .tabs-m { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; background: rgba(7,4,13,.95); border-top: 1px solid var(--line-2); backdrop-filter: blur(10px); }
  .tabs-m button { display: grid; justify-items: center; gap: .15rem; padding: .6rem .2rem .7rem; border: 0; background: none; color: var(--muted); font-size: .68rem; font-weight: 700; cursor: pointer; }
  .tabs-m button svg { width: 20px; height: 20px; }
  .tabs-m button[aria-selected="true"] { color: var(--ink); }
  .grid2, .formgrid { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 900px) { .studio ~ .foot { padding-bottom: 90px; } }
