@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "Titan One";
  src: url("/assets/fonts/TitanOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17171b;
  --muted: #646879;
  --blue: #536cf6;
  --blue-dark: #4057d8;
  --mint: #55c4a5;
  --yellow: #ffb32b;
  --coral: #f46c61;
  --paper: #fbfaf7;
  --paper-blue: #eef1ff;
  --line: #e3e3e8;
  --navy: #25283a;
  --shadow: 0 28px 70px rgba(40, 45, 73, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.65 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.home {
  overflow-x: hidden;
}

.site-header,
.landing-hero,
.gameplay-showcase,
.feature-grid,
.fair-play,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  font-family: "Titan One", "Poppins", sans-serif;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -.035em;
  text-decoration: none;
}

.wordmark em {
  color: var(--blue);
  font-style: normal;
}

.top-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.top-link:hover,
.top-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--blue);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  align-items: center;
  min-height: 690px;
  padding: 28px 0 70px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 26px 0 38px;
}

.kicker,
.eyebrow {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 6.4vw, 94px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.075em;
}

.hero-copy h1 span {
  display: block;
  color: var(--blue);
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.75;
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 9px 15px;
  border-radius: 999px;
  color: #40529a;
  background: var(--paper-blue);
  font-size: 13px;
  font-weight: 600;
}

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

.store-button,
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--blue);
  border-radius: 15px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(83, 108, 246, .22);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.store-button:hover,
.store-button:focus-visible,
.button:hover,
.button:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 18px 38px rgba(83, 108, 246, .28);
  transform: translateY(-2px);
}

.store-button--muted,
.button.secondary {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
}

.store-button--muted {
  cursor: default;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 640px;
  place-items: center;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  z-index: -2;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 108, 246, .16), rgba(83, 108, 246, 0) 68%);
  content: "";
}

.phone-shell {
  position: relative;
  width: 322px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 11px solid var(--navy);
  border-radius: 46px;
  background: #fff;
  box-shadow: 0 38px 70px rgba(31, 35, 59, .26);
  transform: rotate(3deg);
}

.phone-shell::after {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 23, .07);
  content: "";
  pointer-events: none;
}

.phone-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 50%;
  width: 62px;
  height: 6px;
  border-radius: 999px;
  background: var(--navy);
  transform: translateX(-50%);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  border: 1px solid rgba(227, 227, 232, .85);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 40px rgba(40, 45, 73, .14);
  backdrop-filter: blur(10px);
}

.float-card--levels {
  top: 124px;
  left: -10px;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 20px;
  transform: rotate(-4deg);
}

.float-card--levels strong {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.float-card--levels span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.float-card--offline {
  right: -8px;
  bottom: 114px;
  gap: 9px;
  padding: 13px 17px;
  color: #305d50;
  font-size: 12px;
  transform: rotate(2deg);
}

.offline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(85, 196, 165, .15);
}

.orbit {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
}

.orbit--blue {
  top: 75px;
  right: 38px;
  width: 108px;
  height: 28px;
  background: var(--blue);
  transform: rotate(24deg);
}

.orbit--mint {
  bottom: 68px;
  left: 38px;
  width: 82px;
  height: 28px;
  background: var(--mint);
  transform: rotate(-19deg);
}

.gameplay-showcase {
  position: relative;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  padding: 52px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 3% 100%, rgba(244, 108, 97, .25) 0 95px, transparent 96px),
    radial-gradient(circle at 100% 0, rgba(255, 179, 43, .34) 0 120px, transparent 121px),
    #eef1ff;
  box-shadow: 0 24px 60px rgba(54, 60, 89, .12);
}

.showcase-copy {
  position: relative;
  z-index: 2;
  padding-right: 24px;
}

