:root {
  color-scheme: dark;
  --navy: #0d192b;
  --navy-soft: #142641;
  --navy-raised: #1d3558;
  --paper: #f7f9ff;
  --paper-soft: #e9eff8;
  --ink: #111820;
  --muted: #9fb1cb;
  --muted-dark: #506078;
  --blue: #9dcbfb;
  --blue-strong: #5f9ed5;
  --lilac: #d4bee6;
  --line: rgba(157, 203, 251, 0.22);
  --shadow: rgba(1, 8, 18, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  background: var(--navy);
  color: var(--paper);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-brand img,
.download-panel > img,
.brand-logo {
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 28px var(--shadow);
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.site-nav a,
.site-footer > a:last-child {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.site-footer > a:last-child:hover {
  color: var(--paper);
}

.language-switcher {
  display: flex;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--navy);
  background: var(--blue);
}

.landing-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 70px;
  padding-block: 80px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 {
  max-width: 700px;
  margin-top: 18px;
  font-size: clamp(52px, 6.5vw, 92px);
}

h2 {
  font-size: clamp(38px, 5vw, 68px);
}

.lead {
  margin-top: 24px;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.store-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-links-start {
  justify-content: flex-start;
  margin-top: 34px;
}

.store-badge {
  display: block;
  width: 168px;
  height: 52px;
  border-radius: 10px;
  transition: transform 180ms ease;
}

.store-badge:hover {
  transform: translateY(-3px);
}

.store-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.availability {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.app-shot {
  display: block;
  width: 330px;
  border-radius: 30px;
  box-shadow: 0 28px 70px var(--shadow);
}

.app-shot-main {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 6%;
  transform: rotate(-3deg);
}

.app-shot-side {
  position: absolute;
  right: -3%;
  bottom: -120px;
  transform: rotate(5deg);
  opacity: 0.82;
}

.feature-section {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 800px;
}

.section-heading h2 {
  margin-top: 18px;
}

.section-heading > p:last-child {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.feature-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--navy-soft);
}

.feature-card:nth-child(2) {
  background: var(--paper);
  color: var(--ink);
}

.feature-number {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
}

.feature-card:nth-child(2) .feature-number {
  color: #31628d;
}

.feature-card h3 {
  margin-top: 78px;
  font-size: 25px;
  line-height: 1.15;
}

.feature-card p {
  margin-top: 14px;
  color: var(--muted);
}

.feature-card:nth-child(2) p {
  color: var(--muted-dark);
}

.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

.showcase-reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.showcase-reverse .showcase-media {
  order: 2;
}

.showcase-media {
  display: flex;
  justify-content: center;
  max-height: 650px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--paper-soft);
}

.showcase-media img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.collection-gallery {
  display: grid;
  grid-template-columns: 0.72fr 1.2fr 0.72fr;
  gap: 22px;
  align-items: end;
  margin-top: 60px;
}

.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--navy-soft);
}

.gallery-card img {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: top;
}

.gallery-card-tablet img {
  aspect-ratio: 4 / 5;
}

.gallery-card-phone img {
  aspect-ratio: 0.62;
}

.gallery-card figcaption {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 22px;
}

.gallery-card strong {
  font-size: 19px;
  line-height: 1.2;
}

.gallery-card span {
  color: var(--muted);
  font-size: 14px;
}

.phone-stage {
  align-items: flex-start;
  max-height: 680px;
  padding: 42px 42px 0;
  background: var(--paper-soft);
}

.phone-stage img {
  width: min(100%, 390px);
  object-fit: contain;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 22px 52px rgba(16, 31, 52, 0.22);
}

.share-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: end;
  margin-block: 80px 30px;
  padding: clamp(38px, 6vw, 74px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--navy-soft);
}

.share-panel h2 {
  margin-top: 18px;
  font-size: clamp(36px, 4.5vw, 60px);
}

.share-panel > div:last-child > p {
  color: var(--muted);
  font-size: 18px;
}

.showcase-copy h2 {
  margin-top: 18px;
}

.showcase-copy > p:not(.kicker) {
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  list-style-position: inside;
  margin-top: 28px;
  color: var(--paper-soft);
}

.check-list li + li {
  margin-top: 10px;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 5px;
}

.download-panel {
  margin-block: 90px;
  padding: 80px 28px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
}

.download-panel .kicker {
  margin-top: 28px;
  color: #31628d;
}

.download-panel h2 {
  max-width: 800px;
  margin: 16px auto 0;
}

.download-panel > p:not(.kicker) {
  max-width: 620px;
  margin: 20px auto 30px;
  color: var(--muted-dark);
  font-size: 18px;
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin-left: auto;
}

