/* ==========================================================================
   L'unaBlack RetroArcade System — Site Stylesheet
   Visual system: static horizon-grid background, skewed floating panels
   docked to the horizon, flat cutout foreground props. No JS parallax.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* ---- Shared background family ---- */
  --bg-deep: #05001a;
  --bg-mid: #180054;
  --bg-floor: #0a0028;
  --grid-line: rgba(255, 255, 255, 0.08);
  --panel-bg: rgba(10, 0, 40, 0.55);
  --panel-border: rgba(255, 255, 255, 0.14);
  --ink: #f4f2ff;
  --ink-dim: #b9b3d9;

  /* ---- Register: bright (consumer) ---- */
  --accent-a: #ff2bd6;      /* magenta */
  --accent-b: #00fff2;      /* cyan */
  --accent-a-glow: rgba(255, 43, 214, 0.45);
  --accent-b-glow: rgba(0, 255, 242, 0.45);

  /* ---- Layout constants ---- */
  --horizon: 37vh;
  --radius: 10px;
  --font-display: 'Press Start 2P', monospace;
  --font-body: 'Space Mono', monospace;
  --tracking: 0.02em;
  --section-pad: clamp(48px, 8vw, 96px);
}

/* Formal register (Investors): accent dials back to a single cool tone,
   tighter grid/typography. Same skeleton, different energy. */
body[data-register="formal"] {
  --accent-a: #4a7dc9;
  --accent-b: #6fa3e0;
  --accent-a-glow: rgba(74, 125, 201, 0.35);
  --accent-b-glow: rgba(111, 163, 224, 0.3);
  --tracking: 0.01em;
}

/* Transitional register (Partners): halfway between bright and formal —
   the "gradually formalizes" step. */
body[data-register="transitional"] {
  --accent-a: #c04fd6;
  --accent-b: #45cbe0;
  --accent-a-glow: rgba(192, 79, 214, 0.35);
  --accent-b-glow: rgba(69, 203, 224, 0.32);
}

/* Mission register (About): loops back toward the bright family but
   calmer / more editorial than the Home hero. */
body[data-register="mission"] {
  --accent-a: #ff5fa8;
  --accent-b: #38e0c8;
  --accent-a-glow: rgba(255, 95, 168, 0.35);
  --accent-b-glow: rgba(56, 224, 200, 0.32);
}

/* Campaign register (Fundraiser page): same horizon-grid skeleton and
   typography as the rest of the site, but a warm amber/gold accent story
   instead of magenta/cyan — keeps the page thematically part of the family
   while reading as visually distinct the moment it loads (a "special event"
   page rather than a standard site section). */
body[data-register="campaign"] {
  --accent-a: #ffb02e;
  --accent-b: #ff5a3c;
  --accent-a-glow: rgba(255, 176, 46, 0.4);
  --accent-b-glow: rgba(255, 90, 60, 0.35);
  --bg-mid: #2a1400;
  --bg-floor: #1a0d00;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image: url('assets/horizon-bg.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: var(--tracking);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Skip link / focus visibility (accessibility floor) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg-mid);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-b);
  outline-offset: 3px;
}

/* ==========================================================================
   Horizon-docked header: skewed, semi-transparent floating panel
   ========================================================================== */

.horizon-stage {
  position: relative;
  min-height: var(--horizon);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 26px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  width: min(1180px, 92vw);
  padding: 14px 22px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: skewX(-6deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 12px 30px rgba(0,0,0,0.35);
}

.site-header > * { transform: skewX(6deg); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 132px;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--accent-b);
  line-height: 1.5;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--accent-b);
  border-color: var(--accent-b);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--ink);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; transform: skewX(-3deg); }
  .site-header > * { transform: skewX(3deg); }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .primary-nav { width: 100%; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 12px; padding-top: 10px; }
}

/* ==========================================================================
   Docked CTA panel — floats just below/at the horizon like the nav
   ========================================================================== */

.docked-ctas {
  width: min(1180px, 92vw);
  margin: 14px auto 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.docked-ctas a {
  flex: 1 1 220px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  text-align: center;
  padding: 14px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-a);
  color: #05001a;
  box-shadow: 0 0 18px var(--accent-a-glow);
}
.btn-primary:hover { box-shadow: 0 0 26px var(--accent-a-glow); }

.btn-secondary {
  background: transparent;
  color: var(--accent-b);
  border-color: var(--accent-b);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border-color: var(--panel-border);
}

