/* Nucleus, static recreation. Lunar palette from Nucleus.Website/app/globals.css.
   Flat colours only: every overlay, line and accent is a solid or rgba colour. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0e12;
  --bg2: #121217;
  --bg3: #1a1a21;
  --bgcard: #17171d;
  --header-bg: rgba(14,14,18,0.92);

  --purple: #6366f1;
  --purplem: #818cf8;
  --purplel: #a5b4fc;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;

  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #7a8899;

  --border: rgba(99,102,241,0.15);
  --border2: rgba(99,102,241,0.28);
  --border3: rgba(99,102,241,0.55);
  --hover-tint: rgba(99,102,241,0.08);

  --pro-bg: rgba(124,58,237,0.15);
  --pro-border: rgba(139,92,246,0.35);
  --pro-hi-bg: rgba(124,58,237,0.07);

  --code-bg: #0f172a;
  --code-hdr-bg: #1e293b;
  --code-border: rgba(99,102,241,0.28);
  --code-hdr-border: rgba(99,102,241,0.2);
  --code-fname: #94a3b8;
  --code-fg: var(--text);

  --syn-kw: #c792ea;
  --syn-ty: #82aaff;
  --syn-st: #c3e88d;
  --syn-cm: #4a6070;
  --syn-pr: #f07178;
  --syn-pu: #89ddff;
  --syn-ns: #ffcb6b;
  --syn-nm: #f78c6c;

  --fp-a1: var(--purple);
  --fp-a2: var(--cyan);
  --fp-a3: var(--amber);
  --fp-a4: var(--emerald);
  --fp-a5: var(--rose);
  --fp-a6: var(--purplem);
  --fp-a7: var(--purplel);

  /* Art overlays: the theme background at 0.75 to 0.85, flat. */
  --card-glass: var(--bgcard);

  --hh: 66px;
  --subh: 58px;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
img { max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hh);
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); z-index: 1000; display: flex; align-items: center;
}
.header-inner { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 900; letter-spacing: 2px; color: var(--purplel);
  text-decoration: none; flex-shrink: 0;
}
.logo img { width: 26px; height: 26px; }
.discord-join {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  margin-right: -30px; padding: 6px 14px; border-radius: 8px;
  background: #5865F2; color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; box-shadow: 0 2px 10px rgba(88,101,242,.35);
  transition: background .18s, transform .18s;
}
.discord-join:hover { background: #4752C4; transform: translateY(-1px); }
.discord-join.mobile { margin: 8px 0 0; justify-content: center; }
header nav { display: flex; align-items: center; gap: 2px; flex: 1; }
header nav a {
  position: relative; font-size: 13px; font-weight: 500; color: var(--text3);
  text-decoration: none; padding: 6px 11px; border-radius: 6px; transition: color .18s, background .18s;
}
header nav a:hover { color: var(--text); background: var(--hover-tint); }
header nav a.nav-active { color: var(--text); font-weight: 600; }
header nav a.nav-active::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: -2px; height: 3px; border-radius: 2px; background: var(--purple); }
.ext { margin-left: 4px; }
.hdr-btns { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }

