/* SamNeon — samneon.com
   Built to the craft level of a modern product site: one saturated accent on
   near-black, full-pill controls, 700-weight display type set tight, large
   soft-cornered cards and generous vertical rhythm. The palette is the game's
   own (COL in index.html) so the site and the game never drift apart:
   player cyan, prize gold, paid green. */

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #06070d;
  --bg-lift: #0a0c16;
  --ink: #f4f6ff;
  --dim: rgba(244, 246, 255, 0.64);
  --dimmer: rgba(244, 246, 255, 0.44);
  --faint: rgba(244, 246, 255, 0.28);
  --line: rgba(244, 246, 255, 0.11);
  --line-strong: rgba(244, 246, 255, 0.2);

  --accent: #53f5ff;
  --accent-ink: #03131a;
  --accent-soft: rgba(83, 245, 255, 0.12);
  --gold: #ffe45a;
  --gold-soft: rgba(255, 228, 90, 0.1);
  --green: #7dff9a;
  --green-soft: rgba(125, 255, 154, 0.1);
  --pink: #ff9ec4;

  --r-pill: 9999px;
  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 14px;

  --gut: 22px;
  --maxw: 1240px;
  --read: 780px;
  --pad-y: clamp(76px, 9vw, 132px);

  /* system stack only: the site loads no third-party fonts, which keeps it
     instant and keeps the privacy promise on /privacy literally true */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
::selection { background: rgba(83, 245, 255, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.read { max-width: var(--read); }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.028em; line-height: 1.06; }
.display {
  font-size: clamp(42px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 15px; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--dim); letter-spacing: -0.012em; }
.small { font-size: 15px; line-height: 1.6; color: var(--dim); }
.tiny { font-size: 13.5px; line-height: 1.6; color: var(--dimmer); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.green { color: var(--green); }
.accent { color: var(--accent); }
.gold { color: var(--gold); }
.green { color: var(--green); }

/* --------------------------------------------------------------- top bar */
.ticker {
  position: relative; z-index: 60;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em;
  text-align: center; padding: 9px var(--gut);
}
.ticker a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

header.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 10px; height: 68px; }
.mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17.5px; letter-spacing: 0.01em;
  color: var(--ink); white-space: nowrap;
}
.mark:hover { text-decoration: none; }
.mark i {
  width: 11px; height: 11px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 16px var(--accent); display: inline-block;
}
.bar nav { display: none; align-items: center; gap: 2px; margin: 0 auto; }
.bar nav a {
  color: var(--dim); font-size: 15px; font-weight: 600;
  padding: 9px 14px; border-radius: var(--r-pill);
}
.bar nav a:hover { color: var(--ink); background: rgba(244, 246, 255, 0.06); text-decoration: none; }
.bar .spacer { margin-left: auto; }
@media (min-width: 900px) { .bar nav { display: flex; } .bar .spacer { display: none; } }

/* -------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: rgba(244, 246, 255, 0.07);
  color: var(--ink);
  font: 700 16px/1 var(--font); letter-spacing: -0.012em;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: rgba(244, 246, 255, 0.12); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 38px rgba(83, 245, 255, 0.28);
}
.btn.primary:hover { background: #79f9ff; box-shadow: 0 10px 46px rgba(83, 245, 255, 0.4); }
.btn.line { background: transparent; border-color: var(--line-strong); }
.btn.line:hover { background: rgba(244, 246, 255, 0.07); border-color: var(--faint); }
.btn.sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 15px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(244, 246, 255, 0.05);
  font-size: 13.5px; font-weight: 600; color: var(--dim); white-space: nowrap;
}
.pill b { font-weight: 700; color: var(--ink); }
.pill.cyan { border-color: rgba(83, 245, 255, 0.35); color: var(--accent); background: var(--accent-soft); }
.pill.gold { border-color: rgba(255, 228, 90, 0.35); color: var(--gold); background: var(--gold-soft); }
.pill.green { border-color: rgba(125, 255, 154, 0.35); color: var(--green); background: var(--green-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ---------------------------------------------------------------- layout */
section { padding: var(--pad-y) 0; }
.hr { border-top: 1px solid var(--line); }
.head { max-width: var(--read); margin-bottom: 40px; }
.head p { color: var(--dim); font-size: 17.5px; margin: 16px 0 0; line-height: 1.6; }