.showcase-copy h2,
.fair-play h2 {
  margin: 0;
  font-size: clamp(37px, 4.4vw, 57px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.showcase-copy p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.flow-board {
  width: 112%;
  max-width: 670px;
  filter: drop-shadow(0 22px 26px rgba(42, 47, 74, .14));
  transform: translateX(5%) rotate(-2deg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 62px 0;
}

.feature-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .6);
}

.feature-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--blue);
  background: var(--paper-blue);
  font-size: 12px;
  font-weight: 600;
}

.feature-grid article:nth-child(2) .feature-number {
  color: #277c67;
  background: #e7f7f2;
}

.feature-grid article:nth-child(3) .feature-number {
  color: #a26000;
  background: #fff1d4;
}

.feature-grid h3 {
  margin: 23px 0 10px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.fair-play {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 72px;
  padding: 48px;
  border-radius: 30px;
  background: #e7f7f2;
}

.fair-play h2 {
  font-size: clamp(36px, 4vw, 52px);
}

.fair-play p {
  margin: 0;
  color: #46665e;
  font-size: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 7px;
}

/* Legal, support, and utility pages */
.page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.legal {
  margin-top: 54px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(43, 50, 85, .08);
}

.legal h1,
.hero h1 {
  margin: .15em 0;
  font-size: clamp(45px, 8vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.06em;
}

.legal h2 {
  margin: 1.8em 0 .25em;
  font-size: 23px;
  line-height: 1.25;
}

.legal p {
  color: #464b5c;
}

.legal hr {
  margin: 60px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal + footer {
  padding: 26px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.back {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -24px 0 32px;
  font-size: 14px;
  font-weight: 600;
}

.language-switch a,
.language-switch span {
  padding: 7px 12px;
  border-radius: 999px;
}

.language-switch a {
  color: var(--blue);
  background: var(--paper-blue);
  text-decoration: none;
}

.language-switch span[aria-current="page"] {
  color: #fff;
  background: var(--blue);
}

details {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.hero.page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  text-align: center;
}

.hero em {
  color: var(--blue);
  font-style: normal;
}

.hero .lead {
  max-width: 650px;
  margin: 24px auto 30px;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 23px);
}

@media (max-width: 960px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(310px, .72fr);
  }

  .phone-shell {
    width: 284px;
  }

  .hero-art {
    min-height: 580px;
  }

  .float-card--levels {
    left: -18px;
  }

  .float-card--offline {
    right: -20px;
  }

  .gameplay-showcase {
    padding: 42px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .landing-hero,
  .gameplay-showcase,
  .feature-grid,
  .fair-play,
  .site-footer {
    width: min(100% - 28px, 560px);
  }

  .site-header {
    padding: 22px 0;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding: 42px 0 34px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(54px, 15.2vw, 74px);
  }

  .hero-lead {
    margin-top: 24px;
  }

  .store-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .store-button {
    width: 100%;
  }

  .hero-art {
    min-height: 590px;
    margin-top: 40px;
  }

  .hero-art::before {
    width: 360px;
    height: 360px;
  }

  .phone-shell {
    width: 282px;
  }

  .float-card--levels {
    top: 102px;
    left: 1%;
  }

  .float-card--offline {
    right: 0;
    bottom: 93px;
  }

  .gameplay-showcase {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: 34px 26px 0;
  }

  .showcase-copy {
    padding: 0;
  }

  .showcase-copy h2 {
    font-size: clamp(34px, 10.6vw, 48px);
  }

  .flow-board {
    width: 126%;
    max-width: none;
    transform: translateX(-5%) translateY(8%) rotate(-2deg);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 42px 0;
  }

  .feature-grid article {
    min-height: 0;
  }

  .fair-play {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 42px;
    padding: 34px 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .legal {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 30px 22px;
    border-radius: 20px;
  }

  .language-switch {
    justify-content: flex-start;
    margin: 22px 0 30px;
  }
}

@media (max-width: 390px) {
  .phone-shell {
    width: 250px;
  }

  .hero-art {
    min-height: 535px;
  }

  .float-card--levels {
    left: -2%;
  }

  .float-card--offline {
    right: -2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
