/* =========================================================
   Hafiz AI · Iqra — Marketing Site
   Display: Fraunces (Bayyinah-style editorial serif)
   Body:    Inter
   Quran:   DigitalKhatt IndoPak (local)
   Brand:   Aref Ruqaa (Arabic calligraphy)
========================================================= */

@font-face {
  font-family: "DigitalKhatt IndoPak";
  src: url("DigitalKhattIndoPak.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}

:root {
  /* ── Palette (dark-first) ─────────────────────────────── */
  --bg:      #000000;
  --bg-soft: #0a0a0a;
  --bg-2:    #111111;
  --bg-card: #1d1d1f;
  --bg-nav:  rgba(0, 0, 0, 0.72);
  --ink:     #f5f5f7;
  --ink-2:   #a1a1a6;
  --ink-3:   #6e6e73;
  --ink-4:   #48484a;
  --line:    rgba(255, 255, 255, 0.08);
  --line-2:  rgba(255, 255, 255, 0.04);

  /* ── Accent ─────────────────────────────────────────── */
  --green:      #30d158;
  --green-2:    #28a745;
  --green-3:    rgba(48, 209, 88, 0.12);
  --green-4:    rgba(48, 209, 88, 0.06);
  --green-glow: rgba(48, 209, 88, 0.15);

  /* ── Shadows ────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-green: 0 16px 40px rgba(48, 209, 88, 0.25);

  /* ── Radii ──────────────────────────────────────────── */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* ── Buttons ────────────────────────────────────────── */
  --btn-primary-text: #000;
  --btn-ghost-bg:     rgba(255, 255, 255, 0.08);
  --btn-ghost-border: rgba(255, 255, 255, 0.12);

  /* ── Hadith Strip Gradient ──────────────────────────── */
  --hadith-bg: linear-gradient(180deg, #1c1912 0%, #120e06 100%);
  --hadith-border: rgba(212, 167, 44, 0.15);
  --hadith-tag: #f4d272;
  --hadith-text: #e5c158;

  /* ── Layout ─────────────────────────────────────────── */
  --max:  1120px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);

  /* ── Type stacks ────────────────────────────────────── */
  --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;
  --sans:  "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --quran: "DigitalKhatt IndoPak", "Amiri Quran", "Scheherazade New", serif;
  --kufi:  "Aref Ruqaa", "Reem Kufi", "Amiri", serif;
}

:root[data-theme="light"] {
  /* ── Palette (light) ────────────────────────────────── */
  --bg:      #ffffff;
  --bg-soft: #f5f7f8;
  --bg-2:    #fdfdfd;
  --bg-card: #ffffff;
  --bg-nav:  rgba(255, 255, 255, 0.78);
  --ink:     #1d1d1f;
  --ink-2:   #515154;
  --ink-3:   #86868b;
  --ink-4:   #d2d2d7;
  --line:    rgba(0, 0, 0, 0.08);
  --line-2:  rgba(0, 0, 0, 0.04);

  /* ── Accent ─────────────────────────────────────────── */
  --green:      #1d9a3f;
  --green-2:    #157c30;
  --green-3:    rgba(29, 154, 63, 0.10);
  --green-4:    rgba(29, 154, 63, 0.05);
  --green-glow: rgba(29, 154, 63, 0.12);

  /* ── Shadows ────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.10);
  --shadow-green: 0 16px 40px rgba(29, 154, 63, 0.15);

  /* ── Buttons ────────────────────────────────────────── */
  --btn-primary-text: #fff;
  --btn-ghost-bg:     rgba(0, 0, 0, 0.04);
  --btn-ghost-border: rgba(0, 0, 0, 0.08);

  /* ── Hadith Strip Gradient ──────────────────────────── */
  --hadith-bg: linear-gradient(180deg, #f8f5ef 0%, #f1ebdc 100%);
  --hadith-border: rgba(212, 167, 44, 0.20);
  --hadith-tag: #8a6418;
  --hadith-text: #5a4818;
}

/* ── Theme Toggle Button ──────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  color: var(--ink-2);
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover {
  background: var(--line-2);
  color: var(--ink);
  transform: scale(1.05);
}
.theme-toggle:active {
  transform: scale(0.95);
}
.theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon { display: block; }

[data-theme="light"] .theme-toggle .moon-icon { display: block; }
[data-theme="light"] .theme-toggle .sun-icon { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.serif { font-family: var(--serif); font-optical-sizing: auto; }
.kufi  { font-family: var(--kufi); }
.quran { font-family: var(--quran); direction: rtl; line-height: 2.1; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand .logo { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; }
.brand .logo svg { width: 100%; height: 100%; }
.brand .word { display: flex; align-items: baseline; gap: 9px; }
.brand .word .en { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand .word .ar { font-family: var(--kufi); font-size: 23px; color: var(--green-2); line-height: 1; transform: translateY(2px); }
.brand .sub { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--ink-3); margin-left: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  position: relative; padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 980px;
  background: var(--btn-ghost-bg); color: var(--ink) !important;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--btn-ghost-border);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-cta:hover { background: var(--line); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px; border-radius: 980px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary { background: var(--green); color: var(--btn-primary-text); box-shadow: var(--shadow-green); }
.btn-primary:hover { background: #3ae067; transform: translateY(-2px); box-shadow: 0 20px 50px rgba(48, 209, 88, 0.35); }
.btn-ghost { background: var(--btn-ghost-bg); color: var(--ink); border-color: var(--btn-ghost-border); }
.btn-ghost:hover { background: var(--line); transform: translateY(-2px); }
.btn-dark-ghost { background: rgba(255,255,255,0.06); color: #fff !important; border-color: rgba(255,255,255,0.20); }
.btn-dark-ghost:hover { background: rgba(255,255,255,0.10); transform: translateY(-2px); }

.btn-app {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; background: transparent; border: 0; border-radius: 14px;
  line-height: 0;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn-app img {
  display: block; width: 180px; height: 56px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.18));
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn-app:hover { transform: translateY(-2px); }
.btn-app:hover img { filter: drop-shadow(0 14px 30px rgba(15,157,88,0.32)); }
.btn-app:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--green-3); color: var(--green-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid rgba(15, 157, 88, 0.18);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 157, 88, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(15, 157, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 157, 88, 0); }
}

h1.hero-title {
  font-family: var(--serif);
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 24px 0 22px;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 96;
}
.hero-title .accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--green) 0%, var(--green-2) 60%, #0a5e34 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18.5px; color: var(--ink-3); max-width: 560px; margin: 0 0 32px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; color: var(--ink-3); font-size: 14px; }
.hero-meta .check { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--green); flex-shrink: 0; }

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; top: -220px; right: -150px;
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, rgba(15, 157, 88, 0) 65%);
  filter: blur(20px); animation: float 14s var(--ease) infinite;
}
.hero-bg::after {
  content: ""; position: absolute; bottom: -280px; left: -200px;
  width: 580px; height: 580px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 157, 88, 0.10) 0%, rgba(15, 157, 88, 0) 65%);
  filter: blur(20px); animation: float 18s var(--ease) infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.06); }
}
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 20, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 20, 16, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-calligraphy {
  position: absolute;
  font-family: var(--kufi);
  color: rgba(15, 157, 88, 0.06);
  font-size: 320px; line-height: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; user-select: none; z-index: -1;
  animation: drift 22s var(--ease) infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-48%, -52%) rotate(-2deg); }
}

/* ---------- Recitation Visualizer Mockup ---------- */
.visualizer-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 1.05 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  perspective: 1200px;
  z-index: 5;
}

.viz-dashboard {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(29, 29, 31, 0.85) 0%, rgba(10, 10, 10, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(48, 209, 88, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: rotate3d(1, -0.2, 0.02, 6deg);
  animation: vizIn 1.2s var(--ease) both;
}

[data-theme="light"] .viz-dashboard {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 248, 0.95) 100%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(29, 154, 63, 0.05);
}

@keyframes vizIn {
  from { opacity: 0; transform: translateY(40px) rotate3d(1, -0.2, 0.02, 10deg); }
  to   { opacity: 1; transform: rotate3d(1, -0.2, 0.02, 6deg); }
}

.viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.viz-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.viz-status-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viz-surah {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.viz-center {
  position: relative;
  height: 140px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.viz-mic-glow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: var(--btn-primary-text);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px var(--green-glow), inset 0 0 0 4px rgba(255, 255, 255, 0.15);
  z-index: 3;
}

.viz-mic-glow svg {
  width: 28px;
  height: 28px;
}

#vizCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  z-index: 1;
}

.viz-text {
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--quran);
  font-size: 26px;
  line-height: 2;
  text-align: center;
  color: var(--ink-3);
  direction: rtl;
  margin-bottom: 24px;
}

.viz-text .word-highlight {
  display: inline-block;
  padding: 0 3px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.viz-text .word-highlight.active {
  color: var(--green);
  transform: scale(1.06);
  text-shadow: 0 0 10px var(--green-glow);
}

.viz-spectrum {
  height: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
}

.viz-spectrum span {
  display: block;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
  transition: height 0.15s ease-in-out;
}

.viz-metric {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  width: 220px;
}

[data-theme="light"] .viz-metric {
  background: #ffffff;
}

.viz-metric .m-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-3);
  color: var(--green);
  flex-shrink: 0;
}

.viz-metric .m-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.viz-metric .m-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.viz-metric .m-text span {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 1px;
}

.viz-metric.fc-left {
  top: 40px;
  left: -48px;
}

.viz-metric.fc-right {
  bottom: 60px;
  right: -48px;
}

@media (max-width: 960px) {
  .visualizer-wrap {
    max-width: 360px;
    margin: 0 auto;
  }
  .viz-dashboard {
    transform: none;
    animation: vizInFlat 1s var(--ease) both;
  }
  @keyframes vizInFlat {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
  }
  .viz-metric.fc-left { left: -10px; top: -20px; }
  .viz-metric.fc-right { right: -10px; bottom: -20px; }
}

/* ---------- Section base ---------- */
section { padding: 104px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  padding: 6px 14px; border-radius: 999px;
  background: var(--green-4); color: var(--green-2);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  border: 1px solid rgba(15, 157, 88, 0.14);
}
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.024em; line-height: 1.06;
  margin: 18px 0 16px;
  font-variation-settings: "SOFT" 40, "opsz" 96;
}
.section-title em { font-style: italic; color: var(--green-2); font-weight: 500; }
.section-sub { color: var(--ink-3); font-size: 17.5px; }