/* Shared wishlist, invitation and privacy */
.utility-page {
  background: var(--navy);
}

.utility-shell {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 28px 70px;
}

.utility-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
}

.utility-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.utility-hero h1 {
  margin-top: 14px;
  font-size: clamp(42px, 7vw, 76px);
}

.utility-subtitle {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.meta {
  display: flex;
  gap: 12px;
}

.stat {
  min-width: 142px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--navy-soft);
  border: 1px solid var(--line);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 700;
}

.state {
  margin-top: 34px;
  padding: 44px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--navy-soft);
}

.state p {
  margin-top: 10px;
  color: var(--muted);
}

.state-error {
  border-color: rgba(255, 180, 171, 0.45);
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  border: 4px solid rgba(157, 203, 251, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px 16px;
  margin-top: 38px;
}

.card {
  min-width: 0;
}

.cover-wrap {
  position: relative;
}

.cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--navy-soft);
  box-shadow: 0 16px 34px var(--shadow);
  transition: transform 180ms ease;
}

.card:hover .cover {
  transform: translateY(-5px);
}

.game-platform {
  position: absolute;
  top: 9px;
  right: 9px;
  max-width: calc(100% - 18px);
  padding: 5px 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 25, 43, 0.88);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-title {
  margin-top: 11px;
  min-height: 42px;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.35;
}

.app-cta {
  margin-top: 64px;
  padding: 46px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.app-cta h2 {
  font-size: clamp(30px, 5vw, 48px);
}

.app-cta p {
  max-width: 600px;
  margin: 14px auto 24px;
  color: var(--muted-dark);
}

.utility-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

.utility-footer a {
  text-underline-offset: 4px;
}

.invite-card {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 58px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
}

.invite-card h1 {
  font-size: clamp(44px, 8vw, 74px);
}

.invite-card .utility-subtitle {
  margin-inline: auto;
  color: var(--muted-dark);
}

.invite-card .state {
  background: var(--paper-soft);
  color: var(--ink);
}

.policy {
  max-width: 860px;
  margin: 36px auto 0;
  padding: clamp(26px, 5vw, 58px);
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
}

.policy h2 {
  margin-top: 34px;
  font-size: 25px;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy p,
.policy li {
  margin-top: 12px;
  color: var(--muted-dark);
}

.policy ul {
  padding-left: 22px;
}

.policy a {
  color: #245f91;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .site-header .language-switcher {
    margin-left: auto;
  }

  .landing-hero,
  .showcase,
  .showcase-reverse,
  .share-panel {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding-top: 70px;
  }

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

  .app-shot-main {
    left: 12%;
  }

  .showcase-reverse .showcase-media {
    order: 0;
  }

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

  .collection-gallery {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .gallery-card:last-child {
    grid-column: 1 / -1;
    width: 48%;
    justify-self: center;
  }

  .feature-card {
    min-height: 220px;
  }

  .feature-card h3 {
    margin-top: 40px;
  }

  .utility-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section-shell,
  .site-header,
  .utility-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 74px;
  }

  .site-brand {
    font-size: 17px;
  }

  .site-brand img {
    width: 40px;
    height: 40px;
  }

  .landing-hero {
    min-height: auto;
    gap: 40px;
    padding-block: 56px 80px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .store-links-start {
    justify-content: center;
  }

  .availability {
    text-align: center;
  }

  .hero-visual {
    min-height: 460px;
  }

  .app-shot {
    width: min(70vw, 285px);
    border-radius: 22px;
  }

  .app-shot-main {
    left: 0;
  }

  .app-shot-side {
    right: -8%;
    bottom: -80px;
  }

  .feature-section,
  .showcase {
    padding-block: 80px;
  }

  .collection-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 40px;
  }

  .gallery-card,
  .gallery-card:last-child {
    width: 100%;
    max-width: 430px;
    justify-self: center;
  }

  .gallery-card img {
    max-height: 520px;
  }

  .gallery-card figcaption {
    min-height: auto;
  }

  .showcase {
    gap: 46px;
  }

  .showcase-media {
    max-height: 540px;
  }

  .phone-stage {
    padding: 26px 26px 0;
  }

  .share-panel {
    gap: 28px;
    margin-block: 48px 20px;
  }

  .download-panel {
    margin-block: 60px;
    padding-block: 58px;
  }

  .site-footer {
    flex-wrap: wrap;
    padding-block: 26px;
  }

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

  .utility-nav {
    margin-bottom: 38px;
  }

  .utility-hero h1 {
    font-size: 44px;
  }

  .meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    min-width: 0;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .invite-card {
    padding: 42px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
