/* =====================================================================
   CRATES & ROUTES — main stylesheet (mobile-first)
   ===================================================================== */

/* ---------- Font (self-hosted, Latin subset, variable 400–700) ------- */
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Brand tokens -------------------------------------------- */
:root {
  --navy-950: #040c24;
  --navy-900: #071638;
  --navy-800: #0a2154;
  --blue-700: #0a3a9a;
  --blue-600: #0b4fc4;
  --blue-500: #1673ff;
  --sky-400:  #4fb4ff;
  --orange:   #ff8a1a;
  --orange-d: #c25a00;
  --gold:     #ffc531;
  --gold-l:   #ffe08a;
  --cream:    #fff3e2;
  --cream-70: rgba(255, 243, 226, .78);
  --cream-50: rgba(255, 243, 226, .58);
  --road:     #1c2742;
  --wood:     #c98340;

  --font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --radius-lg: 28px;
  --header-h: 64px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--cream);
  background: var(--navy-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg, video, picture { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--gold); color: var(--navy-900); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header --------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(7, 22, 56, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.site-header__inner {
  height: 100%; max-width: 1120px; margin: 0 auto;
  padding: 0 calc(var(--gutter) - 6px) 0 calc(var(--gutter) - 4px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; }
.brand-link img { width: 40px; height: 40px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.brand-link__name { display: none; font-size: 18px; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  font-size: 15px; font-weight: 500; color: var(--cream-70);
  padding: 10px 10px; border-radius: 12px; min-height: 44px;
  display: inline-flex; align-items: center;
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--cream); background: rgba(255, 255, 255, .06); }
.site-nav__cta {
  margin-left: 4px;
  color: var(--navy-900) !important;
  background: var(--gold) !important;
  padding: 8px 16px !important; min-height: 40px !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 0 #c88a00;
}
.site-nav__cta:hover { background: var(--gold-l) !important; }
@media (max-width: 359px) { .site-nav a:not(.site-nav__cta) { display: none; } }

/* ---------- Buttons -------------------------------------------------- */
.btn {
  --btn-shadow: var(--orange-d);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: 18px;
  font-family: inherit; font-size: 19px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; user-select: none;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), filter .2s;
}
.btn--primary {
  color: var(--navy-900);
  background: linear-gradient(180deg, var(--gold) 0%, #ffab24 55%, var(--orange) 100%);
  box-shadow: 0 6px 0 var(--btn-shadow), 0 14px 28px -8px rgba(255, 138, 26, .55), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 8px 0 var(--btn-shadow), 0 18px 32px -8px rgba(255, 138, 26, .6), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn--primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--btn-shadow), 0 8px 16px -8px rgba(255, 138, 26, .5), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn__icon { width: 20px; height: 20px; }

/* ---------- Shared decorative road ---------------------------------- */
.road-rim  { fill: none; stroke: var(--orange); stroke-width: 74; stroke-linecap: round; }
.road-base { fill: none; stroke: var(--road); stroke-width: 62; stroke-linecap: round; }
.road-lane {
  fill: none; stroke: var(--cream); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 26 30; opacity: .85;
  animation: lane-move 2.2s linear infinite;
}
@keyframes lane-move { to { stroke-dashoffset: -56; } }

/* ---------- HERO ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 8px + env(safe-area-inset-top)) var(--gutter) 128px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(115% 62% at 50% 34%, #1d7dff 0%, #0b56d0 26%, #0a3486 52%, #071a45 78%, var(--navy-900) 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute; left: 50%; top: 30%;
  width: 120vw; max-width: 1100px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(110, 200, 255, .35), rgba(110, 200, 255, 0) 70%);
}
.hero__road {
  position: absolute; left: 0; right: 0; bottom: -6px;
  width: 100%; height: 150px;
  filter: drop-shadow(0 -6px 18px rgba(0, 0, 0, .25));
}
.hero__crates { position: absolute; inset: 0; will-change: transform; }
.deco-crate {
  position: absolute;
  filter: drop-shadow(0 16px 18px rgba(2, 10, 40, .45));
  animation: float 7s ease-in-out infinite;
}
.deco-crate--a { width: 70px;  height: 70px;  left: -14px;  top: 22%; transform: rotate(-12deg); animation-delay: -1s; }
.deco-crate--b { width: 54px;  height: 54px;  right: -12px; top: 72%; transform: rotate(10deg);  animation-delay: -3.5s; opacity: .95; }
.deco-crate--c { width: 40px;  height: 40px;  right: 12%;   top: 14%; transform: rotate(-6deg);  animation-delay: -5s; opacity: .75; filter: blur(.6px) drop-shadow(0 10px 12px rgba(2, 10, 40, .4)); }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

.hero__content {
  position: relative;
  width: 100%; max-width: 680px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(4, 12, 36, .55);
  border: 1.5px solid rgba(255, 197, 49, .55);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 197, 49, .7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 197, 49, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 197, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 197, 49, 0); }
}

.hero__logo {
  width: min(100%, 620px);
  margin: 10px auto 0;
  line-height: 0;
}
.hero__logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 28px rgba(2, 10, 40, .5));
}

.hero__kicker {
  margin-top: 2px;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-400);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.hero__headline {
  margin-top: 8px;
  font-size: clamp(30px, 8.4vw, 64px);
  font-weight: 700; line-height: 1.05; letter-spacing: -.005em;
  text-shadow: 0 3px 0 var(--navy-800), 0 10px 24px rgba(0, 0, 0, .35);
  white-space: nowrap;
}
.w-solve  { color: var(--cream); }
.w-build  { color: var(--gold); }
.w-expand { color: var(--orange); }

.hero__sub {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 17px; line-height: 1.45;
  color: var(--cream-70);
}
.hero .btn { margin-top: 22px; }

/* ---------- Sections ------------------------------------------------- */
.section { position: relative; padding: 72px 0; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sky-400);
}
.section-title {
  margin-top: 8px;
  font-size: clamp(36px, 10vw, 64px);
  font-weight: 700; line-height: 1.02; letter-spacing: -.01em;
  text-shadow: 0 3px 0 var(--navy-950), 0 12px 26px rgba(0, 0, 0, .3);
  text-wrap: balance;
}
.section-text {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 18px; line-height: 1.5;
  color: var(--cream-70);
  text-wrap: pretty;
}
.hl-gold { color: var(--gold); }
.hl-orange { color: var(--orange); }

/* ---------- GAMEPLAY ------------------------------------------------- */
.gameplay {
  background:
    radial-gradient(70% 50% at 85% 45%, rgba(22, 115, 255, .28), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, #081c48 100%);
}
.gameplay__grid { display: grid; gap: 44px; }
.gameplay__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }

.mechanics {
  margin-top: 28px;
  width: 100%; max-width: 440px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.mechanic {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 6px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  transition: transform .25s var(--ease-out), background-color .25s;
}
.mechanic:hover { transform: translateY(-3px); }
.mechanic strong { font-size: 18px; font-weight: 600; margin-top: 6px; }
.mechanic span:last-child { font-size: 13px; line-height: 1.3; color: var(--cream-50); }
.mechanic__icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  color: var(--navy-900);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .4);
}
.mechanic__icon svg { width: 26px; height: 26px; }
.mechanic__icon--blue   { background: linear-gradient(180deg, #7cc6ff, var(--blue-500)); }
.mechanic__icon--gold   { background: linear-gradient(180deg, var(--gold-l), var(--gold)); }
.mechanic__icon--orange { background: linear-gradient(180deg, #ffb35c, var(--orange)); }

.gameplay__media { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(74vw, 300px);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a3a66, #0c1530 45%, #1a2850);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .08),
    0 40px 80px -20px rgba(0, 0, 0, .7),
    0 0 90px -10px rgba(22, 115, 255, .45);
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--navy-800);
}
.phone__screen > img,
.phone__screen > video { width: 100%; height: 100%; object-fit: cover; }

.media-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  background:
    radial-gradient(90% 60% at 50% 40%, rgba(29, 125, 255, .55), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .035) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, .035) 46px 48px),
    linear-gradient(180deg, #0b3a9c, var(--navy-900));
}
.media-placeholder__icon {
  width: 88px; height: 88px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45));
  animation: float 6s ease-in-out infinite;
}
.media-placeholder__title { margin-top: 18px; font-size: 22px; font-weight: 600; }
.media-placeholder__text  { margin-top: 4px; font-size: 14px; color: var(--cream-70); max-width: 20ch; }
.media-placeholder__link {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 14px;
  font-size: 15px; font-weight: 600;
  background: rgba(4, 12, 36, .5);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s;
}
.media-placeholder__link:hover { background: rgba(4, 12, 36, .75); }
.media-placeholder__link svg { width: 16px; height: 16px; }

