:root {
  --ink: #f8fbf7;
  --muted: #b9c6c6;
  --paper: #fff8ed;
  --night: #111720;
  --panel: #171e29;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #69f3d3;
  --aqua: #48b7c1;
  --blue: #3478d6;
  --coral: #ff5c64;
  --gold: #f3ddbd;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(105, 243, 211, 0.16), transparent 32rem),
    radial-gradient(circle at 85% 18%, rgba(255, 92, 100, 0.13), transparent 28rem),
    linear-gradient(180deg, #121821 0%, #0f141c 48%, #10161f 100%);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 23, 32, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--teal);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.language-switcher select {
  min-height: 2.25rem;
  padding: 0.3rem 2rem 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
}

.language-switcher option {
  background: var(--night);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 4.75rem);
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 4.5rem) clamp(2.2rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 37rem;
  margin: 1.35rem 0 0;
  color: #dbe6e2;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.play-button,
.ghost-button {
  min-height: 3.25rem;
  border-radius: 0.45rem;
  text-decoration: none;
  font-weight: 800;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid rgba(255, 248, 237, 0.22);
  background: var(--paper);
  color: #111720;
  box-shadow: 0 12px 34px rgba(105, 243, 211, 0.18);
}

.play-button small {
  display: block;
  color: #405057;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1.1rem solid var(--coral);
  filter: drop-shadow(0 0 8px rgba(255, 92, 100, 0.32));
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.store-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.store-stats div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
}

.store-stats dt {
  font-size: 1.1rem;
  font-weight: 900;
}

.store-stats dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-art {
  position: relative;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 5% -6%;
  border-radius: 45% 55% 48% 52%;
  background: linear-gradient(135deg, rgba(105, 243, 211, 0.36), rgba(52, 120, 214, 0.28));
  filter: blur(28px);
  opacity: 0.8;
}

.hero-art img {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.feature-band,
.showcase,
.locales,
.download-band,
.policy-page {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 5vw, 4.5rem);
}

.feature-band {
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.05), rgba(255, 248, 237, 0.025));
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 52rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article {
  min-height: 17rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(17, 23, 32, 0.62);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(105, 243, 211, 0.46);
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.feature-grid p,
.policy p,
.policy li {
  color: var(--muted);
  line-height: 1.7;
}

.device-gallery {
  display: grid;
  gap: 1.2rem;
  justify-items: center;
  user-select: none;
  -webkit-user-select: none;
}

.device-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: min(100%, 35rem);
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
}

.device-tab {
  display: grid;
  gap: 0.18rem;
  min-height: 4rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.device-tab span {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.device-tab small {
  font-size: 0.78rem;
  font-weight: 700;
}

.device-tab.active {
  background: var(--paper);
  color: #405057;
  box-shadow: 0 10px 30px rgba(105, 243, 211, 0.14);
}

.device-tab.active span {
  color: #111720;
}

.device-panel {
  animation: panel-in 180ms ease-out;
}

.carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(20rem, 46rem) minmax(19rem, 24rem) 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  min-height: 40rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background:
    linear-gradient(135deg, rgba(105, 243, 211, 0.08), rgba(255, 92, 100, 0.06)),
    rgba(17, 23, 32, 0.7);
  box-shadow: var(--shadow);
}

.slide-viewport {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34rem;
  overflow: hidden;
  padding: 1rem;
  cursor: grab;
  touch-action: pan-y;
}

.slide-viewport.dragging {
  cursor: grabbing;
}

.tablet-shell .slide-viewport {
  min-height: 36rem;
}

.slide {
  display: none;
  width: 18.25rem;
  margin: 0;
}

.tablet-shell .slide {
  width: min(100%, 44rem);
}

.slide.active {
  display: block;
  animation: slide-in 210ms ease-out;
}

.slide img,
.locale-grid img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.5rem;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.phone-shell .slide img {
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(105, 243, 211, 0.08);
}

.slide img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.feature-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 25rem;
  max-width: 24rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.55rem;
  background: rgba(255, 248, 237, 0.07);
}

.feature-kicker {
  margin: 0 0 0.65rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  line-height: 0.98;
}

