/* ============================================================
   ENTRANCE MUSIC — marketing site
   A Dumdum Megacorp production
   ============================================================ */

:root {
  --bg:        #0a0a0f;
  --bg-deep:   #05050a;
  --surface:   #13131c;
  --surface-2: #1c1c28;
  --line:      #2a2a3a;
  --line-hot:  #3a2a1a;

  --ink:       #e8e8ec;
  --ink-dim:   #9a9aa8;
  --ink-faint: #55555f;

  --fire:      #ff6b35;
  --fire-deep: #d95423;
  --gold:      #ffd700;
  --neon:      #00e5ff;
  --mag:       #ff4081;

  --display: "Press Start 2P", "Courier New", monospace;
  --crt:     "VT323", "Courier New", monospace;
  --body:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ─── reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ─── CRT overlay: scanlines + subtle flicker + noise ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 3px
    );
  z-index: 100;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,0.5) 100%);
  z-index: 101;
}

/* ─── shared typography ─── */
a {
  color: var(--fire);
  text-decoration: none;
  border-bottom: 1px dotted var(--fire);
  transition: color .15s, border-color .15s;
}
a:hover { color: var(--gold); border-color: var(--gold); }

h1, h2, h3 { font-weight: normal; letter-spacing: .01em; }
h1 { font-family: var(--display); }
h2, h3 { font-family: var(--crt); }

strong { color: var(--gold); font-weight: bold; }
code {
  font-family: var(--body);
  font-size: .92em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--neon);
}

hr {
  border: none;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0, var(--line) 4px,
    transparent 4px, transparent 8px
  );
  margin: 48px 0;
}

/* ─── layout helpers ─── */
.shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ─── top nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-family: var(--crt);
  font-size: 22px;
  border: none;
  letter-spacing: .05em;
}
.nav-brand:hover { color: var(--gold); }
.nav-brand img {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  image-rendering: pixelated;
}
.nav-brand .dot {
  width: 8px; height: 8px; background: var(--fire);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--fire);
  animation: blink 1.8s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

.nav-links {
  margin-left: auto;
  display: flex; gap: 22px;
  font-family: var(--crt);
  font-size: 20px;
}
.nav-links a { border: none; color: var(--ink-dim); }
.nav-links a:hover { color: var(--fire); }
.nav-links a.here { color: var(--ink); border-bottom: 2px solid var(--fire); }

/* ─── footer ─── */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 120px;
  padding: 48px 0 64px;
  color: var(--ink-faint);
  font-size: 13px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end;
  justify-content: space-between;
}
.footer-mark {
  font-family: var(--crt); font-size: 18px;
  color: var(--ink-dim);
  line-height: 1.3;
}
.footer-mark strong { color: var(--fire); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { border: none; color: var(--ink-dim); }
.footer-links a:hover { color: var(--ink); }

/* ═══ LANDING PAGE ═══ */

.hero {
  padding: 80px 0 120px;
  position: relative;
}
.hero-stamp {
  font-family: var(--crt);
  font-size: 18px;
  color: var(--fire);
  letter-spacing: .2em;
  margin-bottom: 18px;
}
.hero-stamp::before { content: "▸ "; }
.hero h1 {
  font-size: clamp(28px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: 10px;
  text-shadow:
    2px 0 0 rgba(255,107,53,.3),
    -2px 0 0 rgba(0,229,255,.2);
}
.hero h1 .accent { color: var(--fire); }
.hero-tag {
  font-family: var(--crt);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold);
  margin-top: 30px;
  margin-bottom: 18px;
}
.hero-lede {
  max-width: 620px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.75;
}
.hero-lede code { color: var(--fire); background: transparent; border: none; padding: 0; }

/* ─── ticker ─── */
.ticker {
  margin-top: 64px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--fire);
  background: linear-gradient(90deg, rgba(255,107,53,.06), transparent 30%);
  overflow: hidden;
  padding: 10px 0;
  font-family: var(--crt);
  font-size: 20px;
  color: var(--ink-dim);
  position: relative;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: scroll 36s linear infinite;
  padding-left: 100%;
}
.ticker-track span { color: var(--fire); }
.ticker-track b { color: var(--gold); font-weight: normal; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ─── sections ─── */
.section-head {
  font-family: var(--crt);
  font-size: 14px;
  color: var(--fire);
  letter-spacing: .25em;
  margin-bottom: 8px;
}
.section-head::before { content: "[ "; color: var(--ink-faint); }
.section-head::after { content: " ]"; color: var(--ink-faint); }
.section-title {
  font-family: var(--crt);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
  margin-bottom: 32px;
  line-height: 1.1;
}

.section { padding: 70px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,107,53,.02)); }

