/*
 * Thimp Brawl landing — static, minimal, one stylesheet.
 * Dark neon-brawler theme derived from the prototype palette (src/beatemup):
 *   bg #0c0f16 · blue #4da3ff · red #ff5a5a · gold #ffd94d · green #7dd87d · purple #c792ea
 * No third-party fonts (system stack) so the page renders fully offline/hermetic;
 * the only network calls are the (blocked-in-test) analytics beacon + the waitlist POST.
 */

:root {
  --bg: #0c0f16;
  --surface: #131826;
  --surface-2: #1a2130;
  --line: rgba(140, 160, 200, 0.12);
  --blue: #4da3ff;
  --red: #ff5a5a;
  --gold: #ffd94d;
  --green: #7dd87d;
  --purple: #c792ea;
  --ink: #eef2fb;
  --muted: #9aa8c2;
  --muted-2: #6f7d97;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 78% -10%, rgba(77, 163, 255, 0.14), transparent 60%),
    radial-gradient(760px 480px at 8% 4%, rgba(255, 90, 90, 0.12), transparent 60%),
    radial-gradient(700px 600px at 50% 108%, rgba(199, 146, 234, 0.10), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

h1, h2, h3 {
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  font-weight: 800;
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 15, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand__icon { width: 34px; height: 34px; border-radius: 9px; }
.brand__word { font-size: 19px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--pill);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: linear-gradient(180deg, #64b0ff, var(--blue));
  color: #08101f;
  box-shadow: 0 12px 30px rgba(77, 163, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(77, 163, 255, 0.45); }
.btn--ghost {
  border: 1.5px solid rgba(154, 168, 194, 0.4);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.nav .btn { padding: 9px 18px; font-size: 14px; }

/* ---- hero ---- */
.hero { padding: 64px 0 24px; overflow: hidden; }
.hero__inner { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 900; letter-spacing: -0.02em; }
.hero h1 .accent-blue { color: var(--blue); }
.hero h1 .accent-red { color: var(--red); }
.hero__sub {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 19px;
  color: var(--muted);
}
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.hero__note { font-size: 14px; color: var(--muted-2); margin: 0 0 34px; }

.hero__art {
  margin: 0 auto;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg);
}
.hero__art img { width: 100%; }
.hero__cap { font-size: 13px; color: var(--muted-2); text-align: center; margin-top: 12px; }

/* ---- sections ---- */
.section { padding: 72px 0; }
.section--alt { background: rgba(19, 24, 38, 0.5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { text-align: center; font-size: clamp(28px, 4.4vw, 40px); font-weight: 900; }
.section__lede { text-align: center; max-width: 620px; margin: 0 auto 48px; color: var(--muted); }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.step__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-weight: 900; font-size: 20px; color: #08101f; margin-bottom: 14px;
}
.step__badge--blue { background: var(--blue); }
.step__badge--gold { background: var(--gold); }
.step__badge--purple { background: var(--purple); color: #10081a; }
.step h3 { font-size: 21px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- roster / features ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 820px; margin: 0 auto; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  border-left: 3px solid var(--blue);
}
.feature:nth-child(2) { border-left-color: var(--red); }
.feature:nth-child(3) { border-left-color: var(--gold); }
.feature:nth-child(4) { border-left-color: var(--green); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.gearline { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0 auto 40px; }
.gear {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.gear .dot { width: 12px; height: 12px; border-radius: 50%; }

/* ---- waitlist / get updates ---- */
.get { text-align: center; }
.get .section__title { }
.get p.lede { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

.capture { max-width: 460px; margin: 0 auto; }
.capture .field {
  display: flex; gap: 8px;
  background: var(--surface);
  border: 1px solid rgba(154, 168, 194, 0.28);
  border-radius: var(--pill);
  padding: 6px 6px 6px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.capture .field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.18); }
.capture input {
  flex: 1; border: 0; background: transparent; color: var(--ink);
  font-size: 16px; font-family: var(--font); outline: none; min-width: 0;
}
.capture input::placeholder { color: var(--muted-2); }
.capture .microcopy { display: block; font-size: 13px; color: var(--muted-2); margin-top: 12px; }
.capture .done {
  display: none; align-items: center; gap: 9px; justify-content: center;
  background: rgba(125, 216, 125, 0.12); border: 1px solid rgba(125, 216, 125, 0.4);
  color: var(--green); font-weight: 700; padding: 15px 18px; border-radius: var(--radius);
}
.capture.sent .field { display: none; }
.capture.sent .done { display: flex; }
.capture .error { font-size: 13px; color: var(--red); margin-top: 8px; display: block; }

.share-row { margin-top: 22px; }
.toast { font-size: 13px; color: var(--green); margin-left: 10px; opacity: 0; transition: opacity 0.2s ease; }
.toast.show { opacity: 1; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: 14px; color: var(--muted-2); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; gap: 18px; }

/* ---- legal ---- */
.legal { padding: 52px 0 72px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 23px; margin-top: 36px; }
.legal__meta { color: var(--muted-2); margin-bottom: 28px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal__back { display: inline-block; margin-top: 44px; font-weight: 700; text-decoration: none; }

/* ---- play chooser ---- */
.chooser { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.chooser h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 900; }
.chooser p { color: var(--muted); max-width: 560px; margin: 0 auto 40px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 20px; width: 100%; max-width: 560px; }
.choice {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 24px;
  transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.choice--beat { border-color: rgba(77, 163, 255, 0.5); }
.choice--side { border-color: rgba(199, 146, 234, 0.5); }
.choice .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.choice h2 { font-size: 24px; margin-bottom: 8px; }
.choice p { font-size: 14.5px; color: var(--muted); margin: 0; }
.chooser__back { margin-top: 36px; font-size: 14px; }
.chooser__back a { color: var(--muted); }

/* ---- responsive ---- */
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