/* ---------- Stats ---------- */
.stats { padding: 44px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num {
  font-family: var(--serif); font-size: 46px; font-weight: 500; letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--ink), var(--green-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variation-settings: "opsz" 96;
}
.stat .lbl { font-size: 13.5px; color: var(--ink-3); font-weight: 500; margin-top: 4px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; padding: 32px 28px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(15, 157, 88, 0.10), transparent 40%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(15, 157, 88, 0.28); }
.feature:hover::before { opacity: 1; }
.feature .icn {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green-3), #c4ebd6);
  color: var(--green-2);
  display: grid; place-items: center; margin-bottom: 20px;
  transition: transform 0.5s var(--ease);
}
.feature:hover .icn { transform: scale(1.08) rotate(-4deg); }
.feature h3 { font-family: var(--serif); font-weight: 600; margin: 0 0 8px; font-size: 20px; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--ink-3); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; background: var(--bg-soft); padding: 0 14px; }
.step .num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--green); color: var(--green-2);
  display: grid; place-items: center; margin: 0 auto 20px;
  font-family: var(--serif); font-weight: 600; font-size: 20px;
  box-shadow: 0 0 0 6px var(--bg-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.step:hover .num { background: var(--green); color: #fff; transform: scale(1.08); }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 6px; letter-spacing: -0.015em; }
.step p { color: var(--ink-3); font-size: 15px; margin: 0; }

/* ---------- Iqra showcase ---------- */
.showcase { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px); margin: 14px 0 16px; letter-spacing: -0.024em; line-height: 1.06; }
.showcase p { color: var(--ink-3); font-size: 17.5px; margin: 0 0 28px; }
.showcase-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.showcase-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.showcase-list .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green-3); color: var(--green-2); display: grid; place-items: center; margin-top: 2px; }