/* ── SECTION BAR ── */
.subnav {
  position: fixed; top: var(--hh); left: 0; right: 0; z-index: 900; height: var(--subh);
  display: flex; align-items: center; background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.subnav-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link {
  position: relative; display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 9px 12px 11px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text3);
  text-decoration: none; white-space: nowrap; transition: color .15s;
}
.subnav-link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px;
  background: var(--subnav-accent, var(--purplel)); opacity: 0; transform: scaleX(.5); transition: opacity .18s, transform .18s;
}
.subnav-link:hover { color: var(--text2); }
.subnav-link.active { color: var(--text); }
.subnav-link.active::after { opacity: 1; transform: scaleX(1); }
.subnav-link-count { font-family: var(--mono); font-size: 10.5px; color: var(--text3); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: none;
  transition: all .18s; font-family: var(--sans);
}
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--border3); color: var(--text); background: var(--hover-tint); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 0 18px rgba(99,102,241,.28); }
.btn-primary:hover { background: var(--purplel); box-shadow: 0 0 28px rgba(99,102,241,.42); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-primary:disabled:hover { background: var(--purple); }
.btn-emerald { background: #064e3b; color: #6ee7b7; box-shadow: 0 0 16px rgba(16,185,129,.18); }
.btn-emerald:hover { background: #065f46; box-shadow: 0 0 24px rgba(16,185,129,.3); }

/* ── LAYOUT ── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }
section { position: relative; padding: 96px 0; overflow-x: clip; }
section[id] { scroll-margin-top: calc(var(--hh) + var(--subh) + 14px); }
.sec-title { font-size: clamp(30px,4.5vw,52px); font-weight: 900; line-height: 1.06; letter-spacing: -1.5px; color: var(--text); margin-bottom: 14px; }
.sec-sub { font-size: 17px; color: var(--text2); line-height: 1.72; max-width: 580px; }
/* The live site paints these with a two-colour text fill; here they take the one flat accent. */
.grad { color: var(--purplel); }

/* A sparse hex lattice with the odd lit cell, faded out behind the headline. Each theme takes its own copy. */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("img/hero/hex-cells-dark.svg") center / cover no-repeat;
}
:root[data-theme="light"] .hero-grid { background-image: url("img/hero/hex-cells-light.svg"); }

/* ── HERO ── */
#hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow-x: clip;
  padding: calc(var(--hh) + var(--subh) + 46px) 0 58px; min-height: 88vh;
}
.hero-stars {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23c4b5fd'%3E%3Ccircle cx='20' cy='30' r='1'/%3E%3Ccircle cx='130' cy='70' r='1.4'/%3E%3Ccircle cx='200' cy='20' r='.8'/%3E%3Ccircle cx='80' cy='160' r='1.1'/%3E%3Ccircle cx='180' cy='200' r='.9'/%3E%3Ccircle cx='40' cy='220' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 880px; padding: 0 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 15px; border-radius: 100px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3);
  font-size: 12.5px; font-weight: 500; color: var(--purplel); margin-bottom: 20px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 7px var(--emerald); }
.hero-title { font-size: clamp(50px,8vw,88px); font-weight: 900; line-height: .94; letter-spacing: -3px; margin-bottom: 8px; }
.hero-title-main { color: var(--text); text-shadow: 0 0 40px rgba(99,102,241,.35); }
.hero-tagline { font-size: 19px; color: var(--purplel); letter-spacing: -.3px; margin-bottom: 8px; font-weight: 400; }
.hero-slogan { font-size: 17px; font-weight: 700; color: var(--cyan); letter-spacing: -.2px; margin-bottom: 18px; }
.hero-desc { font-size: 16px; color: var(--text2); line-height: 1.66; max-width: 560px; margin: 0 auto 26px; }
.hero-claims { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; max-width: 880px; margin: 8px auto 0; text-align: left; }
.hero-claim { padding: 20px 22px; border-radius: 13px; background: rgba(23,23,29,.6); border: 1px solid var(--border); }
.hero-claim-title { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.3px; margin-bottom: 7px; }
.hero-claim-body { font-size: 14.5px; color: var(--text2); line-height: 1.65; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-val { font-size: 26px; font-weight: 900; letter-spacing: -1px; line-height: 1; margin-bottom: 5px; }
.hero-stat-lbl { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.hero-divider { width: 1px; height: 38px; background: var(--border2); }

/* ── PEDIGREE ── */
.pedigree { padding: 34px 0; border-bottom: 1px solid var(--border); }
.pedigree-inner { display: flex; align-items: center; gap: 20px; }
.pedigree-copy { flex: 1; min-width: 0; border-left: 3px solid var(--purple); padding-left: 18px; }
.pedigree-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.2px; margin-bottom: 3px; }
.pedigree-sub { font-size: 13px; color: var(--text2); line-height: 1.6; max-width: 760px; }

/* ── PILLARS ── */
.pillar { padding: 92px 0; border-bottom: 1px solid var(--border); }
.pillar-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.pillar-inner > * { min-width: 0; }
.pillar.flip .pillar-visual { order: -1; }
.pillar-title { font-size: clamp(28px,3.6vw,44px); font-weight: 900; line-height: 1.08; letter-spacing: -1.4px; color: var(--text); margin-bottom: 16px; }
.pillar .grad { color: var(--pillar-accent); }
.pillar-body { font-size: 16px; color: var(--text2); line-height: 1.72; max-width: 560px; margin-bottom: 22px; }
.pillar-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pillar-points li { position: relative; padding-left: 26px; font-size: 13.5px; color: var(--text2); line-height: 1.55; }
.pillar-points li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 3px;
  background: color-mix(in srgb, var(--pillar-accent) 32%, transparent);
  border: 1px solid color-mix(in srgb, var(--pillar-accent) 60%, transparent);
}
.pillar-visual { display: flex; flex-direction: column; gap: 14px; }

.viz-card, .range-panel, .eng-card, .fp-card, .engine-primary {
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.viz-card { background: var(--card-glass); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.viz-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.viz-row { margin-bottom: 16px; }
.viz-row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text3); margin-bottom: 7px; }
.viz-track { height: 8px; background: color-mix(in srgb, var(--text3) 14%, transparent); border-radius: 4px; overflow: hidden; }
.viz-fill { height: 100%; border-radius: 4px; transform-origin: left; }
.viz-foot { font-size: 11.5px; color: var(--text3); margin-top: 14px; line-height: 1.5; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 11.5px; color: var(--text3); }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.viz-legend i { display: block; width: 8px; height: 8px; border-radius: 2px; }
.dot-c { background: var(--cyan); }
.dot-w { background: var(--fp-a5); }
.dot-p { background: var(--purplel); }
.tick-lane { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.tick-name { font-family: var(--mono); font-size: 10.5px; color: var(--text3); width: 46px; flex-shrink: 0; }
.tick-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; flex: 1; }
.tick { height: 22px; border-radius: 4px; background: color-mix(in srgb, var(--text3) 12%, transparent); }
.tick.on { background: color-mix(in srgb, var(--cyan) 45%, transparent); }
.tick.srv { background: color-mix(in srgb, var(--emerald) 32%, transparent); }
.tick.warn { background: color-mix(in srgb, var(--fp-a5) 60%, transparent); }
.tick.replay { background: color-mix(in srgb, var(--purplel) 45%, transparent); }
.range-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.range-panel { background: var(--card-glass); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.range-head { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pillar-accent); margin-bottom: 16px; }
.range-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-bottom: 18px; }
.range-dots.small { display: flex; gap: 9px; }
.rdot { aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--text3) 18%, transparent); }
.rdot.on { background: var(--pillar-accent); }
.range-dots.small .rdot { width: 20px; height: 20px; aspect-ratio: auto; box-shadow: 0 0 10px color-mix(in srgb, var(--pillar-accent) 45%, transparent); }
.range-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.range-list li { position: relative; padding-left: 14px; font-size: 12px; color: var(--text3); line-height: 1.5; }
.range-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--pillar-accent); }
.viol-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.viol-row:last-of-type { border-bottom: none; }
.viol-what { font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.viol-verdict {
  flex-shrink: 0; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px; color: var(--pillar-accent);
  background: color-mix(in srgb, var(--pillar-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pillar-accent) 30%, transparent);
}
.engine-primary {
  display: flex; align-items: center; gap: 20px; padding: 26px 28px; border-radius: 14px;
  background: color-mix(in srgb, var(--pillar-accent, var(--purple)) 12%, rgba(23,23,29,.9));
  border: 1px solid color-mix(in srgb, var(--pillar-accent, var(--purple)) 38%, transparent);
}
.engine-primary-icon { width: 38px; height: 44px; flex-shrink: 0; }
.engine-primary-copy { min-width: 0; }
.engine-primary-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--text); margin-bottom: 6px; }
.engine-primary-sub { font-size: 13px; color: var(--text2); line-height: 1.6; }
.compat-engines { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.eng-card { background: var(--card-glass); border: 1px solid var(--border); border-radius: 11px; padding: 22px 14px; text-align: center; }
.eng-icon { display: block; width: 30px; height: 30px; margin: 0 auto 8px; object-fit: contain; }
/* Single-colour marks ship black; flatten and invert them to white on the dark page. */
.eng-mono { filter: brightness(0) invert(1); }
.eng-dim { opacity: .62; }
.eng-name { font-size: 12px; font-weight: 700; color: var(--text2); }
.eng-tag { font-size: 10px; color: var(--text3); margin-top: 3px; }

/* ── CODE ── */
#code { position: relative; overflow-x: clip; border-top: 1px solid var(--border); }
.code-layout { display: grid; grid-template-columns: 190px 1fr; gap: 28px; margin-top: 56px; }
.code-layout > * { min-width: 0; }
.code-tabs { display: flex; flex-direction: column; gap: 4px; }
.code-tab {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; background: transparent; color: var(--text3); font-size: 13px; font-weight: 500; font-family: var(--sans);
  text-align: left; transition: all .15s;
}
.code-tab:hover { background: var(--bg3); color: var(--text2); }
.code-tab.active { background: var(--bg3); border-color: var(--border2); color: var(--text); }
.ctd { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.code-win { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.code-win-hdr { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--code-hdr-bg); border-bottom: 1px solid var(--code-hdr-border); }
.code-dots { display: flex; gap: 6px; }
.cdot { width: 10px; height: 10px; border-radius: 50%; }
.cdot-r { background: #ff5f57; }
.cdot-y { background: #ffbd2e; }
.cdot-g { background: #28c840; }
.code-fname { font-size: 12px; color: var(--code-fname); font-family: var(--mono); }
.code-body { padding: 22px; overflow: auto; }
.code-body pre { color: var(--code-fg); }
pre { font-family: var(--mono); font-size: 12.5px; line-height: 1.72; margin: 0; white-space: pre; }
.kw { color: var(--syn-kw); }
.ty { color: var(--syn-ty); }
.st { color: var(--syn-st); }
.cm { color: var(--syn-cm); font-style: italic; }
.fn { color: var(--syn-ty); }
.pr { color: var(--syn-pr); }
.pu { color: var(--syn-pu); }
.ns { color: var(--syn-ns); }
.nm { color: var(--syn-nm); }
code.i { color: var(--purplel); font-family: var(--mono); font-size: .88em; background: rgba(99,102,241,.12); padding: 1px 5px; border-radius: 4px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 30px 0; background: var(--bg); }
.footer-in { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.foot-copy { font-size: 12.5px; color: var(--text3); }
.foot-links { display: flex; gap: 16px; font-size: 12.5px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--text3); text-decoration: none; transition: color .15s; }
.foot-links a:hover { color: var(--text2); }

/* ── FEATURE / PRICING PAGES ── */
.fp-hero { position: relative; overflow-x: clip; padding: calc(var(--hh) + var(--subh) + 44px) 0 48px; border-bottom: 1px solid var(--border); }
.fp-hero-inner { position: relative; z-index: 1; }
.fp-hero-stats { justify-content: flex-start; margin-top: 38px; gap: 38px; }
.fp-section { padding: 84px 0; }
.pillar.alt, .fp-section.alt { background: var(--bg2); }
.fp-section.alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fp-group-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 32px; }
.fp-group-head > div:last-child { min-width: 0; }
.fp-group-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--fp-accent);
  background: color-mix(in srgb, var(--fp-accent) 14%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--fp-accent) 32%, transparent);
}
.fp-group-title { font-size: clamp(23px,3vw,34px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; color: var(--text); white-space: pre-line; margin-bottom: 10px; }
.fp-group-blurb { font-size: 15px; color: var(--text2); line-height: 1.7; max-width: 660px; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }
.fp-card { background: var(--card-glass); border: 1px solid var(--border); border-radius: 13px; padding: 22px; position: relative; overflow: hidden; }
.fp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fp-card-top:empty { display: none; }
.fp-card-num { margin-right: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--fp-accent); }
.fp-pro {
  font-family: var(--mono); font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purplel); background: var(--border); border: 1px solid var(--border2); border-radius: 4px; padding: 3px 6px; flex-shrink: 0;
}
.fp-dev { color: var(--amber); }
.fp-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; color: var(--text); margin-bottom: 7px; }
.fp-card-desc { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* The pricing page: Free and Pro, the support plans, and the Single Success Payment as one line of fine print. */
.price-grid { display: grid; gap: 16px; }
.price-grid-2 { grid-template-columns: repeat(2, 1fr); }
.price-grid-3 { grid-template-columns: repeat(3, 1fr); }
.price-group-gap { margin-top: 64px; }
.price-card { display: flex; flex-direction: column; background: var(--card-glass); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.price-card-pro { background: color-mix(in srgb, var(--purple) 7%, var(--card-glass)); border-color: var(--border3); }
.price-plan { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.price-card-title { font-size: 17px; font-weight: 700; letter-spacing: -.2px; color: var(--text); }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 10px; }
.price-amount b { font-size: 36px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; color: var(--text); }
.price-amount span { font-size: 13px; color: var(--text3); }
.price-card-desc { font-size: 13.5px; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.price-ticks { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; font-size: 13.5px; color: var(--text2); line-height: 1.5; }
.price-ticks li { display: flex; gap: 9px; }
.price-ticks li::before { content: '\2713'; color: var(--emerald); font-weight: 700; flex-shrink: 0; }
.price-btn { justify-content: center; padding: 11px 20px; font-size: 14px; }
.price-card > .price-btn { margin-top: auto; }
.price-card-link { align-self: flex-start; margin: -8px 0 22px; font-size: 13.5px; font-weight: 600; color: var(--purplel); text-decoration: none; }
.price-card-link:hover { text-decoration: underline; }
.price-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.price-cta[hidden] { display: none; }
.price-cta-hint { font-size: 13px; color: var(--text2); text-align: center; }
.price-cta-hint b { color: var(--text); font-weight: 600; }
.price-fine { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 56px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text2); }
.price-fine-label { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); }
.price-fine-item b { color: var(--text); font-weight: 600; }
.price-fine-item + .price-fine-item::before { content: '\00b7'; color: var(--text3); margin-right: 18px; }
.price-fine a { margin-left: auto; color: var(--purplel); text-decoration: none; font-weight: 600; }
.price-fine a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .price-grid-2, .price-grid-3 { grid-template-columns: 1fr; }
  .price-group-gap { margin-top: 48px; }
  .price-fine { flex-direction: column; gap: 6px; }
  .price-fine-item + .price-fine-item::before { content: none; }
  .price-fine a { margin-left: 0; margin-top: 6px; }
}

