* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #08100f;
  --pine: #0f2a24;
  --pine-deep: #081d1a;
  --snow: #f5fbf4;
  --mist: #b9d2c9;
  --muted: #7fa096;
  --line: rgba(201, 238, 224, 0.18);
  --star: #ffd64f;
  --boost: #57f0c5;
  --ice: #8edcff;
  --rock: #665b54;
  --danger: #ff7a64;
  --shadow: rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--snow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -12%, rgba(87, 240, 197, 0.26), transparent 34rem),
    linear-gradient(180deg, #102d27 0%, #08100f 58%, #050908 100%);
}

.hero {
  position: relative;
  min-height: 88svh;
  padding-bottom: clamp(36px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(158deg, transparent 0 27%, rgba(255, 255, 255, 0.1) 27% 28%, transparent 28% 100%),
    linear-gradient(202deg, transparent 0 34%, rgba(255, 214, 79, 0.12) 34% 35%, transparent 35% 100%),
    linear-gradient(180deg, rgba(8, 16, 15, 0.2), rgba(8, 16, 15, 0.94));
  content: "";
}

.hero::after {
  position: absolute;
  right: -20vw;
  bottom: -28vw;
  z-index: -1;
  width: min(86vw, 760px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(87, 240, 197, 0.16), transparent 68%);
  content: "";
}

.nav {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 10px;
}

.brand-cluster,
.footer-brandline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-link,
.footer-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.platform-link {
  width: 40px;
  min-height: 40px;
  border-radius: 8px;
}

.platform-logo,
.footer-platform-logo {
  display: block;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(87, 240, 197, 0.24);
}

.brand-divider,
.footer-brand-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 auto;
  background: rgba(245, 251, 244, 0.28);
}

.brand,
.footer-game {
  color: var(--snow);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 5vw, 28px);
}

.brand::before {
  width: 18px;
  height: 18px;
  border-radius: 5px 5px 10px 10px;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.88) 42% 50%, transparent 50% 100%),
    linear-gradient(180deg, var(--danger), #d94333);
  box-shadow: 0 0 24px rgba(255, 122, 100, 0.38);
  content: "";
  transform: rotate(45deg);
}

.hero-grid {
  display: grid;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  align-items: center;
  gap: clamp(28px, 7vw, 76px);
}

.hero-copy {
  max-width: 660px;
}

.simple-page {
  min-height: 54svh;
}

.page-content {
  width: min(1120px, calc(100% - 32px));
  margin: 42px auto 0;
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--boost);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 18vw, 118px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 7vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 560px;
  color: var(--mist);
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 720;
  line-height: 1.35;
}

.hero-actions,
.build-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.build-pills span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 251, 244, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--snow);
  background: rgba(245, 251, 244, 0.08);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.button.primary {
  border-color: rgba(87, 240, 197, 0.68);
  color: #05231d;
  background: var(--boost);
  box-shadow: 0 18px 46px rgba(87, 240, 197, 0.22);
}

