:root {
  --green: #2E9C5C;
  --green-dark: #1F6B3F;
  --green-soft: #CFE9D8;
  --gold: #C9A961;
  --cream: #FAF7F0;
  --bg: #0B0F0D;
  --bg-soft: #11181A;
  --ink: #E8EDE6;
  --ink-soft: #94A39A;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --maxw: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Inter",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Amiri Quran", "Amiri", "Scheherazade New", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ----------------- NAV ----------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: backdrop-filter .3s ease, background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 15, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav .row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-weight: 700; }
.nav nav { display: flex; gap: 28px; }
.nav nav a {
  color: var(--ink-soft);
  font-size: 15px;
  transition: color .2s ease;
}
.nav nav a:hover { color: var(--ink); }
.nav .cta { display: inline-flex; }

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

/* ----------------- BUTTONS ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 10px 30px -10px rgba(46, 156, 92, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(46, 156, 92, 0.9); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* ----------------- HERO ----------------- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  isolation: isolate;
  overflow: hidden;
}

/* animated mesh background */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% 0 -10%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(46, 156, 92, 0.35), transparent 60%),
    radial-gradient(35% 45% at 80% 30%, rgba(201, 169, 97, 0.18), transparent 60%),
    radial-gradient(50% 55% at 60% 80%, rgba(46, 156, 92, 0.22), transparent 65%);
  filter: blur(30px) saturate(110%);
  animation: meshShift 18s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.05); }
}

/* subtle grid noise overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 130px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 156, 92, 0.12);
  border: 1px solid rgba(46, 156, 92, 0.3);
  color: var(--green-soft);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
  animation: floatY 4s ease-in-out infinite;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.6; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

h1.title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 22px;
}
h1.title .grad {
  background: linear-gradient(135deg, #B6F5CC 0%, var(--green) 60%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 19px);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 32px;
  display: flex;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.check {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(46, 156, 92, 0.18);
  display: inline-grid; place-items: center;
  color: var(--green);
}

/* ----------------- PHONE MOCKUP ----------------- */
.phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.phone {
  width: min(320px, 80vw);
  aspect-ratio: 9/19.5;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a1f1c, #060807);
  padding: 12px;
  box-shadow:
    0 50px 120px -30px rgba(0,0,0,0.8),
    0 30px 80px -40px rgba(46, 156, 92, 0.4),
    inset 0 0 0 2px rgba(255,255,255,0.04);
  position: relative;
  transform: rotateY(-8deg) rotateX(4deg);
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-6deg) rotateX(2deg) translateY(-12px); }
}
.phone .notch {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #000; border-radius: 999px; z-index: 3;
}
.screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  background: var(--cream);
  overflow: hidden;
  position: relative;
  color: #1a1a1a;
}

.screen-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px 8px;
  font-size: 11px; color: #555; font-weight: 600;
}
.screen-title {
  text-align: center; font-weight: 700; font-size: 14px; margin-top: 10px;
  color: #1a1a1a;
}
.screen-sub {
  text-align: center; font-size: 11px; color: #777; margin-bottom: 14px;
}

.surah-header {
  margin: 12px 18px 14px;
  height: 56px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--green), var(--green-dark));
  display: grid; place-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.surah-header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.12), transparent 50%);
}
.surah-header span { font-family: var(--font-arabic); font-size: 22px; position: relative; z-index: 1; }

