/* Game Style Maps — marketing site. No build step, no JavaScript. */

@font-face {
  font-family: "Bebas Neue";
  src: url("/fonts/bebas-neue-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0c0e0a;
  --bg-2: #131710;
  --surface: #181d13;
  --surface-2: #1f2618;
  --line: #2c3523;
  --text: #ebe9df;
  --muted: #aab39c;
  --cream: #e2c063;
  --cream-deep: #c9a84e;
  --sky: #accbf1;
  --red: #b4191d;
  --green: #7bae39;
  --olive: #738939;
  --forest: #396929;
  --water: #7389ac;
  --sand: #e6c262;
  --display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(226, 192, 99, 0.16), transparent 60%),
    radial-gradient(40rem 30rem at -10% 40%, rgba(115, 137, 172, 0.14), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 56px 100%;
}

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

a {
  color: var(--cream);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--cream);
  color: #000;
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
}

h2 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

h3 {
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  text-shadow: 0 0 1px #000, 0 1px 0 #000;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid #000;
  box-shadow: 0 0 0 1px var(--line);
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding: clamp(24px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-copy {
  display: grid;
  gap: 26px;
}

.hero-copy .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 34rem;
  color: var(--muted);
}

.hero-copy strong {
  color: var(--text);
  font-weight: 600;
}

.store {
  display: grid;
  gap: 14px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.badge {
  display: inline-block;
  border-radius: 8px;
  transition: transform 120ms ease;
}

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

.badge-apple {
  height: 54px;
  width: auto;
}

.badge-google {
  height: 80px;
  width: auto;
  margin: -13px -12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  padding: 6px 12px 5px;
  border-radius: 999px;
  border: 1px solid var(--cream-deep);
  color: var(--cream);
  background: rgba(226, 192, 99, 0.08);
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(226, 192, 99, 0.25);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* --- Phone mock ----------------------------------------------------------- */

.phone-stage {
  display: grid;
  place-items: center;
  position: relative;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4%;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(226, 192, 99, 0.18), transparent 75%);
  filter: blur(18px);
}

.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 390 / 844;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(160deg, #2a2a2a, #0a0a0a 55%, #232323);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 2px #050505;
  transform: rotate(-3deg);
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--olive);
  isolation: isolate;
}

.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 34%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 3;
}

.hud {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 16px;
  background: rgba(8, 10, 6, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sky);
  backdrop-filter: blur(6px);
}

.hud-top {
  top: 50px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.hud-top svg {
  width: 40px;
  height: 40px;
  color: var(--cream);
}

.hud-top .dist {
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 1px #000, 0 2px 0 #000;
}

.hud-top .street {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.25;
  margin-top: 3px;
}

.hud-bottom {
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  font-family: var(--display);
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  text-shadow: 0 0 1px #000, 0 2px 0 #000;
}

.hud-bottom .eta {
  color: var(--cream);
  font-size: 1.6rem;
}

.hud-bottom .sep {
  color: var(--muted);
  padding: 0 8px;
}

.hero-map .player {
  transform-origin: center;
  animation: bob 2.2s ease-in-out infinite;
}

.hero-map .waypoint circle:first-child {
  animation: pulse 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes bob {
  0%,
  100% {
    transform: translate(150px, 690px);
  }

  50% {
    transform: translate(150px, 684px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map .player,
  .hero-map .waypoint circle:first-child {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Sections ------------------------------------------------------------- */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 44rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(226, 192, 99, 0.1);
  border: 1px solid rgba(226, 192, 99, 0.25);
  color: var(--cream);
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.tag {
  justify-self: start;
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  padding: 4px 10px 3px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag-live {
  color: #0b0e08;
  background: var(--green);
  border-color: var(--green);
}

.tag-soon {
  color: var(--cream);
  border-color: var(--cream-deep);
}

/* Style cards */

.style-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.style-card .swatch {
  height: 150px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.style-card .body {
  padding: 22px 24px 26px;
  display: grid;
  gap: 10px;
}

.swatch-sa {
  background: var(--olive);
}

.swatch-sa::before,
.swatch-sa::after {
  content: "";
  position: absolute;
  inset: 0;
}

.swatch-sa::before {
  background:
    linear-gradient(#000, #000) 0 46% / 100% 8px no-repeat,
    linear-gradient(#000, #000) 0 82% / 100% 5px no-repeat,
    linear-gradient(90deg, #000, #000) 28% 0 / 6px 100% no-repeat,
    linear-gradient(90deg, #000, #000) 62% 0 / 9px 100% no-repeat,
    linear-gradient(#fff, #fff) 8% 12% / 14% 22% no-repeat,
    linear-gradient(#fff, #fff) 36% 10% / 20% 26% no-repeat,
    linear-gradient(#fff, #fff) 70% 56% / 22% 18% no-repeat,
    linear-gradient(#fff, #fff) 10% 58% / 12% 16% no-repeat,
    linear-gradient(var(--forest), var(--forest)) 72% 8% / 26% 30% no-repeat,
    linear-gradient(var(--water), var(--water)) 0 88% / 100% 20% no-repeat,
    linear-gradient(var(--sand), var(--sand)) 0 86% / 100% 4px no-repeat;
}

.swatch-sa::after {
  background:
    radial-gradient(circle at 63% 47%, #000 0 8px, transparent 9px),
    radial-gradient(circle at 63% 47%, var(--red) 0 5px, transparent 6px),
    linear-gradient(var(--cream), var(--cream)) 28% 46% / 36% 6px no-repeat;
}

.swatch-next {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #1c2230, #0f1216);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
}

.swatch-community {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #24261c, #121410);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
}

.palette {
  display: flex;
  gap: 6px;
}

.palette span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Steps */

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 70px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Support */

.support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support .card p a {
  word-break: break-word;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: grid;
  gap: 20px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.legal {
  max-width: 70rem;
  line-height: 1.5;
}

/* --- Prose pages (privacy, 404) ------------------------------------------ */

.prose {
  max-width: 46rem;
  padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 104px);
  display: grid;
  gap: 18px;
}

.prose h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  margin-bottom: 8px;
}

.prose h2 {
  font-size: 1.9rem;
  margin-top: 20px;
}

.prose ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    order: -1;
    padding: 12px 0 0;
  }

  .phone {
    width: min(280px, 70vw);
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    display: none;
  }

  .grid-3,
  .support {
    grid-template-columns: 1fr;
  }

  .hud-top .dist {
    font-size: 1.4rem;
  }

  .hud-bottom {
    font-size: 1.1rem;
    padding: 10px 14px;
  }

  .hud-bottom .eta {
    font-size: 1.3rem;
  }
}