.showcase-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.showcase-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px;
  transform: rotate(-1.5deg);
  transition: transform 0.5s var(--ease);
}
.showcase-card:hover { transform: rotate(0); }
.showcase-card .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.showcase-card .badge { background: var(--green-3); color: var(--green-2); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.showcase-card .ayah { font-family: var(--quran); font-size: 28px; line-height: 2.1; text-align: center; direction: rtl; color: var(--ink); margin: 8px 0 20px; }
.showcase-card .progress { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-bottom: 10px; }
.showcase-card .progress-bar { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-2)); width: 86%; animation: fill 2.6s var(--ease) both; }
@keyframes fill { from { width: 0; } to { width: 86%; } }
.showcase-card .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.showcase-card .meta strong { color: var(--green-2); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  padding: 24px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  cursor: pointer;
  font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-2); }
.faq-item summary .ic {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-2);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item[open] summary .ic { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq-item .answer { padding: 0 4px 24px; color: var(--ink-3); font-size: 15.5px; animation: fadeDown 0.4s var(--ease); }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CTA ---------- */
.cta-wrap {
  margin: 0 auto;
  background: linear-gradient(135deg, #0a1410 0%, #102b1f 60%, #0a5e34 130%);
  color: #fff; border-radius: var(--radius-xl);
  padding: 72px 56px;
  position: relative; overflow: hidden; text-align: center;
}
.cta-wrap::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px circle at 15% 20%, rgba(15, 157, 88, 0.38), transparent 50%),
    radial-gradient(560px circle at 85% 80%, rgba(15, 157, 88, 0.28), transparent 55%);
  pointer-events: none;
}
.cta-wrap::after {
  content: "حافظ"; position: absolute;
  font-family: var(--kufi);
  font-size: 360px; line-height: 1;
  right: -40px; bottom: -120px;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none; user-select: none;
}
.cta-wrap h2 { position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 50px); margin: 0 0 16px; letter-spacing: -0.024em; line-height: 1.06; }
.cta-wrap p { position: relative; color: rgba(255, 255, 255, 0.78); font-size: 17.5px; max-width: 580px; margin: 0 auto 32px; }
.cta-actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 36px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-3); font-size: 14.5px; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--green-2); }
.footer-about p { color: var(--ink-3); font-size: 14.5px; margin: 14px 0 0; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }

/* ---------- Reveal animations ---------- */
.reveal { 
  opacity: 0; 
  transform: scale(0.92); 
  filter: blur(12px);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1.4s cubic-bezier(0.22, 1, 0.36, 1); 
  will-change: opacity, transform, filter; 
}
.reveal.is-visible { 
  opacity: 1; 
  transform: scale(1); 
  filter: blur(0); 
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.30s; }
.reveal.delay-3 { transition-delay: 0.45s; }
.reveal.delay-4 { transition-delay: 0.60s; }

/* Word-by-word fade-up for hero title */
.fade-words .word {
  display: inline-block;
  opacity: 0; transform: translateY(20px);
  animation: wordIn 0.9s var(--ease) forwards;
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Legal pages ---------- */
.legal-hero {
  position: relative;
  padding: 96px 0 64px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.legal-hero::before {
  content: ""; position: absolute;
  top: -180px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, rgba(15, 157, 88, 0) 65%);
  filter: blur(20px); pointer-events: none;
  animation: float 16s var(--ease) infinite;
}
.legal-hero::after {
  content: "حافظ"; position: absolute;
  font-family: var(--kufi); font-size: 280px; line-height: 1;
  right: 4%; bottom: -90px;
  color: rgba(15, 157, 88, 0.05);
  pointer-events: none; user-select: none;
}
.legal-hero .crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  margin-bottom: 18px;
}
.legal-hero .crumb a { color: var(--ink-3); transition: color 0.2s var(--ease); }
.legal-hero .crumb a:hover { color: var(--green-2); }
.legal-hero .crumb svg { color: var(--ink-4); }
.legal-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 5.4vw, 68px); letter-spacing: -0.026em; line-height: 1.05;
  margin: 0 0 14px;
  font-variation-settings: "SOFT" 40, "opsz" 96;
}
.legal-hero h1 em { font-style: italic; color: var(--green-2); }
.legal-hero .lead { color: var(--ink-3); font-size: 17.5px; max-width: 620px; margin: 0; line-height: 1.65; }
.legal-hero .updated {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.legal-hero .updated .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s var(--ease) infinite; }

