/* ============================================================
   Quran Anywhere — Official Website
   Design system mirrored from the Flutter app (app_colors.dart,
   theme.dart): dark mandala canvas, glass panes, cyan/emerald.
   ============================================================ */

/* ---------- Fonts (same faces as the app) ---------- */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/Tajawal-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/Tajawal-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('../assets/fonts/Amiri-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('../assets/fonts/Amiri-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* canvas */
  --deep-space: #000000;
  --deep-space-high: #03100E;
  --navy-surface: #061715;
  --navy-surface-high: #0A201D;

  /* accents (exact app values) */
  --cyan: #00E5FF;
  --cyan-soft: #6FF2FF;
  --emerald: #14B8A6;
  --emerald-deep: #0D9488;

  /* glass section recipe */
  --section-fill: rgba(15, 23, 42, 0.28);
  --section-border: rgba(0, 229, 255, 0.40);
  --section-radius: 16px;

  /* text */
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.70);
  --text-faint: rgba(255, 255, 255, 0.60);

  /* gradients (mirrored from AppGradients) */
  --grad-nebula: linear-gradient(135deg, var(--emerald), var(--cyan));
  --grad-nebula-deep: linear-gradient(135deg, #04211D 0%, #0D9488 55%, #05303A 100%);
  --grad-accent: linear-gradient(135deg, #0D9488, #00B8D4);
  --grad-accent-edge: linear-gradient(135deg, #6FF2FF 0%, #00E5FF 45%, rgba(0,229,255,0.4) 100%);
  --grad-glass-border: linear-gradient(135deg, rgba(0,229,255,0.6), rgba(20,184,166,0.15), rgba(0,229,255,0.5));

  /* glow */
  --glow: rgba(0, 229, 255, 0.30);
  --glow-soft: rgba(0, 229, 255, 0.15);

  /* layout */
  --max-w: 1180px;
  --nav-h: 72px;
  --radius-pill: 999px;

  --font-latin: 'Poppins', system-ui, sans-serif;
  --font-arabic: 'Tajawal', system-ui, sans-serif;
  --font-quran: 'Amiri', serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-latin);
  color: var(--text);
  background: var(--deep-space-high);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: rgba(0, 229, 255, 0.35); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--deep-space); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--emerald-deep), var(--cyan)); border-radius: 8px; }

/* ---------- Page load fade ---------- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
body { animation: pageIn 0.55s ease-out both; }

/* ---------- Ambient background ---------- */
.bg-mandala {
  position: fixed; inset: 0; z-index: -2;
  background: url('../assets/img/mandala.png') center / cover no-repeat;
  opacity: 0.30;
  filter: saturate(1.15);
}
.bg-mandala::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(0,229,255,0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(13,148,136,0.14), transparent 60%),
    linear-gradient(180deg, rgba(3,16,14,0.55), rgba(3,16,14,0.88));
}
.orb {
  position: fixed; border-radius: 50%; z-index: -1; pointer-events: none;
  filter: blur(90px); opacity: 0.35; will-change: transform;
}
.orb-1 { width: 420px; height: 420px; background: var(--emerald-deep); top: -120px; left: -120px; animation: drift 26s ease-in-out infinite alternate; }
.orb-2 { width: 520px; height: 520px; background: rgba(0,229,255,0.5); bottom: -180px; right: -140px; animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(90px, 60px, 0) scale(1.18); }
}

/* ---------- Glass recipe (mirrors GlassCard) ---------- */
.glass {
  background: var(--section-fill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--section-border);
  border-radius: var(--section-radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.40);
  position: relative;
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-glass-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.8;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3, 16, 14, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--section-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.nav-inner {
  width: min(var(--max-w), 92%);
  margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.2px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 22px var(--glow); }
.brand .brand-name {
  font-size: 1.02rem; font-weight: 700;
  background: var(--grad-nebula);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: 0.92rem; font-weight: 500;
  color: var(--text-muted); transition: color .25s, background .25s;
}
.nav-links a:hover { color: #fff; background: rgba(0,229,255,0.08); }
.nav-links a.active { color: var(--cyan); }
.nav-cta { margin-left: 10px; }

/* hamburger */
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; position: relative; }
.burger span, .burger span::before, .burger span::after {
  content: ''; position: absolute; left: 10px; width: 22px; height: 2px;
  background: var(--cyan); border-radius: 2px; transition: transform .3s, opacity .3s;
}
.burger span { top: 20px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(7px) rotate(45deg); }
.burger.open span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(3,16,14,0.96);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--section-border);
  padding: 10px 5vw 22px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block; padding: 13px 6px; font-size: 1rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 1px solid rgba(0,229,255,0.10);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.2px;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-accent); color: #fff;
  box-shadow: 0 10px 26px var(--glow-soft), inset 0 0 0 1px rgba(255,255,255,0.14);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--glow); }
