: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.5), rgba(245, 248, 255, 0.5)),
    url("assets/background.jpg") center / cover fixed;
  font-family: "Inter", 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(16, 24, 39, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  color: rgba(255, 255, 255, 0.92);
}

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

.brand {
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 64px;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  margin-top: 12px;
}

.nav-links {
  display: none;
  gap: 22px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

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

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-links a.is-active {
  color: #ffffff;
  transform: translateY(-1px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  padding-bottom: 2px;
}

.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: "Inter", sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3.0rem, 17vw, 6.0rem);
}

.hero-title {
  max-width: none;
}

.hero-title span {
  display: block;
}

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

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;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #135f83);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(19, 95, 131, 0.22);
  font-weight: 900;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(19, 95, 131, 0.28);
}

.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;
}

.hero-panel {
  width: min(82vw, 350px);
  padding: 20px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(23, 32, 51, 0.96), rgba(39, 57, 99, 0.92));
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(56, 103, 255, 0.12);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 900;
}

.status-pill.accent {
  background: rgba(139, 230, 75, 0.78);
  color: white;
}

.hero-panel-grid {
  display: grid;
  gap: 14px;
}

.dashboard-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.dashboard-card h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.dashboard-card p:last-child {
  margin-bottom: 0;
}

.dashboard-label {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.formation-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.formation-list li {
  line-height: 1.4;
}

.tactic-bars {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.tactic-bar {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.tactic-bar-wide {
  width: 100%;
}

.tactic-bar-mid {
  width: 72%;
}

.tactic-bar-short {
  width: 48%;
}

.dashboard-card-match {
  background: linear-gradient(145deg, rgba(23, 32, 51, 0.96), rgba(39, 57, 99, 0.92));
  color: rgba(255, 255, 255, 0.92);
}

.match-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.match-card-gif {
  flex: 0 0 auto;
  width: max(48%, 100%);
  border-radius: 8px;
  display: block;
}

.dashboard-card-match .dashboard-label {
  color: var(--yellow);
}

.scoreline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: "Inter", sans-serif;
}

.scoreline strong {
  font-size: 1.4rem;
}

.scoreline span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 800;
}

.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: 1024px;
  margin-bottom: 0;
  color: #31405d;
  font-size: clamp(1.08rem, 3vw, 1.45rem);
  font-weight: 800;
}

.intro-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.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 h3 {
  text-align: center;
}

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

.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;
}

.gallery-title {
  text-align: center;
  margin-bottom: 32px;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

.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: 16 / 9;
  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: "Inter", 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: 1024px) {
  .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));
  }

  .dashboard-card-match {
    grid-column: 1 / -1;
  }

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

  .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;
  }

  .about-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-screenshots {
    width: 380px;
  }
}

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

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

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

/* About section */
.about-row {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-content {
  flex: 1;
  min-width: 0;
}

.about-content p {
  margin: 0 0 1em;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

.about-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.about-links li {
  margin-bottom: 0.5em;
  font-size: 1.05rem;
  color: var(--muted);
}

.about-links a {
  color: var(--blue);
  text-decoration: underline;
}

.about-screenshots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.about-screenshots img {
  display: block;
  width: min(420px, 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.display-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0;
}
/* ── Scroll-to-top button ── */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(56, 103, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
  background: var(--cyan);
  outline: none;
}