.legal { padding: 72px 0 96px; }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal-toc {
  position: sticky; top: 100px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.legal-toc h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: 4px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif); font-style: italic;
  font-size: 11.5px; color: var(--ink-4);
  font-feature-settings: "tnum"; min-width: 22px;
}
.legal-toc a:hover { background: var(--green-4); color: var(--green-2); }
.legal-toc a.active { background: var(--green-3); color: var(--green-2); font-weight: 600; }
.legal-toc a.active::before { color: var(--green-2); }

.legal-content { max-width: 760px; }
.legal-content section {
  padding: 0; margin-bottom: 48px;
  scroll-margin-top: 100px;
}
.legal-content section:last-child { margin-bottom: 0; }
.legal-content .sec-num {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--green-2); font-weight: 500;
  letter-spacing: 0.04em; display: inline-block; margin-bottom: 8px;
}
.legal-content h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; letter-spacing: -0.020em; line-height: 1.15;
  margin: 0 0 16px;
}
.legal-content p, .legal-content li { color: var(--ink-2); font-size: 16px; line-height: 1.78; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { padding-left: 22px; margin: 0 0 14px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content ul li::marker { color: var(--green); }
.legal-content a { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-foot {
  margin-top: 64px; padding: 32px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.legal-foot .ft-text { color: var(--ink-2); font-size: 15px; max-width: 460px; }
.legal-foot .ft-text strong { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; color: var(--ink); }
.legal-foot a.btn { padding: 11px 18px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .visualizer-wrap { transform: none; }
  .features-grid, .steps, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: relative; top: 0; }
}
@media (max-width: 620px) {
  .nav-inner { height: 68px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--line);
    padding: 18px 24px; gap: 18px;
    animation: fadeDown 0.3s var(--ease);
  }
  section { padding: 72px 0; }
  .features-grid, .steps, .stats-grid { grid-template-columns: 1fr; }
  .cta-wrap { padding: 52px 24px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-calligraphy { font-size: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .fade-words .word { opacity: 1; transform: none; }
}

/* ── Overrides and Component Layouts from index.html ───── */

.brand .logo {
  width: 36px; height: 36px; border-radius: 9px;
  overflow: hidden; display: inline-flex;
  box-shadow: 0 6px 18px rgba(15, 157, 88, 0.22), 0 1px 2px rgba(0,0,0,0.08);
  background: transparent;
}
.brand .logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.footer .brand .logo { width: 40px; height: 40px; border-radius: 10px; }
.brand .word .ar.iqra { font-size: 22px; transform: translateY(1px); color: var(--green); }

.parent-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; transition: all 0.25s var(--ease);
  margin-bottom: 18px;
}
.parent-link:hover {
  background: var(--green-3); color: var(--green-2); border-color: rgba(48, 209, 88, 0.25); transform: translateY(-1px);
}
.parent-link svg { width: 12px; height: 12px; }
.parent-link .pl-mark {
  width: 16px; height: 16px; border-radius: 4px;
  background: linear-gradient(135deg, #13b269 0%, #0a5e34 100%);
  display: inline-block;
}

/* ----- Big-feature alternating rows ----- */
.big-feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 64px 0;
  border-bottom: 1px dashed var(--line);
}
.big-feat:last-child { border-bottom: 0; }
.big-feat.flip > div:first-child { order: 2; }
.big-feat .bf-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--green);
}
.big-feat h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.1;
  margin: 12px 0 16px;
}
.big-feat h3 em { font-style: italic; font-weight: 400; color: var(--green); }
.big-feat p { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; max-width: 520px; }
.big-feat .bf-bullets { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.big-feat .bf-bullets li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 15px; }
.big-feat .bf-bullets svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 960px) { .big-feat { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; } .big-feat.flip > div:first-child { order: 0; } }