.btn-nebula {
  background: var(--grad-nebula); color: #06201d;
  box-shadow: 0 12px 30px var(--glow);
}
.btn-nebula:hover { transform: translateY(-2px); box-shadow: 0 18px 40px var(--glow); }
.btn-ghost {
  border: 1px solid var(--section-border); color: var(--cyan-soft);
  background: rgba(0,229,255,0.05);
}
.btn-ghost:hover { background: rgba(0,229,255,0.12); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }
.btn .btn-icon { width: 20px; height: 20px; flex: none; }

/* ---------- Layout ---------- */
.section { padding: 96px 0; position: relative; }
.container { width: min(var(--max-w), 92%); margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--section-border);
  background: rgba(0,229,255,0.06);
  color: var(--cyan-soft); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  margin-bottom: 18px;
}
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.22; }
.h2 .grad {
  background: var(--grad-nebula);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--text-muted); font-size: 1.04rem; margin-top: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; } .reveal-d6 { transition-delay: .48s; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 0px); display: flex; align-items: center; padding: calc(var(--nav-h) + 56px) 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: rgba(0,229,255,0.07); border: 1px solid var(--section-border);
  color: var(--cyan-soft); font-size: 0.86rem; font-weight: 600;
  margin-bottom: 26px; animation: pageIn .7s .1s ease-out both;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(.75);} }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.5px;
  animation: pageIn .7s .18s ease-out both;
}
.hero h1 .grad {
  background: var(--grad-accent-edge);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .hero-sub {
  color: var(--text-muted); font-size: 1.1rem; max-width: 540px;
  margin-top: 20px; animation: pageIn .7s .26s ease-out both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; animation: pageIn .7s .34s ease-out both; }
.hero-meta { display: flex; gap: 22px; margin-top: 38px; flex-wrap: wrap; animation: pageIn .7s .42s ease-out both; }
.hero-meta .m { display: flex; align-items: center; gap: 9px; color: var(--text-faint); font-size: .9rem; }
.hero-meta .m svg { width: 17px; height: 17px; color: var(--emerald); flex: none; }
.hero-meta .m b { color: var(--text); font-weight: 600; }

/* arabic whisper under hero */
.hero-ar {
  margin-top: 30px; font-family: var(--font-quran); direction: rtl;
  color: var(--text-faint); font-size: 1.25rem;
  animation: pageIn .8s .5s ease-out both;
}
.hero-ar span { color: var(--cyan); }

/* phone mockup */
.hero-visual { display: flex; justify-content: center; animation: pageIn .8s .3s ease-out both; }
.phone {
  width: 300px; aspect-ratio: 9 / 19; border-radius: 42px;
  background: linear-gradient(160deg, #0A201D, #03100E 70%);
  border: 1px solid rgba(0,229,255,0.35);
  box-shadow:
    0 0 0 8px rgba(10,32,29,0.9),
    0 0 0 9px rgba(0,229,255,0.25),
    0 40px 90px rgba(0,0,0,0.65),
    0 0 70px var(--glow-soft);
  position: relative; overflow: hidden;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
.phone::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px; background: #000; z-index: 5;
}
.phone-notch-screen {
  position: absolute; inset: 8px; border-radius: 34px; overflow: hidden;
  background:
    radial-gradient(140% 90% at 80% 0%, rgba(0,229,255,0.12), transparent 55%),
    radial-gradient(120% 90% at 10% 100%, rgba(13,148,136,0.20), transparent 55%),
    #03100E;
  display: flex; flex-direction: column;
}
.mock-head { padding: 46px 18px 12px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; }
.mock-title { font-weight: 700; font-size: .95rem; }
.mock-title small { display: block; font-weight: 400; color: var(--text-faint); font-size: .68rem; }
.mock-pill {
  padding: 6px 12px; border-radius: var(--radius-pill); font-size: .68rem; font-weight: 700;
  background: var(--grad-accent); color: #fff; box-shadow: 0 4px 14px var(--glow-soft);
}
.mock-verse {
  margin: 12px 14px; padding: 16px 14px; border-radius: 14px;
  background: var(--section-fill); border: 1px solid var(--section-border);
  text-align: center;
}
.mock-verse .ar { font-family: var(--font-quran); font-size: 1.15rem; line-height: 1.9; direction: rtl; }
.mock-verse .ref { margin-top: 8px; font-size: .62rem; color: var(--cyan-soft); letter-spacing: 1px; text-transform: uppercase; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 14px; }
.mock-stat {
  padding: 12px 10px; border-radius: 12px; text-align: center;
  background: rgba(15,23,42,0.35); border: 1px solid rgba(0,229,255,0.18);
}
.mock-stat b { display: block; font-size: 1rem; background: var(--grad-nebula); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mock-stat span { font-size: .6rem; color: var(--text-faint); letter-spacing: .5px; }
.mock-nav {
  margin-top: auto; display: flex; justify-content: space-around; align-items: center;
  padding: 12px 8px 18px; border-top: 1px solid rgba(0,229,255,0.22);
  background: rgba(6,23,21,0.9);
}
.mock-nav .mi { display: flex; flex-direction: column; gap: 3px; align-items: center; color: var(--text-faint); font-size: .55rem; }
.mock-nav .mi svg { width: 17px; height: 17px; }
.mock-nav .mi.on { color: var(--cyan); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 30px 26px; border-radius: var(--section-radius);
  transition: transform .35s ease, box-shadow .35s ease;
}
.feature:hover { transform: translateY(-7px); box-shadow: 0 26px 60px rgba(0,0,0,0.5), 0 0 40px var(--glow-soft); }
.feature .fi {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-accent); color: #fff; margin-bottom: 18px;
  box-shadow: 0 8px 24px var(--glow-soft);
}
.feature .fi svg { width: 25px; height: 25px; }
.feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: .93rem; line-height: 1.65; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 28px 18px; text-align: center; border-radius: var(--section-radius);
}
.stat b { display: block; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; background: var(--grad-nebula); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-faint); font-size: .85rem; letter-spacing: .6px; }

