@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/Inter-Regular.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/Inter-SemiBold.woff2) format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/SpaceGrotesk-Medium.woff2) format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/SpaceGrotesk-Bold.woff2) format("woff2")}
/* Layout: left-aligned hero with a pixel emblem on the right, a live "pixel strip" divider,
   then features / specs / join (tiers) / status. One brand at a time; the switch swaps every token. */
:root {
  color-scheme: dark;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* MidnightBridge (default) */
  --bg: #070a18;
  --bg-2: #10163a;
  --ink: #ecf0ff;
  --muted: #96a0c4;
  --line: #232c55;
  --accent: #58e2ea;
  --accent-2: #9670ff;
  --accent-3: #e860d6;
  --glow: rgba(150, 112, 255, .35);
  --chip: rgba(88, 226, 234, .08);
}
:root[data-brand="classic"] {
  --bg: #120d09;
  --bg-2: #2a1a10;
  --ink: #f6ead6;
  --muted: #b9a68a;
  --line: #3b2b1e;
  --accent: #f4a93c;
  --accent-2: #e2603a;
  --accent-3: #ffd27a;
  --glow: rgba(226, 96, 58, .32);
  --chip: rgba(244, 169, 60, .08);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  transition: background .4s ease, color .4s ease;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; line-height: 1.05; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.eyebrow {
  font: 500 13px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- header ---- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--bg);
}
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark svg { width: 38px; height: 38px; flex: none; }
.mark .w1 { font: 700 15px/1.05 var(--display); letter-spacing: .06em; display: block; }
.mark .w2 { font: 500 15px/1.05 var(--display); letter-spacing: .06em; color: var(--accent); display: block; }

.switch {
  display: inline-grid; grid-template-columns: 1fr 1fr; position: relative;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg-2);
}
.switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font: 600 13px/1 var(--body); color: var(--muted); padding: 9px 14px; border-radius: 999px;
  transition: color .3s ease;
}
.switch button[aria-pressed="true"] { color: var(--bg); }
.switch .pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--accent); transition: transform .35s cubic-bezier(.6,.1,.2,1), background .4s ease;
}
:root[data-brand="classic"] .switch .pill { transform: translateX(0); }
:root:not([data-brand="classic"]) .switch .pill { transform: translateX(100%); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none; transition: background .4s ease;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 30%, transparent) 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center;
  padding-block: 64px 48px;
}
.hero h1 { font-size: clamp(54px, 9vw, 104px); letter-spacing: -.01em; margin-top: 16px; }
.hero h1 .l1 { display: block; color: var(--ink); text-shadow: 0 0 34px var(--glow); }
.hero h1 .l2 { display: block; color: var(--accent); text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.hero .rule { width: 56px; height: 4px; background: var(--accent); margin: 26px 0 20px; }
.hero .lede { font-size: 19px; max-width: 34ch; color: var(--ink); }
.hero .sub { color: var(--muted); margin-top: 6px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  font: 600 15px/1 var(--body); text-decoration: none; padding: 14px 20px; border-radius: 4px;
  border: 1px solid var(--accent); color: var(--bg); background: var(--accent);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { filter: brightness(1.08); }
.emblem-big { justify-self: center; width: min(100%, 360px); aspect-ratio: 1; max-width: 100%; filter: drop-shadow(0 0 28px var(--glow)); }
.emblem-big svg { width: 100%; height: 100%; display: block; }

/* ---- "why it's different" heading: fading facts ---- */
#hlTitle { min-height: 2.2em; transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
#hlTitle.out { opacity: 0; transform: translateY(8px); filter: blur(4px); }
@media (max-width: 640px) { #hlTitle { min-height: 3.3em; } }

/* ---- the pixel strip ---- */
.strip { display: flex; gap: 5px; flex-wrap: nowrap; overflow: hidden; padding-block: 6px; }
.strip i { width: 11px; height: 11px; flex: none; background: var(--c); opacity: var(--o, 1); transition: background .4s ease, opacity .6s ease; }
.strip-band { border-block: 1px solid var(--line); }
.strip-band .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.strip-band .strip { flex: 1; min-width: 0; }
.strip-band small { font: 500 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---- sections ---- */
section.block .wrap { padding-block: 72px; }
.head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 62ch; }
.head h2 { font-size: clamp(32px, 4.4vw, 46px); }
.head p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat { background: var(--bg); padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feat .ico { width: 28px; height: 28px; }
.feat h3 { font-size: 20px; }
.feat p { color: var(--muted); font-size: 15px; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cls { align-content: start; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 18px 18px 20px; display: grid; gap: 12px; min-width: 0; }
.cls h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cls h3 b { width: 10px; height: 10px; background: var(--cc); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; align-content: flex-start; }
.chip { text-decoration: none; font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); }
.next { margin-top: 18px; display: flex; gap: 10px; align-items: baseline; color: var(--muted); flex-wrap: wrap; }
.next strong { color: var(--accent); font-family: var(--display); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }

.status { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.status .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 64px; align-items: start; }
.status h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 12px; }
.status ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.status li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; }
.status li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--accent); }
.status li span { color: var(--muted); display: block; font-size: 15px; }
.status li b { font-weight: 600; }

