/* ==========================================================================
   NEON HIVE - website
   Deliberately a single dark look: the game is dark, the page is the game's
   front door, and a light variant would be a different product.
   ========================================================================== */

:root {
  --bg:        #05070f;
  --bg-2:      #080c18;
  --ink:       #e8f4ff;
  --dim:       #8fa3bd;
  --dimmer:    #62748d;
  --cyan:      #35e6ff;
  --cyan-deep: #0e7f98;
  --amber:     #ffb037;
  --boss:      #ff4d7d;
  --line:      rgba(53, 230, 255, 0.16);
  --panel:     rgba(10, 18, 32, 0.66);

  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Roboto Mono", monospace;

  --wrap: 1080px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* the page never scrolls sideways */
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed; top: -100px; left: 12px; z-index: 100;
  background: var(--cyan); color: #001018;
  padding: 10px 16px; border-radius: 8px; font-weight: 700;
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

/* ---------- the live backdrop ---------- */

#bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  display: block;
}
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(53,230,255,.10), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(5,7,15,.95), transparent 55%);
}

/* ---------- header ---------- */

.siteTop {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 12px var(--pad);
  background: rgba(5, 7, 15, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mark {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; letter-spacing: .14em; font-size: 15px;
}
.markGlyph { color: var(--cyan); font-size: 13px; }
.markText b { color: var(--cyan); font-weight: 800; }

.siteNav { margin-left: auto; display: flex; gap: 26px; }
.siteNav a {
  color: var(--dim); text-decoration: none;
  font-size: 14px; letter-spacing: .06em;
}
.siteNav a:hover { color: var(--cyan); }

.topPlay { flex: none; }
@media (max-width: 760px) {
  .siteNav { display: none; }
  .topPlay { margin-left: auto; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(53, 230, 255, .07);
  font-weight: 700; letter-spacing: .1em; font-size: 15px;
  text-decoration: none;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.btn:hover {
  background: rgba(53, 230, 255, .16);
  box-shadow: 0 0 26px rgba(53, 230, 255, .28);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--cyan); color: #001018;
  box-shadow: 0 0 34px rgba(53, 230, 255, .34);
}
.btn.primary:hover { background: #7defff; box-shadow: 0 0 46px rgba(53,230,255,.5); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 16px; font-size: 13px; }
.btn.huge { padding: 20px 46px; font-size: 21px; letter-spacing: .14em; }
.btnSub {
  display: block; margin-top: 5px;
  font-size: 11px; font-weight: 500; letter-spacing: .04em;
  opacity: .72; text-transform: none;
}

/* ---------- hero ---------- */

.hero {
  min-height: min(88svh, 760px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: clamp(48px, 9vh, 110px) var(--pad) clamp(40px, 7vh, 80px);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan); font-size: 12px;
  letter-spacing: .34em; text-transform: uppercase;
}
.bigLogo {
  margin: 0;
  font-size: clamp(52px, 14vw, 148px);
  line-height: .92;
  letter-spacing: .04em;
  font-weight: 900;
  display: flex; flex-wrap: wrap; gap: 0 .16em; justify-content: center;
}
.bigLogo span { color: var(--ink); text-shadow: 0 0 42px rgba(232,244,255,.28); }
.bigLogo b {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(53,230,255,.75), 0 0 62px rgba(53,230,255,.45);
}
.lede {
  max-width: 40ch;
  margin: 26px auto 0;
  font-size: clamp(17px, 2.2vw, 21px);
  color: #cfe2f5;
}
.lede em { color: var(--cyan); font-style: normal; font-weight: 700; }

.ctaRow {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-top: 34px;
}
.ctaNote { margin: 16px 0 0; color: var(--dimmer); font-size: 13px; }

/* ---------- facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.fact {
  background: rgba(5, 8, 16, .82);
  padding: 26px 14px; text-align: center;
}
.fact b {
  display: block;
  font-size: clamp(24px, 4vw, 38px);
  color: var(--cyan); font-weight: 800; line-height: 1.1;
}
.fact span {
  display: block; margin-top: 6px;
  font-size: 12px; color: var(--dim);
  letter-spacing: .1em; text-transform: uppercase;
}
@media (max-width: 620px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- bands ---------- */

.band { padding: clamp(58px, 10vh, 110px) var(--pad); }
.band.alt { background: linear-gradient(180deg, rgba(8,12,24,.72), rgba(8,12,24,.4)); }

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* Prose sections keep a readable measure, but the CONTAINER stays the same
   width as every other band so all the section headings share one left edge.
   Centering a narrower wrapper instead made the page zigzag section to
   section, which reads as sloppy at full-page scale even though each section
   looks fine on its own. */
.wrap.narrow > * { max-width: 68ch; }
/* Boxed things span the band; only prose is held to a reading measure. */
.wrap.narrow > .ladder,
.wrap.narrow > .callout { max-width: none; }
.callout p { max-width: 68ch; }

/* The header is sticky, so an anchored jump would otherwise put the heading
   underneath it. */
.band[id], section[id] { scroll-margin-top: 74px; }

h2 {
  margin: 0 0 8px;
  font-size: clamp(27px, 4.6vw, 42px);
  line-height: 1.15; letter-spacing: .01em; font-weight: 800;
}
h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: .04em; }

.sub { margin: 0 0 34px; color: var(--dim); max-width: 62ch; }
.big { font-size: clamp(18px, 2.3vw, 21px); color: #d7e7f7; }
.dim { color: var(--dim); font-size: 15px; }
.center { text-align: center; }
.secret { color: var(--dimmer); font-style: italic; }

.c-amber { color: var(--amber); }
.c-boss  { color: var(--boss); }

/* ---------- the ladder ---------- */

.ladder {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 40px 0;
}
.rung {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.tier {
  display: inline-block; margin-bottom: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan);
}
.rung b { display: block; font-size: 18px; margin-bottom: 6px; }
.rung p { margin: 0; font-size: 14.5px; color: var(--dim); line-height: 1.6; }

.callout {
  border-left: 3px solid var(--amber);
  background: rgba(255, 176, 55, .05);
  border-radius: 0 12px 12px 0;
  padding: 22px 24px;
  margin-top: 34px;
}
.callout h3 { color: var(--amber); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- screenshots ---------- */

.shotGrid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.shotGrid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #02040a;
}
/* No forced aspect-ratio: the captures are all one size and cropping them
   would throw away the edges of the field, which is where the swarm is. */
.shotGrid img { width: 100%; height: auto; }
.shotGrid figcaption {
  padding: 11px 15px;
  font-size: 13px; color: var(--dim);
  border-top: 1px solid var(--line);
}

/* ---------- cards ---------- */

.cards {
  display: grid; gap: 13px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.card h3 { color: var(--cyan); }
.card p { margin: 0; font-size: 14.5px; color: var(--dim); line-height: 1.6; }

/* ---------- tables ---------- */

.tableWrap {
  overflow-x: auto;                 /* wide content scrolls itself, not the page */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid rgba(53,230,255,.09); }
thead th {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700;
  background: rgba(53, 230, 255, .05);
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
table b { color: var(--cyan); font-weight: 700; }
.ctrl th[scope="row"] { white-space: nowrap; font-weight: 700; }
.ctrl .p1 { color: var(--cyan); }
.ctrl .p2 { color: var(--amber); }

kbd {
  display: inline-block;
  min-width: 1.9em; margin-right: 3px; padding: 3px 6px;
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(53, 230, 255, .06);
  font-family: var(--mono); font-size: 12px; text-align: center;
  color: var(--ink);
}

/* ---------- faq ---------- */

.faq { margin: 0; }
.faq dt {
  margin-top: 24px; font-weight: 700; font-size: 17px; color: var(--cyan);
}
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--dim); }

/* ---------- closer + footer ---------- */

.closer {
  text-align: center;
  padding: clamp(64px, 12vh, 130px) var(--pad);
  border-top: 1px solid var(--line);
}
.closer h2 { margin-bottom: 30px; }

.siteFoot {
  padding: 34px var(--pad) 56px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.credit { margin: 0 0 6px; letter-spacing: .1em; }
.credit b { color: var(--cyan); }
.siteFoot .dim { max-width: 46ch; margin: 0 auto; font-size: 14px; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
