:root {
  --bg: #0b1220;
  --bg2: #121a2b;
  --cream: #f7f1e6;
  --muted: #d7cbb8;
  --gold: #c9a45c;
  --gold2: #e7c987;
  --ink: #101826;
  --card: rgba(255,255,255,0.06);
  --line: rgba(233, 210, 160, 0.22);
  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --radius: 28px;
  --font: "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--cream);
  background: radial-gradient(1200px 600px at 50% -10%, #24324a 0%, var(--bg) 55%);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: grid;
  place-items: center;
  padding: max(48px, env(safe-area-inset-top)) 20px max(56px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("assets/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,20,.55) 0%, rgba(8,12,20,.72) 45%, rgba(8,12,20,.92) 100%),
    radial-gradient(700px 400px at 50% 20%, rgba(201,164,92,.18), transparent 70%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold2);
  background: rgba(255,255,255,.04);
  letter-spacing: .04em;
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.25;
  font-weight: 700;
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.lead {
  margin: 0 auto 28px;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
}
.trust {
  margin: 14px 0 0;
  color: rgba(247,241,230,.7);
  font-size: .95rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.store-badge img {
  width: min(200px, 70vw);
  height: auto;
  background: #000;
  border-radius: 10px;
}
.store-badge:hover { transform: translateY(-2px); opacity: .95; }
.store-badge--large img { width: min(220px, 72vw); }

.section-head {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 40rem;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}
.section-head p { margin: 0; color: var(--muted); }

.features, .highlights, .cta {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 42px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.feature--reverse { grid-template-columns: .95fr 1.05fr; }
.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__copy { order: 1; }
.feature__media {
  overflow: hidden;
  border-radius: 22px;
  min-height: 280px;
  background: #000;
}
.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
.feature__copy h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  color: var(--gold2);
}
.feature__copy p { margin: 0 0 14px; color: var(--muted); }
.feature__copy ul {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: var(--cream);
}
.feature__copy li { margin: 6px 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  padding: 22px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}
.card__icon {
  width: 44px; height: 44px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold2);
  border: 1px solid var(--line);
  background: rgba(201,164,92,.08);
  font-size: 1.2rem;
}
.card h3 { margin: 0 0 8px; color: var(--gold2); font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.cta__panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0e1626;
}
.cta__side {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.cta__copy {
  padding: 42px 34px;
  display: grid;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(201,164,92,.08), transparent 40%),
    linear-gradient(90deg, rgba(14,22,38,.2), rgba(14,22,38,1));
}
.cta__copy h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.cta__copy p { margin: 0 0 8px; color: var(--muted); }

.footer {
  text-align: center;
  padding: 28px 16px 40px;
  color: rgba(247,241,230,.65);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer p { margin: 4px 0; }
.footer__note { font-size: .9rem; }

/* iPad / tablet */
@media (max-width: 1024px) {
  .features, .highlights, .cta {
    width: min(920px, calc(100% - 40px));
    padding: 48px 0;
  }
  .feature {
    gap: 24px;
    padding: 18px;
  }
  .feature__media img { min-height: 280px; }
}

@media (max-width: 900px) {
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature__media,
  .feature--reverse .feature__copy { order: initial; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cta__panel { grid-template-columns: 1fr; }
  .cta__side { min-height: 220px; max-height: 280px; }
  .cta__copy {
    padding: 32px 24px;
    background: linear-gradient(180deg, rgba(201,164,92,.08), transparent 40%), #0e1626;
  }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
}

/* iPhone */
@media (max-width: 560px) {
  .hero {
    min-height: 100svh;
    padding: max(28px, env(safe-area-inset-top)) 16px max(40px, calc(24px + env(safe-area-inset-bottom)));
  }
  .hero__content { width: 100%; }
  .lead { font-size: 1.02rem; margin-bottom: 22px; }
  .features, .highlights, .cta {
    width: calc(100% - 24px);
    padding: 36px 0;
  }
  .section-head { margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .feature {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 22px;
  }
  .feature__media { min-height: 0; border-radius: 16px; }
  .feature__media img { min-height: 220px; }
  .feature__copy h3 { font-size: 1.35rem; }
  .cta__panel { border-radius: 24px; }
  .cta__side { min-height: 180px; max-height: 200px; }
  .footer {
    padding: 24px 16px calc(28px + env(safe-area-inset-bottom));
  }
}

/* iPad landscape: keep two-column features when wide enough */
@media (min-width: 901px) and (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