/* ---------- Download band (home) ---------- */
.dl-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: 44px; border-radius: 26px; overflow: hidden; position: relative; }
.dl-band::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(700px 320px at 90% 20%, rgba(0,229,255,0.10), transparent 60%);
}
.dl-band h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.25; }
.dl-band p { color: var(--text-muted); margin-top: 12px; max-width: 480px; }
.dl-band .dl-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; border-radius: 18px; background: rgba(3,16,14,0.55); border: 1px solid var(--section-border); justify-self: center; }
.qr-card .qr { background: #fff; padding: 12px; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 0 30px var(--glow-soft); }
.qr-card .qr canvas, .qr-card .qr img { display: block; }
.qr-card small { color: var(--text-faint); font-size: .78rem; text-align: center; }

/* ---------- Download page ---------- */
.detect-card { max-width: 620px; margin: 0 auto; padding: 40px 36px; text-align: center; }
.detect-icon {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 22px;
  display: grid; place-items: center; background: var(--grad-accent);
  box-shadow: 0 14px 40px var(--glow-soft);
  animation: pulseGlow 2.6s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { box-shadow: 0 14px 40px var(--glow-soft);} 50% { box-shadow: 0 14px 54px var(--glow);} }
.detect-icon svg { width: 36px; height: 36px; color: #fff; }
.detect-title { font-size: 1.4rem; font-weight: 800; }
.detect-sub { color: var(--text-muted); margin-top: 8px; font-size: .95rem; }
.detect-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.chip {
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600;
  background: rgba(0,229,255,0.07); border: 1px solid var(--section-border); color: var(--cyan-soft);
}
.chip.muted { color: var(--text-faint); border-color: rgba(0,229,255,0.18); }
.detect-dl { margin-top: 28px; }
.detect-note { margin-top: 16px; color: var(--text-faint); font-size: .82rem; }

.detect-status { min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.spinner {
  width: 46px; height: 46px; margin: 0 auto 22px; border-radius: 50%;
  border: 3px solid rgba(0,229,255,0.15); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* versions table */
.versions { max-width: 760px; margin: 46px auto 0; }
.vrow {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  border-radius: var(--section-radius); margin-bottom: 14px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.vrow:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,0.45), 0 0 30px var(--glow-soft); }
.vrow .vi { width: 46px; height: 46px; border-radius: 13px; background: rgba(0,229,255,0.10); border: 1px solid var(--section-border); display: grid; place-items: center; color: var(--cyan); flex: none; }
.vrow .vi svg { width: 22px; height: 22px; }
.vrow .vinfo { flex: 1; min-width: 0; }
.vrow .vinfo b { display: block; font-size: .98rem; }
.vrow .vinfo span { color: var(--text-faint); font-size: .8rem; }
.vrow .badge {
  padding: 5px 12px; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  background: var(--grad-accent); color: #fff; flex: none;
}
.vrow .badge.alt { background: rgba(0,229,255,0.08); border: 1px solid var(--section-border); color: var(--cyan-soft); }
.vrow .vdl { flex: none; }

/* ---------- Steps (install guide) ---------- */
.steps { max-width: 720px; margin: 0 auto; position: relative; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding-bottom: 38px; position: relative; }
.step::before {
  content: ''; position: absolute; left: 28px; top: 58px; bottom: 0; width: 2px;
  background: linear-gradient(rgba(0,229,255,0.5), rgba(0,229,255,0.05));
}
.step:last-child::before { display: none; }
.step .sn {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--grad-accent);
  box-shadow: 0 10px 26px var(--glow-soft); position: relative; z-index: 1;
}
.step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 7px; }
.step p { color: var(--text-muted); font-size: .95rem; }
.step .hint {
  margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.22);
  color: var(--cyan-soft); font-size: .86rem; display: flex; gap: 10px; align-items: flex-start;
}
.step .hint svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { margin-bottom: 14px; border-radius: var(--section-radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; text-align: left; font-weight: 600; font-size: 1rem; color: var(--text);
}
.faq-q .fx { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--section-border); display: grid; place-items: center; color: var(--cyan); transition: transform .35s ease; }
.faq-item.open .fx { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--text-muted); font-size: .93rem; }

