/* Powder Peaks landing page.
 * Palette is the game's own (docs/ART_DIRECTION.md):
 * sky #0b1420 · snow #e8f0f7 · fog #b9cee2 · ridges #2b3a52/#3e5374/#586f93
 * accents: Okabe-Ito orange #e69f00 · run blue #3d8bff · green #35c463 · near-black #20242b
 */

:root {
  --sky: #0b1420;
  --sky-raised: #101b2c;
  --snow: #e8f0f7;
  --fog: #b9cee2;
  --ridge-far: #2b3a52;
  --ridge-mid: #3e5374;
  --ridge-near: #586f93;
  --orange: #e69f00;
  --orange-bright: #f5b21a;
  --run-blue: #3d8bff;
  --sky-blue: #56b4e9;
  --green: #35c463;
  --near-black: #20242b;
  --card-line: rgba(185, 206, 226, 0.16);
  --card-bg: rgba(232, 240, 247, 0.045);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--snow);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--sky-blue); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--near-black);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vh, 140px) 0 clamp(120px, 18vh, 200px);
  isolation: isolate;
}

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

/* Sink the ridge band into valley darkness instead of hard-cutting to the
 * next section. Stays in the negative z-index layer, under the hero copy. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(110px, 22vh, 200px);
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 20, 32, 0) 0%, rgba(11, 20, 32, 0.85) 70%, #0b1420 100%);
  pointer-events: none;
}

.hero-ridges {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Soft drifting snowfall, two parallax layers of radial-gradient flakes. */
.snowfall,
.snowfall::after {
  content: "";
  position: absolute;
  inset: -700px 0 0 0;
  background-image:
    radial-gradient(2px 2px at 28px 64px, rgba(232, 240, 247, 0.85) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 140px 18px, rgba(232, 240, 247, 0.6) 50%, transparent 51%),
    radial-gradient(2.4px 2.4px at 232px 110px, rgba(232, 240, 247, 0.75) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 310px 160px, rgba(232, 240, 247, 0.5) 50%, transparent 51%);
  background-size: 360px 220px;
  animation: snow-drift 14s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

.snowfall::after {
  background-size: 520px 320px;
  animation-duration: 23s;
  opacity: 0.45;
}

@keyframes snow-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-40px, 700px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snowfall, .snowfall::after { animation: none; }
}

.hero-inner {
  position: relative;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
}

.title {
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--snow);
  text-shadow: 0 6px 40px rgba(11, 20, 32, 0.9);
}

.tagline {
  margin: 26px 0 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--orange);
}

.lede {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--fog);
}

.cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--near-black);
}
.btn-primary:hover { background: var(--orange-bright); }

.btn-ghost {
  border: 1px solid var(--card-line);
  color: var(--snow);
  background: rgba(11, 20, 32, 0.5);
}
.btn-ghost:hover { border-color: var(--fog); }

/* ------------------------------------------------------------ sections -- */

.section { padding: clamp(64px, 10vh, 110px) 0; }

.section-alt {
  background: var(--sky-raised);
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}

.section-sub {
  max-width: 640px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--fog);
}

/* --------------------------------------------------------------- video -- */

.video-frame {
  max-width: 860px;
  margin: 42px auto 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #000;
}

/* ------------------------------------------------------------ features -- */

.feature-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 26px 24px;
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fog);
}

/* ---------------------------------------------------------- stat strip -- */

.stat-strip {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stat-strip { grid-template-columns: 1fr; }
}

.stat-strip li {
  text-align: center;
  padding: 18px 14px;
  border-top: 1px solid var(--card-line);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--orange);
  line-height: 1.1;
}

.stat-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--fog);
}

/* Run-difficulty markers — the game's shape-coded badges (circle / square / diamond). */
.marker {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
}

.marker-green {
  background: var(--green);
  border-radius: 50%;
}

.marker-blue {
  background: var(--run-blue);
  border-radius: 3px;
}

.marker-diamond {
  background: var(--near-black);
  border: 2px solid var(--snow);
  border-radius: 2px;
  transform: rotate(45deg) scale(0.82);
}

/* -------------------------------------------------------------- signup -- */

.signup-wrap { text-align: center; }

.signup-card {
  max-width: 560px;
  margin: 36px auto 0;
  padding: 30px 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: 18px;
}

/* MailerLite injects its own form styles; keep the shell neutral and let the
 * dashboard-configured form own the inside of the card. */
.ml-embedded { min-height: 120px; }

.noscript-note { color: var(--fog); margin: 0; }

/* -------------------------------------------------------------- footer -- */

.footer {
  border-top: 1px solid var(--card-line);
  padding: 44px 0 56px;
}

.footer-inner {
  text-align: center;
  color: var(--fog);
  font-size: 0.9rem;
}

.footer-inner p { margin: 6px 0; }

.footer-glyphs {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 14px;
}