footer .wrap { padding-block: 28px 40px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---- join / tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tier { position: relative; border: 1px solid var(--line); background: var(--bg); padding: 26px 24px 24px; display: grid; gap: 16px; align-content: start; min-width: 0;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); transition: border-color .3s ease, box-shadow .3s ease; }
.tier.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 40px -12px var(--glow); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.tier .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tier h3 { font-size: 24px; }
.tier .badge { font: 500 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 6px 8px; }
.tier .badge[hidden] { display: none !important; }
.price { font-family: var(--display); display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 46px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 15px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tier li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; color: var(--ink); font-size: 15px; }
.tier li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; background: var(--accent); }
.tier li.all { color: var(--muted); }
.tier .btn { justify-self: start; }
.tier:not(.pick) .btn { background: transparent; color: var(--ink); border-color: var(--line); }
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { counter-increment: s; background: var(--bg); padding: 18px 18px 20px; display: grid; gap: 6px; min-width: 0; font-size: 15px; color: var(--muted); }
.steps li::before { content: counter(s); font: 700 22px/1 var(--display); color: var(--accent); }
.steps li b { color: var(--ink); font-weight: 600; }
.steps code { font-size: 14px; color: var(--accent); }
.fine { margin-top: 16px; color: var(--muted); font-size: 14px; }
.note-demo { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .tiers { grid-template-columns: minmax(0, 1fr); } .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---- My Priority spotlight (ClassicBridge only) ---- */
.spot .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding-block: 0 72px; }
.spot ul.points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.spot ul.points li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; }
.spot ul.points li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; background: var(--accent); }
.editor { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); min-width: 0;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); }
.editor .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.editor .bar b { font: 700 15px/1 var(--display); letter-spacing: .04em; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg span { font-size: 12px; padding: 6px 10px; color: var(--muted); }
.seg span.on { background: var(--accent); color: var(--bg); font-weight: 600; }
.lines { list-style: none; margin: 0; padding: 6px 0; counter-reset: ln; }
.lines li { counter-increment: ln; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.lines li:last-child { border-bottom: 0; }
.lines li::before { content: counter(ln); font: 500 13px/1 var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.lines li.hot { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.lines .sp { font-weight: 600; min-width: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-size: 11px; padding: 3px 7px; border: 1px solid; letter-spacing: .02em; white-space: nowrap; }
.tag.buff { color: #9fd36a; border-color: color-mix(in srgb, #9fd36a 45%, transparent); }
.tag.mob { color: #f08a6a; border-color: color-mix(in srgb, #f08a6a 45%, transparent); }
.tag.res { color: #6ac2f0; border-color: color-mix(in srgb, #6ac2f0 45%, transparent); }
.tag.aoe { color: var(--accent-3); border-color: color-mix(in srgb, var(--accent-3) 45%, transparent); }
.tag.not { color: var(--muted); border-color: var(--line); }
@media (max-width: 860px) { .spot .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .lines li { grid-template-columns: 22px minmax(0, 1fr); } .tags { grid-column: 2; justify-content: flex-start; } }

/* ---- header join button ---- */
.top .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.sm { padding: 10px 14px; font-size: 13px; }
.btn .pt { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }

/* ---- tier art (same image as on Patreon) ---- */
.tier { padding-top: 0 !important; }
.tier .art { margin: 0 -24px 4px; aspect-ratio: 23 / 10; max-width: calc(100% + 48px); background: var(--bg-2) center / cover no-repeat; border-bottom: 1px solid var(--line); }

/* ---- support the creator ---- */
.creator { border-top: 1px solid var(--line); }
.creator .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 72px; }
.creator h2 { font-size: clamp(32px, 4.4vw, 46px); margin-top: 12px; }
.creator .copy { display: grid; gap: 16px; max-width: 58ch; }
.creator .copy p { color: var(--muted); }
.creator .keeps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.creator .keeps li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; color: var(--ink); }
.creator .keeps li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; background: var(--accent); }
.creator .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.card-dev { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 26px; display: grid; gap: 18px; justify-items: start; min-width: 0;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); }
.card-dev img { width: 96px; height: 96px; display: block; image-rendering: auto; border: 1px solid var(--line); }
.card-dev .who { font: 700 22px/1.1 var(--display); }
.card-dev .role { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card-dev .facts { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card-dev .facts div { background: var(--bg); padding: 12px; min-width: 0; }
.card-dev .facts b { display: block; font: 700 22px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.card-dev .facts span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .creator .wrap { grid-template-columns: minmax(0, 1fr); } }

.eyebrow.live { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow.live i { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* brand fade on switch */
main { transition: opacity .2s ease; }
main.fading { opacity: 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 32px; }
  .emblem-big { width: min(70%, 260px); grid-row: 1; justify-self: start; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .status .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .mark .w1, .mark .w2 { font-size: 13px; }
  .switch button { padding: 8px 10px; font-size: 12px; }
}

/* ================= motion ================= */
/* sky behind the hero: stars + shooting stars (Midnight), rising embers (Classic) */
.hero canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* hero title: letters rise in one by one */
.hero h1 .ch { display: inline-block; }
.hero h1.go .ch { animation: chrise .7s cubic-bezier(.2,.9,.25,1.15) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes chrise { from { opacity: 0; transform: translateY(.45em) scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
#heroEyebrow.typing::after { content: "_"; margin-left: 2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* big emblem: pixels assemble, then it floats */
.emblem-big { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.emblem-big svg { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.emblem-big.build rect { transform-box: fill-box; transform-origin: center; animation: pxin .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
@keyframes pxin { from { opacity: 0; transform: translateY(-2.5px) scale(.1); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.emblem-big.glint rect.g { animation: glint .9s ease-out both; animation-delay: var(--d); }
@keyframes glint { 0%, 100% { opacity: 1; } 35% { opacity: .35; } }

/* pixel strip: a light sweeps across */
.strip { position: relative; }
.strip::after { content: ""; position: absolute; top: 0; bottom: 0; left: -22%; width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); mix-blend-mode: overlay;
  animation: sweep 5s linear infinite; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(560%); } }

/* buttons: shine on hover, the main hero button shines by itself now and then */
.btn { position: relative; display: inline-flex; align-items: center; transition: transform .2s ease, filter .2s ease; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { left: 140%; transition: left .65s ease; }
.hero .cta .btn:not(.ghost)::after { animation: autoshine 5.5s ease-in-out 1.6s infinite; }
@keyframes autoshine { 0%, 78% { left: -70%; } 100% { left: 140%; } }

/* scroll reveal */
.rv { opacity: 0; }
.rv.in { animation: rvin .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--rv-i, 0) * 80ms); }
.rv.in.done { animation: none; opacity: 1; }
@keyframes rvin { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* feature cards: a glow follows the mouse, icons hop */
.feat { position: relative; overflow: hidden; }
.feat > * { position: relative; }
.feat::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.feat:hover::before { opacity: 1; }
.feat .ico { transition: transform .35s steps(4); }
.feat:hover .ico { transform: translateY(-4px) scale(1.15); }
.feat h3 { font-size: 20px; }

/* class cards + chips */
.cls { transition: transform .3s ease, border-color .3s ease; }
.cls:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cc-h, var(--accent)) 70%, var(--line)); }
.cls h3 b { animation: blink 2.4s steps(1) infinite; animation-delay: calc(var(--rv-i, 0) * 300ms); }
@keyframes blink { 0%, 86% { opacity: 1; } 87%, 93% { opacity: .25; } }
.chip { transition: background .25s ease, color .25s ease, border-color .25s ease; }
.chip:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* tiers: tilt with the mouse, a light runs along the picked one, art sheen */
.tier { transform-style: preserve-3d; will-change: transform; }
.tier.tilting { transition: border-color .3s ease, box-shadow .3s ease, transform .08s linear; }
.tier:not(.tilting) { transition: border-color .3s ease, box-shadow .3s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.tier.pick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-3), var(--accent-2), transparent); background-size: 200% 100%;
  animation: flow 2.6s linear infinite; }
@keyframes flow { from { background-position: 200% 0; } to { background-position: 0 0; } }
.tier .art { position: relative; overflow: hidden; }
.tier .art::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); }
.tier:hover .art::after { transform: translateX(120%); transition: transform .9s ease; }
.steps li::before { transition: transform .3s ease; display: inline-block; }
.steps li:hover::before { transform: scale(1.25); }

/* discord band */
.discord { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.discord::before { content: ""; position: absolute; left: 50%; top: 55%; width: 760px; height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%); pointer-events: none; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
.discord .wrap { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: 84px; }
.discord h2 { font-size: clamp(28px, 4vw, 42px); max-width: 22ch; }
.dc-emblem { width: 84px; height: 84px; filter: drop-shadow(0 0 18px var(--glow)); }
.dc-emblem svg { width: 100%; height: 100%; display: block; animation: bob 5s ease-in-out infinite; }

/* pixel wipe when switching games */
canvas.wipe { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; }

@media (hover: none) { .feat::before { display: none; } }

/* ================= v8: landing sections ================= */
nav.links { display: flex; gap: 22px; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s ease; }
nav.links a:hover { color: var(--ink); }
@media (max-width: 1060px) { nav.links { display: none; } }
.hero .lede { font-size: 20px; max-width: 32ch; color: var(--ink); margin-top: 2px; }
.upd { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.upd i { width: 8px; height: 8px; background: var(--accent); animation: livepulse 1.8s ease-out infinite; }

/* how it works */
.how { border-bottom: 1px solid var(--line); }
.how .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: center; padding-block: 72px; }
.console { border: 1px solid var(--line); background: #05070f; min-width: 0; clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  box-shadow: 0 0 60px -20px var(--glow); }
:root[data-brand="classic"] .console { background: #0b0805; }
.console .tb { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 600 13px/1 var(--body); color: var(--muted); }
.console .tb i { width: 9px; height: 9px; background: var(--line); }
.console .tb i:nth-child(1) { background: var(--accent); }
.console .tb span { margin-left: 8px; }
.console .rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.console .rows div { background: color-mix(in srgb, var(--bg) 70%, #000); padding: 10px 14px; min-width: 0; }
.console .rows small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.console .rows b { display: block; font: 600 14px/1.3 var(--body); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console .rows b.ok { color: var(--accent); }
.console pre { margin: 0; padding: 14px 16px 16px; height: 230px; overflow: hidden; font: 13.5px/1.7 ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.console pre .k { color: var(--accent); } .console pre .d { color: var(--muted); } .console pre .w { color: var(--accent-3); }
.console pre .cur { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: caret .9s steps(1) infinite; }
.flow { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: f; }
.flow li { counter-increment: f; background: var(--bg); padding: 16px 18px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.flow li::before { content: counter(f); font: 700 22px/1 var(--display); color: var(--accent); }
.flow b { display: block; font-family: var(--display); font-size: 18px; }
.flow span { color: var(--muted); font-size: 15px; }
.how h2 { font-size: clamp(32px, 4.4vw, 46px); margin-top: 12px; }
@media (max-width: 860px) { .how .wrap { grid-template-columns: minmax(0, 1fr); } .console .rows { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .console .rows div:last-child { display: none; } }

/* feature grid sizes */
.features.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .features.n8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .features.n8 { grid-template-columns: minmax(0, 1fr); } }

/* in game clips */
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.clip { border: 1px solid var(--line); background: var(--bg-2); min-width: 0; clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px); }
.clip video { display: block; width: 100%; aspect-ratio: 568 / 319; object-fit: cover; background: #000; }
.clip figcaption { padding: 12px 16px; font-size: 15px; color: var(--muted); }
.clip figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .clips { grid-template-columns: minmax(0, 1fr); } }
figure { margin: 0; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font: 600 17px/1.35 var(--body); display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; justify-self: end; background:
  linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat; transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.faq details[open] > div { animation: rvin .4s ease both; }

/* final call */
.discord .points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.discord .points li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); background: var(--chip); }
.discord .cta { justify-content: center; margin-top: 0; }

/* one tier */
.tiers.one { grid-template-columns: minmax(0, 1fr); }
.tier.one { padding: 0 !important; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0; align-items: center; }
.tier.one .art { margin: 0; aspect-ratio: 23 / 10; max-width: none; border-bottom: 0; }
.tier.one .body { padding: 30px 30px 30px; display: grid; gap: 16px; align-content: center; min-width: 0; }
@media (max-width: 860px) { .tier.one { grid-template-columns: minmax(0, 1fr); } .tier.one .art { aspect-ratio: 23 / 10; border-right: 0; border-bottom: 1px solid var(--line); } }

/* three tiers */
.tiers.three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.tiers.three .tier { align-content: start; }
.tier .buy { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tier .buy .btn { justify-self: auto; }
.tier .alt { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tier .alt:hover { color: var(--ink); }
.tier:not(.pick) .buy .btn:not(.ghost) { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.tier.dawn { --accent: #f4a93c; }
.tier.dawn li::before { background: #f4a93c; }
.tier.dawn .badge { background: #f4a93c; }
:root[data-brand="classic"] .tier:not(.dawn) { --accent: #58e2ea; }
@media (max-width: 1000px) { .tiers.three { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* highlights */
.hlsec .wrap { padding-bottom: 24px; }
.hls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hl { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 24px 24px 26px; display: grid; gap: 10px; align-content: start; min-width: 0;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); transition: transform .3s ease, border-color .3s ease; }
.hl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent); }
.hl:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.hl .n { font: 700 34px/1 var(--display); color: color-mix(in srgb, var(--accent) 75%, transparent); }
.hl h3 { font-size: 21px; }
.hl p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .hls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hls { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1 !important; }
}

/* ---- pages around the home page (tools/website/build.py) ---- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto 45%; height: 160%; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; padding-block: 44px 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.page-hero h1 { font-size: clamp(36px, 6vw, 62px); margin-top: 14px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lede { font-size: 19px; max-width: 58ch; margin-top: 18px; }
.page-hero .emb svg { width: 132px; height: 132px; display: block; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.meta-line { font-size: 13px; color: var(--muted); margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.meta-line i { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
section.block.tight .wrap { padding-block: 48px; }
.tune { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 860px; }
.tune li { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 12px 16px 12px 40px; position: relative; color: var(--ink); font-size: 15.5px; }
.tune li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 10px; height: 10px; background: var(--accent); }
.chips.big .chip { font-size: 14px; padding: 7px 12px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose a { color: var(--accent); }
.rel { border-top: 1px solid var(--line); padding: 18px 0 8px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.rel h3 { font-size: 20px; color: var(--accent); }
.rel ul { margin: 0; padding-left: 18px; color: var(--muted); }
.rel li { margin-bottom: 4px; }
.rel li strong { color: var(--ink); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.end-cta { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 32px; display: grid; gap: 14px; justify-items: start; }
.end-cta h2 { font-size: clamp(26px, 3.4vw, 36px); }
.end-cta p { color: var(--muted); max-width: 60ch; }
.guide .lead p { font-size: 18px; color: var(--ink); max-width: 70ch; }
.guide .lead strong, .gcard strong { color: var(--accent); font-weight: 600; }
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gcard { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 22px 24px; min-width: 0; transition: transform .3s ease, border-color .3s ease; }
.gcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.gcard h3 { font-size: 20px; margin-bottom: 10px; }
.gcard ol, .gcard ul { margin: 0; padding-left: 20px; color: var(--muted); }
.gcard li { margin-bottom: 6px; }
.gcard li::marker { color: var(--accent); font-weight: 700; }
.gcard p { color: var(--muted); margin: 0 0 8px; }
@media (max-width: 860px) { .gcards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } .page-hero .emb { display: none; } .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } .rel { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* motion on the pages around the home page (same family as the home page; /assets/site.*.js switches it on) */
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(color-mix(in srgb, var(--muted) 30%, transparent) 1px, transparent 1.5px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, #000, transparent 95%); }
.page-hero canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-hero .emb { filter: drop-shadow(0 0 24px var(--glow)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.page-hero .emb svg { animation: bob 6s ease-in-out infinite; }
.page-hero .emb.build rect { transform-box: fill-box; transform-origin: center; animation: pxin .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.page-hero .emb.glint rect.g { animation: glint .9s ease-out both; animation-delay: var(--d); }
.page-hero h1 .wd { display: inline-block; }
.page-hero h1.go .wd { animation: chrise .7s cubic-bezier(.2,.9,.25,1.15) both; animation-delay: calc(var(--i) * 70ms); }
.page-hero .lede, .page-hero .cta, .page-hero .meta-line, .page-hero .crumbs { animation: rvin .8s cubic-bezier(.2,.8,.2,1) both; }
.page-hero .crumbs { animation-delay: 0s; } .page-hero .lede { animation-delay: .25s; } .page-hero .cta { animation-delay: .38s; } .page-hero .meta-line { animation-delay: .5s; }
.hl, .tune li, .rel, .end-cta { transition: transform .3s ease, border-color .3s ease; }
.hl:hover, .tune li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tune li::before { animation: blink 2.4s steps(1) infinite; animation-delay: calc(var(--rv-i, 0) * 300ms); }
@media (prefers-reduced-motion: reduce) { .page-hero .lede, .page-hero .cta, .page-hero .meta-line, .page-hero .crumbs { animation: none; } }
