/* ============================================================
   Noor ul Quran — Website Styles
   Palette matches the mobile app: emerald + gold
============================================================ */

:root {
  --emerald:      #0E5C4A;
  --emerald-dark: #073A2E;
  --emerald-lite: #1B8A6B;
  --gold:         #D4AF37;
  --sand:         #F6F4EE;
  --ink:          #0B1D17;
  --muted:        #5B6B64;
  --white:        #ffffff;
  --radius:       18px;
  --shadow:       0 12px 40px -18px rgba(7, 58, 46, .35);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                  Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--emerald); }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.arabic { font-size: 20px; letter-spacing: 1px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: .2px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-lite));
  display: grid; place-items: center;
  color: var(--gold); font-weight: 900; font-size: 18px;
}
.nav nav { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.nav nav a { color: var(--muted); }
.nav nav a:hover, .nav nav a.active { color: var(--emerald); }

@media (max-width: 760px) {
  .nav nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(212, 175, 55, .18), transparent 60%),
    linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald) 55%, var(--emerald-lite) 100%);
  color: var(--white);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 -1px 0;
  height: 60px;
  background: linear-gradient(transparent, var(--sand));
}
.hero-grid {
  display: grid; gap: 60px; align-items: center;
  grid-template-columns: 1.05fr .95fr;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .hero-art { order: -1; }
}

.bismillah { font-size: 40px; color: var(--gold); margin-bottom: 8px; }

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800; letter-spacing: -.5px; line-height: 1.12;
  margin: 4px 0 18px;
}
.hero h1 span { color: var(--gold); }
.lead { font-size: 16px; opacity: .92; max-width: 520px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center { justify-content: center; }

.badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 28px; font-size: 13px; opacity: .95;
}
.badges li { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: 14px;
  font-weight: 700; font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--white); color: var(--emerald-dark);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35);
}
.btn-primary:hover { color: var(--emerald-dark); }

.btn-outline {
  background: rgba(255, 255, 255, .10); color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .30);
  backdrop-filter: blur(6px);
}

.store-btn { text-align: left; line-height: 1.1; }
.store-btn small { display: block; font-size: 10px; opacity: .75; letter-spacing: .5px; }
.store-btn strong { display: block; font-size: 15px; font-weight: 800; }

/* ---------- Phone mock ---------- */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 300px; aspect-ratio: 9 / 18.5;
  background: #08110D;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px; background: #08110D; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  background: #F6F4EE; height: 100%; border-radius: 32px;
  padding: 34px 14px 16px; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.mock-hero {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-lite));
  color: var(--white); border-radius: 18px; padding: 16px;
}
.mock-salam { font-size: 18px; font-weight: 700; }
.mock-sub { font-size: 11px; opacity: .85; margin-top: 2px; }
.mock-search {
  margin-top: 12px; font-size: 11px; padding: 9px 12px;
  border-radius: 10px; background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.8);
}
.mock-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 14px; padding: 10px;
  box-shadow: 0 4px 14px -8px rgba(0,0,0,.18);
}
.mock-thumb {
  width: 46px; height: 46px; border-radius: 11px;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-lite));
  color: var(--white); display: grid; place-items: center; font-size: 16px;
}
.mock-title { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.mock-meta { font-size: 10px; color: var(--muted); margin-top: 3px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: #EFEBE0; }

h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800; letter-spacing: -.3px;
  text-align: center;
}
.sub {
  text-align: center; color: var(--muted);
  max-width: 640px; margin: 12px auto 46px; font-size: 15px;
}

/* ---------- Features ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.f-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(14, 92, 74, .10);
  display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px;
}
.feature h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Screens ---------- */
.screens {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.screen-shot {
  aspect-ratio: 9 / 16; border-radius: 22px;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-lite));
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.screen-shot::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(212,175,55,.25), transparent 60%);
}
.ss-inner {
  color: var(--gold); font-weight: 800; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase;
  z-index: 1;
}

/* ---------- Download card ---------- */
.download-wrap { display: flex; justify-content: center; }
.download-card {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: var(--white); border-radius: 28px;
  padding: 50px 30px; text-align: center; max-width: 720px; width: 100%;
  box-shadow: 0 30px 60px -25px rgba(7, 58, 46, .55);
  position: relative; overflow: hidden;
}
.download-card::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.35), transparent 70%);
}
.download-card h2 { color: var(--white); position: relative; }
.download-card .sub { color: rgba(255,255,255,.85); position: relative; margin-bottom: 30px; }
.download-card .btn-primary { position: relative; }
.download-card .btn-outline { position: relative; }

/* ---------- Support ---------- */
.support-wrap {
  display: grid; gap: 40px;
  grid-template-columns: 1fr 1fr; align-items: center;
}
@media (max-width: 800px) { .support-wrap { grid-template-columns: 1fr; } }
.support-quote {
  background: var(--white); border-left: 4px solid var(--gold);
  border-radius: 14px; padding: 26px 24px;
  font-style: italic; box-shadow: var(--shadow);
}
.support-quote p { font-size: 14.5px; line-height: 1.7; }
.support-quote span { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-style: normal; }
.support-body h2 { text-align: left; }
.support-body p { color: var(--muted); margin: 12px 0 20px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--emerald-dark); color: rgba(255, 255, 255, .82);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { color: var(--white); }
.footer h4 { color: var(--white); font-size: 13px; font-weight: 800; margin-bottom: 12px; letter-spacing: .5px; text-transform: uppercase; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 13.5px; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--gold); }
.footer .muted { color: rgba(255, 255, 255, .55); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  flex-wrap: wrap; gap: 10px;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 800px;
  padding: 60px 22px 80px;
}
.legal h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 8px; }
.legal h2 {
  text-align: left; font-size: 18px; font-weight: 800;
  margin: 34px 0 12px;
  padding-left: 12px; border-left: 3px solid var(--gold);
}
.legal p { margin-bottom: 14px; color: #2A3A33; font-size: 14.5px; }
.legal ul { margin: 0 0 18px 22px; }
.legal li { margin-bottom: 6px; font-size: 14px; color: #2A3A33; }
.legal a { color: var(--emerald); text-decoration: underline; text-decoration-color: rgba(14,92,74,.3); }
