/* ═════════ حماية الأسرة — الصفحة الرئيسية ═════════ */
:root {
  --ink: #0a1b16;
  --body: #45564f;
  --muted: #6c7d76;
  --brand: #0f9d76;
  --brand-2: #0b8162;
  --brand-3: #34d399;
  --mint: #e9f8f2;
  --mint-2: #d7f2e7;
  --line: #dcebe4;
  --bg: #f7fbf9;
  --card: #ffffff;
  --max: 1180px;
  --shadow: 0 18px 50px rgba(10, 40, 30, .09);
  --shadow-sm: 0 8px 24px rgba(10, 40, 30, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.4px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap.narrow { width: min(820px, calc(100% - 40px)); }
.center { text-align: center; }

[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { width: 1em; height: 1em; }

/* ═════════ أزرار ═════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  text-decoration: none;
}
.btn:active { transform: scale(.985); }
.btn.primary {
  background: linear-gradient(135deg, #12b98a, #0a8a68);
  color: #fff; box-shadow: 0 10px 26px rgba(15, 157, 118, .28);
}
.btn.primary:hover { box-shadow: 0 14px 32px rgba(15, 157, 118, .36); transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: #fff; border-color: #c8ded5; }
.btn.light { background: #fff; color: #0a6b51; box-shadow: 0 10px 26px rgba(0, 0, 0, .14); }
.btn.light:hover { transform: translateY(-1px); }
.btn.outline-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .16); }
.btn.lg { padding: 14px 26px; font-size: 15.5px; border-radius: 14px; }

/* ═════════ الشريط العلوي ═════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 251, 249, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(10, 40, 30, .05); background: rgba(247, 251, 249, .94); }
.nav-inner {
  width: min(var(--max), calc(100% - 40px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 16px; letter-spacing: -.3px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #12b98a, #077a5c);
  box-shadow: 0 8px 20px rgba(15, 157, 118, .26);
}
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--body); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; padding: 11px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: .2s; }

/* ═════════ Hero ═════════ */
.hero { position: relative; padding: 74px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 157, 118, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 157, 118, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
  pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow.a { width: 520px; height: 520px; background: rgba(52, 211, 153, .2); top: -160px; inset-inline-end: -120px; }
.hero-glow.b { width: 420px; height: 420px; background: rgba(14, 165, 233, .08); bottom: -180px; inset-inline-start: -120px; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line);
  color: var(--brand-2); font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.eyebrow.light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #b9ffe9; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-3); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); margin: 20px 0 18px; letter-spacing: -1.4px; line-height: 1.18; }
.grad {
  background: linear-gradient(100deg, #0f9d76, #21c99a 55%, #0e7490);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17.5px; max-width: 540px; margin-bottom: 26px; color: var(--body); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust b { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); color: var(--brand); display: inline-grid; place-items: center; }
.trust b svg { width: 11px; height: 11px; }

/* الهاتف */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.art-ring {
  position: absolute; width: 430px; height: 430px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .18), transparent 68%);
  border: 1px solid rgba(15, 157, 118, .12);
}
.phone {
  position: relative; width: 292px; height: 586px; border-radius: 42px;
  background: #0a1310; border: 9px solid #12211c;
  box-shadow: 0 40px 90px rgba(8, 30, 22, .35), inset 0 0 0 1px rgba(255, 255, 255, .05);
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 18px; border-radius: 0 0 12px 12px; background: #12211c; z-index: 2;
}
.phone-screen { position: absolute; inset: 5px; border-radius: 34px; background: #0b1512; padding: 34px 14px 14px; overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #1b2b25; }
.mock-avatar { width: 30px; height: 30px; border-radius: 9px; background: rgba(16, 185, 129, .16); color: #4ade80; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.mock-top b { display: block; color: #e9f1ee; font-size: 11.5px; }
.mock-top small { display: block; color: #6f837c; font-size: 9px; }
.mock-live { margin-inline-start: auto; font-size: 8.5px; color: #4ade80; background: rgba(16, 185, 129, .12); padding: 2px 7px; border-radius: 99px; display: inline-flex; align-items: center; gap: 4px; }
.mock-live i { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 12px 0; }
.mock-stats div { background: #111d19; border: 1px solid #1b2b25; border-radius: 11px; padding: 8px 6px; text-align: center; }
.mock-stats b { display: block; color: #e9f1ee; font-size: 16px; line-height: 1.2; }
.mock-stats span { color: #6f837c; font-size: 8px; }
.mock-label { color: #6f837c; font-size: 8.5px; font-weight: 600; margin: 10px 2px 5px; }
.mock-row { display: flex; align-items: center; gap: 7px; background: #111d19; border: 1px solid #1b2b25; border-radius: 10px; padding: 7px; margin-bottom: 5px; }
.mock-ico { width: 26px; height: 26px; border-radius: 8px; background: #1c2e28; color: #9fb5ad; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.mock-ico.x { background: rgba(148, 163, 184, .15); color: #cbd5e1; }
.mock-ico.t { background: rgba(244, 63, 94, .15); color: #fb7185; }
.mock-ico.y { background: rgba(239, 68, 68, .15); color: #f87171; }
.mock-ico.g { background: rgba(59, 130, 246, .15); color: #60a5fa; }
.mock-row b { display: block; color: #dbe8e3; font-size: 9.5px; }
.mock-row small { display: block; color: #6f837c; font-size: 7.5px; }
.mock-pill { margin-inline-start: auto; font-size: 7.5px; padding: 2px 6px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.mock-pill.ok { background: rgba(16, 185, 129, .14); color: #4ade80; }
.mock-pill.bad { background: rgba(248, 113, 113, .14); color: #f87171; }
.mock-pill.warn { background: rgba(251, 191, 36, .14); color: #fbbf24; }
.float-card {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(10, 40, 30, .13);
  font-size: 12.5px; font-weight: 600; color: var(--ink); backdrop-filter: blur(8px);
}
.float-card span { color: var(--brand); }
.float-card.one { top: 74px; inset-inline-start: 4%; animation: float 6s ease-in-out infinite; }
.float-card.two { bottom: 84px; inset-inline-end: 2%; animation: float 8s ease-in-out infinite reverse; }

/* ═════════ أقسام ═════════ */
.section { padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, #f1faf6, #f7fbf9); border-block: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 14px 0 10px; letter-spacing: -.8px; }
.section-head p { font-size: 16px; color: var(--muted); margin: 0; }

.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cbe5da; }
.f-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.f-icon.teal { background: #e5f9f1; color: #0f9d76; }
.f-icon.red { background: #feecec; color: #e05252; }
.f-icon.blue { background: #e8f2fe; color: #2f7fd6; }
.f-icon.violet { background: #f1ecfe; color: #7c5cd6; }
.f-icon.amber { background: #fff6e3; color: #c98a12; }
.f-icon.green { background: #e9f8ee; color: #2f9d57; }
.feature h3 { font-size: 17px; margin: 0 0 7px; }
.feature p { font-size: 14px; margin: 0; color: var(--muted); }

/* خطوات */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 24px 26px; box-shadow: var(--shadow-sm); text-align: center;
}
.step-num {
  position: absolute; top: -14px; inset-inline-start: 22px;
  width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #12b98a, #077a5c);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 18px rgba(15, 157, 118, .28);
}
.step-icon {
  width: 60px; height: 60px; border-radius: 18px; margin: 8px auto 16px;
  background: var(--mint); color: var(--brand); display: grid; place-items: center;
}
.step h3 { font-size: 17px; margin: 0 0 7px; }
.step p { font-size: 14px; margin: 0; color: var(--muted); }

/* شريط الخصوصية */
.band { padding: 0 0 20px; }
.band-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center;
  background: radial-gradient(700px 300px at 85% 0%, rgba(52, 211, 153, .16), transparent 60%), #0b1a15;
  border-radius: 28px; padding: 52px 48px; color: #b7c9c2;
  box-shadow: 0 30px 70px rgba(8, 30, 22, .2);
}
.band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); margin: 14px 0 10px; }
.band p { margin: 0; font-size: 15px; color: #9fb3ac; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #d7e5e0; }
.checks li span { width: 24px; height: 24px; border-radius: 50%; background: rgba(52, 211, 153, .14); color: #4ade80; display: grid; place-items: center; flex: none; }
.checks li span svg { width: 13px; height: 13px; }

/* التحميل */
.dl-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: center;
  background: radial-gradient(600px 300px at 90% 0%, rgba(52, 211, 153, .28), transparent 60%), linear-gradient(135deg, #0c8f6c, #075f49);
  border-radius: 28px; padding: 52px 48px; color: #eafff8;
  box-shadow: 0 34px 80px rgba(7, 95, 73, .3);
}
.dl-card .eyebrow.light { margin-bottom: 6px; }
.dl-card h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin: 14px 0 10px; }
.dl-card p { color: #c9f2e4; font-size: 15px; margin-bottom: 22px; max-width: 520px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-options { display: grid; gap: 10px; margin: 18px 0 16px; }
.dl-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
}
.dl-opt-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); color: #fff;
}
.dl-opt-body { flex: 1; min-width: 0; }
.dl-opt-body b { display: block; color: #fff; font-size: 14.5px; }
.dl-opt-body small { display: block; color: #c9f2e4; font-size: 12px; line-height: 1.5; }
.dl-option .btn { flex: none; }
.dl-meta { margin-top: 16px; font-size: 12.5px; color: #a7e6d3; }
.dl-art { position: relative; display: grid; place-items: center; min-height: 170px; }
.dl-phone { position: relative; z-index: 1; width: 120px; height: 120px; border-radius: 34px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.dl-ring { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .25); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* الأسئلة */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

/* CTA أخير */
.cta-final { padding-top: 20px; }
.cta-final h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.cta-final p { color: var(--muted); margin-bottom: 24px; }
.hero-cta.center { justify-content: center; }

/* الفوتر */
.footer { background: #08120e; color: #93a7a0; padding: 54px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer .brand { color: #fff; }
.footer-note { font-size: 13px; max-width: 300px; margin: 14px 0 0; color: #7f948d; }
.footer-col { display: grid; gap: 8px; align-content: start; font-size: 13.5px; }
.footer-col b { color: #fff; font-size: 13px; margin-bottom: 4px; }
.footer-col a { color: #93a7a0; transition: color .15s; }
.footer-col a:hover { color: #4ade80; }
.footer-col a.subtle { color: #5f736c; font-size: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid #16241f; padding: 18px 0; font-size: 12px; color: #6c8078;
}
.made { color: #4f635b; }

/* حركات الظهور */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ═════════ Responsive ═════════ */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .burger { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; inset-inline: 0;
    flex-direction: column; gap: 0; padding: 10px 20px 16px;
    background: rgba(247, 251, 249, .98); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 40, 30, .07);
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-actions {
    display: flex; position: absolute; top: 302px; inset-inline: 20px;
    flex-direction: column; gap: 8px; z-index: 51;
  }
  .nav.open .nav-actions .btn { width: 100%; }
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .trust { justify-content: center; }
  .hero-art { min-height: 500px; }
  .features-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-grid, .dl-card { grid-template-columns: 1fr; padding: 38px 30px; }
  .dl-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .nav-inner { width: calc(100% - 32px); height: 66px; }
  .hero h1 { font-size: 33px; letter-spacing: -.8px; }
  .lead { font-size: 15.5px; }
  .phone { width: 260px; height: 522px; }
  .float-card { display: none; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 30px; }
  .band-grid, .dl-card { padding: 30px 22px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .dl-option { flex-wrap: wrap; }
  .dl-option .btn { width: 100%; }
  .nav.open .nav-actions { top: 286px; }
}
