:root {
  --ink: #172033;
  --muted: #5f6b82;
  --surface: rgba(245, 248, 255, 0.88);
  --surface-soft: #f5f8ff;
  --cyan: #19b8ff;
  --blue: #3867ff;
  --lime: #8be64b;
  --yellow: #ffd447;
  --coral: #ff6d5a;
  --violet: #845ef7;
  --shadow: 0 24px 70px rgba(33, 58, 117, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(245, 248, 255, 0.72), rgba(245, 248, 255, 0.72)),
    url("assets/background.png") center / cover fixed;
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.content-wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.section-band {
  padding: 64px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(245, 248, 255, 0.88);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 22px;
  color: var(--muted);
  font-weight: 800;
}

.nav-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  gap: 42px;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 9ch;
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 17vw, 7.7rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 8vw, 4.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.tagline {
  max-width: 560px;
  color: #32405a;
  font-size: clamp(1.08rem, 3vw, 1.35rem);
  font-weight: 700;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.play-button {
  display: inline-block;
  line-height: 0;
  transition: transform 180ms ease, filter 180ms ease;
  min-width: 320px;
}

.play-button:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 14px 20px rgba(23, 32, 51, 0.22));
}

.store-badge {
  display: block;
  width: min(196px, 100%);
  height: auto;
}

.secondary-link {
  color: var(--ink);
  font-weight: 900;
  border-bottom: 3px solid var(--yellow);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(78vw, 330px);
  padding: 12px;
  border: 9px solid #182033;
  border-radius: 36px;
  background: #182033;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.game-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #6bd5ff, #e4fbff 42%, #3ed8ff 43%, #135cca);
}

.sky-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(120px) rotateX(55deg) translateY(-34px);
}

.course,
.goal-ring,
.sphere {
  position: absolute;
}

.course {
  height: 38px;
  border-radius: 8px;
  background-color: #d8e7ff;
  background-image: url("assets/tiles.png");
  background-size: 38px 38px;
  background-repeat: repeat;
  box-shadow: 0 12px 0 #272114, 0 18px 32px rgba(24, 32, 51, 0.18);
}

.course-one {
  right: 16px;
  bottom: 88px;
  width: 70%;
}

.course-two {
  left: 18px;
  bottom: 176px;
  width: 62%;
  transform: rotate(-8deg);
}

.course-three {
  right: 36px;
  bottom: 276px;
  width: 48%;
  transform: rotate(9deg);
}

.goal-ring {
  right: 54px;
  bottom: 330px;
  width: 50px;
  aspect-ratio: 1;
  border: 8px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 212, 71, 0.68);
}

.sphere {
  left: 72px;
  bottom: 205px;
  width: 54px;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 14px rgba(24, 32, 51, 0.26));
  animation: bob 2.8s ease-in-out infinite;
}

.intro {
  padding: 54px 0;
}

.intro p {
  max-width: 850px;
  margin-bottom: 0;
  color: #31405d;
  font-size: clamp(1.08rem, 3vw, 1.45rem);
  font-weight: 800;
}

.video-section {
  max-width: 920px;
  margin-top: 34px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #101827;
  box-shadow: var(--shadow);
}

.video-section iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.features {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 251, 255, 0.88) 100%);
}

.section-heading {
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(33, 58, 117, 0.08);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eef5ff;
}

.feature-icon::before {
  content: "";
  display: block;
  width: 24px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
}

.tilt {
  color: var(--cyan);
  transform: rotate(-10deg);
}

.balance {
  color: var(--lime);
}

.puzzle {
  color: var(--coral);
}

.puzzle::before {
  border-radius: 5px;
}

.skill {
  color: var(--violet);
}

.gallery {
  padding: 64px 0;
}

.screenshot-carousel {
  --gallery-gap: 12px;
  --visible-screenshots: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.gallery-viewport {
  overflow: hidden;
}

.gallery-strip {
  display: flex;
  gap: var(--gallery-gap);
  transform: translateZ(0);
  will-change: transform;
}

.gallery-strip.is-sliding {
  transition: transform 340ms ease;
}

.gallery-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  color: #ffffff;
  background: #172033;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.28);
}

