:root {
  --bg: #0b0e13;
  --bg-deep: #07090d;
  --ink: #e8edf4;
  --muted: #8b97a8;
  --panel: #121820;
  --line: rgba(232, 237, 244, 0.1);
  --accent: #f0a35a;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --radius-shot: 2px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-deep);
}

/* —— Hero: app world-map backdrop + brand (same chart as login/Home) —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-map-canvas,
.hero-map .maplibregl-map {
  width: 100%;
  height: 100%;
}

.hero-map-canvas {
  opacity: 0;
  filter: grayscale(0.75) brightness(0.5) contrast(1.15) saturate(0.45);
  transition: opacity 0.9s ease-out;
}

.hero-map-canvas.is-ready {
  opacity: 1;
}

.hero-map .maplibregl-ctrl-attrib {
  font-size: 0.62rem;
  background: transparent;
}

.hero-map .maplibregl-ctrl-attrib a {
  color: var(--muted);
}

.hero-map .maplibregl-ctrl-bottom-right {
  right: 0.55rem;
  bottom: 0.35rem;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Match auth-gate map veil + soft bottom read for copy */
  background:
    linear-gradient(
      180deg,
      rgba(7, 10, 14, 0.42) 0%,
      rgba(7, 10, 14, 0.5) 45%,
      rgba(7, 10, 14, 0.72) 100%
    );
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(40rem, 100%);
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: hero-copy-in 1s ease-out 0.15s both;
}

.hero-lockup {
  display: block;
  width: min(28rem, 92%);
  height: auto;
  margin: 0 auto 1.25rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  animation: hero-lockup-in 1.15s ease-out both;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
}

.hero-headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.15rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-lede {
  margin: 0 auto 1.5rem;
  max-width: 34ch;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero-cta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
}

.btn-discord:hover,
.btn-discord:focus-visible {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
}

.btn-discord-footer {
  margin-top: 1.25rem;
}

/* —— Features: alternating copy | shot (not a centered column, not full-bleed) —— */
main {
  background:
    radial-gradient(
      900px 480px at 10% 0%,
      color-mix(in srgb, var(--accent) 7%, transparent),
      transparent 55%
    ),
    var(--bg-deep);
}

.feature {
  max-width: 92rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.25rem) clamp(1.25rem, 3.5vw, 2.75rem);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.feature-copy {
  max-width: 28rem;
}

.feature-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  text-wrap: pretty;
}

.feature-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-shot);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.55fr);
  }

  .feature-flip {
    grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.85fr);
  }

  .feature-flip .feature-copy {
    order: 2;
  }

  .feature-flip .feature-shot {
    order: 1;
  }
}

/* —— Text bands —— */
.band {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 55%, var(--bg-deep));
}

.band-quiet {
  background: transparent;
}

.band-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.75rem) clamp(1rem, 2.2vw, 1.75rem);
}

.band-status {
  text-align: center;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.plain-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: none;
}

.plain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--accent);
}

.status-line {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  padding: 2rem clamp(1.25rem, 5vw, 2rem) 2.5rem;
  text-align: center;
}

.footer-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-note a {
  color: var(--accent);
  text-decoration: none;
}

.footer-note a:hover,
.footer-note a:focus-visible {
  text-decoration: underline;
}

@keyframes hero-lockup-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lockup,
  .hero-stage {
    animation: none;
  }

  .hero-map-canvas {
    transition: none;
  }
}
