@font-face {
  font-family: "Koba Display";
  src: url("/fonts/Aerosoldier.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #080a0d;
  --ink: #0d1117;
  --panel: #111722;
  --panel-2: #171e2a;
  --cream: #f6f0e7;
  --paper: #ded8cf;
  --muted: #a7b0c1;
  --line: #2c3442;
  --orange: #ff7417;
  --orange-hot: #ff9a42;
  --cyan: #22c7e8;
  --purple: #37127b;
  --green: #66d59d;
  --red: #ff5f6d;
  --radius: 26px;
  --page: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 88% 2%, rgba(34, 199, 232, 0.1), transparent 30rem),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--black);
  background-size: auto, 72px 72px, 72px 72px, auto;
  font-family: "Avenir Next", "Century Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 13, 0.82);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
  border: 2px solid var(--orange);
  border-radius: 11px;
  color: var(--orange);
  background: #140b05;
  font-family: "Koba Display", Impact, sans-serif;
  font-size: 25px;
  line-height: 1;
}
.brand-name { font-family: "Koba Display", Impact, sans-serif; font-size: 24px; letter-spacing: 0.08em; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); }
nav a { color: #c5cbd5; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 0.035em; }
nav a:hover, nav a:focus-visible { color: var(--orange-hot); }

main { min-height: calc(100vh - 170px); }
.section-shell { width: var(--page); margin-inline: auto; }

.hero {
  position: relative;
  width: var(--page);
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(62px, 8vw, 110px) 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(470px, 1.12fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 750px);
  aspect-ratio: 1;
  top: -150px;
  right: -190px;
  border: 1px solid rgba(34, 199, 232, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 92px rgba(34, 199, 232, 0.025), 0 0 0 184px rgba(255, 116, 23, 0.018);
}
.hero-copy, .map-stage { min-width: 0; }
.hero-copy { position: relative; z-index: 2; }
.status-pill, .section-kicker, .city-status, .roadmap-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 900;
}
.status-pill {
  margin-bottom: 26px;
  padding: 9px 13px;
  border: 1px solid rgba(102, 213, 157, 0.32);
  border-radius: 999px;
  color: #baf5d4;
  background: rgba(102, 213, 157, 0.08);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(102, 213, 157, 0.1); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: "Koba Display", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}
.display-heading {
  font-family: "Avenir Next", "Century Gothic", sans-serif;
  font-weight: 900;
  text-transform: none;
}
h1 {
  max-width: 690px;
  margin-bottom: 25px;
  font-size: clamp(66px, 7.2vw, 112px);
  line-height: 0.84;
  letter-spacing: -0.035em;
}
h1 .hero-line, h1 .accent { display: block; }
h1 .accent { color: var(--orange); text-shadow: 0 8px 34px rgba(255, 116, 23, 0.2); }
.lede { max-width: 610px; margin-bottom: 0; color: #d2d7e0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }
.lede.compact { max-width: 680px; font-size: 18px; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.app-store-badge { display: inline-flex; transition: transform 180ms ease, filter 180ms ease; }
.app-store-badge:hover { transform: translateY(-2px); filter: brightness(1.12); }
.app-store-badge img { display: block; width: 180px; height: auto; }
.platform-note { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 12px; }
.platform-note strong { color: var(--cream); font-size: 13px; }

.map-stage { position: relative; min-height: 585px; }
.map-card {
  position: absolute;
  inset: 0 0 0 34px;
  overflow: hidden;
  border: 1px solid #465063;
  border-radius: 34px;
  background: #e7e6e3;
  box-shadow: 0 46px 110px rgba(0, 0, 0, 0.58), 0 0 0 9px rgba(255, 255, 255, 0.025);
  transform: rotate(1.4deg);
}
.map-card > img { width: 100%; height: 100%; object-fit: cover; object-position: center 74%; }

.battle-strip { overflow: hidden; border-block: 1px solid rgba(255, 116, 23, 0.3); background: var(--orange); color: #111; transform: rotate(-1deg); }
.battle-track { width: max-content; padding: 13px 0; display: flex; gap: 30px; font-weight: 1000; letter-spacing: 0.08em; text-transform: uppercase; animation: marquee 28s linear infinite; }
.battle-track span::after { content: "✦"; margin-left: 30px; }

.game-section, .cities-section, .gang-section, .final-cta { padding: clamp(86px, 10vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-kicker { margin-bottom: 16px; color: var(--cyan); }
.section-kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head h2, .expansion-callout h2, .final-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-head p, .expansion-callout p, .final-cta p { color: var(--muted); font-size: 18px; line-height: 1.65; }

.play-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: play; }
.play-card {
  position: relative;
  overflow: hidden;
  min-height: 530px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.play-image { height: 290px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #202936 0, #080b10 78%); }
.play-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: filter 300ms ease; }
.play-card:hover .play-image img { filter: brightness(1.06); }
.play-card-content { padding: 26px; }
.play-number { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; }
.play-card h3 { margin: 22px 0 10px; font-size: 25px; }
.play-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.play-card-wide { grid-column: 1 / -1; min-height: 410px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); }
.play-card-wide .play-image { height: 100%; }
.play-card-wide .play-image img { object-fit: cover; object-position: center; }
.play-card-wide .play-card-content { display: flex; flex-direction: column; justify-content: center; }

.cities-section { position: relative; background: var(--cream); color: var(--ink); }
.cities-section::before { content: ""; position: absolute; inset: 0; opacity: 0.32; background: linear-gradient(rgba(13,17,23,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(13,17,23,.08) 1px, transparent 1px); background-size: 44px 44px; }
.cities-section .section-shell { position: relative; }
.cities-section .section-kicker { color: #9d3d00; }
.cities-section .section-head p { color: #525966; }
.city-summary { margin-bottom: 34px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #c6bdb0; border-radius: 17px; background: rgba(255,255,255,.62); }
.city-summary strong { font-size: 21px; }
.city-summary span { color: #5d6570; font-size: 13px; }
.city-summary .stats-unavailable { color: #8a4b25; }
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.city-card { min-height: 82px; padding: 15px 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #c8c0b5; border-radius: 17px; background: rgba(255,255,255,.7); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.city-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 15px 32px rgba(52, 34, 20, 0.09); }
.city-card strong { display: block; overflow: hidden; font-size: 18px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.city-card small { display: block; margin-top: 5px; overflow: hidden; color: #6b727c; font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.expansion-callout { position: relative; margin-top: 36px; padding: 30px 34px; overflow: hidden; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: end; border: 1px solid rgba(13,17,23,.24); border-radius: 20px; color: var(--ink); background: var(--orange); }
.expansion-callout::after { content: "USA"; position: absolute; right: -20px; bottom: -32px; color: rgba(16,18,23,.07); font-family: "Koba Display", Impact, sans-serif; font-size: 150px; line-height: .75; pointer-events: none; }
.expansion-callout > * { position: relative; z-index: 1; }
.expansion-callout .roadmap-label { margin-bottom: 10px; color: #5f2600; }
.expansion-callout h2 { margin-bottom: 0; }
.expansion-callout p { max-width: 620px; margin: 0; color: #4e2b14; }

.gang-section { overflow: hidden; }
.gang-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.gang-copy h2 { margin: 18px 0; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; }
.gang-copy p { max-width: 510px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.gang-wall { min-height: 500px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; transform: rotate(2deg); }
.gang-tile { position: relative; min-width: 0; min-height: 155px; padding: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; box-shadow: 0 16px 32px rgba(0,0,0,.2); }
.gang-tile::after { content: ""; position: absolute; inset: 36% 0 0; background: linear-gradient(transparent, rgba(7,10,15,.88)); pointer-events: none; }
.gang-tile img { position: relative; z-index: 1; width: 84px; height: 84px; align-self: center; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0,0,0,.18)); }
.gang-tile-details { position: relative; z-index: 1; min-width: 0; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.gang-tile-details strong { display: block; overflow: hidden; font-size: 15px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.gang-tile-details span { display: block; margin-top: 5px; overflow: hidden; color: rgba(255,255,255,.78); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.gang-tile:nth-child(2), .gang-tile:nth-child(5) { transform: translateY(28px); }
.gang-tile-loading { align-items: center; justify-content: center; color: var(--muted); background: #202733; }
.gang-tile-loading::after { display: none; }
.gang-tile-loading span { font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.final-cta { border-top: 1px solid var(--line); text-align: center; }
.final-cta h2 { max-width: 850px; margin-inline: auto; }
.final-cta p { max-width: 600px; margin: 0 auto 30px; }
.final-cta .app-store-badge { justify-content: center; }

.button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--orange);
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}
.button:hover { background: var(--orange-hot); }
.actions { display: flex; gap: 12px; margin-top: 28px; }
.actions.stacked { flex-direction: column; }

.invite-shell, .document-shell { width: min(790px, calc(100% - 40px)); margin: 70px auto 110px; }
.invite-shell { display: flex; justify-content: center; }
.invite-card, .document-shell { border: 1px solid var(--line); border-radius: 28px; background: rgba(17, 23, 34, .96); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.invite-card { width: min(560px, 100%); padding: clamp(30px, 7vw, 56px); text-align: center; }
.invite-icon-wrap { width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 24px; overflow: hidden; background: #d8d8d8; }
.invite-icon-wrap[hidden] { display: none; }
.invite-icon { width: 100%; height: 100%; padding: 8px; object-fit: contain; }
.eyebrow { margin: 0 0 15px; color: var(--orange-hot); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.invite-card h1, .document-shell h1 { font-size: clamp(42px, 7vw, 66px); line-height: .95; letter-spacing: -.02em; }
.invite-code { margin: 24px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.invite-code strong { max-width: 70%; overflow: hidden; color: var(--cream); text-overflow: ellipsis; }
.fine-print { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.document-shell { padding: clamp(30px, 7vw, 60px); }
.document-sections { margin: 42px 0 30px; }
.document-sections section { padding: 24px 0; border-top: 1px solid var(--line); }
.document-sections h2 { margin-bottom: 9px; font-size: 20px; }
.document-sections p { margin-bottom: 0; color: var(--muted); line-height: 1.75; }

footer {
  width: var(--page);
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
  font-size: 12px;
}
.footer-brand { display: flex; align-items: baseline; gap: 11px; }
.footer-brand strong { color: var(--cream); font-family: "Koba Display", Impact, sans-serif; font-size: 19px; letter-spacing: .08em; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cream); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .map-stage { min-height: 610px; }
  .map-card { left: 55px; }
  .play-grid { grid-template-columns: 1fr 1fr; }
  .play-card-wide { grid-template-columns: 1.15fr 1fr; }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .expansion-callout, .gang-layout { grid-template-columns: 1fr; gap: 24px; }
  .gang-copy { max-width: 700px; }
}

@media (max-width: 680px) {
  :root { --page: min(100% - 28px, 1240px); }
  .site-header { min-height: 70px; padding-inline: 14px; }
  nav a { display: none; }
  nav a:last-child { display: block; }
  .hero { padding-top: 52px; gap: 42px; }
  .hero-copy { width: calc(100vw - 28px); overflow: visible; }
  h1 { width: 100%; max-width: none; padding-left: 3px; font-size: clamp(48px, 14vw, 64px); line-height: .9; }
  .lede { width: 100%; max-width: none; font-size: 17px; overflow-wrap: anywhere; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .map-stage { min-height: 470px; }
  .map-card { inset: 0; border-radius: 23px; transform: none; }
  .map-card > img { object-position: center 77%; }
  .play-grid { grid-template-columns: 1fr; }
  .play-card, .play-card-wide { min-height: 480px; display: block; grid-column: auto; }
  .play-card-wide .play-image, .play-image { height: 255px; }
  .city-summary { align-items: flex-start; flex-direction: column; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .city-card { min-height: 74px; padding: 12px 13px; }
  .city-card strong { font-size: 16px; }
  .expansion-callout { padding: 24px; }
  .gang-wall { min-height: 390px; gap: 8px; }
  .gang-tile { min-height: 120px; padding: 12px; border-radius: 16px; }
  .gang-tile img { width: 60px; height: 60px; }
  .gang-tile-details strong { font-size: 11px; }
  .gang-tile-details span { margin-top: 3px; font-size: 6px; }
  footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