.button.btn-play {
  border-color: rgba(255, 214, 79, 0.7);
  color: #2a1f04;
  background: linear-gradient(180deg, var(--star), #f0b400);
  box-shadow: 0 18px 46px rgba(255, 214, 79, 0.28);
}

.game-card {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 10px solid #07100f;
  border-radius: 38px;
  background: linear-gradient(180deg, #d9fbff 0%, #d7f0e4 18%, #285645 100%);
  box-shadow: 0 34px 90px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hud,
.swipe-bar {
  position: absolute;
  z-index: 5;
  right: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #08241f;
  font-size: 12px;
  font-weight: 950;
}

.hud {
  top: 16px;
}

.swipe-bar {
  bottom: 16px;
}

.hud span,
.swipe-bar span {
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(245, 251, 244, 0.82);
  box-shadow: 0 6px 18px rgba(8, 16, 15, 0.16);
}

.slope {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(150deg, transparent 0 21%, rgba(255, 255, 255, 0.5) 21% 22%, transparent 22% 100%),
    linear-gradient(210deg, transparent 0 24%, rgba(255, 255, 255, 0.44) 24% 25%, transparent 25% 100%),
    linear-gradient(180deg, #eaf7ee 0%, #cfe7d9 42%, #275242 100%);
}

.lane {
  position: absolute;
  top: -8%;
  bottom: -8%;
  width: 3px;
  background: rgba(255, 255, 255, 0.46);
  transform-origin: top;
}

.lane-left {
  left: 36%;
  transform: rotate(8deg);
}

.lane-right {
  right: 36%;
  transform: rotate(-8deg);
}

.hazard,
.star,
.boost,
.rider {
  position: absolute;
  display: block;
}

.tree {
  width: 28px;
  height: 36px;
  clip-path: polygon(50% 0, 100% 82%, 62% 82%, 62% 100%, 38% 100%, 38% 82%, 0 82%);
  background: #114837;
}

.tree-a {
  top: 22%;
  left: 17%;
}

.tree-b {
  top: 46%;
  right: 18%;
  transform: scale(1.25);
}

.rock {
  width: 36px;
  height: 26px;
  border-radius: 48% 40% 44% 35%;
  background: linear-gradient(135deg, #897d72, var(--rock));
}

.rock-a {
  top: 34%;
  left: 54%;
}

.ice {
  width: 46px;
  height: 22px;
  border-radius: 999px;
  background: rgba(142, 220, 255, 0.78);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.56);
}

.ice-a {
  top: 58%;
  left: 20%;
}

.star {
  width: 22px;
  height: 22px;
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
  background: var(--star);
  filter: drop-shadow(0 0 8px rgba(255, 214, 79, 0.7));
}

.star-a {
  top: 24%;
  right: 28%;
}

.star-b {
  top: 52%;
  left: 48%;
}

.boost {
  top: 69%;
  right: 22%;
  width: 78px;
  height: 24px;
  border: 3px solid var(--boost);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(87, 240, 197, 0.75);
  transform: rotate(-8deg);
}

.rider {
  bottom: 20%;
  left: 48%;
  width: 32px;
  height: 46px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, var(--danger), #a91f25);
  box-shadow: 0 12px 20px rgba(8, 16, 15, 0.26);
  transform: rotate(-9deg);
}

.rider::after {
  position: absolute;
  right: 4px;
  bottom: -9px;
  left: 4px;
  height: 10px;
  border-radius: 999px;
  background: #11231f;
  content: "";
}

.mechanics,
.run-sheet,
.build-strip,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.mechanics {
  display: grid;
  gap: 14px;
  padding: 40px 0 22px;
}

.mechanics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(245, 251, 244, 0.06);
}

.mechanics p,
.run-sheet p,
.build-strip p {
  color: var(--mist);
}

.icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(245, 251, 244, 0.1);
}

.icon.swipe {
  background:
    linear-gradient(90deg, transparent 0 23%, var(--boost) 23% 31%, transparent 31% 69%, var(--boost) 69% 77%, transparent 77% 100%),
    rgba(245, 251, 244, 0.1);
}

.icon.danger {
  background:
    linear-gradient(135deg, transparent 0 39%, var(--danger) 39% 61%, transparent 61% 100%),
    rgba(245, 251, 244, 0.1);
}

.icon.collect {
  background:
    radial-gradient(circle at 50% 50%, var(--star) 0 25%, transparent 26%),
    radial-gradient(circle at 72% 32%, var(--boost) 0 16%, transparent 17%),
    rgba(245, 251, 244, 0.1);
}

.run-sheet {
  display: grid;
  gap: 24px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

dl {
  display: grid;
  margin: 0;
  gap: 10px;
}

dl div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

dt {
  color: var(--boost);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--snow);
  font-weight: 780;
}

.build-strip {
  padding: 34px 0 54px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
  color: var(--mist);
  flex-wrap: wrap;
}

.footer-platform {
  gap: 8px;
  color: var(--snow);
  font-weight: 850;
}

.footer-brand-divider {
  height: 24px;
}

.footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 850;
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr);
    margin-top: 52px;
  }

  .mechanics {
    grid-template-columns: repeat(3, 1fr);
  }

  .run-sheet {
    grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
    align-items: start;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  .nav,
  .hero-grid,
  .page-content,
  .mechanics,
  .run-sheet,
  .build-strip,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .phone {
    width: min(72vw, 220px);
    border-width: 8px;
    border-radius: 30px;
  }

  .hero-actions .button {
    flex: 1 1 140px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