.feature-card p:not(.feature-kicker) {
  margin: 1rem 0 0;
  color: #d9e3df;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 5vw, 3.2rem);
  height: clamp(2.6rem, 5vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  cursor: pointer;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: rgba(105, 243, 211, 0.65);
  background: rgba(105, 243, 211, 0.14);
  outline: none;
}

.carousel-arrow span {
  transform: translateY(-0.08rem);
  font-size: 2.1rem;
  line-height: 1;
}

.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding-top: 0.2rem;
}

.carousel-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid rgba(243, 221, 189, 0.34);
  border-radius: 50%;
  background: rgba(255, 248, 237, 0.14);
  cursor: pointer;
}

.carousel-dot.active {
  width: 2rem;
  border-radius: 999px;
  border-color: rgba(105, 243, 211, 0.72);
  background: var(--teal);
  box-shadow: 0 0 18px rgba(105, 243, 211, 0.26);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(0.8rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.locales {
  background: #f3eadb;
  color: #182028;
}

.locales .eyebrow {
  color: #c83f4b;
}

.locale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

figure {
  margin: 0;
}

[data-language-card] {
  cursor: pointer;
}

[data-language-card].active img {
  border-color: rgba(105, 243, 211, 0.9);
  box-shadow: 0 18px 60px rgba(105, 243, 211, 0.22);
}

[data-language-card].active figcaption {
  color: #182028;
}

figcaption {
  margin-top: 0.55rem;
  color: #4c565a;
  font-weight: 800;
}

.download-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(90deg, rgba(105, 243, 211, 0.12), rgba(255, 92, 100, 0.1));
  border-block: 1px solid var(--line);
}

.download-band img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.download-band h2 {
  font-size: clamp(1.7rem, 3vw, 3.2rem);
}

.play-button.compact small {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 4.5rem);
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
}

.policy-page {
  display: flex;
  justify-content: center;
}

.policy {
  width: min(100%, 58rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(17, 23, 32, 0.72);
}

.policy h1,
.policy h2,
.policy h3,
.policy h4,
.policy p,
.policy li {
  max-width: none;
  overflow-wrap: break-word;
}

.policy > h1:first-of-type {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
}

.policy h1:not(:first-of-type),
.policy h2 {
  margin-top: 2.2rem;
  color: var(--paper);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.18;
}

.policy h3 {
  margin-top: 1.8rem;
  color: var(--teal);
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.28;
}

.policy h4 {
  margin: 1.5rem 0 0.35rem;
  color: var(--gold);
  font-size: 1rem;
}

.policy ul {
  padding-left: 1.2rem;
}

.policy li + li {
  margin-top: 0.65rem;
}

.policy a,
.source-note {
  color: var(--gold);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

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

  .tablet-shell .slide-viewport {
    min-height: 24rem;
  }

  .carousel-shell {
    grid-template-columns: 3rem minmax(16rem, 31rem) minmax(15rem, 20rem) 3rem;
    min-height: 34rem;
    gap: 0.8rem;
  }

  .feature-card {
    min-height: 23rem;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer,
  .download-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher select {
    min-width: 10rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .store-stats,
  .feature-grid,
  .locale-grid {
    grid-template-columns: 1fr;
  }

  .device-tabs {
    width: 100%;
  }

  .device-tab {
    padding-inline: 0.75rem;
  }

  .carousel-shell {
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    align-items: center;
    min-height: auto;
  }

  .carousel-arrow {
    position: static;
    z-index: auto;
    transform: none;
    justify-self: center;
  }

  .carousel-arrow.previous {
    grid-column: 1;
    grid-row: 2;
  }

  .carousel-arrow.next {
    grid-column: 3;
    grid-row: 2;
  }

  .slide-viewport,
  .tablet-shell .slide-viewport {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: auto;
  }

  .feature-card {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: none;
    min-height: auto;
    padding: 1.1rem;
  }

  .carousel-dots {
    grid-row: 4;
  }

  .slide {
    width: min(74vw, 18rem);
  }

  .tablet-shell .slide {
    width: 100%;
  }

  .download-band {
    display: flex;
  }
}