.ayah {
  font-family: var(--font-arabic);
  text-align: right;
  direction: rtl;
  padding: 14px 20px;
  font-size: 19px;
  line-height: 2.4;
  color: #1a1a1a;
  opacity: 0;
  animation: ayahReveal 0.8s ease forwards;
}
.ayah:nth-of-type(1) { animation-delay: 0.4s; }
.ayah:nth-of-type(2) { animation-delay: 1.0s; }
.ayah:nth-of-type(3) { animation-delay: 1.5s; }
@keyframes ayahReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ayah .badge {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font); font-size: 11px;
  margin-inline: 6px;
  vertical-align: middle;
}
.ayah.playing {
  background: linear-gradient(90deg, transparent, rgba(46, 156, 92, 0.18), transparent);
  border-radius: 8px;
  animation: ayahReveal 0.8s ease forwards, playingPulse 2.4s ease-in-out infinite 2s;
}
@keyframes playingPulse {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

.miniplayer {
  position: absolute;
  left: 14px; right: 14px; bottom: 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.04);
}
.miniplayer .play-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center; color: white;
  box-shadow: 0 6px 16px -4px rgba(46, 156, 92, 0.6);
  animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 16px -4px rgba(46, 156, 92, 0.6); }
  50%      { box-shadow: 0 6px 24px -2px rgba(46, 156, 92, 0.9); }
}
.miniplayer .info { flex: 1; }
.miniplayer .info b { display: block; font-size: 13px; color: #1a1a1a; }
.miniplayer .info span { font-size: 11px; color: #777; }

.eq {
  display: inline-flex; align-items: flex-end; gap: 3px; height: 14px;
}
.eq i {
  display: inline-block; width: 3px; background: var(--green); border-radius: 2px;
  animation: eq 1s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: .15s; }
.eq i:nth-child(3) { animation-delay: .3s; }
.eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq {
  0%, 100% { height: 30%; }
  50%      { height: 100%; }
}

/* ----------------- MARQUEE ----------------- */
.marquee {
  margin-top: 64px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  animation: scroll 28s linear infinite;
}
.marquee-track span {
  color: var(--ink-soft);
  font-size: 16px;
  display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "•";
  margin-left: 40px;
  color: var(--green);
  opacity: .5;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------- SECTIONS ----------------- */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .eyebrow { margin-bottom: 16px; }
h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 16px;
}
.muted { color: var(--ink-soft); font-size: 17px; max-width: 620px; margin-inline: auto; }

/* ----------------- STATS ----------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(46, 156, 92, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}
.stat:hover::before { opacity: 1; }
.stat .num {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--ink), var(--green-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat .lbl { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

/* ----------------- FEATURES ----------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

.feature {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(46, 156, 92, 0.4); }
.feature .ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 156, 92, 0.2), rgba(46, 156, 92, 0.05));
  border: 1px solid rgba(46, 156, 92, 0.25);
  display: grid; place-items: center;
  color: var(--green-soft);
  margin-bottom: 18px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ----------------- SHOWCASE (Hatim plan / audio) ----------------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 40px; } }
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }

.showcase h2 { text-align: left; }
.showcase .muted { margin-inline: 0; text-align: left; }

.mock-card {
  border-radius: 24px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(46, 156, 92, 0.16), rgba(31, 107, 63, 0.06)),
    radial-gradient(circle at 80% 20%, rgba(201, 169, 97, 0.18), transparent 50%);
  border: 1px solid rgba(46, 156, 92, 0.25);
  position: relative;
  overflow: hidden;
}
.mock-card h4 { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.mock-card .big {
  font-size: 40px; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(135deg, white, var(--green-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.progress-bar {
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin-top: 20px;
  overflow: hidden;
}
.progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 999px;
  width: 67%;
  position: relative;
  animation: progressLoad 1.4s ease-out forwards;
  transform-origin: left;
}
@keyframes progressLoad {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.mini-row {
  display: flex; justify-content: space-between;
  margin-top: 16px;
  font-size: 13px; color: var(--ink-soft);
}

/* ----------------- LANGS ----------------- */
.langs {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.lang {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 14px;
  color: var(--ink);
  display: inline-flex; gap: 10px; align-items: center;
  transition: border-color .3s ease, background .3s ease;
}
.lang:hover { border-color: var(--green); background: rgba(46, 156, 92, 0.1); }
.lang .flag { font-size: 18px; }

/* ----------------- CTA ----------------- */
.cta-section {
  text-align: center;
  position: relative;
  padding: 130px 0;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 20% 10% 20% 10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(46, 156, 92, 0.3), transparent);
  filter: blur(60px);
  z-index: -1;
}
.cta-section h2 {
  font-size: clamp(36px, 5.5vw, 64px);
}
.cta-section .btn-primary { padding: 16px 32px; font-size: 17px; }

/* ----------------- FOOTER ----------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  color: var(--ink-soft);
}
.foot {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h5 { color: var(--ink); font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; text-transform: uppercase; opacity: .7; }
.foot a { display: block; padding: 4px 0; font-size: 14px; transition: color .2s ease; }
.foot a:hover { color: var(--green-soft); }
.foot .brand { margin-bottom: 16px; }
.foot p { font-size: 14px; max-width: 320px; }
.foot-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}

/* ----------------- SCROLL REVEAL ----------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in {
  opacity: 1; transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .4s; }

/* ----------------- LEGAL PAGES ----------------- */
.legal-wrap {
  padding: 140px 0 80px;
  max-width: 760px;
}
.legal-wrap h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.025em;
  margin-bottom: 8px;
  font-weight: 700;
}
.legal-wrap .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 40px; }
.legal-wrap h2 {
  font-size: 22px; margin-top: 36px; margin-bottom: 12px; font-weight: 600;
  letter-spacing: -.01em;
}
.legal-wrap p, .legal-wrap li { color: var(--ink-soft); font-size: 16px; }
.legal-wrap p { margin-bottom: 14px; }
.legal-wrap ul { padding-left: 22px; margin-bottom: 14px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap strong { color: var(--ink); }
.legal-wrap a { color: var(--green-soft); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
