/* ============================================================
   Marathon VR — shared stylesheet
   Dark, sci-fi terminal aesthetic. Self-contained, no external
   fonts or scripts. Per-game accents: Marathon = blue,
   Marathon 2 = gold, Marathon Infinity = silver.
   ============================================================ */

:root {
  --bg:        #05060a;
  --bg-2:      #0a0d16;
  --panel:     #0e1220;
  --panel-2:   #131828;
  --line:      #222a40;
  --ink:       #e7ecf6;
  --muted:     #9aa4bd;
  --dim:       #667090;
  --term:      #35ff8a;          /* Marathon terminal green */
  --blue:      #5b7cff;          /* Marathon */
  --gold:      #ffb638;          /* Marathon 2 */
  --silver:    #cdd6e6;          /* Marathon Infinity */
  --accent:    var(--blue);

  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle starfield / nebula wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(91,124,255,.14), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(120,80,200,.10), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(53,255,138,.05), transparent 60%);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--term);
  margin: 0 0 14px;
}
.eyebrow::before { content: "▚ "; opacity: .7; }

h1, h2, h3 { line-height: 1.1; margin: 0; }

.display {
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ---------- Top nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5,6,10,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand b { color: var(--term); }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: .86rem;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--ink) !important;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .55;
  transform: scale(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,.35) 0%, rgba(5,6,10,.55) 45%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  max-width: 15ch;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--blue), #9fd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 46ch;
}
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #06070c; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.1); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

.platform-note {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Generic section ---------- */
section { padding: 86px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature .ico {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--term);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Game cards ---------- */
.games { display: grid; gap: 34px; }
.game {
  --accent: var(--blue);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.game.g-marathon  { --accent: var(--blue); }
.game.g-marathon2 { --accent: var(--gold); }
.game.g-infinity  { --accent: var(--silver); }

.game-hero {
  position: relative;
  aspect-ratio: 3000 / 900;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.game-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,18,32,.9) 100%);
}
.game-hero .tag {
  position: absolute; left: 20px; top: 20px; z-index: 2;
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: #06070c; background: var(--accent);
  padding: 5px 11px; border-radius: 999px; font-weight: 700;
}
.game-body { padding: 30px; }
.game-body h3 {
  font-size: 1.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
}
.game-body h3 .yr { color: var(--accent); font-weight: 600; font-size: 1rem; margin-left: 10px; letter-spacing: .1em; }
.game-body p { color: var(--muted); margin: 14px 0 0; max-width: 68ch; }

.shots {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.shots img {
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.shots img:hover { border-color: var(--accent); transform: scale(1.015); }

.game-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.game .btn-primary { background: var(--accent); }
.badge-soon {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.stat .n { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--ink); font-family: var(--mono); }
.stat .l { color: var(--muted); font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }

/* ---------- About / prose ---------- */
.prose { max-width: 72ch; }
.prose p { color: var(--muted); margin: 0 0 18px; font-size: 1.05rem; }
.prose h2 { margin: 40px 0 16px; font-size: 1.5rem; text-transform: uppercase; }
.prose h3 { margin: 30px 0 10px; font-size: 1.15rem; color: var(--ink); }
.prose ul { color: var(--muted); padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose a { color: var(--blue); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 54px 0 40px;
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.foot-brand { font-family: var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: .9rem; }
.foot-links a { color: var(--muted); }
.foot-legal {
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: .82rem; max-width: 90ch;
}
.foot-legal p { margin: 0 0 10px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,4,8,.92);
  display: none; align-items: center; justify-content: center;
  padding: 30px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Divider glyph ---------- */
.scanline-note {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--term); opacity: .8;
}

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .hero { min-height: 70vh; }
  .game-hero .tag { display: none; }
}