/* ---------- About / mission ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-card { padding: 40px 36px; }
.ayah-line { font-family: var(--font-quran); direction: rtl; font-size: 1.5rem; line-height: 2.1; text-align: center; }
.ayah-ref { text-align: center; margin-top: 10px; color: var(--cyan-soft); font-size: .8rem; letter-spacing: 1.4px; text-transform: uppercase; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.value { padding: 16px 18px; border-radius: 14px; background: rgba(15,23,42,0.30); border: 1px solid rgba(0,229,255,0.16); }
.value b { display: block; font-size: .95rem; margin-bottom: 4px; color: var(--cyan-soft); }
.value span { font-size: .82rem; color: var(--text-muted); }

/* ---------- CTA end band ---------- */
.end-cta { text-align: center; padding: 70px 30px; border-radius: 28px; position: relative; overflow: hidden; }
.end-cta::before { content: ''; position: absolute; inset: 0; background: var(--grad-nebula-deep); opacity: .8; }
.end-cta > * { position: relative; }
.end-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.end-cta p { color: var(--text-muted); margin: 14px auto 30px; max-width: 520px; }

/* ---------- Footer ---------- */
.footer { margin-top: 60px; border-top: 1px solid var(--section-border); background: rgba(3,16,14,0.75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); position: relative; }
.footer::before { content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: var(--grad-accent-edge); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 38px; padding: 64px 0 40px; }
.footer .brand img { width: 46px; height: 46px; }
.footer-about p { color: var(--text-faint); font-size: .88rem; margin-top: 16px; max-width: 300px; line-height: 1.7; }
.footer h4 { font-size: .82rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan-soft); margin-bottom: 18px; font-weight: 700; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--text-muted); font-size: .9rem; transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: var(--cyan); padding-left: 5px; }
.footer-note { color: var(--text-faint); font-size: .82rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(0,229,255,0.12);
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-faint); font-size: .8rem; }
.footer-bottom .fb-links { display: flex; gap: 20px; }
.footer-bottom .fb-links a { color: var(--text-faint); font-size: .8rem; }
.footer-bottom .fb-links a:hover { color: var(--cyan); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
.page-hero h1 .grad { background: var(--grad-accent-edge); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { margin: 16px auto 0; max-width: 560px; }
.crumbs { display: inline-flex; gap: 8px; margin-bottom: 20px; color: var(--text-faint); font-size: .82rem; }
.crumbs a:hover { color: var(--cyan); }

/* ---------- iOS notice panel ---------- */
.ios-panel { max-width: 640px; margin: 0 auto; padding: 44px 38px; text-align: center; }
.ios-panel .ii { width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid var(--section-border); }
.ios-panel .ii svg { width: 40px; height: 40px; color: var(--cyan-soft); }
.notify-box { margin-top: 26px; padding: 16px 20px; border-radius: 14px; background: rgba(20,184,166,0.08); border: 1px solid rgba(20,184,166,0.35); color: var(--text-muted); font-size: .9rem; display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.notify-box svg { width: 19px; height: 19px; color: var(--emerald); flex: none; margin-top: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero .hero-sub, .hero-actions, .hero-meta { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-visual { order: -1; }
  .phone { width: 270px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .dl-band { grid-template-columns: 1fr; text-align: center; }
  .dl-band .dl-actions { justify-content: center; }
  .dl-band p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .nav-links { display: none; }
  .burger { display: block; }
  .mobile-menu { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .dl-band { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 34px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .step { grid-template-columns: 46px 1fr; gap: 14px; }
  .step .sn { width: 46px; height: 46px; border-radius: 14px; font-size: 1rem; }
  .step::before { left: 22px; top: 48px; }
  .vrow { flex-wrap: wrap; }
  .vrow .vdl { width: 100%; }
  .vrow .vdl .btn { width: 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