.gallery-arrow:disabled {
  cursor: default;
  opacity: 0.68;
}

.gallery-arrow span {
  display: block;
  margin-top: -3px;
  font-size: 2rem;
  line-height: 1;
}

.screenshot-card {
  position: relative;
  flex: 0 0 calc(
    (100% - (var(--gallery-gap) * (var(--visible-screenshots) - 1))) / var(--visible-screenshots)
  );
  aspect-ratio: 9 / 19.5;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  color: #ffffff;
  box-shadow: var(--shadow);
  background: #172033;
}

.screenshot-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.screenshot-trigger:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}

.cinema-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(8px);
}

.cinema-modal[hidden] {
  display: none;
}

.cinema-frame {
  display: grid;
  place-items: center;
  width: min(96vw, 980px);
  max-height: 92vh;
}

.cinema-frame img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  border-radius: var(--radius);
  background: #101827;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.cinema-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.cinema-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(238, 248, 255, 0.88) 100%);
}

.social-grid {
  display: grid;
  gap: 14px;
}

.social-link {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 92px;
  padding: 18px;
  color: #172033;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(33, 58, 117, 0.08);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-link:hover {
  transform: translateY(-3px);
  border-color: currentColor;
  box-shadow: 0 18px 36px rgba(33, 58, 117, 0.14);
}

.social-icon-stack {
  position: relative;
  display: block;
  width: 48px;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.social-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px 0;
  transition: opacity 180ms ease;
}

.social-icon-black {
  opacity: 0;
}

.social-link:hover .social-icon-white,
.footer-socials a:hover .social-icon-white {
  opacity: 0;
}

.social-link:hover .social-icon-black,
.footer-socials a:hover .social-icon-black {
  opacity: 1;
}

.instagram {
  color: #d62976;
}

.tiktok {
  color: #101827;
}

.youtube {
  color: #ff0033;
}

.x-social {
  color: #172033;
}

.cta {
  background: linear-gradient(135deg, #172033, #273963 62%, #135f83);
}

.policy-hero {
  background:
    radial-gradient(circle at 8% 20%, rgba(139, 230, 75, 0.28), transparent 26%),
    linear-gradient(145deg, rgba(234, 247, 255, 0.88) 0%, rgba(255, 248, 221, 0.88) 64%, rgba(239, 255, 240, 0.88) 100%);
}

.policy-hero h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(3rem, 11vw, 6.6rem);
}

.policy-lede {
  max-width: 760px;
  margin-bottom: 0;
  color: #32405a;
  font-size: clamp(1.08rem, 3vw, 1.35rem);
  font-weight: 800;
}

.policy-content {
  padding: 54px 0 72px;
}

.policy-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.55rem, 5vw, 2.45rem);
}

.policy-content p,
.policy-content li {
  max-width: 880px;
  color: #31405d;
  font-size: 1.04rem;
  font-weight: 700;
}

.policy-content a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cta-panel {
  display: grid;
  gap: 24px;
  align-items: center;
  color: black;
}

.cta-download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cta .eyebrow {
  color: var(--lime);
}

.cta h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  padding: 28px 0;
  background: #101827;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid,
.footer-links {
  display: grid;
  gap: 14px;
}

.footer-grid {
  align-items: center;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links a {
  color: #ffffff;
  font-weight: 800;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: background 180ms ease, transform 180ms ease;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.footer-socials .social-icon-stack {
  width: 30px;
}

.footer-socials .tiktok-icon,
.footer-socials .youtube-icon {
  width: 42px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(12deg);
  }
}

@media (min-width: 720px) {
  .site-header {
    padding-inline: 28px;
  }

  .nav-links {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    align-items: center;
    padding: 78px max(28px, calc((100vw - 1120px) / 2));
  }

  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (min-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .social-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .screenshot-carousel {
    --visible-screenshots: 4;
  }
}