/* ---------- PROGRESSION ---------------------------------------------- */
.progress {
  background:
    radial-gradient(60% 40% at 15% 30%, rgba(255, 138, 26, .12), transparent 70%),
    linear-gradient(180deg, #081c48 0%, var(--navy-900) 100%);
}
.progress__head { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Loop = a little road with four stops (vertical on mobile, horizontal on desktop) */
.loop {
  --node: 60px;
  position: relative;
  margin: 40px auto 0;
  max-width: 380px;
  display: grid; gap: 24px;
}
.loop::before {                         /* road */
  content: ""; position: absolute;
  left: calc(var(--node) / 2 - 15px); top: 10px; bottom: 10px; width: 30px;
  border-radius: 15px;
  background: var(--road);
  box-shadow: 0 0 0 3px var(--orange), 0 10px 24px -6px rgba(0, 0, 0, .5);
}
.loop::after {                          /* lane markings */
  content: ""; position: absolute;
  left: calc(var(--node) / 2 - 2px); top: 18px; bottom: 18px; width: 4px;
  background: repeating-linear-gradient(180deg, var(--cream) 0 12px, transparent 12px 24px);
  opacity: .8;
  animation: lane-v 1.6s linear infinite;
}
@keyframes lane-v { to { background-position: 0 24px; } }
@keyframes lane-h { to { background-position: 24px 0; } }

.loop__step {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
}
.loop__node {
  grid-row: 1 / 3;
  width: var(--node); height: var(--node);
  border-radius: 20px;
  display: grid; place-items: center;
  color: var(--navy-900);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3), 0 14px 24px -10px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.loop__node svg { width: 30px; height: 30px; }
.loop__word {
  font-size: 26px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1;
  align-self: end;
}
.loop__cap { font-size: 15px; color: var(--cream-50); align-self: start; }

.loop__step--solve  .loop__node { background: linear-gradient(180deg, #7cc6ff, var(--blue-500)); }
.loop__step--earn   .loop__node { background: linear-gradient(180deg, var(--gold-l), var(--gold)); }
.loop__step--build  .loop__node { background: linear-gradient(180deg, #ffb35c, var(--orange)); }
.loop__step--expand .loop__node { background: linear-gradient(180deg, #ffffff, #ffe1b8); }
.loop__step--solve  .loop__word { color: #8fd0ff; }
.loop__step--earn   .loop__word { color: var(--gold); }
.loop__step--build  .loop__word { color: var(--orange); }
.loop__step--expand .loop__word { color: var(--cream); }

/* Growth: small → big */
.growth {
  margin: 48px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  align-items: center; gap: 10px;
}
.growth__pane { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.growth__pane figcaption {
  font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--cream-70); text-align: center;
}
.growth__pane--big figcaption { color: var(--gold); }
.growth__stage {
  position: relative; width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 70%, rgba(29, 125, 255, .35), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
}
.growth__stage > img { width: 100%; height: 100%; object-fit: cover; }
.growth__pane--big .growth__stage { aspect-ratio: 1.25 / 1; }
.growth__arrow {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--navy-900);
  background: linear-gradient(180deg, var(--gold-l), var(--orange));
  box-shadow: 0 4px 0 var(--orange-d);
  margin-bottom: 28px;
}
.growth__arrow svg { width: 22px; height: 22px; }

.pile { position: absolute; inset: 0; --s: 34%; }
.pile::before {                                    /* floor tile */
  content: ""; position: absolute; left: 50%; bottom: 10%;
  width: 82%; aspect-ratio: 2 / 1; transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(180deg, #2a3a66, var(--road));
}
.pile--small { --s: 40%; }
.pile--small::before { width: 66%; }
.pile--big { --s: 27%; }
.pile__crate {
  position: absolute;
  width: var(--s); height: var(--s);
  left: calc(50% - var(--s) / 2 + var(--x) * var(--s) * .86);
  bottom: calc(18% + var(--y) * var(--s) * .66 - var(--y) * var(--y) * 0%);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35));
}
.pile--small .pile__crate { bottom: 22%; }

/* ---------- FOLLOW / COMING SOON ------------------------------------ */
.follow { padding-bottom: 72px; }
.follow__panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px;
  padding: 44px 20px 124px;
  text-align: center;
  background: radial-gradient(120% 75% at 50% 25%, #1d7dff 0%, #0b56d0 30%, #0a3486 60%, #071a45 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.follow__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.follow__road { position: absolute; left: 0; right: 0; bottom: -4px; width: 100%; height: 130px; }
.follow__content { display: flex; flex-direction: column; align-items: center; }
.follow__logo {
  width: min(76vw, 460px); height: auto;
  filter: drop-shadow(0 16px 24px rgba(2, 10, 40, .5));
}
.follow__title {
  margin-top: 6px;
  font-size: clamp(40px, 12vw, 84px);
  font-weight: 700; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 4px 0 var(--orange-d), 0 8px 0 var(--navy-950), 0 18px 30px rgba(0, 0, 0, .35);
}
.follow__text { margin-top: 18px; font-size: 19px; color: var(--cream); }
.follow__cta {
  margin-top: 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sky-400);
}
.social-buttons {
  margin-top: 14px;
  width: 100%; max-width: 340px;
  display: grid; gap: 10px;
}
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 22px;
  border-radius: 16px;
  font-size: 18px; font-weight: 600;
  color: var(--navy-900);
  background: var(--cream);
  box-shadow: 0 5px 0 #c7b49a, 0 14px 24px -12px rgba(0, 0, 0, .55);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .2s;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 #c7b49a, 0 18px 28px -12px rgba(0, 0, 0, .6); }
.social-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #c7b49a, 0 8px 14px -10px rgba(0, 0, 0, .5); }

/* Store buttons (only rendered after launch, see scripts/config.js) */
.store-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.store-btn { display: inline-flex; align-items: center; min-height: 52px; border-radius: 12px; transition: transform .15s var(--ease-out); }
.store-btn:hover { transform: translateY(-2px); }
.store-btn img { height: 52px; width: auto; }
.store-btn--text {
  padding: 0 20px; font-weight: 600; font-size: 16px;
  color: var(--cream); background: #000; border: 1px solid rgba(255, 255, 255, .35);
}

/* ---------- Footer --------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.brand-link--footer { font-size: 18px; }
.brand-link--footer img { width: 36px; height: 36px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--cream-70);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: color .2s, background-color .2s, transform .2s var(--ease-out);
}
.footer-social a:hover { color: var(--gold); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.site-footer__copy { font-size: 14px; color: var(--cream-50); }

/* ---------- Scroll reveal (only when JS is running) ------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js .reveal--delay { transition-delay: .12s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance */
.js .hero__content > * { animation: rise .8s var(--ease-out) both; }
.js .hero__content > :nth-child(2) { animation-delay: .06s; }
.js .hero__content > :nth-child(3) { animation-delay: .14s; }
.js .hero__content > :nth-child(4) { animation-delay: .2s; }
.js .hero__content > :nth-child(5) { animation-delay: .26s; }
.js .hero__content > :nth-child(n+6) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Larger screens
   ===================================================================== */
@media (min-width: 400px) {
  .deco-crate--a { width: 84px; height: 84px; }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .brand-link__name { display: inline; }
  .hero { padding-bottom: 150px; }
  .hero__road { height: 190px; }
  .hero__sub { font-size: 19px; max-width: 40ch; }
  .deco-crate--a { width: 110px; height: 110px; left: 4%; top: 24%; }
  .deco-crate--b { width: 86px;  height: 86px;  right: 5%; top: 56%; }
  .deco-crate--c { width: 54px;  height: 54px;  right: 18%; top: 16%; }
  .social-buttons { max-width: 620px; grid-template-columns: repeat(3, 1fr); }
  .follow__panel { padding: 64px 40px 170px; }
  .follow__road { height: 170px; }
  .growth { gap: 20px; }
  .growth__arrow { width: 52px; height: 52px; }
  .growth__pane figcaption { font-size: 16px; }
}

@media (min-width: 900px) {
  .section { padding: 120px 0; }
  .hero { padding-bottom: 210px; }
  .hero__logo { width: min(100%, 560px); }
  .hero__road { height: 200px; }
  .follow__panel { padding-bottom: 210px; }
  .follow__road { height: 150px; }
  .deco-crate--a { width: 140px; height: 140px; left: 7%; top: 30%; }
  .deco-crate--b { width: 104px; height: 104px; right: 8%; top: 54%; }
  .deco-crate--c { width: 64px;  height: 64px;  right: 20%; top: 18%; }

  .gameplay__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
  .gameplay__copy { text-align: left; align-items: flex-start; }
  .mechanics { max-width: 480px; gap: 14px; }
  .phone { width: 320px; }

  /* horizontal loop */
  .loop {
    --node: 76px;
    max-width: 980px;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
  }
  .loop::before {
    left: 12.5%; right: 12.5%; width: auto;
    top: calc(var(--node) / 2 - 16px); bottom: auto; height: 32px;
    border-radius: 16px;
  }
  .loop::after {
    left: calc(12.5% + 16px); right: calc(12.5% + 16px); width: auto;
    top: calc(var(--node) / 2 - 2px); bottom: auto; height: 4px;
    background: repeating-linear-gradient(90deg, var(--cream) 0 12px, transparent 12px 24px);
    animation-name: lane-h;
  }
  .loop__step { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; row-gap: 6px; }
  .loop__node { grid-row: auto; border-radius: 24px; margin-bottom: 8px; }
  .loop__node svg { width: 36px; height: 36px; }
  .loop__word { font-size: 30px; }
}

@media (min-width: 1200px) {
  .hero__road { height: 210px; }
}

/* ---------- Short, wide phones in landscape -------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-bottom: 110px; }
  .hero__logo { width: min(60%, 420px); }
}

/* ---------- Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .road-lane, .loop::after, .deco-crate, .badge__dot, .media-placeholder__icon { animation: none !important; }
}