/* ── CONTACT ── */
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 20px 22px; margin-top: 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card-glass);
  transition: transform .22s ease, border-color .18s;
}

/* ── DOWNLOADS (signed-out view) ── */
.downloads-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--hh) + 56px) 24px 64px; }
.downloads-inner { width: 100%; max-width: 650px; }
.dl-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.dl-lock {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 14px 18px;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.45); border-radius: 10px;
}
.dl-lock-icon { font-size: 18px; line-height: 1; }
.dl-lock-title { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.dl-lock-body { font-size: 12.5px; color: var(--text2); }
.dl-lock-body a { color: var(--purplel); }
.gate-card { background: var(--card-glass); border: 1px solid rgba(139,92,246,0.28); border-radius: 12px; padding: 6px 22px 18px; }
.gate-row { padding: 16px 0; border-bottom: 1px solid var(--border2); }
.gate-row summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; cursor: pointer; list-style: none; }
.gate-row summary::-webkit-details-marker { display: none; }
.gate-name { font-weight: 700; font-size: 14px; color: var(--text); }
.gate-ver { font-size: 12px; color: var(--text3); }
.gate-read::after { content: 'Read'; font-size: 12px; color: var(--purplel); }
details[open] .gate-read::after { content: 'Hide'; }
.gate-text { max-height: 45vh; overflow-y: auto; padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--border2); border-radius: 8px; background: rgba(255,255,255,0.02); }
.gate-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--text2); cursor: pointer; }
.gate-check input { margin-top: 2px; flex-shrink: 0; accent-color: var(--purple); }
.gate-agree { margin-top: 16px; font-size: 13px; padding: 9px 20px; }
.changelog { margin-top: 40px; background: var(--card-glass); border: 1px solid var(--border2); border-radius: 10px; padding: 18px 20px; }
.changelog-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.changelog-head div { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); }
.changelog-head span { flex: 1; height: 1px; background: var(--border2); }
.changelog p { font-size: 13px; color: var(--text3); }

/* ── LEGAL ── */
.legal-page { min-height: 100vh; padding: calc(var(--hh) + 48px) 24px 80px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 10px;
}
.legal-meta a { color: var(--purplel); text-transform: none; letter-spacing: 0; font-size: 12px; }
.agreement-text { font-size: 13px; line-height: 1.65; color: var(--text2); overflow-wrap: break-word; }
.legal-page .agreement-text { font-size: 14px; }
.agreement-text h1 { font-size: 18px; font-weight: 800; color: var(--text); margin: 0 0 10px; letter-spacing: -.4px; }
.legal-page .agreement-text h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -1px; margin-bottom: 18px; }
.agreement-text h2 { font-size: 15px; font-weight: 700; color: var(--text); margin: 26px 0 8px; letter-spacing: -.2px; }
.agreement-text h3 { font-size: 13px; font-weight: 700; color: var(--text2); margin: 18px 0 6px; }
.agreement-text p { margin: 0 0 12px; }
.agreement-text p.indent { padding-left: 22px; }
.agreement-text ol, .agreement-text > ul { margin: 0 0 12px; padding-left: 22px; }
.agreement-text li { margin: 0 0 7px; }
.agreement-text li ul { margin: 6px 0 0; padding-left: 18px; }
.agreement-text strong { color: var(--text); font-weight: 700; }
.agreement-text a { color: var(--purplel); }
.agreement-rule { height: 1px; background: var(--border2); margin: 24px 0; }
.agreement-table { overflow-x: auto; margin: 0 0 16px; }
.agreement-table table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.agreement-table th, .agreement-table td { border: 1px solid var(--border2); padding: 7px 10px; vertical-align: top; text-align: left; }
.agreement-table th { color: var(--text2); font-weight: 700; }

/* ── MOBILE MENU (checkbox toggle, no script) ── */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; cursor: pointer; padding: 4px; flex-shrink: 0; margin-left: auto; }
.ham-line { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle:checked ~ header .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ header .ham-line:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ header .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 999; padding-top: var(--hh); }
.nav-toggle:checked ~ .mobile-nav { display: block; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.mobile-nav-inner { position: relative; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link { display: block; padding: 12px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text2); text-decoration: none; transition: background .15s, color .15s; }
.mobile-nav-link:hover { background: var(--bg3); color: var(--text); }
.mobile-nav-link.nav-active { color: var(--text); background: var(--bg3); box-shadow: inset 3px 0 0 var(--purple); }
.mobile-nav-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.mobile-nav-btns .btn { width: 100%; justify-content: center; }

/* ── MOTION (only when the reader has not asked for less) ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-stars { animation: drift 90s linear infinite; }
  @keyframes drift { to { background-position: 240px -240px; } }
  .hero-badge-dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
  .hero-content > * { animation: rise .7s ease-out both; }
  .hero-content > :nth-child(2) { animation-delay: .08s; }
  .hero-content > :nth-child(3) { animation-delay: .16s; }
  .hero-content > :nth-child(4) { animation-delay: .24s; }
  .hero-content > :nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .viz-fill { animation: grow 1.4s cubic-bezier(.2,.7,.2,1) both .3s; }
  @keyframes grow { from { transform: scaleX(0); } }
  .tick.replay { animation: replay 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
  @keyframes replay { 0%, 100% { opacity: 1; } 45% { opacity: .35; } }
  .tick.warn { animation: pulse 1.6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  header nav a { padding: 6px 8px; }
}
@media (max-width: 1000px) {
  .pillar-inner { grid-template-columns: 1fr; gap: 34px; }
  .pillar.flip .pillar-visual { order: 0; }
  .pillar-body { max-width: none; }
}
@media (max-width: 900px) {
  :root { --subh: 52px; }
  header nav, .hdr-btns, header .discord-join { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .subnav-link { font-size: 12.5px; padding: 8px 10px 10px; }
  .subnav-link::after { left: 10px; right: 10px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  #hero { min-height: 0; }
  .hero-content { padding: 0 16px; }
  .hero-tagline { font-size: 16px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-stats { gap: 20px; }
  .hero-divider { display: none; }
  .hero-stat-val { font-size: 22px; }
  .hero-claims { grid-template-columns: 1fr; gap: 14px; }
  .hero-claim-title { font-size: 16px; }
  .hero-claim-body { font-size: 14px; }
  .pillar { padding: 52px 0; }
  .engine-primary { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .compat-engines { grid-template-columns: repeat(2,1fr); }
  .pillar-body { font-size: 15px; }
  .viz-card { padding: 20px; }
  .tick-cells { gap: 3px; }
  .tick { height: 18px; }
  .range-split { grid-template-columns: 1fr; }
  .code-layout { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .code-tabs { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; gap: 6px; padding-bottom: 4px; }
  .code-tab { white-space: nowrap; flex-shrink: 0; }
  .pedigree-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-in { flex-direction: column; gap: 12px; text-align: center; }
  .downloads-page { padding: calc(var(--hh) + 32px) 16px 48px; }
  .gate-card { padding: 6px 16px 16px; }
  .fp-hero { padding: calc(var(--hh) + var(--subh) + 24px) 0 34px; }
  .fp-hero-stats { gap: 20px; margin-top: 28px; }
  .fp-section { padding: 48px 0; }
  .fp-group-head { gap: 14px; margin-bottom: 24px; }
  .fp-group-icon { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
  .fp-group-blurb { font-size: 14px; }
  .fp-grid { grid-template-columns: 1fr; gap: 12px; }
  .fp-card { padding: 18px; }
  .price-panel { padding: 20px; gap: 18px; }
  .price-panel-copy { min-width: 0; }
  .price-panel-btn { width: 100%; justify-content: center; }
  .legal-page { padding: calc(var(--hh) + 28px) 16px 56px; }
}
@media (max-width: 480px) {
  .compat-engines { gap: 8px; }
  .eng-card { padding: 14px 8px; }
  .eng-icon { width: 24px; height: 24px; margin: 0 auto 5px; }
  .eng-name { font-size: 11px; }
  .eng-tag { font-size: 9px; }
  .hero-stats { gap: 16px; }
  .hero-stat-val { font-size: 20px; }
}

/* Showcase: three image cards */
#showcase { background: var(--bg2); }
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.show-card { background: var(--card-glass); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.show-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.show-body { padding: 22px 22px 26px; }
.show-title { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.4px; color: var(--text); margin-bottom: 12px; }
.show-desc { font-size: 15px; line-height: 1.7; color: var(--text2); }
.show-desc a { color: var(--purplel); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .show-grid { grid-template-columns: 1fr; } }

/* Genres: game cards, two rows of three */
#genres .sec-sub { margin-bottom: 28px; }
.genre-img { aspect-ratio: 460 / 215; }
.genre-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--purplel); border: 1px solid var(--border2); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }
.genre-why { list-style: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.genre-why li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.6; color: var(--text2); }
.genre-why li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 1px; background: var(--purple); }
.genre-why a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border3); text-underline-offset: 3px; }

