:root {
  --ink: #08140d;
  --forest: #103b24;
  --leaf: #78cf4a;
  --lime: #b7ed57;
  --gold: #ffc43d;
  --water: #3cc9c2;
  --coral: #f45f4f;
  --paper: #f6f3e8;
  --muted: #667068;
  --line: rgba(8, 20, 13, 0.18);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px max(28px, calc((100vw - var(--max)) / 2));
  color: white;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(8, 20, 13, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.brand img { border-radius: 7px; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav a {
  color: white;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.site-header nav a:hover { color: var(--lime); }

.site-header .nav-cta {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 5px;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-run.webp");
  background-position: center center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(3, 11, 7, 0.96) 0%, rgba(3, 11, 7, 0.72) 35%, rgba(3, 11, 7, 0.15) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 48px));
  margin-left: max(28px, calc((100vw - var(--max)) / 2));
  padding: 150px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 94px;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 7px 0 rgba(0, 0, 0, 0.28);
}

.hero h1 span { color: var(--gold); }

.hero-copy {
  max-width: 610px;
  margin: 30px 0 28px;
  color: #f3f6ec;
  font-size: 20px;
  line-height: 1.5;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: flex;
  min-width: 186px;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  padding: 8px 18px 9px;
  color: white;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 7px;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease;
}

.store-button:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.store-button small { font-size: 11px; line-height: 1.1; }
.store-button strong { font-size: 20px; line-height: 1.25; }

.cta-note {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.scroll-cue {
  position: absolute;
  right: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-size: 24px;
  text-decoration: none;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: white;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof div {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proof div:last-child { border-right: 0; }
.proof strong { color: var(--gold); font-size: 38px; }
.proof span { max-width: 92px; color: #dce5dc; font-size: 14px; }

.section { padding: 110px 28px; }

.section-heading {
  width: min(720px, 100%);
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading h2,
.challenge h2,
.download h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
}

.section-heading > p:last-child {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.showcase {
  display: grid;
  width: min(var(--max), 100%);
  min-height: 530px;
  grid-template-columns: 0.72fr 1.5fr;
  margin: 0 auto;
  color: white;
  background: var(--forest);
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
}

.showcase-number {
  color: var(--water);
  font-size: 13px;
  font-weight: 850;
}

.showcase-copy h3 {
  margin: 18px 0 16px;
  color: white;
  font-size: 42px;
  line-height: 1;
}

.showcase-copy p { margin: 0; color: #cfe0d2; font-size: 17px; }

.showcase-controls { display: flex; gap: 8px; margin-top: 42px; }

.showcase-controls button {
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}

.showcase-controls button:hover { background: var(--lime); }

.showcase-frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #06100b;
}

.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.worlds { padding: 110px 28px; color: white; background: #0b2718; }
.worlds-inner { width: min(var(--max), 100%); margin: 0 auto; }
.section-heading.light h2 { color: white; }
.section-heading.light > p:last-child { color: #bad0bf; }

.world-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.world-tabs button {
  padding: 16px 24px;
  color: #a8bbaa;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.world-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }

.world-detail {
  display: grid;
  grid-template-columns: 0.72fr 1.5fr;
  align-items: stretch;
  min-height: 520px;
}

.world-detail > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 56px 56px 0;
}

.world-index { margin: 0 0 8px; color: var(--water); font-weight: 850; text-transform: uppercase; }
.world-detail h3 { margin: 0 0 18px; color: white; font-size: 54px; line-height: 1; }
.world-detail > div > p:not(.world-index) { color: #c5d4c8; }
.world-detail img { width: 100%; height: 100%; object-fit: cover; }

.world-mechanic {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.world-mechanic span { padding: 5px 9px; color: var(--ink); background: var(--gold); font-size: 11px; font-weight: 850; text-transform: uppercase; }

.feature-grid {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  min-height: 245px;
  padding: 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article > span { color: var(--coral); font-size: 13px; font-weight: 900; }
.feature-grid h3 { margin: 34px 0 10px; font-size: 25px; line-height: 1.15; }
.feature-grid p { margin: 0; color: var(--muted); }

.challenge {
  display: grid;
  min-height: 680px;
  grid-template-columns: 1.25fr 0.75fr;
  color: white;
  background: var(--ink);
}

.challenge-image { min-height: 540px; background: url("assets/gems.webp") center / cover no-repeat; }
.challenge-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px; }
.challenge-copy p:not(.eyebrow) { color: #c8d5ca; font-size: 18px; }
.challenge-copy a { align-self: flex-start; margin-top: 20px; padding: 13px 20px; color: var(--ink); background: var(--gold); border-radius: 5px; font-weight: 850; text-decoration: none; }

.download {
  position: relative;
  padding: 110px 28px;
  overflow: hidden;
  text-align: center;
  background: var(--gold);
}

.download-content { position: relative; z-index: 1; width: min(750px, 100%); margin: 0 auto; }
.download img { margin: 0 auto 26px; border-radius: 8px; box-shadow: 0 14px 34px rgba(8, 20, 13, 0.25); }
.download .eyebrow { color: var(--forest); }
.download p:not(.eyebrow) { font-size: 19px; }
.store-actions.centered { justify-content: center; margin-top: 28px; }
.light-button { border-color: #111; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 58px max(28px, calc((100vw - var(--max)) / 2));
  color: white;
  background: var(--ink);
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { color: var(--lime); }
.footer-brand span, footer > p { color: #91a398; font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: white; font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
footer > p { grid-column: 1 / -1; margin: 0; }

.mobile-download { display: none; }

.legal-page { min-height: 100vh; background: #f5f3e9; }
.legal-header { position: sticky; background: var(--ink); }
.legal-main { width: min(840px, calc(100% - 40px)); margin: 0 auto; padding: 138px 0 90px; }
.legal-main .eyebrow { color: #25897e; }
.legal-main h1 { margin: 0 0 10px; font-size: 58px; line-height: 1; }
.legal-updated { margin: 0 0 48px; color: var(--muted); }
.legal-main h2 { margin: 46px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 25px; }
.legal-main p, .legal-main li { color: #3c463f; }
.legal-main a { color: #08766d; font-weight: 700; }

@media (max-width: 900px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero h1 { font-size: 72px; }
  .hero-media { background-position: 58% center; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof div:nth-child(2) { border-right: 0; }
  .proof div:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .showcase, .world-detail { grid-template-columns: 1fr; }
  .showcase-copy { order: 2; padding: 36px; }
  .showcase-frame { min-height: 410px; }
  .world-detail > div { padding: 48px 0; }
  .world-detail img { min-height: 430px; }
  .challenge { grid-template-columns: 1fr; }
  .challenge-copy { padding: 64px 36px; }
}

@media (max-width: 620px) {
  body { padding-bottom: 68px; }
  .site-header { min-height: 64px; padding: 10px 16px; }
  .brand img { width: 38px; height: 38px; }
  .site-header .nav-cta { padding: 9px 12px; font-size: 13px; }
  .hero { min-height: 91svh; }
  .hero-media { background-position: 60% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3, 11, 7, 0.94) 0%, rgba(3, 11, 7, 0.64) 58%, rgba(3, 11, 7, 0.3) 100%); }
  .hero-content { width: calc(100% - 36px); margin: 0 18px; padding: 118px 0 76px; }
  .hero h1 { font-size: 56px; }
  .hero-copy { margin-top: 24px; font-size: 17px; }
  .store-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .store-button { min-width: 0; padding-inline: 11px; }
  .store-button strong { font-size: 17px; }
  .scroll-cue { display: none; }
  .proof div { min-height: 100px; flex-direction: column; gap: 0; text-align: center; }
  .proof strong { font-size: 31px; }
  .proof span { max-width: none; font-size: 12px; }
  .section, .worlds { padding: 76px 18px; }
  .section-heading { margin-bottom: 38px; text-align: left; }
  .section-heading h2, .challenge h2, .download h2 { font-size: 38px; }
  .section-heading > p:last-child { margin-left: 0; font-size: 16px; }
  .showcase { min-height: 0; }
  .showcase-frame { min-height: 280px; }
  .showcase-copy h3 { font-size: 34px; }
  .world-tabs button { padding: 14px 17px; }
  .world-detail h3 { font-size: 44px; }
  .world-detail img { min-height: 280px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 220px; padding: 32px; }
  .challenge { min-height: 0; }
  .challenge-image { min-height: 360px; }
  .challenge-copy { padding: 56px 24px; }
  .download { padding: 80px 18px; }
  footer { grid-template-columns: 1fr; padding: 48px 22px; }
  .footer-links { flex-wrap: wrap; }
  .mobile-download {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: flex;
    height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    color: white;
    background: rgba(8, 20, 13, 0.98);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.13);
    transform: translateY(110%);
    transition: transform 180ms ease;
  }
  .mobile-download.visible { transform: translateY(0); }
  .mobile-download div { display: flex; flex-direction: column; }
  .mobile-download span { color: #a8b7ad; font-size: 11px; }
  .mobile-download a { padding: 10px 13px; color: var(--ink); background: var(--gold); border-radius: 5px; font-size: 13px; font-weight: 850; text-decoration: none; }
  .legal-main { padding-top: 112px; }
  .legal-main h1 { font-size: 42px; }
}

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