:root {
  color-scheme: dark;
  --forest-black: #07110c;
  --deep-forest: #0c2519;
  --glass: rgba(9, 32, 22, 0.68);
  --glass-strong: rgba(20, 50, 32, 0.78);
  --stroke: rgba(255, 239, 204, 0.16);
  --ivory: #fff1d4;
  --muted: rgba(255, 241, 212, 0.72);
  --fox: #ff7a1a;
  --gold: #ffc857;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(4, 9, 6, 0.32), rgba(4, 9, 6, 0.96)),
    url("../images/hero-bg.png") center top / cover fixed,
    var(--forest-black);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--stroke);
  background: rgba(7, 17, 12, 0.72);
  backdrop-filter: blur(20px);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 800;
}

.brand img,
.app-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(255, 122, 26, 0.24);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 11px;
  border-radius: 999px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 62px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 200, 87, 0.26), transparent 24%),
    radial-gradient(circle at 18% 36%, rgba(255, 122, 26, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(7, 17, 12, 0.94), rgba(7, 17, 12, 0.44));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.app-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.headline {
  margin-bottom: 18px;
  color: var(--fox);
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.08;
  font-weight: 800;
}

.lead,
.section-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  border-radius: 12px;
  opacity: 0.72;
}

.store-badge img {
  width: auto;
  height: 52px;
  display: block;
}

.store-badge::after {
  content: "Coming soon";
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 241, 212, 0.2);
  border-radius: 14px;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn.primary {
  border: none;
  color: #1a0902;
  background: linear-gradient(135deg, var(--fox), var(--gold));
}

.btn:hover,
.btn:focus-visible,
.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.trust-list li {
  color: var(--gold);
  background: rgba(255, 200, 87, 0.12);
  border: 1px solid rgba(255, 200, 87, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.forest-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(7, 17, 12, 0.7)),
    url("../images/hero-bg.png") center / cover;
  box-shadow: 0 34px 90px var(--shadow);
}

.forest-stage::before {
  content: "";
  position: absolute;
  inset: auto 10% -20% 10%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.28), transparent 60%);
  filter: blur(18px);
}

.forest-stage img {
  position: absolute;
  display: block;
}

.forest-stage .mascot {
  left: 4%;
  bottom: -4%;
  width: 54%;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.48));
}

.forest-stage .scoreboard {
  right: 5%;
  top: 9%;
  width: 40%;
  border-radius: 24px;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.45));
}

.section {
  padding: 74px 0;
  border-top: 1px solid rgba(255, 241, 212, 0.1);
  background: rgba(7, 17, 12, 0.58);
}

.section.alt {
  background: rgba(5, 11, 8, 0.76);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.feature-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.story-card,
.legal-card {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)), var(--glass);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.feature-card h3,
.story-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-card p,
.story-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.6;
}

.screens {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.screen {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 200, 87, 0.18), transparent 36%),
    var(--glass-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
}

.legal-page {
  padding: 58px 0 74px;
}

.legal-card {
  max-width: 880px;
}

.legal-card h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.legal-card h2 {
  margin-top: 28px;
}

footer {
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  background: rgba(7, 17, 12, 0.9);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 30px;
}

@media (max-width: 920px) {
  .hero-grid,
  .feature-grid,
  .story-grid,
  .screens {
    grid-template-columns: 1fr;
  }

  .forest-stage {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .topbar .container {
    flex-direction: column;
    align-items: stretch;
  }

  nav {
    justify-content: center;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(38px, 14vw, 52px);
  }

  .headline {
    font-size: clamp(26px, 9vw, 36px);
  }

  .store-badge,
  .store-badge img,
  .btn {
    width: 100%;
  }

  .store-badge {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  .store-badge::after {
    margin-left: 0;
  }

  .store-badge img {
    max-width: 220px;
    height: auto;
  }

  .forest-stage {
    min-height: 360px;
  }

  .forest-stage .mascot {
    width: 62%;
  }

  .forest-stage .scoreboard {
    width: 46%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