/* Visual mocks for big-feat */
.mock {
  position: relative;
  border-radius: 24px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock.dark {
  background: linear-gradient(180deg, #0d1813 0%, #06100a 100%);
  color: #fff; border-color: rgba(255,255,255,0.08);
}
.mock-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-3); margin-bottom: 14px;
}
.mock.dark .mock-h { color: rgba(255,255,255,0.55); }

/* Drive Mode mock */
.drive-mock .speedo {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 16px 0;
}
.drive-mock .now {
  font-family: var(--quran);
  font-size: 38px; line-height: 1.6; text-align: center; direction: rtl;
  color: #fff;
  padding: 16px 24px;
  background: rgba(34,201,122,0.10);
  border: 1px solid rgba(34,201,122,0.30);
  border-radius: 14px;
}
.drive-mock .ctrl-row { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.drive-mock .ctrl {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16);
}
.drive-mock .ctrl.go { background: var(--green); border-color: var(--green); width: 56px; height: 56px; }

/* CarPlay mock */
.carplay-mock { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.carplay-mock .tile {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: rgba(255,255,255,0.85); font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
}
.carplay-mock .tile svg { width: 22px; height: 22px; opacity: 0.9; }
.carplay-mock .tile.live { background: linear-gradient(160deg, rgba(48, 209, 88, 0.25), rgba(48, 209, 88, 0.05)); border-color: rgba(48, 209, 88, 0.40); color: #fff; }

/* Live activity mock */
.live-mock {
  background: rgba(0,0,0,0.92); color: #fff;
  border-radius: 22px; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  max-width: 360px; margin: 24px auto 0;
  border: 1px solid rgba(255,255,255,0.05);
}
.live-mock .lm-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #13b269, #0a5e34);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.live-mock .lm-text { font-size: 13px; line-height: 1.35; flex-grow: 1; }
.live-mock .lm-text small { display: block; opacity: 0.55; font-size: 11px; margin-top: 1px; }
.live-mock .lm-progress {
  width: 56px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.10); overflow: hidden; flex-shrink: 0;
}
.live-mock .lm-progress div { height: 100%; background: #22c97a; width: 72%; }

/* Beyond memorization grid */
.beyond-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px;
}
.beyond-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; background: var(--bg-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.beyond-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(48, 209, 88, 0.30); }
.beyond-card .bm-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-3); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.beyond-card h4 { font-family: var(--serif); font-size: 19px; letter-spacing: -0.015em; margin: 0 0 6px; }
.beyond-card p { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
@media (max-width: 960px) { .beyond-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .beyond-grid { grid-template-columns: 1fr; } }

/* Screenshots strip */
.shots {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.shot {
  aspect-ratio: 9 / 19;
  border-radius: 22px;
  background: linear-gradient(170deg, #0d1813 0%, #06100a 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); padding: 18px; text-align: center;
}
.shot .shot-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.shot .shot-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.shot .shot-sub { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 8px; }
.shot .shot-arabic { font-family: var(--quran); font-size: 26px; line-height: 2; direction: rtl; color: #fff; margin-top: 12px; }
.shot .shot-glow {
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(48,209,88,0.30), transparent 70%);
  pointer-events: none;
}
@media (max-width: 960px) { .shots { grid-template-columns: repeat(2, 1fr); } }

/* ----- Premium mega-section ----- */
.premium-section {
  position: relative;
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(212, 175, 55, 0.10), transparent 70%),
    radial-gradient(700px 300px at 10% 100%, rgba(48, 209, 88, 0.10), transparent 70%),
    #0a0f0c;
  color: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.premium-section .section-head h2 { color: #fff; }
.premium-section .section-head h2 em { color: #f4d272; font-style: italic; font-weight: 400; }
.premium-section .section-tag {
  color: #f4d272;
  background: rgba(244, 210, 114, 0.10);
  border: 1px solid rgba(244, 210, 114, 0.25);
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.10em;
}
.premium-section .section-sub { color: rgba(255,255,255,0.65); }
.premium-trial-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #f4d272 0%, #d4a72c 100%);
  color: #1a1208; font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(244, 210, 114, 0.25);
  margin-bottom: 24px;
}

.premium-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 48px;
}
.premium-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.premium-card:hover { transform: translateY(-4px); border-color: rgba(244, 210, 114, 0.30); }
.premium-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 0% 0%, rgba(244, 210, 114, 0.06), transparent 60%);
  pointer-events: none;
}
.premium-card .pc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 210, 114, 0.22), rgba(244, 210, 114, 0.06));
  border: 1px solid rgba(244, 210, 114, 0.25);
  color: #f4d272;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.premium-card h3 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}
