/* Ludo Rush — conversion landing (one-star style) */
:root {
  --bg-deep: #06143a;
  --bg-mid: #0b2260;
  --bg-glow: #123a8c;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.55);
  --accent: #ffd400;
  --accent-hot: #ffb300;
  --accent-ink: #101820;
  --wa: #25d366;
  --page-max: 560px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  font-family: Outfit, "Noto Sans Devanagari", sans-serif;
  color: var(--text);
  min-height: 100dvh;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--bg-glow) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 42%, #040d28 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding:
    calc(10px + var(--safe-top))
    0
    calc(28px + var(--safe-bottom));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.landing {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 3vw, 20px);
  animation: rise 0.55s ease-out both;
}

/* ── Intro copy ── */
.intro {
  text-align: center;
  padding: 4px max(16px, var(--safe-left)) 0 max(16px, var(--safe-right));
}

.intro__brand {
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 35%, var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  animation: brand-in 0.7s ease-out both;
}

.intro__title {
  font-size: clamp(1.35rem, 5.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.intro__sub {
  font-size: clamp(0.98rem, 3.8vw, 1.15rem);
  font-weight: 600;
  color: var(--text-soft);
}

/* ── Banner (full-bleed on mobile) ── */
.banner {
  display: block;
  margin-inline: 0;
  overflow: hidden;
  transform: translateZ(0);
  transition: filter 0.2s ease;
}

.banner:active {
  filter: brightness(0.97);
}

.banner__img {
  width: 100%;
  aspect-ratio: 1024 / 1536;
  object-fit: cover;
  object-position: center top;
  background: #0a1f55;
}

/* ── CTA ── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 max(16px, var(--safe-left)) 0 max(16px, var(--safe-right));
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 340px);
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #ffe24a 0%, var(--accent) 45%, var(--accent-hot) 100%);
  box-shadow:
    0 8px 0 #c98900,
    0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: pulse-cta 2.4s ease-in-out infinite;
}

.btn-download:hover {
  filter: brightness(1.04);
}

.btn-download:active {
  transform: translateY(3px);
  box-shadow:
    0 4px 0 #c98900,
    0 8px 16px rgba(0, 0, 0, 0.3);
  animation: none;
}

.cta__hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 8px max(16px, var(--safe-left)) 4px max(16px, var(--safe-right));
}

.site-footer__copy {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
}

.site-footer__legal {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 auto;
}

.site-footer__legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── WhatsApp ── */
.wa-support {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: var(--wa);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  animation: float-in 0.6s 0.25s ease-out both;
}

.wa-support__icon {
  flex-shrink: 0;
}

body.has-sticky .wa-support {
  bottom: calc(78px + var(--safe-bottom));
}

/* ── Sticky download (phones) ── */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding:
    10px
    max(12px, var(--safe-right))
    calc(10px + var(--safe-bottom))
    max(12px, var(--safe-left));
  background: linear-gradient(180deg, transparent, rgba(4, 13, 40, 0.92) 35%);
  pointer-events: none;
}

.sticky-bar[hidden] {
  display: none;
}

.btn-download--sticky {
  width: min(100%, var(--page-max));
  pointer-events: auto;
  animation: none;
  box-shadow:
    0 6px 0 #c98900,
    0 10px 24px rgba(0, 0, 0, 0.4);
}

body.has-sticky {
  padding-bottom: calc(96px + var(--safe-bottom));
}

/* ── Motion ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-in {
  from { opacity: 0; letter-spacing: 0.18em; }
  to { opacity: 1; letter-spacing: 0.04em; }
}

@keyframes pulse-cta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Small phones ── */
@media (max-width: 360px) {
  .intro__title { font-size: 1.2rem; }
  .btn-download { font-size: 1.05rem; min-height: 50px; }
  .wa-support { font-size: 0.85rem; padding: 9px 14px; }
}

/* ── Tablets / desktop: phone-frame composition ── */
@media (min-width: 640px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding:
      calc(28px + var(--safe-top))
      max(16px, var(--safe-right))
      calc(40px + var(--safe-bottom))
      max(16px, var(--safe-left));
  }

  .landing {
    gap: 20px;
  }

  .banner {
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .banner:hover {
    filter: brightness(1.03);
  }

  .btn-download {
    width: 360px;
    min-height: 56px;
  }

  .wa-support {
    left: auto;
    right: max(24px, var(--safe-right));
    bottom: max(24px, var(--safe-bottom));
    transform: none;
  }

  body.has-sticky .wa-support {
    bottom: max(24px, var(--safe-bottom));
  }

  @keyframes float-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (min-width: 900px) {
  :root { --page-max: 480px; }

  body {
    background:
      radial-gradient(50% 60% at 50% 40%, rgba(18, 58, 140, 0.55) 0%, transparent 70%),
      linear-gradient(180deg, #0a1f55 0%, #040d28 100%);
  }

  .landing {
    padding: 20px 18px 24px;
    border-radius: 28px;
    background: rgba(6, 20, 58, 0.55);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
  }

  /* Sticky bar not needed on wide screens */
  .sticky-bar { display: none !important; }
  body.has-sticky { padding-bottom: calc(40px + var(--safe-bottom)); }
}

/* Landscape phones: keep CTA reachable */
@media (max-height: 500px) and (orientation: landscape) {
  .intro { padding-top: 0; }
  .intro__brand { font-size: 1.25rem; margin-bottom: 4px; }
  .intro__title { font-size: 1.05rem; }
  .intro__sub { font-size: 0.9rem; }
  .banner { max-height: 55vh; }
  .banner__img {
    aspect-ratio: auto;
    max-height: 55vh;
    width: 100%;
    object-fit: contain;
    background: transparent;
  }
}
