:root {
  --bg: #0d0f12;
  --bg-2: #14171c;
  --panel: #181c22;
  --line: #262b33;
  --line-2: #333944;
  --text: #e9ecef;
  --muted: #9aa3ad;
  --dim: #6b7480;
  --hot: #ffb21e;
  --hot-ink: #1a1203;
  --cool: #4fd1c5;
  --discord: #5865f2;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- nav ---------- */
nav { position: sticky; top: 0; z-index: 10; background: rgba(13,15,18,.82);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { font: 700 22px/1 var(--display); letter-spacing: .14em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 22px; height: 22px; border: 2.5px solid var(--hot); border-radius: 4px; position: relative; }
.logo-mark::before { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 2.5px; background: var(--hot); }
.logo-mark::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 3px; width: 2.5px; margin-left: -1.25px; background: var(--hot); }
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a { display: flex; align-items: center; padding: 0 12px; font-size: 15px; color: var(--muted);
          text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--hot); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
@media (max-width: 600px) { nav .wrap { gap: 10px; } .logo { font-size: 18px; letter-spacing: .1em; } .logo-mark { display: none; }
                            .tabs a { padding: 0 8px; font-size: 14px; } .pill { display: none; } }
.pill { font: 500 13px/1 var(--body); color: var(--hot); border: 1px solid rgba(255,178,30,.4);
        background: rgba(255,178,30,.08); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.discord-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); text-decoration: none;
               color: #fff; background: var(--discord); padding: 9px 13px; border-radius: 8px; white-space: nowrap; }
.discord-btn svg { width: 18px; height: 18px; }
.discord-btn:hover { filter: brightness(1.1); }
.discord-btn[aria-disabled="true"] { background: transparent; color: var(--dim); border: 1px solid var(--line-2); cursor: default; filter: none; }
@media (max-width: 600px) { .discord-btn span { display: none; } .discord-btn { padding: 8px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before { /* overhead floor grid */
  content: ""; position: absolute; inset: -20% -10% 0 40%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(58deg) rotateZ(-8deg);
  transform-origin: 50% 0;
  mask-image: radial-gradient(ellipse at 55% 35%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 35%, #000 20%, transparent 70%);
  opacity: .9; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero { padding: 56px 0 64px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); }
                            .hero-art { width: 100%; max-width: 440px; margin: 0 auto; } }
h1 { font: 700 clamp(40px, 6vw, 72px)/1 var(--display); margin: 0 0 26px; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 33em; margin: 0 0 16px; }
.lede strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
       font: 600 15px/1 var(--body); padding: 15px 22px; border-radius: 8px; border: 1px solid var(--line-2); transition: .15s; }
.btn-hot { background: var(--hot); color: var(--hot-ink); border-color: var(--hot); }
.btn-hot:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost:hover { border-color: var(--muted); }

.hero-art { position: relative; aspect-ratio: 1 / .86; display: grid; place-items: center; }
.spin { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
        background: conic-gradient(from 0deg, transparent 0 62%, rgba(255,178,30,.55) 74%, transparent 75%);
        mask: radial-gradient(circle, transparent 63%, #000 64%, #000 66%, transparent 67%);
        -webkit-mask: radial-gradient(circle, transparent 63%, #000 64%, #000 66%, transparent 67%);
        animation: rot 1.4s linear infinite; }
.spin.b { width: 92%; animation-duration: 3.2s; animation-direction: reverse; opacity: .45;
          background: conic-gradient(from 90deg, transparent 0 80%, rgba(79,209,197,.6) 92%, transparent 93%); }
@keyframes rot { to { transform: rotate(360deg); } }
.hero-art img { position: relative; width: 82%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); animation: hover 6s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-10px); } }
.readout { position: absolute; font: 500 12px/1.5 var(--mono); color: var(--muted);
           background: rgba(20,23,28,.85); border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 12px; }
.readout b { color: var(--text); font-weight: 500; }
.readout.r1 { left: 0; top: 10%; }
.readout.r2 { right: 0; bottom: 8%; }
@media (max-width: 600px) { .readout { font-size: 11px; padding: 7px 9px; } }
@media (prefers-reduced-motion: reduce) { .spin, .hero-art img { animation: none; } }

/* ---------- sections ---------- */
section { padding: 96px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.sec-head { max-width: 740px; margin-bottom: 48px; }
h2 { font: 700 clamp(32px, 4.4vw, 50px)/1.05 var(--display); margin: 0 0 20px; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.sec-head p strong { color: var(--text); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 48px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stat { padding: 18px 16px; } .stat .n { font-size: 22px; } }
.stat { background: var(--bg-2); padding: 24px; }
.stat .n { font: 700 clamp(24px, 3vw, 36px)/1.05 var(--display); }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 10px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px;
        transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { font: 600 20px/1.25 var(--display); margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 18px;
      background: rgba(255,178,30,.1); color: var(--hot); }
.ic svg { width: 20px; height: 20px; }
.ic.c { background: rgba(79,209,197,.1); color: var(--cool); }

/* ---------- netcode diagram ---------- */
.net { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 0; margin-bottom: 48px; }
.machine { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; }
.machine .who { font: 600 13px/1 var(--body); letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.machine .sim { font: 600 18px/1.2 var(--display); }
.machine .sub { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.machine .hash { margin-top: 14px; font: 500 12px/1 var(--mono); color: var(--cool); }
.wire { position: relative; height: 96px; }
.wire .rail { position: absolute; left: 0; right: 0; height: 2px; background: var(--line-2); }
.wire .rail.a { top: 34px; } .wire .rail.b { top: 62px; }
.wire .pkt { position: absolute; width: 10px; height: 10px; border-radius: 2px; margin-top: -4px; background: var(--hot); }
.wire .rail.a .pkt { animation: toR 1.6s linear infinite; }
.wire .rail.b .pkt { background: var(--cool); animation: toL 1.6s linear infinite; }
.wire .pkt:nth-child(2) { animation-delay: -.53s !important; }
.wire .pkt:nth-child(3) { animation-delay: -1.07s !important; }
@keyframes toR { from { left: 0; } to { left: calc(100% - 10px); } }
@keyframes toL { from { left: calc(100% - 10px); } to { left: 0; } }
.wire .lbl { position: absolute; left: 0; right: 0; text-align: center; font: 500 12px/1 var(--mono); color: var(--muted); }
.wire .lbl.top { top: 8px; } .wire .lbl.below { top: 80px; color: var(--dim); }
@media (max-width: 760px) {
  .net { grid-template-columns: 1fr; }
  .wire { height: 84px; width: 2px; margin: 0 auto; }
  .wire .rail, .wire .lbl { display: none; }
  .wire::before { content: "only stick inputs cross the wire"; position: absolute; top: 26px; left: 16px; width: 140px;
                  font: 500 12px/1.4 var(--mono); color: var(--muted); }
  .wire::after { content: ""; position: absolute; inset: 0; background: var(--line-2); }
}
@media (prefers-reduced-motion: reduce) { .wire .pkt { animation: none !important; } }

/* ---------- CAD ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.compare .card li { margin-bottom: 6px; }
.compare .card.good { border-color: rgba(255,178,30,.35); }
.compare .card .kicker { font: 600 13px/1 var(--body); color: var(--dim); margin-bottom: 10px; }
.compare .card.good .kicker { color: var(--hot); }

.pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pipe { grid-template-columns: 1fr; } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px 26px; }
.step .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
             font: 600 14px/1 var(--body); color: var(--hot-ink); background: var(--hot); }
.step h3 { font: 600 22px/1.2 var(--display); margin: 0 0 12px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

.roster { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .roster { grid-template-columns: repeat(2, 1fr); } }
.bot { background: radial-gradient(ellipse at 50% 70%, #232831, var(--bg-2) 70%); border: 1px solid var(--line);
       border-radius: 12px; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.bot video, .bot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bot:hover video, .bot:hover img { transform: scale(1.06); }
.roster-cap { margin-top: 14px; font-size: 14px; color: var(--dim); }
.aside { margin: 28px 0 0; color: var(--muted); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin: 0;
              display: flex; flex-direction: column; gap: 18px; }
.quote-card blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.quote-card figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.quote-card figcaption b { display: block; color: var(--text); font-weight: 600; }
.quote-card.placeholder { border-style: dashed; }
.quote-card.placeholder blockquote { color: var(--dim); }

/* ---------- community ---------- */
.community { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
             background: linear-gradient(120deg, rgba(88,101,242,.16), rgba(88,101,242,.04));
             border: 1px solid rgba(88,101,242,.35); border-radius: 16px; padding: 40px; }
.community h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.community p { color: var(--muted); margin: 0; }
.community .discord-btn { font-size: 16px; padding: 15px 22px; justify-self: end; }
.community .discord-btn span { display: inline; }
@media (max-width: 760px) { .community { grid-template-columns: 1fr; padding: 28px; } .community .discord-btn { justify-self: start; } }

/* ---------- closing / footer ---------- */
.closing { text-align: center; padding: 110px 0 100px;
           background: radial-gradient(ellipse at 50% 0%, rgba(255,178,30,.10), transparent 60%); }
.closing h2 { font-size: clamp(36px, 5.4vw, 64px); }
.closing p { color: var(--muted); font-size: 18px; max-width: 32em; margin: 0 auto; }
.closing .cta-row { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- roadmap ---------- */
.page-head { position: relative; padding: 80px 0 40px; overflow: hidden; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.done { background: var(--cool); } .dot.now { background: var(--hot); } .dot.next { background: #8b93a0; } .dot.later { border: 2px solid #5b636e; }
.phase { padding: 56px 0; border-top: 1px solid var(--line); }
.phase-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
@media (max-width: 800px) { .phase-grid { grid-template-columns: 1fr; gap: 20px; } }
.phase h2 { font-size: clamp(26px, 3vw, 34px); display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.phase .when { color: var(--muted); font-size: 15px; margin: 0; }
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .items { grid-template-columns: 1fr; } }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; position: relative; }
.item h3 { font: 600 18px/1.3 var(--display); margin: 0 0 8px; }
.item p { margin: 0; color: var(--muted); font-size: 15px; }
.item .bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 14px; overflow: hidden; }
.item .bar i { display: block; height: 100%; background: var(--hot); border-radius: 2px; }
.phase.done .item { border-left: 3px solid var(--cool); }
.phase.now .item { border-left: 3px solid var(--hot); }
.phase.next .item { border-left: 3px solid #8b93a0; }
.phase.later .item { border-left: 3px dashed #5b636e; }

/* ---------- physics deep dive ---------- */
.deep { padding: 80px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.deep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.deep-grid.flip > :first-child { order: 2; }
@media (max-width: 860px) { .deep-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .deep-grid.flip > :first-child { order: 0; } }
.deep h2 { font-size: clamp(28px, 3.4vw, 40px); }
.deep p { color: var(--muted); margin: 0 0 14px; }
.deep p strong { color: var(--text); font-weight: 600; }
.deep .num-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; }
.deep .num-row div { font-size: 14px; color: var(--muted); }
.deep .num-row b { display: block; font: 700 30px/1.1 var(--display); color: var(--text); }
.deep .num-row b.hot { color: var(--hot); }
.fig { margin: 0; background: #f4f5f7; border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.fig img { width: 100%; height: auto; border-radius: 4px; }
.fig figcaption { color: #4a515b; font-size: 13.5px; margin-top: 10px; line-height: 1.5; }
.fig.dark { background: var(--panel); }
.fig.dark figcaption { color: var(--muted); }
.fig .pair { display: grid; grid-template-columns: 1fr 1fr; font: 600 13px/1 var(--body); color: #2b3038; text-align: center; margin-bottom: 6px; }
.tag-soon { display: inline-block; font: 600 12px/1 var(--body); color: var(--hot); border: 1px solid rgba(255,178,30,.4);
            border-radius: 999px; padding: 5px 9px; margin-left: 10px; vertical-align: middle; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.toc a { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; }
.toc a:hover { color: var(--text); border-color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
               font: 600 18px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 26px/1 var(--body); color: var(--hot); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 46em; }

/* ---------- gameplay clips ---------- */
.clips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clip { margin: 0; position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.clip video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.clip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 12px; font-size: 14px; color: var(--text);
                   background: linear-gradient(transparent, rgba(13,15,18,.85)); }
@media (max-width: 760px) { .clips { grid-template-columns: 1fr; } }
