:root {
  --bg: #08110d;
  --bg-soft: #0f1f18;
  --text: #eef5f0;
  --muted: #a7b8af;
  --accent: #38e07a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 10% 0%, #173123 0%, transparent 55%),
    radial-gradient(1000px 600px at 100% 100%, #10281d 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.page {
  width: min(1100px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: clamp(12px, 2.4vh, 24px) clamp(10px, 2.2vw, 20px)
    calc(clamp(8px, 1.6vh, 14px) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.4vh, 14px);
  overflow: hidden;
}

.hero {
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: clamp(4px, 0.9vh, 10px) 0 clamp(6px, 1.2vh, 12px);
  font-size: clamp(2rem, 6.2vw, 4rem);
  line-height: 1.04;
}

.subtitle {
  margin: 0 auto;
  max-width: 900px;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.7vw, 1.15rem);
  line-height: 1.45;
}

.screenshots {
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 1.3vw, 14px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  margin: 0;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 14px;
  -webkit-overflow-scrolling: touch;
}

.screenshots::-webkit-scrollbar {
  height: 8px;
}

.screenshots::-webkit-scrollbar-thumb {
  background: #2a3d32;
  border-radius: 8px;
}

.screenshots figure {
  margin: 0;
  height: 100%;
  aspect-ratio: 1470 / 3000;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
}

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

.cta-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.3vw, 12px);
  margin: 0;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  flex: 0 0 auto;
  transition: transform 0.16s ease;
}

.store-link:hover {
  transform: translateY(-1px);
}

.store-link img {
  display: block;
  width: 100%;
  height: auto;
}

#app-store-link {
  width: clamp(118px, 18vw, 162px);
}

#play-store-link {
  width: clamp(138px, 22vw, 188px);
}

@media (max-width: 620px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
    gap: 8px;
  }

  h1 {
    font-size: clamp(1.85rem, 11vw, 2.45rem);
  }

  .subtitle {
    font-size: 0.94rem;
    line-height: 1.38;
  }

  .screenshots figure {
    border-radius: 12px;
  }

  #app-store-link {
    width: min(40vw, 136px);
  }

  #play-store-link {
    width: min(48vw, 160px);
  }
}