/* Packages: styled like a GitHub repositories page (GitHub dark palette, flat) */
#packages { --gh-bg: #0d1117; --gh-bg2: #161b22; --gh-line: #30363d; --gh-fg: #e6edf3; --gh-mut: #8d96a0; --gh-link: #4493f8; --gh-cs: #178600; --gh-js: #f1e05a; }
#packages .sec-sub { margin-bottom: 28px; }
.gh { background: var(--gh-bg); border: 1px solid var(--gh-line); border-radius: 12px; overflow: hidden; color: var(--gh-fg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; }
.gh-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px 0; background: var(--gh-bg2); border-bottom: 1px solid var(--gh-line); }
.gh-mark { color: var(--gh-fg); margin-bottom: 14px; }
.gh-org { font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.gh-tabs { display: flex; gap: 4px; width: 100%; font-size: 14px; color: var(--gh-fg); overflow-x: auto; }
.gh-tabs span { padding: 8px 10px 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.gh-tabs .on { border-bottom-color: #f78166; font-weight: 600; }
.gh-tabs b { display: inline-block; margin-left: 4px; padding: 0 7px; font-size: 12px; line-height: 18px; border-radius: 999px; background: #31373d; font-weight: 500; }
.gh-filter { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--gh-line); }
.gh-search { flex: 1 1 220px; padding: 5px 12px; font-size: 14px; color: var(--gh-mut); background: var(--gh-bg); border: 1px solid var(--gh-line); border-radius: 6px; }
.gh-btn { padding: 5px 14px; font-size: 13px; font-weight: 500; background: #21262d; border: 1px solid var(--gh-line); border-radius: 6px; }
.gh-btn::after { content: ' \25BE'; color: var(--gh-mut); }
.gh-list { list-style: none; margin: 0; padding: 0; }
.gh-repo { padding: 22px 20px; border-bottom: 1px solid var(--gh-line); }
.gh-repo:last-child { border-bottom: 0; }
.gh-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gh-name a { color: var(--gh-link); font-size: 20px; font-weight: 600; text-decoration: none; word-break: break-word; }
.gh-name a:hover { text-decoration: underline; }
.gh-pill { font-size: 12px; font-weight: 500; line-height: 18px; padding: 0 7px; color: var(--gh-mut); border: 1px solid var(--gh-line); border-radius: 999px; }
.gh-desc { color: var(--gh-mut); font-size: 14px; line-height: 1.6; max-width: 820px; margin: 0 0 12px; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--gh-mut); }
.gh-meta span { display: inline-flex; align-items: center; gap: 6px; }
.gh-lang { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* FAQ */
.faq-hero { padding: calc(var(--hh) + 64px) 0 52px; border-bottom: 1px solid var(--border); text-align: center; }
.faq-hero-inner { position: relative; z-index: 1; }
.faq-hero .sec-sub { margin: 0 auto; }
.faq-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.faq-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border2); background: var(--bg2);
  font-size: 13px; font-weight: 600; color: var(--text2); text-decoration: none; transition: color .15s, border-color .15s, background .15s;
}
.faq-chip:hover { color: var(--text); border-color: var(--border3); background: var(--bg3); }
.faq-list { max-width: 860px; padding-top: 20px; padding-bottom: 72px; }
.faq-group { padding: 36px 0 0; overflow-x: visible; }
.faq-group-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--text); margin-bottom: 4px; }
.faq-item { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card-glass); transition: border-color .18s; }
.faq-item[open], .faq-item:hover { border-color: var(--border2); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px;
  list-style: none; cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; font-family: var(--mono); font-size: 20px; line-height: 1.1; color: var(--purplel); transition: transform .18s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--purplel); outline-offset: 2px; border-radius: 12px; }
.faq-answer { padding: 0 22px 22px; font-size: 15px; line-height: 1.7; color: var(--text2); }
.faq-answer > * + * { margin-top: 12px; }
.faq-answer a { color: var(--purplel); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.faq-lead { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.25; letter-spacing: -.5px; color: var(--text); }
.faq-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-col { --faq-accent: var(--cyan); padding: 18px 20px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--border); border-top: 2px solid var(--faq-accent); }
.faq-col-people { --faq-accent: var(--emerald); }
.faq-col-title { font-size: 15px; font-weight: 800; color: var(--faq-accent); margin-bottom: 12px; }
.faq-points { list-style: none; display: grid; gap: 10px; }
.faq-points li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.6; }
.faq-points li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 1px; background: var(--faq-accent, var(--purple)); }
.faq-points strong { color: var(--text); font-weight: 700; }
@media (max-width: 768px) {
  .faq-hero { padding: calc(var(--hh) + 36px) 0 36px; }
  .faq-split { grid-template-columns: 1fr; }
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-answer { padding: 0 18px 18px; }
  .faq-col { padding: 16px; }
}

/* Pedigree note, now at the bottom of the hero */
.hero-content .pedigree-copy { max-width: 880px; margin: 44px auto 0; text-align: left; }