/* ==========================================================================
   Section rhythm
   ========================================================================== */

.section {
  position: relative;
  padding: var(--section-pad) 22px;
  z-index: 1;
}

.section-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section--panel .section-inner {
  background: rgba(8, 0, 30, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: clamp(28px, 5vw, 56px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--accent-b);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.4;
  margin: 0 0 18px;
  color: var(--ink);
}

h1 {
  font-size: clamp(22px, 3.6vw, 34px);
  color: var(--accent-a);
  text-shadow: 0 0 18px var(--accent-a-glow);
}

h2 {
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--accent-a);
}

h3 {
  font-size: 14px;
  color: var(--accent-b);
}

p { margin: 0 0 16px; color: var(--ink-dim); max-width: 62ch; }
.lede { font-size: 18px; color: var(--ink); }

ul.plain, ol.plain {
  padding-left: 1.1em;
  color: var(--ink-dim);
}
ul.plain li, ol.plain li { margin-bottom: 8px; }

/* ==========================================================================
   Hero (Home)
   ========================================================================== */

.hero {
  padding-top: clamp(28px, 6vw, 60px);
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid p { margin-left: auto; margin-right: auto; }
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--panel-border), 0 20px 50px rgba(0,0,0,0.45);
}

/* ==========================================================================
   Foreground cutout stage props — pure CSS positioning, framing sections
   ========================================================================== */

.stage-props {
  position: relative;
  height: 0;
  overflow: visible;
  z-index: 0;
}

.prop {
  position: absolute;
  bottom: 0;
  width: 64px;
  color: var(--accent-b);
  filter: drop-shadow(0 0 10px var(--accent-b-glow));
  opacity: 0.35;
  pointer-events: none;
}

.prop svg { width: 100%; height: auto; display: block; }

.prop--left  { left: 4%; }
.prop--right { right: 4%; }
.prop--center-left { left: 38%; }
.prop--center-right { right: 38%; }

.prop--joystick { width: 46px; color: var(--accent-a); filter: drop-shadow(0 0 10px var(--accent-a-glow)); }
.prop--coin     { width: 40px; }
.prop--crt      { width: 70px; }
.prop--trophy   { width: 48px; color: var(--accent-a); }

@media (max-width: 700px) {
  .prop { width: 36px; }
  .prop--crt { width: 46px; }
}

/* ==========================================================================
   Grid / card systems (steps, cards, stats, testimonials)
   ========================================================================== */

.step-grid, .card-grid, .stat-grid {
  display: grid;
  gap: 20px;
}

.step-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.stat-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .step-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .step-grid, .card-grid, .stat-grid { grid-template-columns: 1fr; }
}

.step {
  text-align: center;
  padding: 22px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}

.step .icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  color: var(--accent-b);
}

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card .btn { margin-top: auto; align-self: flex-start; }

.stat {
  text-align: center;
  padding: 18px 10px;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--accent-b);
  display: block;
  margin-bottom: 8px;
}

.stat .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

/* ==========================================================================
   Console gallery (heritage strip)
   ========================================================================== */

.console-gallery {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.console-gallery img {
  width: 130px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--panel-border), 0 0 14px var(--accent-b-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.console-gallery img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 0 1px var(--panel-border), 0 0 22px var(--accent-a-glow);
}

/* ==========================================================================
   Forms (Investors gated inquiry, general)
   ========================================================================== */

.form-grid {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
}

.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}

.field textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 13px;
  color: var(--ink-dim);
}

/* ==========================================================================
   Tournament tier cards / badges
   ========================================================================== */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px;
  background: rgba(255,255,255,0.03);
  position: relative;
}

.tier-card .badge-icon {
  width: 40px; height: 40px;
  color: var(--accent-a);
  margin-bottom: 12px;
}

.tier-card ul.plain { margin-top: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 40px 22px 60px;
  text-align: center;
  border-top: 1px solid var(--panel-border);
  background: rgba(5,0,26,0.6);
}

.site-footer .footer-links {
  list-style: none;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 14px;
}

.site-footer a { text-decoration: none; color: var(--ink-dim); font-size: 13px; }
.site-footer a:hover { color: var(--accent-b); }

.footer-fine {
  font-size: 12px;
  color: var(--ink-dim);
  opacity: 0.7;
  max-width: 60ch;
  margin: 0 auto;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