.premium-card h3 em { color: #f4d272; font-style: italic; font-weight: 400; }
.premium-card p { color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.65; margin: 0 0 16px; }
.premium-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.premium-card ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,0.80); font-size: 14px; line-height: 1.55;
}
.premium-card ul li svg { color: #f4d272; flex-shrink: 0; margin-top: 3px; }
.premium-card .pc-arabic {
  font-family: var(--quran);
  font-size: 28px; line-height: 1.9; direction: rtl;
  color: rgba(255,255,255,0.92);
  padding: 14px 16px;
  background: rgba(0,0,0,0.30);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 16px;
  text-align: right;
}
@media (max-width: 800px) { .premium-grid { grid-template-columns: 1fr; gap: 16px; } .premium-card { padding: 24px; } }

/* Pricing strip below the cards */
.pricing-strip {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.price-tile {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
}
.price-tile.featured {
  border-color: rgba(244, 210, 114, 0.40);
  background: linear-gradient(180deg, rgba(244, 210, 114, 0.08), rgba(244, 210, 114, 0.02));
}
.price-tile .pt-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.price-tile.featured .pt-label { color: #f4d272; }
.price-tile .pt-price { font-family: var(--serif); font-size: 36px; font-weight: 500; letter-spacing: -0.02em; }
.price-tile .pt-price small { font-size: 14px; color: rgba(255,255,255,0.55); font-family: var(--sans); letter-spacing: 0; }
.price-tile .pt-sub { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 4px; }
.price-tile .pt-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 999px;
  background: #f4d272; color: #1a1208;
}
@media (max-width: 600px) { .pricing-strip { grid-template-columns: 1fr; } }

/* Daily Hadith strip */
.hadith-strip {
  margin: 64px auto 0; max-width: 720px;
  padding: 28px;
  border-radius: 22px;
  background: var(--hadith-bg);
  border: 1px solid var(--hadith-border);
}
.hadith-strip .h-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--hadith-tag); }
.hadith-strip h3 { font-family: var(--serif); font-size: 22px; margin: 8px 0 12px; color: var(--ink); font-weight: 500; }
.hadith-strip p { color: var(--hadith-text); font-size: 15px; line-height: 1.65; }
.hadith-strip cite { display: block; margin-top: 12px; font-style: normal; font-size: 12px; color: var(--hadith-tag); font-weight: 600; }

/* ---------- Phone Mockup Container ---------- */
.phone-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  z-index: 5;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 440px;
  transform: rotate3d(1, -0.2, 0.02, 6deg);
  will-change: transform;
}

.phone img.phone-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(48, 209, 88, 0.15));
  border-radius: 40px;
}

@media (max-width: 960px) {
  .phone {
    transform: none;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* =========================================================
   SCROLL MOTION UTILITIES (Apple-style, JS-driven)
   These are initial states. motion.js animates them
   continuously based on scroll progress.
========================================================= */
[data-motion="scale-reveal"] {
  opacity: 0;
  transform: scale(0.88);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}
[data-motion="fade-up"] {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}
[data-motion="zoom-headline"] {
  opacity: 0;
  transform: translateY(40px) scale(0.75);
  will-change: opacity, transform;
}
[data-motion="parallax"] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  [data-motion] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
