:root {
  color-scheme: dark;
  --bg: #070506;
  --bg-elevated: #120a0d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #faf7f8;
  --text-muted: #b4a6a9;
  --accent: #ed1c24;
  --accent-dark: #9f1d21;
  --accent-glow: rgba(237, 28, 36, 0.35);
  --gradient-hero: radial-gradient(ellipse 120% 80% at 50% -20%, #4a0a12 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(159, 29, 33, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #0d0608 0%, #070506 100%);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: calc(12px + var(--safe-top)) 0 12px;
  background: linear-gradient(180deg, rgba(7, 5, 6, 0.92) 0%, rgba(7, 5, 6, 0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(88px + var(--safe-top)) 0 48px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 20% -30% auto;
  height: 420px;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #fff 30%, #f5b4b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Phone mockup */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.phone-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.28) 0%, transparent 65%);
  filter: blur(30px);
}

.phone {
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a2a2a 0%, #111 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.2), rgba(159, 29, 33, 0.1));
  color: #ffb3b6;
  font-size: 1.2rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Screenshot strip */
.screenshot-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-strip::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 min(220px, 72vw);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Genres */
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  margin: 0 16px 72px;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, rgba(159, 29, 33, 0.35), rgba(237, 28, 36, 0.15));
  border: 1px solid rgba(237, 28, 36, 0.25);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 10px auto 24px;
  max-width: 40ch;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 32px 0 calc(32px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 100;
  display: none;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(7, 5, 6, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-bar .btn {
  width: 100%;
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.store-btn {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  min-width: 0;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.store-btn-badge {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  line-height: 0;
}

.store-btn-badge:hover,
.store-btn-badge:focus-visible {
  background: transparent;
  border: none;
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.store-badge {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 56px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.store-btn-badge.is-primary,
.store-btn.is-primary {
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.store-btn-badge.is-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.55;
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn-text small {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
}

.store-btn-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Download page */
.download-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(237, 28, 36, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(255, 154, 162, 0.08), transparent 50%),
    linear-gradient(180deg, #12080a 0%, #0a0506 45%, #12080a 100%);
  font-family: "Lexend", system-ui, sans-serif;
  color: #fff4f5;
}

.download-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
}

.download-brand {
  width: 100%;
  max-width: 420px;
  margin-bottom: 8px;
}

.download-logo {
  display: block;
  height: clamp(48px, 12vw, 68px);
  width: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 28px rgba(237, 28, 36, 0.32));
}

.download-kicker {
  margin: 0 0 10px;
  color: #ff9aa2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-main h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
}

.download-lead {
  margin: 12px auto 0;
  max-width: 28ch;
  color: rgba(255, 244, 245, 0.68);
  font-size: 0.98rem;
  line-height: 1.5;
}

.download-page .store-buttons {
  margin-top: 24px;
  max-width: 360px;
}

.download-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 340px;
  margin: 28px auto 0;
  overflow: hidden;
}

.download-phones-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.3), transparent 70%);
  filter: blur(30px);
}

.download-phone-stack {
  position: relative;
  width: 180px;
  height: 320px;
}

.download-phone-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: translateX(0) rotate(0deg) scale(0.75);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    z-index 0s linear 0.2s;
}

.download-phone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

.download-phone-card.is-left {
  transform: translateX(-48px) rotate(-7deg) scale(0.86);
  opacity: 0.55;
  z-index: 1;
  pointer-events: auto;
}

.download-phone-card.is-center {
  transform: translateX(0) rotate(0deg) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.download-phone-card.is-right {
  transform: translateX(48px) rotate(7deg) scale(0.86);
  opacity: 0.55;
  z-index: 1;
  pointer-events: auto;
}

.download-phone-card.is-hidden {
  transform: translateX(0) rotate(0deg) scale(0.7);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.download-phone-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.download-phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.download-phone-dot.is-active {
  background: #ff9aa2;
  transform: scale(1.25);
}

.download-footer {
  padding: 16px 20px calc(16px + var(--safe-bottom));
  text-align: center;
  color: rgba(255, 244, 245, 0.5);
  font-size: 0.82rem;
}

.download-footer a {
  color: rgba(255, 244, 245, 0.55);
}

.download-footer a:hover,
.download-footer a:focus-visible {
  color: #fff;
}

@media (min-width: 768px) {
  .download-main {
    padding-top: 40px;
  }

  .download-logo {
    height: 72px;
  }

  .download-phones {
    height: 460px;
  }

  .download-phone-stack {
    width: 240px;
    height: 430px;
  }

  .download-phone-card.is-left {
    transform: translateX(-96px) rotate(-9deg) scale(0.86);
  }

  .download-phone-card.is-right {
    transform: translateX(96px) rotate(9deg) scale(0.86);
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone {
    width: 300px;
  }

  .cta-band {
    margin-inline: auto;
    width: min(1120px, calc(100% - 32px));
    padding: 48px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .mobile-bar {
    display: block;
  }

  body.has-mobile-bar {
    padding-bottom: calc(80px + var(--safe-bottom));
  }

  .hero-actions .btn-primary {
    width: 100%;
  }
}
