/* چرا · landing page */
:root {
  --teal: #0e676b;
  --teal-deep: #0a4c50;
  --teal-soft: #e3efee;
  --gold: #d9a441;
  --gold-soft: #f6ecd6;
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-2: #f0ece1;
  --ink: #142123;
  --ink-2: #4d5d5f;
  --line: #e4ded0;
  --shadow: 0 1px 2px rgba(20, 33, 35, .04), 0 12px 40px rgba(20, 33, 35, .08);
  --radius: 22px;
  --max: 1160px;
}
:root[data-theme="dark"] {
  --teal: #4fb3ad;
  --teal-deep: #2c8a86;
  --teal-soft: #12292a;
  --gold: #e6b65a;
  --gold-soft: #2a2416;
  --bg: #0b1213;
  --surface: #121c1d;
  --surface-2: #172425;
  --ink: #eef3f2;
  --ink-2: #9fb1b0;
  --line: #213233;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #4fb3ad; --teal-deep: #2c8a86; --teal-soft: #12292a; --gold: #e6b65a; --gold-soft: #2a2416;
    --bg: #0b1213; --surface: #121c1d; --surface-2: #172425; --ink: #eef3f2; --ink-2: #9fb1b0; --line: #213233;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.ar { font-family: 'Amiri Quran', 'Amiri', serif; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; font-weight: 600; font-size: .98rem;
  padding: 12px 20px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--teal) 30%, transparent); }
:root[data-theme="dark"] .btn-primary { color: #06201f; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 12px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--teal) 16%, transparent), transparent);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--teal);
  background: var(--teal-soft); padding: 6px 14px; border-radius: 99px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.35; margin: 18px 0 16px; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.play-badge {
  display: inline-flex; align-items: center; gap: 12px; background: #111; color: #fff; border-radius: 14px;
  padding: 10px 20px 10px 18px; border: 1px solid #333;
}
:root[data-theme="dark"] .play-badge { background: #000; border-color: #2a2a2a; }
.play-badge small { display: block; font-size: .7rem; opacity: .75; line-height: 1.2; }
.play-badge b { display: block; font-size: 1.05rem; line-height: 1.3; font-weight: 600; direction: ltr; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--ink-2); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--teal); flex: none; }

/* phones */
.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 258px; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 9px;
  background: #0d1112; box-shadow: 0 30px 80px rgba(10, 30, 32, .28), inset 0 0 0 1.5px #2c3436;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 74px; height: 20px; border-radius: 12px; background: #0d1112; }
.phones .p1 { left: 2%; top: 46px; transform: rotate(-3deg); z-index: 2; }
.phones .p2 { right: 0; top: 0; transform: rotate(3deg); }
.float-card {
  position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: .88rem;
}
.float-card b { display: block; font-size: .95rem; }
.float-card small { color: var(--ink-2); }
.float-card .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 1.1rem; }
.fc1 { bottom: 40px; right: 6%; }
.fc2 { top: 18px; left: 0; }

/* ---------- stats ---------- */
.stats { margin-top: 30px; }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 26px 20px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-size: 2rem; line-height: 1.2; color: var(--teal); font-weight: 700; }
.stat span { color: var(--ink-2); font-size: .92rem; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 110px 0 20px; }
.kicker { color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.4; margin: 8px 0 14px; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.center { text-align: center; margin-inline: auto; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: 2; }
.feature-media {
  position: relative; border-radius: 30px; padding: 40px 0; display: flex; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, var(--teal-soft), var(--surface-2));
  overflow: hidden;
}
.feature-media .shot {
  width: 210px; aspect-ratio: 9 / 19.5; border-radius: 30px; padding: 7px; background: #0d1112;
  box-shadow: 0 24px 60px rgba(10, 30, 32, .22);
}
.feature-media .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.feature-media .shot.small { width: 180px; margin-top: 40px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); font-size: .95rem; }
.tag span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-soft); font-size: 1.05rem; }
.feature h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.45; margin: 12px 0 12px; }
.feature p { color: var(--ink-2); font-size: 1.03rem; }
.list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.list li::before {
  content: ""; width: 22px; height: 22px; margin-top: 5px; border-radius: 7px; background: var(--teal-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e676b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.list b { font-weight: 600; }
.list small { display: block; color: var(--ink-2); font-size: .93rem; line-height: 1.7; }

/* quote band */
.ayah-band { margin: 90px 0 0; padding: 70px 0; background: var(--teal-deep); color: #fff; text-align: center; position: relative; overflow: hidden; }
:root[data-theme="dark"] .ayah-band { background: #0f2a2b; }
.ayah-band::before, .ayah-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08);
}
.ayah-band::before { left: -120px; top: -160px; }
.ayah-band::after { right: -140px; bottom: -200px; }
.ayah-band .ar { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 2; }
.ayah-band p { opacity: .82; margin-top: 10px; }

/* more grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 1.25rem; }
.tile h4 { font-size: 1.12rem; margin: 16px 0 6px; }
.tile p { color: var(--ink-2); font-size: .95rem; line-height: 1.75; }

/* gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 10px 20px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery figure { flex: none; width: 230px; scroll-snap-align: center; text-align: center; }
.gallery .shot { border-radius: 30px; padding: 7px; background: #0d1112; aspect-ratio: 9 / 19.5; box-shadow: 0 18px 40px rgba(10, 30, 32, .16); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.gallery figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }

/* privacy */
.privacy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 48px; }
.privacy .points { display: grid; gap: 16px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.point .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.point b { display: block; }
.point small { color: var(--ink-2); font-size: .94rem; line-height: 1.7; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
summary { cursor: pointer; list-style: none; font-weight: 600; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding-bottom: 18px; }

/* cta */
.cta {
  margin: 110px auto 0; border-radius: 34px; padding: 64px 40px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #13807f 0%, var(--teal-deep) 45%, #06353a 100%);
  position: relative; overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { opacity: .85; max-width: 560px; margin: 0 auto 28px; }
.cta img.logo { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* footer */
footer { padding: 60px 0 40px; color: var(--ink-2); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature, .privacy { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .phones { height: 520px; max-width: 460px; margin-inline: auto; width: 100%; }
  .phone { width: 230px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .privacy { padding: 32px 24px; }
  .section { padding-top: 80px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .menu-btn { display: grid; }
  .nav .btn-sm { display: none; }
  .hero { padding-top: 44px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .phones { height: 440px; }
  .phone { width: 190px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .fc2 { display: none; }
  .fc1 { right: 0; bottom: 20px; }
  .feature { gap: 32px; }
  .feature-media .shot { width: 160px; }
  .feature-media .shot.small { width: 138px; }
  .cta { padding: 48px 22px; border-radius: 26px; }
}
