/* GPS Mafia landing — tokens mirror frontend/src/theme (+ chrome/metal) */

:root {
  --bg: #0e0e0e;
  --bg-alt: #1c1c1c;
  --slot: #141414;
  --gold: #e0c04a;
  --gold-hi: #f5e6a0;
  --gold-lo: #8a7020;
  --crimson: #ff4d4d;
  --olive: #5a7a4a;
  --olive-bright: #9ccc65;
  --text: #ffffff;
  --text-muted: #c8c8c8;
  --olive-deep: #4a4a2c;
  --parchment: #f2e8c4;
  --ink: #0e0e0e;
  --warehouse-neon: #5fd0ff;
  --font: "Space Grotesk", system-ui, sans-serif;
  --border: 3px;
  --radius: 0;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

/* —— Layout —— */

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 1.25rem 0;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

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

.lang-switch {
  display: inline-flex;
  overflow: hidden;
  border: 2px solid var(--gold-lo);
  border-top-color: rgb(245 230 160 / 0.7);
  border-left-color: rgb(245 230 160 / 0.7);
  border-bottom-color: rgb(138 112 32 / 0.85);
  border-right-color: rgb(138 112 32 / 0.85);
  border-radius: var(--radius);
  background: rgb(14 14 14 / 0.65);
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 2.5rem;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-switch__btn.is-active,
.lang-switch__btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--bg);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--warehouse-neon);
  outline-offset: 2px;
}

/* —— Hero —— */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 55% 45%, #1a2830 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 35% 60%, #1c2418 0%, transparent 50%),
    linear-gradient(160deg, #121820 0%, var(--bg) 45%, #0a1014 100%);
}

.hero__media__picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(0.7) saturate(1) sepia(0.12);
}

@media (max-width: 720px) {
  .hero__media__img {
    object-position: center 55%;
  }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgb(14 14 14 / 0.96) 0%, rgb(14 14 14 / 0.55) 34%, transparent 62%),
    linear-gradient(180deg, rgb(14 14 14 / 0.7) 0%, transparent 26%),
    radial-gradient(ellipse 90% 75% at 55% 42%, transparent 50%, rgb(14 14 14 / 0.5) 100%);
}

.hero__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 6rem 0 3.5rem;
}

.hero__title {
  margin: 0 0 0.9rem;
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 46%, var(--gold-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 var(--ink)) drop-shadow(-1px -1px 0 var(--ink));
}

.hero__lede {
  margin: 0 0 1.5rem;
  max-width: 30rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  font-weight: 500;
  color: var(--text);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0;
}

/* —— Buttons / panels —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-width: var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn,
.noir-panel {
  border-style: solid;
  border-top-color: var(--gold-hi);
  border-left-color: var(--gold-hi);
  border-bottom-color: var(--gold-lo);
  border-right-color: var(--gold-lo);
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--gold-hi);
  color: var(--bg);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--warehouse-neon);
  outline-offset: 3px;
}

.btn--bronze {
  background: var(--olive-deep);
  color: var(--parchment);
  box-shadow: 0 3px 0 var(--ink), inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.btn--bronze:hover {
  background: #5a5a36;
  color: var(--parchment);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  border-top-color: rgb(245 230 160 / 0.5);
  border-left-color: rgb(245 230 160 / 0.5);
  border-bottom-color: rgb(138 112 32 / 0.55);
  border-right-color: rgb(138 112 32 / 0.55);
  color: var(--text-muted);
}

.btn--ghost:hover {
  border-top-color: var(--gold-hi);
  border-left-color: var(--gold-hi);
  border-bottom-color: var(--gold-lo);
  border-right-color: var(--gold-lo);
  color: var(--text);
  background: rgb(224 192 74 / 0.08);
  text-decoration: none;
}

.noir-panel {
  background: var(--bg-alt);
  border-width: var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

/* —— Sections —— */

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--slot);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--gold);
}

.section__lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--text-muted);
}

.pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar__label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-bright);
}

