:root {
  --bg: #0F1825;
  --bg-deep: #0A111B;
  --surface: #1A2535;
  --gold: #F2B544;
  --gold-muted: #D4A246;
  --ember: #C96A2B;       /* warm orange from the banners */
  --cream: #E8D8B8;
  --white: #F4F0E6;
  --line: #2A3648;
  --font-fa: "Vazirmatn", "Tahoma", sans-serif;
  --font-en: "Nunito", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-fa);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[lang="en"] { font-family: var(--font-en); }

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

/* ============ NAV ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: #0A111BCC;
  border-bottom: 1px solid #1A253580;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }

.brand-tile {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(160deg, #1E3A5F, #15273F);
  display: grid; place-items: center;
}

.brand-swallow { width: 22px; height: 19px; color: var(--gold); }

.brand-name { color: var(--gold); font-size: 1.25rem; font-weight: 700; }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--gold-muted); }

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 1.25rem clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* warm ember glow like the App Store banners */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 88% 15%, #C96A2B33 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 8% 85%, #C96A2B26 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 0%, #1A2A40 0%, transparent 60%);
}

.hero-grid {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  color: var(--gold);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.5;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 300;
  color: var(--white);
  max-width: 30ch;
}

.hero-sub-en {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.ctas {
  margin-top: 2.25rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.ctas.center { justify-content: center; }

.cta {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
}

.cta-active {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 8px 32px #F2B54440;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-active:hover, .cta-active:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px #F2B54455;
}

.cta-muted {
  color: var(--cream);
  opacity: 0.5;
  border: 1px solid var(--line);
  cursor: default;
}

.hero-shot { position: relative; }

.hero-shot img {
  width: min(520px, 100%);
  margin: 0 auto;
  border-radius: 24px;
  box-shadow:
    0 40px 90px #00000080,
    0 0 80px #C96A2B22;
  transform: rotate(-1.5deg);
}

/* ============ FEATURES ============ */

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem;
  display: grid;
  gap: clamp(4rem, 9vw, 7.5rem);
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid #F2B54440;
  background: #F2B54414;
  border-radius: 99px;
  padding: 0.15rem 0.9rem;
  margin-bottom: 1rem;
}

.feature h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.6;
}

.feature p:not(.kicker):not(.feature-en) {
  margin-top: 0.9rem;
  font-weight: 300;
  font-size: 1.02rem;
  max-width: 42ch;
}

.feature-en {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.6;
  max-width: 48ch;
}

.feature-shot img {
  width: min(460px, 100%);
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 30px 70px #00000070, 0 0 60px #C96A2B1A;
}

.feature-shot.phone img { width: min(380px, 88%); }

/* ============ BREADTH ============ */

.breadth {
  position: relative;
  text-align: center;
  padding: clamp(4.5rem, 9vw, 7.5rem) 1.25rem;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, #C96A2B26 0%, transparent 65%),
    linear-gradient(180deg, transparent, #0D1520);
}

.breadth-swallow {
  width: 64px; height: 54px;
  color: var(--gold);
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 24px #F2B54440);
}

.breadth-fa {
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  font-weight: 500;
  color: var(--white);
}

.breadth-en {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

/* ============ FOOTER ============ */

footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 300;
}

.footer-mark { color: var(--gold); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.9rem; }

footer p { margin-top: 0.3rem; opacity: 0.85; }

footer a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-muted);
}
footer a:hover, footer a:focus-visible { color: var(--gold); }

.footer-links { margin-top: 1.2rem; }

/* ============ MOTION ============ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature {
      opacity: 0;
      transform: translateY(24px);
      animation: rise 1ms linear forwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ RESPONSIVE ============ */

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
  .feature { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .feature.reverse .feature-copy { order: 2; }
  .feature.reverse .feature-shot { order: 1; }
}
