/* Dusk palette, taken from the Summit Rush icon. */
:root {
  --night: #1c2140;
  --dusk: #3d3f6e;
  --ridge-1: #4b5089;
  --ridge-2: #353968;
  --ridge-3: #262a4f;
  --sun: #f7d98b;
  --ember: #e8875a;
  --paper: #fbf6ec;
  --ink: #1c2140;
  --muted: #646a85;
  --line: #e7dfcf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, .brand { font-family: "Outfit", system-ui, sans-serif; line-height: 1.15; }
a { color: var(--dusk); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand { display: flex; color: #fff; text-decoration: none; }
.brand svg { display: block; transition: transform 0.2s; }
.brand:hover svg { transform: translateY(-2px); }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-weight: 600; }
.topbar nav a:hover { color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 45%, #9a6b86 75%, var(--ember) calc(100% - 24px), var(--ridge-3) calc(100% - 24px));
  padding: 140px 0 0;
}
.hero .sun {
  position: absolute;
  right: 12%;
  bottom: 120px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 80px 20px rgba(247, 217, 139, 0.45);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 180px; }
.hero h1 { margin: 0; font-size: clamp(40px, 9vw, 72px); font-weight: 700; }
.hero p { margin: 12px 0 0; max-width: 460px; font-size: 19px; color: rgba(255, 255, 255, 0.85); }
.hero > svg:last-child { position: absolute; left: 0; bottom: -2px; width: 100%; height: 202px; display: block; }

/* Hero motion: sun rises on load, stars twinkle, birds drift across. */
.hero .sun { animation: sun-rise 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both, sun-glow 6s ease-in-out 2.4s infinite; }
@keyframes sun-rise { from { transform: translateY(90px); opacity: 0.6; } }
@keyframes sun-glow { 50% { box-shadow: 0 0 110px 34px rgba(247, 217, 139, 0.55); } }

.stars i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.2;
  animation: twinkle 4s ease-in-out infinite;
}
.stars i:nth-child(1) { top: 14%; left: 8%;  animation-delay: 0s; }
.stars i:nth-child(2) { top: 26%; left: 34%; animation-delay: 1.3s; }
.stars i:nth-child(3) { top: 10%; left: 52%; animation-delay: 2.1s; }
.stars i:nth-child(4) { top: 32%; left: 66%; animation-delay: 0.6s; width: 2px; height: 2px; }
.stars i:nth-child(5) { top: 18%; left: 82%; animation-delay: 2.8s; }
.stars i:nth-child(6) { top: 38%; left: 18%; animation-delay: 3.4s; width: 2px; height: 2px; }
.stars i:nth-child(7) { top: 8%;  left: 92%; animation-delay: 1.8s; width: 2px; height: 2px; }
@keyframes twinkle { 50% { opacity: 0.9; } }

.birds {
  position: absolute;
  top: 26%;
  left: 0;
  width: 54px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.8;
  stroke-linecap: round;
  animation: fly 38s linear 1s infinite both;
}
@keyframes fly {
  from { transform: translate(-80px, 0); }
  50%  { transform: translate(50vw, -18px); }
  to   { transform: translate(calc(100vw + 80px), 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .sun, .stars i, .birds { animation: none; }
  .birds { display: none; }
}

/* Sections */
section { padding: 72px 0; scroll-margin-top: 0; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}
section h2 { margin: 0 0 24px; font-size: 34px; }

/* Game feature */
/* Overlap the hero by 2px so no seam shows where the ridges meet this section. */
#apps { position: relative; margin-top: -2px; background: var(--ridge-3); color: #fff; }
#apps a { color: var(--sun); }
.feature { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.feature img {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  margin-top: 8px;
  transform: rotate(-4deg);
}
.feature h3 { margin: 0; font-size: 30px; }
.feature h3 a { color: #fff !important; text-decoration: none; }
.feature h3 a:hover { color: var(--sun) !important; }
.feature .tag { margin: 4px 0 12px; color: var(--sun); font-weight: 700; }
.feature p { color: rgba(255, 255, 255, 0.85); }
.badge {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--night) !important;
  font-weight: 800;
  text-decoration: none;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
}
.pills a:hover { border-color: var(--sun); }
.fine { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.55) !important; }

/* About */
.about { display: grid; grid-template-columns: 1fr 240px; gap: 48px; }
.facts { margin: 0; padding: 20px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; align-self: start; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts span { display: block; font-size: 13px; color: var(--muted); }

/* Footer */
footer { background: var(--night); color: rgba(255, 255, 255, 0.6); font-size: 14px; }
footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
footer a { color: rgba(255, 255, 255, 0.8); }

/* Policy pages */
.page-head { background: linear-gradient(180deg, var(--night), var(--dusk)); color: #fff; }
.page-head .topbar { position: static; }
.page-head h1 { margin: 0; padding: 24px 0 48px; font-size: clamp(30px, 6vw, 44px); }
.doc { max-width: 680px; padding-top: 40px; padding-bottom: 64px; }
.doc h2 { margin-top: 32px; font-size: 21px; }
.muted { color: var(--muted); }

/* App landing page */
.app-hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); display: block; margin-bottom: 20px; }
.hero .app-hero p { margin-bottom: 16px; }
.hero .app-hero .small { margin-top: 0; font-size: 15px; color: rgba(255, 255, 255, 0.65); }
.hero + section { position: relative; margin-top: -2px; }
.dark { background: var(--ridge-3); color: #fff; }
.dark a { color: var(--sun); }
.dark p { color: rgba(255, 255, 255, 0.85); }

.shots-section { padding-top: 24px; }
.shots {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.shots li { flex: 0 0 160px; scroll-snap-align: start; text-align: center; font-size: 14px; font-weight: 700; color: var(--sun); }
.shots img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 17;
  object-fit: cover;
  object-position: top;
  margin-bottom: 10px;
  border: 5px solid var(--night);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.features h3 { margin: 0 0 6px; font-size: 20px; }
.features p { margin-top: 0; color: var(--muted); }

.parks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.parks li { position: relative; overflow: hidden; padding-bottom: 14px; background: var(--ridge-2); border-radius: 14px; font-size: 14px; }
.parks .art { position: relative; height: 72px; margin-bottom: 12px; background: linear-gradient(180deg, var(--dusk), var(--sky)); }
.parks .art::before, .parks .art::after { content: ""; position: absolute; inset: 0; }
.parks .art::before { background: var(--r1); clip-path: polygon(0 70%, 22% 30%, 40% 60%, 62% 20%, 82% 55%, 100% 35%, 100% 100%, 0 100%); }
.parks .art::after { background: var(--r2); clip-path: polygon(0 85%, 30% 60%, 55% 88%, 78% 62%, 100% 80%, 100% 100%, 0 100%); }
.parks strong, .parks span { display: block; padding: 0 14px; }
.parks strong { margin-bottom: 4px; font-family: "Outfit", system-ui, sans-serif; font-size: 17px; line-height: 1.25; }
.parks span { line-height: 1.45; }
.parks span { color: rgba(255, 255, 255, 0.7); }
.parks em { position: absolute; top: 10px; right: 10px; padding: 2px 10px; border-radius: 999px; background: var(--sun); color: var(--night); font-style: normal; font-weight: 800; font-size: 12px; }

.hikers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hikers li { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 15px; color: var(--muted); }
.hikers strong { display: block; font-family: "Outfit", system-ui, sans-serif; font-size: 20px; color: var(--ink); }
.hikers span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }

.price { max-width: 640px; text-align: center; }
.price .pills { justify-content: center; }

@media (max-width: 640px) {
  .hero { padding-top: 110px; }
  .features, .hikers { grid-template-columns: 1fr; }
  .shots li { flex-basis: 140px; }
  .hero .sun { width: 110px; height: 110px; right: 10%; bottom: 60px; }
  .hero .wrap { padding-bottom: 170px; }
  .hero > svg:last-child { height: 142px; }
  .feature, .about { grid-template-columns: 1fr; gap: 28px; }
  .feature img { width: 140px; height: 140px; border-radius: 32px; }
}
