:root {
  --bg: #07060f;
  --bg-2: #120e1c;
  --ink: #f3ebe0;
  --muted: #b7a998;
  --gold: #e4c57a;
  --gold-2: #f0d9a0;
  --line: rgba(228, 197, 122, 0.28);
  --glow: rgba(180, 120, 255, 0.18);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(92, 48, 140, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(40, 70, 140, 0.22), transparent 55%),
    linear-gradient(180deg, #0b0914 0%, var(--bg) 40%, #05040a 100%);
  min-height: 100vh;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end stretch;
  padding: 2.5rem 1.25rem 3rem;
  overflow: hidden;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 15, 0.15) 0%, rgba(7, 6, 15, 0.72) 55%, rgba(7, 6, 15, 0.96) 100%),
    url("assets/icon.png") center 18% / min(72vw, 420px) no-repeat;
  opacity: 0.55;
  filter: saturate(1.05);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.brand__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 0 28px var(--glow);
}

.brand__small {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--gold);
}

.brand h1 {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 0.9;
  color: var(--gold-2);
  text-shadow: 0 0 40px rgba(228, 197, 122, 0.25);
}

.tagline {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: #e8e0d4;
}

.lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-row--stores {
  gap: 0.55rem 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(18, 14, 28, 0.55);
}

.btn--lg {
  min-height: 56px;
  padding-inline: 1.8rem;
  font-size: 1.05rem;
}

/* Official store badges */
.btn-store {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.btn-store:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  filter: brightness(1.06);
}

.btn-store__badge {
  display: block;
  height: auto;
}

.btn-store__badge--play {
  width: 180px;
}

.btn-store__badge--apple {
  width: 152px;
}

.btn-store--lg .btn-store__badge--play {
  width: min(280px, 78vw);
}

.btn-store--lg .btn-store__badge--apple {
  width: min(236px, 68vw);
}

.download h2 {
  margin-bottom: 1.5rem;
}

.download__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.1rem;
}

.section {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 0;
}

.section--tight {
  padding-top: 2.5rem;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--gold-2);
}

.section__hint {
  margin: -0.5rem 0 1.25rem;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: #d8cfc3;
  font-size: 1.05rem;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.features li {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 14, 28, 0.55);
}

.features strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
}

.features span {
  color: var(--muted);
  line-height: 1.55;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.shots img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0a0812;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.video-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.video-wrap video {
  width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

.download {
  text-align: center;
  padding-bottom: 2rem;
}

.download__text {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.65;
}

.download__text code {
  color: var(--gold-2);
  font-size: 0.92em;
}

.footer {
  width: min(920px, calc(100% - 2.5rem));
  margin: 3rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(228, 197, 122, 0.15);
  color: #8f8578;
  font-size: 0.9rem;
  text-align: center;
}

.footer p {
  margin: 0.35rem 0;
}

@media (min-width: 760px) {
  .hero {
    place-items: center;
    padding-top: 4rem;
  }

  .hero__veil {
    background-position: 70% 30%;
    background-size: min(38vw, 460px);
    opacity: 0.42;
  }

  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Полупрозрачные счётчики кликов Play / App Store */
.store-stats {
  position: fixed;
  bottom: 0.85rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 5.5rem;
  padding: 0.4rem 0.55rem 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(228, 197, 122, 0.14);
  background: rgba(10, 18, 36, 0.28);
  color: rgba(228, 197, 122, 0.45);
  font-family: var(--font-body);
  pointer-events: none;
  user-select: none;
  opacity: 0.28;
  backdrop-filter: blur(2px);
}

.store-stats--right {
  right: 0.85rem;
  align-items: flex-end;
}

.store-stats--left {
  left: 0.85rem;
  align-items: flex-start;
}

.store-stats[hidden] {
  display: none !important;
}

.store-stats__label {
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(240, 217, 160, 0.42);
}

.store-stats__value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  color: rgba(240, 217, 160, 0.5);
  font-variant-numeric: tabular-nums;
}

.store-stats__hint {
  font-size: 0.52rem;
  color: rgba(183, 169, 152, 0.35);
}

.store-stats--error .store-stats__value {
  color: rgba(196, 179, 154, 0.4);
}

@media (max-width: 480px) {
  .store-stats {
    bottom: 0.5rem;
    min-width: 4.8rem;
    padding: 0.32rem 0.45rem;
    opacity: 0.22;
  }

  .store-stats--right {
    right: 0.5rem;
  }

  .store-stats--left {
    left: 0.5rem;
  }

  .store-stats__value {
    font-size: 0.85rem;
  }
}