/* ─── features grid ─── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}
.feat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background .2s;
}
.feat:hover { background: var(--surface-2); }
.feat:last-child { border-right: none; }
.feat-num {
  font-family: var(--display); font-size: 10px;
  color: var(--fire); margin-bottom: 22px;
  letter-spacing: .1em;
}
.feat-title {
  font-family: var(--crt);
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}
.feat-body { color: var(--ink-dim); font-size: 14px; line-height: 1.7; }

@media (max-width: 720px) {
  .feat { border-right: none; }
}

/* ─── how-it-works list ─── */
.steps { counter-reset: s; margin-top: 16px; }
.step {
  counter-increment: s;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step::before {
  content: "0" counter(s);
  font-family: var(--display);
  font-size: 22px;
  color: var(--fire);
  line-height: 1;
}
.step h3 {
  font-size: 30px; color: var(--ink);
  margin-bottom: 8px; line-height: 1.1;
}
.step p { color: var(--ink-dim); font-size: 14px; }

/* ─── CTA block ─── */
.cta {
  margin-top: 90px;
  padding: 50px 40px;
  border: 2px solid var(--fire);
  background:
    linear-gradient(135deg, rgba(255,107,53,.08), transparent),
    var(--surface);
  position: relative;
}
.cta::before, .cta::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  background: var(--fire);
}
.cta::before { top: -8px; left: -8px; }
.cta::after { bottom: -8px; right: -8px; }
.cta-label {
  font-family: var(--crt); font-size: 18px;
  color: var(--fire); letter-spacing: .2em;
}
.cta-title {
  font-family: var(--crt);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--gold);
  margin: 12px 0 16px;
  line-height: 1.1;
}
.cta-body { color: var(--ink-dim); max-width: 500px; font-size: 14px; }
.cta-pill {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 26px;
  font-family: var(--crt); font-size: 20px;
  color: var(--bg);
  background: var(--gold);
  border: none;
  letter-spacing: .15em;
}
.cta-pill:hover { background: var(--fire); color: var(--ink); }

/* ═══ LEGAL PAGES ═══ */

.legal { padding: 60px 0 40px; }
.legal .hero-stamp { margin-bottom: 10px; }
.legal h1 {
  font-family: var(--crt);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--ink);
  margin-bottom: 14px;
}
.legal .updated {
  color: var(--ink-faint);
  font-size: 13px;
  margin-bottom: 40px;
}
.legal .updated span { color: var(--neon); }

.legal-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding-bottom: 40px;
}
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static !important; }
}

.toc {
  position: sticky; top: 96px; align-self: start;
  font-family: var(--crt); font-size: 17px;
  line-height: 1.9;
}
.toc-label {
  color: var(--fire);
  font-size: 13px;
  letter-spacing: .2em;
  margin-bottom: 14px;
}
.toc a {
  display: block;
  color: var(--ink-dim);
  border: none;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  transition: all .15s;
}
.toc a:hover, .toc a.active {
  color: var(--fire);
  border-left-color: var(--fire);
}

.prose h2 {
  font-size: 28px;
  color: var(--ink);
  margin-top: 52px;
  margin-bottom: 14px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 24px;
}
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose h2::before {
  content: "§ ";
  color: var(--fire);
  font-size: 24px;
}
.prose h3 {
  font-size: 22px;
  color: var(--gold);
  margin-top: 28px;
  margin-bottom: 8px;
}
.prose p { margin: 12px 0; color: var(--ink); }
.prose ul { margin: 12px 0 12px 0; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--fire); }
.prose .note {
  margin: 20px 0;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 3px solid var(--neon);
  color: var(--ink-dim);
  font-size: 14px;
}
.prose .note strong { color: var(--neon); }