.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 919px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
.span-all { grid-column: 1 / -1; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(244, 246, 255, 0.055), rgba(244, 246, 255, 0.022));
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--dim); font-size: 15.5px; margin: 0; line-height: 1.62; }
.card p + p { margin-top: 10px; }
.card.cyan { border-color: rgba(83, 245, 255, 0.3); background: linear-gradient(180deg, rgba(83, 245, 255, 0.085), rgba(83, 245, 255, 0.025)); }
.card.gold { border-color: rgba(255, 228, 90, 0.3); background: linear-gradient(180deg, rgba(255, 228, 90, 0.085), rgba(255, 228, 90, 0.022)); }
.card.green { border-color: rgba(125, 255, 154, 0.32); background: linear-gradient(180deg, rgba(125, 255, 154, 0.085), rgba(125, 255, 154, 0.025)); }
.card .kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--dimmer); margin-bottom: 12px;
}
.stat { font-size: clamp(32px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--r-pill); margin-bottom: 14px;
  background: var(--gold-soft); border: 1px solid rgba(255, 228, 90, 0.4);
  color: var(--gold); font-weight: 700; font-size: 14px;
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(64px, 8vw, 104px) 0 clamp(52px, 6vw, 76px); overflow: hidden; }
#swarm {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.85;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 22% 42%, rgba(6, 7, 13, 0.94) 38%, rgba(6, 7, 13, 0.5) 70%, transparent 100%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.55) 0%, transparent 28%, rgba(6, 7, 13, 0.88) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 720px; }

/* the stat strip that rides the seam between hero and page */
.strip { position: relative; z-index: 3; margin-top: -10px; }
.strip .inner {
  display: grid; gap: 1px;
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  background: var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
@media (min-width: 760px) { .strip .inner { grid-template-columns: repeat(3, 1fr); } }
.strip .cell { background: #0a0c16; padding: 24px 24px 26px; }
.strip .cell .kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--dimmer); margin-bottom: 10px;
}

/* ---------------------------------------------------------------- tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th {
  text-align: left; padding: 0 12px 12px; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dimmer);
}
.tbl td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr td:first-child, .tbl tr th:first-child { padding-left: 4px; }
.tbl tr td:last-child, .tbl tr th:last-child { padding-right: 4px; text-align: right; }
.tbl .amt { font-weight: 700; color: var(--gold); white-space: nowrap; }
.tbl .place { color: var(--dimmer); font-weight: 600; width: 1%; white-space: nowrap; }
.tbl .name { font-weight: 600; }
.panel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(244, 246, 255, 0.022); padding: 8px 18px 14px;
}
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------- faq */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: clamp(17px, 1.6vw, 19.5px); font-weight: 600; letter-spacing: -0.018em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  margin-top: -6px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.qa details[open] summary::after { transform: rotate(-135deg); }
.qa .a { padding: 0 8px 24px 0; max-width: var(--read); }
.qa .a p { color: var(--dim); font-size: 16px; margin: 0; }
.qa .a p + p { margin-top: 12px; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 72px; }
footer .cols { display: grid; gap: 34px; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 2.2fr 1fr 1fr 1fr; } }
footer h4 {
  font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--dimmer); font-weight: 700; margin: 0 0 16px;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
footer ul a { color: var(--dim); font-size: 15px; font-weight: 500; }
footer ul a:hover { color: var(--ink); }
.legal { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ------------------------------------------------- long-form doc pages -- */
.doc { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px); }
.doc h1, .doc .display { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.032em; margin-bottom: 14px; }
/* a pill text field, to match the pill controls */
.field {
  flex: 1 1 280px; height: 52px; padding: 0 22px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: rgba(244, 246, 255, 0.05); color: var(--ink);
  font: 600 16px/1 var(--font); letter-spacing: -0.01em;
}
.field::placeholder { color: var(--faint); font-weight: 500; }
.field:focus { outline: none; border-color: var(--accent); background: rgba(83, 245, 255, 0.07); }
.doc h2 { font-size: clamp(21px, 2.3vw, 28px); margin: 48px 0 14px; color: var(--ink); }
.doc h3 { margin: 28px 0 8px; color: var(--gold); font-size: 17.5px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--dim); font-size: 16.5px; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 18px; }
.doc li { margin: 9px 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .updated { color: var(--dimmer); font-size: 14.5px; margin-bottom: 30px; }
.doc a { text-decoration: underline; }