.pillar {
  /* Lamp light from the top left, like the scenes in the app. */
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgb(255 190 90 / 0.1), transparent 60%),
    var(--bg-alt);
}

.pillar__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

.pillar__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.features {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 520px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }
}

.feature {
  display: grid;
  /* Fixed icon row: chip, title and body line up across a row of cards. */
  grid-template-rows: 9rem auto auto 1fr;
  gap: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(224 192 74 / 0.35);
}

.feature > .feature__icon,
.feature__icons {
  justify-self: center;
  align-self: center;
}

.feature__icon {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  image-rendering: auto;
  shape-rendering: geometricPrecision;
}

.feature__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .feature__icon {
    width: 5.5rem;
    height: 5.5rem;
  }
}

.feature > .feature__icon--wide {
  width: 8.25rem;
  height: 5.5rem;
}

.feature > .feature__icon--frame {
  width: min(100%, 13rem);
  height: auto;
  aspect-ratio: 3 / 2;
}

.feature > .feature__map {
  justify-self: center;
  align-self: center;
  width: min(100%, 12rem);
  margin: 0;
}

.feature__map__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

/* —— Map credit (OpenFreeMap · OpenMapTiles · OpenStreetMap) —— */

.map-credit {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgb(200 200 200 / 0.75);
}

.map-credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(200 200 200 / 0.4);
}

.map-credit a:hover {
  color: var(--gold);
}

.map-credit--hero {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  z-index: 1;
  text-align: right;
}

.map-credit--figure {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  text-align: center;
  white-space: nowrap;
}

.feature__chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.feature__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature__body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* —— Waitlist —— */

.waitlist {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}

.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.waitlist label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.waitlist input[type="email"] {
  flex: 1 1 12rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border-width: var(--border);
  border-style: solid;
  border-radius: var(--radius);
  border-top-color: rgb(245 230 160 / 0.5);
  border-left-color: rgb(245 230 160 / 0.5);
  border-bottom-color: rgb(138 112 32 / 0.55);
  border-right-color: rgb(138 112 32 / 0.55);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.waitlist input[type="email"]:focus-visible {
  outline: 2px solid var(--warehouse-neon);
  outline-offset: 2px;
  border-top-color: var(--gold-hi);
  border-left-color: var(--gold-hi);
  border-bottom-color: var(--gold-lo);
  border-right-color: var(--gold-lo);
}

.waitlist__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.waitlist__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--olive-bright);
}

/* —— Legal pages —— */

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page__nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgb(224 192 74 / 0.25);
}

.page__main {
  flex: 1;
  padding: 3rem 0 4rem;
}

.page__main h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--gold);
}

.page__main h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  color: var(--text);
}

.page__main h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.page__main code {
  font-size: 0.88em;
  color: var(--gold);
  word-break: break-all;
}

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

.page__main p,
.page__main li {
  color: var(--text-muted);
  max-width: 40rem;
}

.page__main ul {
  padding-left: 1.25rem;
}

.legal-contact {
  display: block;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-width: 1px;
  border-style: solid;
  border-radius: var(--radius);
  border-top-color: rgb(245 230 160 / 0.45);
  border-left-color: rgb(245 230 160 / 0.45);
  border-bottom-color: rgb(138 112 32 / 0.5);
  border-right-color: rgb(138 112 32 / 0.5);
  background: var(--slot);
  color: var(--text);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.55;
  max-width: 40rem;
}

.legal-contact a {
  color: var(--gold);
}

/* —— Licences page —— */

.license-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.license-links a {
  color: var(--gold);
}

.license-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--slot);
  font-size: 0.9rem;
}

.license-download {
  margin: 1.25rem 0;
}

/* —— Footer —— */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgb(224 192 74 / 0.25);
  background: var(--bg);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer__meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgb(200 200 200 / 0.65);
}

/* —— App-link fallback (/a/…) —— */

.app-link__label {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-link__code {
  margin-top: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--slot);
}
