:root {
  --bg: #0a0a0b;
  --surface: #15161a;
  --gold: #d4af37;
  --gold-bright: #e8c76f;
  --text: #f5eedc;
  --text-dim: #a09885;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Soft gold radial glow behind the hero */
.glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212,175,55,0.16) 0%, rgba(212,175,55,0) 65%);
  pointer-events: none;
  z-index: 0;
}

section, header, footer { position: relative; z-index: 1; }

/* ============ HERO ============ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Sized to content (no forced full-height void) with generous breathing room */
  padding: clamp(64px, 13vh, 140px) 24px clamp(56px, 9vh, 96px);
  background-image:
    linear-gradient(180deg, rgba(10,10,11,0.45) 0%, rgba(10,10,11,0.82) 72%, rgba(10,10,11,1) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 12px 50px rgba(212,175,55,0.3);
  border: 1px solid rgba(212,175,55,0.3);
}

.hero-title {
  font-family: 'Amiri Quran', serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 11vw, 5rem);
  color: var(--gold);
  margin-top: 26px;
  line-height: 1.7;
  padding: 0 8px;
}

.hero-tagline {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.05rem, 4.5vw, 1.45rem);
  color: var(--text-dim);
  margin-top: 14px;
  font-weight: 500;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #1a1408;
  padding: 14px 38px;
  font-size: 1.05rem;
  box-shadow: 0 8px 26px rgba(212,175,55,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(212,175,55,0.5);
}

.btn-lg { padding: 17px 46px; font-size: 1.15rem; }

/* ============ SECTION TITLES ============ */
.section-title {
  font-family: 'Amiri Quran', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ============ FEATURES ============ */
.features {
  max-width: 1060px;
  margin: 0 auto;
  padding: 72px 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.5);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-family: 'Amiri Quran', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
  line-height: 1.5;
}
.card p { color: var(--text-dim); font-size: 0.98rem; }

/* ============ DOWNLOAD ============ */
.download {
  padding: 16px 24px 88px;
  display: flex;
  justify-content: center;
}

.download-box {
  background: linear-gradient(180deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.download-sub { color: var(--text-dim); margin-bottom: 28px; }
.download-soon { color: var(--text-dim); font-size: 0.85rem; margin-top: 18px; }

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 40px 24px 56px;
  border-top: 1px solid rgba(212,175,55,0.12);
}
.footer-brand {
  font-family: 'Amiri Quran', serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1.4;
}
.footer-note { color: var(--text-dim); font-size: 0.95rem; margin-top: 6px; }
.footer-credit { color: var(--text-dim); font-size: 0.82rem; margin-top: 14px; }
.footer-credit a { color: var(--gold); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