/* Deploy: alternating text card and image rows */
#deploy .sec-sub { margin-bottom: 36px; }
.dep-list { display: grid; gap: 40px; }
.dep-row { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: stretch; }
.dep-row.flip { grid-template-columns: 3fr 2fr; }
.dep-row.flip .dep-card { order: 2; }
.dep-card { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 30px 26px; }
.dep-title { font-size: 28px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.dep-desc { font-size: 15px; line-height: 1.8; color: var(--text2); margin-bottom: 28px; }
.dep-btn { margin-top: auto; align-self: flex-start; padding: 8px 16px; font-size: 14px; font-weight: 500; color: #0b0b10; background: var(--purplel); border-radius: 3px; text-decoration: none; transition: background .2s; }
.dep-btn:hover { background: var(--text); }
.dep-img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 900px) {
  .dep-row, .dep-row.flip { grid-template-columns: 1fr; gap: 16px; }
  .dep-row.flip .dep-card { order: 0; }
  .dep-row .dep-img { order: -1; min-height: 0; height: auto; aspect-ratio: 16 / 9; }
}

/* Deploy collage: hosting services and platforms, official brand logos as plain img files so file:// works */
.dep-collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 10px; min-height: 300px; padding: 20px; background: var(--bg2); border-radius: 6px; }
.dep-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px; }
.dep-tile img { display: block; box-sizing: border-box; width: 64px; height: 64px; max-width: 100%; padding: 12px; object-fit: contain; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.dep-tile img.icon { padding: 0; }
.dep-tile img.wide { width: 120px; padding: 10px 12px; }
.dep-tile span { font-size: 11px; font-weight: 600; color: var(--text3, #7a8899); letter-spacing: .3px; text-align: center; }
@media (max-width: 900px) { .dep-collage { order: -1; min-height: 0; grid-template-columns: repeat(3, 1fr); } .dep-tile img { width: 52px; height: 52px; padding: 10px; border-radius: 13px; } .dep-tile img.icon { padding: 0; } .dep-tile img.wide { width: 96px; padding: 8px 10px; } }

/* FAQ: security stat pair */
.faq-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.faq-stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid var(--rose); border-radius: 6px; }
.faq-stat-good { border-left-color: var(--emerald); }
.faq-stat-num { font-size: 32px; font-weight: 900; letter-spacing: -1px; line-height: 1; color: var(--text); }
.faq-stat-label { font-size: 14px; line-height: 1.55; color: var(--text2); }
@media (max-width: 640px) { .faq-stats { grid-template-columns: 1fr; } }

/* Home: alternating flat section backgrounds (four tones, no stars) */
:root { --tone-1: #0e0e12; --tone-2: #14141b; --tone-3: #12101e; --tone-4: #0e1418; }
#hero { background: var(--tone-3); }
#genres { background: var(--tone-1); }
#packages { background: var(--tone-2); }
#deploy { background: var(--tone-4); }
#bandwidth { background: var(--tone-1); }
#prediction { background: var(--tone-3); }
#scale { background: var(--tone-2); }
#authority { background: var(--tone-4); }
#stack { background: var(--tone-1); }
#showcase { background: var(--tone-3); }
.faq-hero { background: var(--tone-3); }

/* Deploy rows joined into one panel: text side in a deep indigo, picture side in the slate navy of the artwork */
.dep-row { gap: 0; border-radius: 10px; overflow: hidden; }
.dep-card { background: #1a1830; border: 0; border-radius: 0; padding: 40px 36px; }
.dep-img, .dep-collage { border-radius: 0; }
.dep-collage { background: #16202a; }
@media (max-width: 900px) { .dep-row, .dep-row.flip { gap: 0; } .dep-card { padding: 28px 22px; } }
/* Each deploy row gets its own text-panel colour */
.dep-row:nth-child(1) .dep-card { background: #1a1830; }
.dep-row:nth-child(1) .dep-collage { background: #121f24; }
.dep-row:nth-child(2) .dep-card { background: #261726; }

/* Deploy grid: no text panels. Launch copy top-left, logos top-right, chairs under the launch copy
   reaching up into the first row, host-migration copy beside the chairs. */
.dep-grid { display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 48px; row-gap: 0; align-items: start; }
.dep-text { padding: 0; background: none; border: 0; }
.dep-launch { grid-column: 1; grid-row: 1; padding-top: 12px; max-width: 460px; }
.dep-grid .dep-collage { grid-column: 2; grid-row: 1; border-radius: 10px; background: #121f24; }
.dep-chairs { grid-column: 1; grid-row: 2; width: 100%; height: auto; display: block; margin-top: -130px; position: relative; z-index: 1; pointer-events: none; }
.dep-host { grid-column: 2; grid-row: 2; align-self: center; padding: 0; max-width: 520px; }
@media (max-width: 900px) {
  .dep-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .dep-launch, .dep-grid .dep-collage, .dep-chairs, .dep-host { grid-column: 1; grid-row: auto; }
  .dep-grid .dep-collage { order: 0; }
  .dep-chairs { margin-top: 0; max-width: 520px; }
  .dep-host { padding-top: 0; }
}
/* Single vector chair: portrait, so cap its size and centre it under the launch copy */
.dep-chairs { width: auto; max-width: calc(100% - 40px); height: 360px; margin: -196px 0 0 40px; justify-self: start; }
@media (max-width: 900px) { .dep-chairs { height: 280px; margin: 0 auto; } }

/* ── LIGHT THEME ── ported from the real site's "Daylight" theme (app/globals.css), toggled by data-theme="light" on <html>. */
:root[data-theme="light"] {
  /* ── Surfaces: Lunar's, mirrored ── */
  --bg:               #ededf1;               /* the page itself */
  --bg2:              #e8e8ed;               /* every other section band */
  --bg3:              #dedee5;               /* hover, and the active tab */
  --bgcard:           #e2e2e8;               /* the standard card face */
  --header-bg:        rgba(237,237,241,0.92);/* header and section bar, over a blur */

  /* ── Accents: Lunar's hues, walked down until they are readable. The ladder
        inverts with the ground: on a pale page the legible end is down, so the
        token that carries text is now the darkest of the three purples rather
        than the lightest. Every value below clears 4.5:1 on a card, which is the
        worse of the two grounds it can land on. ── */
  --purple:           #4f46e5;               /* brand: logo gradient, scrollbar, active nav underline. 4.87:1 */
  --purplem:          #4338ca;               /* feeds the sixth section accent. 6.13:1 */
  --purplel:          #3730a3;               /* carries text and badge labels, so the darkest. 7.70:1 */
  --cyan:             #155e75;               /* the far end of every brand gradient. 5.63:1 */
  --emerald:          #065f46;               /* live and healthy. 5.96:1 */
  --amber:            #92400e;               /* attention without alarm; the orange that was unreadable. 5.50:1 */
  --rose:             #be123c;               /* something failed. 4.87:1 */

  /* ── Text: Lunar's, mirrored ── */
  --text:             #060a0e;               /* headings and anything read first */
  --text2:            #47566b;               /* body copy and table cells */
  --text3:            #667485;               /* labels, captions, placeholders */

  /* ── Lines and hover wash: Lunar's, which read faint on a pale ground ── */
  --border:           rgba(99,102,241,0.15); /* the default hairline */
  --border2:          rgba(99,102,241,0.28); /* a border meant to be noticed */
  --border3:          rgba(99,102,241,0.55); /* ghost button hover */
  --hover-tint:       rgba(99,102,241,0.08); /* laid over a surface on hover */
  --popover-shadow:   0 8px 32px rgba(15,23,42,0.18); /* the drop under the account menu; Lunar's half-opacity black was a bruise here */
  --github-mark:      brightness(0);                  /* flattened to black: inverted, the glyph vanished into the button */
  --unity-mark:       #000;                           /* the black cube, which is the variant Unity supplies for a light surface */
  --flax-mark:        url(/brand/flax-light.png);     /* the blue-backed mark, which is what Flax asks for on a light surface */

  /* ── Status washes, same in every theme ── */
  --ok-bg:            rgba(16,185,129,0.1);  /* a claimed voucher, a link that worked */
  --ok-border:        rgba(16,185,129,0.22); /* the edge of that wash */
  --bad-bg:           rgba(244,63,94,0.09);  /* a link that did not work */
  --bad-border:       rgba(244,63,94,0.22);  /* the edge of that wash */

  /* ── Pro download tier: a pale wash with dark text on it, rather than Lunar's
        light-on-violet, which washed out completely here. ── */
  --pro-color:        #3730a3;               /* the Pro badge's text */
  --pro-bg:           rgba(99,102,241,0.10); /* the pill behind it, lighter than Lunar's */
  --pro-border:       rgba(99,102,241,0.30); /* the card edge for a highlighted Pro release */
  --pro-hi-bg:        rgba(99,102,241,0.05); /* that card's fill */

  /* ── Free download tier: Lunar's ── */
  --free-color:       #10b981;               /* the tier's label and download button */
  --free-bg:          rgba(16,185,129,0.12); /* the card behind a free release */
  --free-border:      rgba(16,185,129,0.3);  /* that card's edge */
  --free-hi-bg:       rgba(16,185,129,0.07); /* a highlighted row */

  /* ── Code window: deliberately not flipped, so the syntax still reads ── */
  --code-bg:          #0f172a;               /* the slab the code sits on */
  --code-hdr-bg:      #1e293b;               /* its title bar */
  --code-border:      rgba(99,102,241,0.28); /* around the whole window */
  --code-hdr-border:  rgba(99,102,241,0.2);  /* under the title bar, and behind the copy button */
  --code-fname:       #94a3b8;               /* the filename */
  --code-fg:          #f1f5f9;               /* the code itself, still light on the dark slab */

  /* ── Syntax: unchanged, since the slab under it is unchanged ── */
  --syn-kw:           #c792ea;               /* keywords */
  --syn-ty:           #82aaff;               /* type names, and calls on them */
  --syn-st:           #c3e88d;               /* string literals */
  --syn-cm:           #4a6070;               /* comments */
  --syn-pr:           #f07178;               /* properties and fields */
  --syn-pu:           #89ddff;               /* punctuation and operators */
  --syn-ns:           #ffcb6b;               /* namespaces */
  --syn-nm:           #f78c6c;               /* numbers */

  /* ── Set again by the theme switcher at runtime ── */
  --cmd-color:        var(--cyan);           /* a shell command shown for copying */
  --cmd-prompt:       var(--text3);          /* the $ in front of it */

  /* ── Section accents: Lunar's, untouched ── */
  --fp-a1:            var(--purple);         /* first section */
  --fp-a2:            var(--cyan);           /* second */
  --fp-a3:            var(--amber);          /* third */
  --fp-a4:            var(--emerald);        /* fourth */
  --fp-a5:            var(--rose);           /* fifth, and the home page's warning tick */
  --fp-a6:            var(--purplem);        /* sixth */
  --fp-a7:            var(--purplel);        /* seventh */
  --card-glass: rgba(255,255,255,.8);
  --tone-1: #ededf1; --tone-2: #e5e5ec; --tone-3: #e8e7f4; --tone-4: #e3eaee;
}
:root[data-theme="light"] .hero-claim { background: rgba(255,255,255,.65); }
:root[data-theme="light"] .btn-emerald { background: #d1fae5; color: #065f46; box-shadow: none; }
:root[data-theme="light"] .dep-grid .dep-collage { background: #dde3ea; }
:root[data-theme="light"] .dep-tile i, :root[data-theme="light"] .dep-tile img { box-shadow: 0 4px 10px rgba(0,0,0,.12); }
:root[data-theme="light"] #packages { --gh-bg: #ffffff; --gh-bg2: #f6f8fa; --gh-line: #d1d9e0; --gh-fg: #1f2328; --gh-mut: #59636e; --gh-link: #0969da; }
:root[data-theme="light"] .gh-tabs b { background: #e6eaef; }
:root[data-theme="light"] .gh-btn { background: #f6f8fa; }
:root[data-theme="light"] .faq-stat { background: #ffffff; }

/* Theme toggle in the header */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 8px; border-radius: 8px; border: 1px solid var(--border2); background: transparent; color: var(--text2); cursor: pointer; font-size: 16px; line-height: 1; }
.theme-toggle:hover { color: var(--text); border-color: var(--border3); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: inline; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .engine-primary { background: color-mix(in srgb, var(--pillar-accent, var(--purple)) 10%, #ffffff); }
:root[data-theme="light"] .price-panel { background: color-mix(in srgb, var(--purple) 8%, #ffffff); }

/* Features: All / Pro only filter under the hero */
.fp-filter-bar { padding: 22px 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.fp-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.fp-filter-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; font: 600 14px/1 var(--sans, inherit); color: var(--text2); background: transparent; border: 1px solid var(--border2); border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.fp-filter-btn:hover { color: var(--text); border-color: var(--border3); }
.fp-filter-btn.on { color: #fff; background: var(--purple); border-color: var(--purple); }
.fp-filter-count { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--bg3); color: var(--text2); }
.fp-filter-btn.on .fp-filter-count { background: rgba(255,255,255,.2); color: #fff; }
.fp-card[hidden], .fp-section[hidden], .subnav a[hidden] { display: none !important; }

/* Pro feature cards: listed first in each group, with a picture strip across the top */
.fp-card-art { margin: -22px -22px 18px; aspect-ratio: 16 / 9; background: var(--bg3); border-bottom: 1px solid var(--border); overflow: hidden; }
.fp-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fp-grid { align-items: start; }

/* Caption inside the logo grid: these are example services, not sponsors */
.dep-collage-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 2px 4px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dep-collage-title { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text2); }
.dep-collage-note { font-size: 12px; color: var(--text3, #7a8899); }
.dep-grid .dep-collage { grid-template-rows: auto; }
/* Tighter logo box, with breathing room before the host migration copy */
.dep-grid .dep-collage { min-height: 0; padding: 14px 18px 16px; gap: 4px 10px; margin-bottom: 44px; }
.dep-grid .dep-tile { padding: 6px 4px; gap: 7px; }
.dep-grid .dep-collage-head { padding: 0 2px 8px; margin-bottom: 4px; }
/* Feature cards: no numbers; Pro / In development badge sits where the number was */
.fp-card-top { justify-content: flex-start; }
/* The first free card after the Pro cards always starts a new row */
.fp-card-pro + .fp-card:not(.fp-card-pro) { grid-column-start: 1; }

/* Each page's hero gets its own flat colour (dark, then light theme) */
#hero { background: #12101e; }
.hero-features { background: #0d1a1d; }
.hero-pricing { background: #1a150f; }
.faq-hero { background: #19111c; }
:root[data-theme="light"] #hero { background: #e8e7f4; }
:root[data-theme="light"] .hero-features { background: #e0eef0; }
:root[data-theme="light"] .hero-pricing { background: #f3ebe0; }
:root[data-theme="light"] .faq-hero { background: #f1e6f2; }
/* Home hero: natural height and a clearly distinct indigo */
#hero { min-height: 0; padding-bottom: 72px; background: #1b1735; }
:root[data-theme="light"] #hero { background: #dedaf8; }
:root { --subh: 0px; }

/* Header: nav links on top, Discord Join + live member counts underneath, aligned with the first link */
:root { --hh: 96px; }
.nav-col { display: flex; flex-direction: column; flex: 1; gap: 6px; min-width: 0; }
.nav-col nav { flex: none; }
.discord-row { display: flex; align-items: center; gap: 12px; padding-left: 11px; }
.discord-row .discord-join { padding-top: 4px; padding-bottom: 4px; }
.discord-stats { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }
.discord-stats[hidden] { display: none; }
.discord-stats b { color: var(--text2); font-weight: 600; }
.dc-sep { width: 1px; height: 12px; background: var(--border2); margin: 0 4px; }
.dc-dot { width: 7px; height: 7px; border-radius: 50%; background: #23a55a; display: inline-block; font-style: normal; }
/* Report a bug or suggest an enhancement: beside the Discord counts, and under Join in the mobile menu */
.report-link { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(129,140,248,.55); background: rgba(99,102,241,.14); box-shadow: 0 0 12px rgba(99,102,241,.18); color: var(--purplel); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s; }
.report-link:hover { color: var(--text); background: rgba(99,102,241,.26); }
.report-link svg { flex-shrink: 0; }
.report-link.mobile { margin: 8px 0 0; justify-content: center; white-space: normal; }
@media (max-width: 900px) {
  :root { --hh: 66px; }
  .discord-row { display: none; }
}
.discord-row .discord-join { margin: 0; }
.nav-col { gap: 10px; }
.discord-row { padding-left: 0; }
.discord-row { padding-left: 11px; }

/* Header: Join + live counts sit under the logo, left aligned with it */
.brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex-shrink: 0; }
.brand-col .discord-row { padding-left: 0; }
header nav { flex: 1; }
@media (max-width: 900px) { .brand-col .discord-row { display: none; } }

/* Header grid: logo, links and right-hand buttons share one top row; Join + counts sit on a second row under the logo */
.header-inner { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-rows: auto auto; column-gap: 32px; row-gap: 8px; align-items: center; align-content: center; }
.brand-col { display: contents; }
.header-inner .logo { grid-column: 1; grid-row: 1; }
.header-inner nav { grid-column: 2; grid-row: 1; }
.header-inner .theme-toggle { grid-column: 3; grid-row: 1; margin-right: 0; }
.header-inner .hdr-btns { grid-column: 4; grid-row: 1; }
.header-inner .nav-hamburger { grid-column: 4; grid-row: 1; }
.header-inner .discord-row { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
@media (max-width: 900px) {
  .header-inner { grid-template-rows: auto; }
  .header-inner .theme-toggle { grid-column: 3; }
}

/* ── PERFORMANCE: stats, bar charts, donut ── */
#perf { background: var(--tone-1); }
#perf .sec-sub { margin-bottom: 8px; }
.pf-method { font-size: 15px; color: var(--text3); margin-bottom: 30px; }
.pf-method a { color: var(--fw-nucleus); text-decoration: underline; text-underline-offset: 3px; }
.pf-method a:hover { color: var(--text); }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.pf-stat { padding: 20px 20px 18px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.pf-big { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -1.5px; line-height: 1; color: var(--emerald); }
.pf-small { font-size: 13px; color: var(--text2); line-height: 1.45; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-card { padding: 24px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); }
.pf-wide { grid-column: 1 / -1; }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pf-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
.pf-crown { font-size: 12px; font-weight: 700; color: #052e1f; background: var(--emerald); padding: 4px 10px; border-radius: 999px; }
.pf-note { font-size: 13px; color: var(--text3); margin-bottom: 18px; }
.pf-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pf-group-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text2); margin-bottom: 10px; }
.pf-bars { display: grid; gap: 9px; flex: 1; min-width: 0; }
.pf-group .pf-bar + .pf-bar { margin-top: 9px; }
.pf-bar { display: grid; grid-template-columns: 92px 1fr 74px; align-items: center; gap: 10px; font-size: 13px; }
.pf-name { color: var(--text2); font-weight: 600; }
.pf-val { color: var(--text3); font-variant-numeric: tabular-nums; text-align: right; }
.pf-track { height: 12px; border-radius: 999px; background: var(--bg3); overflow: hidden; }
.pf-fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: #4d5578; transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.pf-in .pf-fill { transform: scaleX(1); }
.pf-bar.win .pf-name, .pf-bar.win .pf-val { color: var(--emerald); font-weight: 700; }
.pf-bar.win .pf-fill { background: var(--emerald); }
.pf-throttled { border: 1px dashed var(--border3); background: transparent; }
.pf-na .pf-name, .pf-na .pf-val { color: var(--text3); font-style: italic; font-weight: 500; }
.pf-bw, .pf-gc { display: flex; align-items: center; gap: 22px; }
.pf-donut { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.pf-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pf-ring { fill: none; stroke: #4d5578; stroke-width: 14; }
.pf-arc { fill: none; stroke: var(--emerald); stroke-width: 14; stroke-linecap: butt; }
.pf-donut-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pf-donut-txt b { font-size: 24px; font-weight: 900; color: var(--emerald); letter-spacing: -.5px; }
.pf-donut-txt span { font-size: 10.5px; color: var(--text3); max-width: 80px; line-height: 1.3; }
.pf-zero { width: 132px; height: 132px; flex-shrink: 0; border-radius: 50%; border: 3px solid var(--emerald); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pf-zero b { font-size: 52px; font-weight: 900; line-height: 1; color: var(--emerald); }
.pf-zero span { font-size: 11px; color: var(--text3); }
.pf-foot { margin-top: 18px; font-size: 12px; line-height: 1.65; color: var(--text3); max-width: 980px; }
@media (max-width: 900px) {
  .pf-stats { grid-template-columns: 1fr 1fr; }
  .pf-grid, .pf-groups { grid-template-columns: 1fr; }
  .pf-bw, .pf-gc { flex-direction: column; align-items: stretch; }
  .pf-donut, .pf-zero { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .pf-fill { transition: none; transform: none; } }
:root[data-theme="light"] .pf-crown { color: #ffffff; }

/* Performance v2: bandwidth columns and garbage line graph (no pie or donut) */
.pf-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; height: 204px; padding-top: 6px; }
.pf-col { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.pf-col-track { flex: 1; width: 100%; max-width: 64px; display: flex; align-items: flex-end; border-radius: 8px 8px 0 0; background: var(--bg3); overflow: hidden; }
.pf-col-fill { display: block; width: 100%; height: var(--h); background: #4d5578; border-radius: 8px 8px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.pf-in .pf-col-fill { transform: scaleY(1); }
.pf-col-val { font-size: 13px; font-weight: 700; color: var(--text2); font-variant-numeric: tabular-nums; }
.pf-col-name { font-size: 13px; font-weight: 600; color: var(--text2); }
.pf-col.win .pf-col-fill { background: var(--emerald); }
.pf-col.win .pf-col-val, .pf-col.win .pf-col-name { color: var(--emerald); }
.pf-gc { display: block; }
.pf-wire { width: 100%; height: auto; display: block; overflow: visible; }
.pf-gl { stroke: var(--border); stroke-width: 1; }
.pf-base { stroke: var(--border2); stroke-width: 1.5; }
.pf-axis { font-size: 11px; fill: var(--text3); font-family: inherit; }
.pf-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.2s ease-out; }
.pf-line.win { stroke-width: 4; }
.pf-in .pf-line { stroke-dashoffset: 0; }
.pf-lbl { font-size: 12px; font-weight: 600; fill: var(--text2); font-family: inherit; }
.pf-lbl.win { fill: var(--emerald); font-weight: 800; }
.pf-gc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--text3); }
.pf-gc-legend b { color: var(--text2); }
.pf-gc-legend b.win { color: var(--emerald); }
.pf-gc-legend em { font-style: normal; margin-left: auto; }
.pf-gc-legend .pf-break { flex-basis: 100%; height: 0; }
@media (prefers-reduced-motion: reduce) { .pf-col-fill, .pf-line { transition: none; transform: none; stroke-dashoffset: 0; } }

/* Performance: each benchmark has its own palette. --pf-hi = Nucleus (winner), --pf-lo = everyone else, --pf-ink = badge text */
.pf-cpu { --pf-hi: #22d3ee; --pf-lo: #2f5f6e; --pf-ink: #062a33; }
.pf-bwc { --pf-hi: #a78bfa; --pf-lo: #4e4775; --pf-ink: #1e1048; }
.pf-gcc { --pf-hi: #fbbf24; --pf-lo: #6b5530; --pf-ink: #3a2500; }
:root[data-theme="light"] .pf-cpu { --pf-hi: #0e7490; --pf-lo: #8fb7c2; --pf-ink: #ffffff; }
:root[data-theme="light"] .pf-bwc { --pf-hi: #6d28d9; --pf-lo: #b3a6d9; --pf-ink: #ffffff; }
:root[data-theme="light"] .pf-gcc { --pf-hi: #b45309; --pf-lo: #d6bd8f; --pf-ink: #ffffff; }
.pf-card .pf-crown { background: var(--pf-hi); color: var(--pf-ink); }
.pf-card .pf-fill, .pf-card .pf-col-fill { background: var(--pf-lo); }
.pf-card .pf-bar.win .pf-fill, .pf-card .pf-col.win .pf-col-fill { background: var(--pf-hi); }
.pf-card .pf-bar.win .pf-name, .pf-card .pf-bar.win .pf-val, .pf-card .pf-col.win .pf-col-val, .pf-card .pf-col.win .pf-col-name, .pf-card .pf-lbl.win, .pf-card .pf-gc-legend b.win { color: var(--pf-hi); fill: var(--pf-hi); }
.pf-card { border-top: 3px solid var(--pf-hi); }

/* Performance v3: one colour per framework across every chart, and each benchmark card on its own background */
:root { --fw-nucleus: #22d3ee; --fw-purrnet: #fb923c; --fw-fishnet: #a78bfa; --fw-fusion: #f472b6; }
:root[data-theme="light"] { --fw-nucleus: #0891b2; --fw-purrnet: #ea580c; --fw-fishnet: #7c3aed; --fw-fusion: #db2777; }
.pf-card .fw-nucleus .pf-fill, .pf-card .fw-nucleus .pf-col-fill { background: var(--fw-nucleus); }
.pf-card .fw-purrnet .pf-fill, .pf-card .fw-purrnet .pf-col-fill { background: var(--fw-purrnet); }
.pf-card .fw-fishnet .pf-fill, .pf-card .fw-fishnet .pf-col-fill { background: var(--fw-fishnet); }
.pf-card .fw-fusion .pf-fill, .pf-card .fw-fusion .pf-col-fill { background: var(--fw-fusion); }
.pf-card .pf-bar .pf-name, .pf-card .pf-col-name { color: var(--text2); }
.pf-card .pf-bar.win .pf-name, .pf-card .pf-bar.win .pf-val, .pf-card .pf-col.win .pf-col-val, .pf-card .pf-col.win .pf-col-name { color: var(--fw-nucleus); }
.pf-card .pf-crown { background: var(--fw-nucleus); color: #062a33; }
:root[data-theme="light"] .pf-card .pf-crown { color: #ffffff; }
.pf-card { border-top: 1px solid var(--border); }
.pf-cpu { background: #0f1e26; }
.pf-bwc { background: #18142b; }
.pf-gcc { background: #211a12; }
:root[data-theme="light"] .pf-cpu { background: #e3f1f5; }
:root[data-theme="light"] .pf-bwc { background: #ece7f8; }
:root[data-theme="light"] .pf-gcc { background: #f6ede0; }
.pf-card .pf-track, .pf-card .pf-col-track { background: rgba(127,127,127,.12); }
.pf-cpu, .pf-bwc, .pf-gcc, :root[data-theme="light"] .pf-cpu, :root[data-theme="light"] .pf-bwc, :root[data-theme="light"] .pf-gcc { --pf-hi: var(--fw-nucleus); }
/* Services box: columns may shrink so wide logos never force a scrollbar */
.dep-grid .dep-collage { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.dep-tile { min-width: 0; }
.dep-tile img.wide { max-width: 100%; height: auto; aspect-ratio: 120 / 64; }
@media (max-width: 900px) { .dep-grid .dep-collage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#perf { background: var(--tone-2); }
#packages { background: var(--tone-1); }
.pf-card-note { margin-top: 16px; font-size: 12px; color: var(--text3); }
/* Normcore takes PurrNet's orange in the benchmark charts */
:root { --fw-normcore: #fb923c; }
:root[data-theme="light"] { --fw-normcore: #ea580c; }
.pf-card .fw-normcore .pf-fill, .pf-card .fw-normcore .pf-col-fill { background: var(--fw-normcore); }
/* NGO (Netcode for GameObjects) gets green in the benchmark charts */
:root { --fw-ngo: #34d399; }
:root[data-theme="light"] { --fw-ngo: #059669; }
.pf-card .fw-ngo .pf-fill, .pf-card .fw-ngo .pf-col-fill { background: var(--fw-ngo); }
:root { --fw-mirror: #facc15; }
:root[data-theme="light"] { --fw-mirror: #ca8a04; }
.pf-card .fw-mirror .pf-fill, .pf-card .fw-mirror .pf-col-fill { background: var(--fw-mirror); }
.pf-columns { grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* Footer contact block, replaces the old contact page */
.foot-contact { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 36px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.foot-col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.foot-col p { font-size: 13px; line-height: 1.65; color: var(--text2); margin: 0; }
.foot-col a { color: var(--purplel); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--text); }
@media (max-width: 900px) { .foot-contact { grid-template-columns: 1fr; gap: 18px; } }
.foot-contact-title { font-size: 18px; font-weight: 800; letter-spacing: -.3px; color: var(--text); padding-top: 36px; margin: 0; }
.foot-contact-title + .foot-contact { padding-top: 14px; }
/* Text-only platform tile (Steam): our own type, no trademarked logo */
.dep-tile .dep-word { display: flex; align-items: center; justify-content: center; width: 120px; max-width: 100%; height: 64px; border-radius: 16px; background: #1b2838; color: #ffffff; font-size: 22px; font-weight: 800; letter-spacing: -.3px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
@media (max-width: 900px) { .dep-tile .dep-word { height: 52px; font-size: 18px; border-radius: 13px; } }

/* Inner pages have no hero, so their content starts below the fixed header */
body.no-hero { padding-top: var(--hh); }

/* Pro cards: a slim banner across the top instead of a picture */
.fp-pro-banner { margin: -22px -22px 16px; padding: 6px 22px; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #ffffff; background: var(--purple); }
/* Split banner for a Pro feature that is still in development */
.fp-pro-banner.split { display: flex; padding: 0; background: none; }
.fp-pro-banner.split span { flex: 1; padding: 6px 22px; background: var(--purple); color: #ffffff; }
.fp-pro-banner.split .dev { background: var(--amber); color: #2a1a00; text-align: right; }
/* Banners keep their dark-theme colours in the light theme too */
.fp-pro-banner, .fp-pro-banner.split span { background: #6366f1; }
.fp-pro-banner.split .dev { background: #f59e0b; color: #2a1a00; }
/* Split banner always stays on one line, however narrow the card */
.fp-pro-banner.split { overflow: hidden; }
.fp-pro-banner.split span { white-space: nowrap; padding: 6px 14px; letter-spacing: 1px; }
.fp-pro-banner.split span:first-child { flex: 0 0 auto; padding-left: 22px; }
.fp-pro-banner.split .dev { flex: 1 1 auto; min-width: 0; text-overflow: ellipsis; overflow: hidden; }
/* Pro half fills the banner (left aligned); In development is only as wide as its label (right aligned) */
.fp-pro-banner.split span:first-child { flex: 1 1 auto; text-align: left; }
.fp-pro-banner.split .dev { flex: 0 0 auto; text-align: right; padding-right: 22px; overflow: visible; }
.fp-filter-bar { padding-top: 40px; }
/* A feature that is only in development gets a full amber banner, left aligned like the Pro one */
.fp-pro-banner.fp-dev-banner { background: #f59e0b; color: #2a1a00; text-align: left; }
/* Features page: editorial split. Sticky category column on the left, features read as an article on the right */
.fp-section.ed-band { padding: 0; background: var(--bg); border-top: 1px solid var(--border); }
.fp-section.ed-band.alt { background: var(--bg2); }
.ed-grid { display: grid; grid-template-columns: 35% 1fr; gap: 64px; }
.ed-side { position: sticky; top: calc(var(--hh) + 40px); align-self: start; padding: 72px 0 40px; }
.ed-side .fp-group-title { font-size: clamp(28px, 2.9vw, 38px); letter-spacing: -1.2px; margin-bottom: 18px; }
.ed-side .fp-group-title::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--fp-accent); margin-bottom: 22px; }
.ed-side .fp-group-blurb { font-size: 15.5px; }
.ed-stat { margin-top: 22px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.ed-stat b { color: var(--fp-accent); font-weight: 600; }
.ed-list { padding: 56px 0 64px; min-width: 0; }
/* Features read as an article, not cards: no box, thin rules between */
.ed-list .fp-card { background: none; border: 0; border-radius: 0; overflow: visible; padding: 40px 0; border-top: 1px solid var(--border); }
.ed-list .fp-card:first-child { border-top: 0; }
.ed-list .fp-card-top { display: none; }
.ed-list .fp-card-title { font-size: clamp(15px, 1.72vw, 22px); font-weight: 800; letter-spacing: -.4px; line-height: 1.2; margin-bottom: 12px; }
.ed-list .fp-card-desc { font-size: 16.5px; line-height: 1.75; color: var(--text2); max-width: 640px; }
/* Banner becomes a prominent pill above the title; colours and texts unchanged */
.ed-list .fp-pro-banner { display: inline-flex; margin: 0 0 16px; padding: 7px 16px; border-radius: 999px; font-size: 11.5px; line-height: 1.2; letter-spacing: 1.4px; }
.ed-list .fp-pro-banner.split { padding: 0; overflow: hidden; }
.ed-list .fp-pro-banner.split span, .ed-list .fp-pro-banner.split span:first-child, .ed-list .fp-pro-banner.split .dev { flex: 0 0 auto; padding: 7px 16px; letter-spacing: 1.4px; text-align: left; }
@media (max-width: 900px) {
  .ed-grid { grid-template-columns: 1fr; gap: 0; }
  .ed-side { position: static; padding: 48px 0 8px; }
  .ed-list { padding: 8px 0 40px; }
  .ed-list .fp-card { padding: 28px 0; }
  .ed-list .fp-card:first-child { border-top: 1px solid var(--border); }
  .ed-list .fp-card-desc { font-size: 15.5px; }
  .ed-list .fp-pro-banner.split span { padding: 7px 12px; letter-spacing: 1px; }
}
/* Bandwidth columns: a framework with no result gets a dashed empty track */
.pf-col.pf-na .pf-col-val, .pf-col.pf-na .pf-col-name { color: var(--text3); font-style: italic; font-weight: 500; }
.pf-col-track.pf-throttled { border-bottom: 0; }
.pf-col-val { white-space: nowrap; }
@media (max-width: 600px) {
  .pf-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .pf-col-val { font-size: 12px; }
}
/* Bandwidth and garbage cards share a row: the bandwidth columns fill whatever height the garbage chart gives it, so neither card is left with empty space. Names never wrap, since a wrapped name shortened its own bar; they shrink on narrow layouts instead. */
.pf-bwc { display: flex; flex-direction: column; }
.pf-bwc .pf-columns { flex: 1 1 auto; height: auto; min-height: 130px; }
.pf-col-name { white-space: nowrap; }
@media (max-width: 1100px) { .pf-col-name { font-size: 12px; } }
@media (max-width: 900px) { .pf-bwc .pf-columns { flex: none; height: 204px; } }
@media (max-width: 480px) { .pf-columns { gap: 4px; } .pf-col-name, .pf-col-val { font-size: 10.5px; } }
@media (max-width: 400px) { .pf-col-name, .pf-col-val { font-size: 10px; } }

/* CPU node charts */
.pf-cpuchart .pf-col { stroke-dasharray: 2 4; }
.pf-cpuchart .pf-xlbl { font-size: 12px; font-weight: 600; fill: var(--text2); }
.pf-cpuchart .pf-node { stroke: var(--bgcard); stroke-width: 2; }
.pf-cpuchart .pf-val-lbl { font-size: 11px; font-weight: 600; font-family: inherit; }
.pf-cpuchart .pf-val-lbl.win, .pf-cpuchart .pf-lbl.win { font-weight: 800; }
.pf-cpuchart .pf-lbl-ms { font-weight: 500; opacity: .8; }
.pf-cpuchart .pf-failband { stroke: color-mix(in srgb, #f87171 45%, transparent); stroke-width: 1; }
.pf-cpuchart .pf-hatch { stroke: color-mix(in srgb, #f87171 22%, transparent); stroke-width: 3; }
.pf-cpuchart .pf-failtxt { fill: #f87171; font-weight: 600; }
.pf-cpuchart .pf-failnames { font-size: 11px; font-weight: 700; font-family: inherit; }
.pf-cpuchart .pf-area { opacity: 0; transition: opacity 1.2s ease-out .3s; }
.pf-in .pf-cpuchart .pf-area { opacity: 1; }
:root[data-theme="light"] .pf-cpuchart .pf-failtxt { fill: #dc2626; }
@media (prefers-reduced-motion: reduce) { .pf-cpuchart .pf-area { transition: none; opacity: 1; } }
.pf-cpuchart .pf-sep { fill: var(--text3); font-weight: 500; }

/* CPU dumbbell charts */
.pf-dumb .pf-bell { stroke-width: 6; stroke-linecap: round; opacity: .45; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1s ease-out; }
.pf-dumb .pf-bell.win { opacity: .7; stroke-width: 7; }
.pf-dumb .pf-bell.pf-dash { stroke-dasharray: 4 5; stroke-dashoffset: 0; opacity: .5; }
.pf-in .pf-dumb .pf-bell { stroke-dashoffset: 0; }
.pf-dumb .pf-dot-open { fill: var(--bgcard); stroke-width: 2.5; }
.pf-dumb .pf-node { stroke: var(--bgcard); stroke-width: 2; }
.pf-dumb .pf-val-lbl { font-size: 11px; font-weight: 600; font-family: inherit; }
.pf-dumb .pf-val-lbl.win { font-weight: 800; }
.pf-dumb .pf-lbl { font-size: 13px; }
.pf-dumb .pf-lbl.win { font-weight: 800; }
.pf-dumb .pf-failband { stroke: color-mix(in srgb, #f87171 40%, transparent); stroke-width: 1; }
.pf-dumb .pf-hatch { stroke: color-mix(in srgb, #f87171 20%, transparent); stroke-width: 3; }
.pf-dumb .pf-failtxt { fill: #f87171; font-weight: 700; }
.pf-dumb .pf-failx { fill: #f87171; font-size: 15px; font-weight: 800; }
.pf-dumb .pf-failnames { font-size: 11px; font-weight: 700; font-family: inherit; }
.pf-dumb-key { display: flex; gap: 18px; justify-content: center; margin-top: 6px; font-size: 12px; color: var(--text3); }
.pf-dumb-key span { display: inline-flex; align-items: center; gap: 6px; }
.pf-key-open, .pf-key-solid { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid var(--text2); }
.pf-key-solid { background: var(--text2); }
.pf-key-fail { color: #f87171; font-style: normal; font-weight: 800; }
:root[data-theme="light"] .pf-dumb .pf-failtxt, :root[data-theme="light"] .pf-dumb .pf-failx, :root[data-theme="light"] .pf-key-fail { fill: #dc2626; color: #dc2626; }
@media (prefers-reduced-motion: reduce) { .pf-dumb .pf-bell { transition: none; stroke-dashoffset: 0; } }
/* Garbage bars, taller to fill the card */
.pf-gcbars { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pf-gcbars .pf-bar { font-size: 14px; }
.pf-gcbars .pf-track { height: 18px; border-radius: 6px; }
.pf-gcbars .pf-fill { border-radius: 6px; }
/* Garbage card fills to the bandwidth card height: the bars stretch between the description and the note */
.pf-gcc { display: flex; flex-direction: column; }
.pf-gcc .pf-gcbars { flex: 1; margin: 8px 0 0; gap: 10px; }
