/* مرحاب: الموقع التسويقي */
:root {
  --ink: #0B1A18; --ink-2: #12302B; --ink-3: #071210;
  --line-d: #24443E; --line-d2: #1B3732; --pill-d: #2F574F;
  --on-d: #EAF2F0; --on-d2: #C9D8D4; --on-d3: #A9BDB8;
  --bg: #F3F6F5; --bg-2: #E7EEEC; --card: #FFFFFF; --line: #D9E2DF;
  --text: #0E1B19; --muted: #51635F;
  --brand: #0B6B57; --brand-d: #084C3E; --accent: #35D6AD; --on-accent: #06211B;
  --ok-bg: #E2F3EA; --ok: #14653F; --warn-bg: #FDF0D3; --warn: #6B4800; --bad-bg: #FBE3E1; --bad: #8E241D;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.7;
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  overflow-x: clip;
}
a { color: var(--brand); }
a:hover { color: var(--brand-d); }
:focus-visible { outline: 3px solid #D97706; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* الترويسة */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,26,24,.88); backdrop-filter: blur(14px); color: var(--on-d); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; color: var(--on-d); text-decoration: none; }
.logo:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex-grow: 1; }
.nav a { color: var(--on-d2); text-decoration: none; padding: 10px 0; transition: color .25s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.progress { height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; }
.menu-toggle { display: none; }
.nav .nav-login { display: none; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: scale .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { scale: 1.04; box-shadow: 0 0 0 7px rgba(53,214,173,.24); }
.btn:active { scale: .98; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { color: #fff; }
.btn-ghost-d { border-color: var(--pill-d); color: var(--on-d); }
.btn-ghost-d:hover { color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); }
.btn-sm { min-height: 44px; padding: 8px 20px; }
.btn-lg { font-size: 18px; padding: 14px 32px; }

/* الأقسام */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 0 0 80px; }
.dark { background: var(--ink); color: var(--on-d); overflow: clip; }
.tint { background: var(--bg-2); overflow: clip; }
.h-xl { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.12; font-weight: 700; }
.h-lg { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.2; font-weight: 700; }
.h-md { font-size: clamp(26px, 3vw, 40px); line-height: 1.25; }
.h-sm { font-size: 22px; }
.lead { font-size: clamp(17px, 1.6vw, 21px); }
.muted { color: var(--muted); }
.dark .muted { color: var(--on-d3); }
.hl { color: var(--brand); }
.dark .hl { color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--pill-d); color: var(--on-d2); padding: 6px 16px; border-radius: 999px; font-size: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tag { display: inline-block; padding: 3px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; align-self: flex-start; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
.tag-soft { background: #EEF2F1; color: #3E4F4B; }
.tag-white { background: #fff; color: var(--brand-d); }
.tag-accent { background: var(--accent); color: var(--on-accent); }

/* البطل */
.hero { padding: 72px 0 110px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 48px; position: relative; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-text .lead { color: var(--on-d2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { flex: 1 1 420px; min-width: 0; position: relative; height: 520px; }
.hero, .page-hero { position: relative; overflow: clip; }
.dots-bg { position: absolute; inset: 0; pointer-events: none; animation: none !important; transform: none !important;
  background: radial-gradient(70% 90% at 85% -10%, rgba(53,214,173,.16), transparent 65%), radial-gradient(50% 70% at 5% 110%, rgba(11,107,87,.35), transparent 70%); }
section:has(> .ring) { overflow: clip; position: relative; }
.ring { position: absolute; border: 1px solid var(--line-d); border-radius: 50%; }
.float { position: absolute; }
.mock-cal { inset-inline-start: 0; top: 96px; width: 70%; max-width: 400px; background: #fff; color: var(--text); border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.mock-cal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-grid { display: grid; grid-template-columns: 74px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: 13px; font-weight: 600; }
.cal-grid i { height: 28px; border-radius: 7px; background: #EEF2F1; font-style: normal; color: #fff; text-align: center; line-height: 28px; font-weight: 700; }
.c-a { background: #F2A19A !important; } .c-b { background: #8FB6EE !important; } .c-g { background: #8FD9B6 !important; }
.c-m { background: #CDBDEB !important; } .c-x { background: #D6453B !important; }
.mock-stat { inset-inline-end: 0; top: 0; width: 190px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 18px; padding: 16px 18px; }
.mock-stat b { display: block; font-size: 44px; line-height: 1.1; color: var(--accent); }
.mock-alert { inset-inline-end: 2%; bottom: 46px; width: 250px; background: var(--bad-bg); color: var(--bad); border-radius: 16px; padding: 14px 18px; }
.mock-chip { inset-inline-start: 0; bottom: 12px; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 15px; }

/* الشريط المتحرك */
.marquee { background: var(--ink-2); color: var(--on-d); padding: 20px 0; overflow: clip; }
.marq { display: flex; gap: 14px; width: max-content; }
.marq span { border: 1px solid var(--pill-d); border-radius: 999px; padding: 8px 20px; white-space: nowrap; }

/* وسوم المشاكل */
.pains { display: flex; flex-wrap: wrap; gap: 10px; }
.pains span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500; }

/* البطاقات */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-dark { background: var(--ink); color: var(--on-d); border-color: var(--ink); }
.card-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.card-line-d { background: transparent; border-color: var(--line-d); color: var(--on-d2); }
.card-accent { background: var(--ink-2); border-color: var(--accent); }
.lift { transition: translate .55s var(--ease), box-shadow .55s var(--ease); }
.lift:hover { translate: 0 -8px; box-shadow: 0 26px 50px rgba(11,16,36,.16); }
.stat-num { font-size: 64px; font-weight: 700; line-height: 1.1; color: var(--brand); }
.count-lit { }

/* المزايا */
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; position: relative; }
.feature.flip { flex-wrap: wrap-reverse; }
.feature > * { flex: 1 1 380px; min-width: 0; position: relative; }
.feature .big-num { position: absolute; flex: none; top: -70px; inset-inline-end: -10px; font-size: 220px; font-weight: 700; line-height: 1; color: #E3EAE8; }
.feature.flip .big-num { inset-inline-end: auto; inset-inline-start: -10px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.checks li { display: flex; gap: 10px; align-items: center; }
.panel { border-radius: 28px; padding: 28px; }
.panel-dark { background: var(--ink); color: var(--on-d); }
.panel-light { background: #fff; border: 1px solid var(--line); }
.rows { display: flex; flex-direction: column; gap: 12px; }
.rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-dark .rows > div { border-bottom: 1px solid var(--line-d); padding-bottom: 12px; color: var(--on-d3); }
.panel-dark .rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.skeleton { background: var(--line-d); border-radius: 6px; height: 18px; }
.big-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.big-grid i { height: 44px; border-radius: 10px; background: var(--ink-2); font-style: normal; color: #fff; font-weight: 700; text-align: center; line-height: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--on-d2); font-size: 14px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }

/* الكلمة الخلفية */
.ghost-word { position: absolute; top: 28px; inset-inline-start: 0; white-space: nowrap; font-size: 180px; font-weight: 700; line-height: 1; color: var(--ink-2); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }

/* الخطوات المتراكمة */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.steps li { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 28px; padding: 32px; min-height: 250px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -14px 34px rgba(14,27,25,.07); }
.steps b { font-size: 54px; line-height: 1; color: var(--brand); }

/* الباقات */
.price { font-size: 54px; font-weight: 700; line-height: 1.1; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); }
.card-dark .price small { color: var(--on-d3); }
.card .btn { margin-top: auto; }
.strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; flex-direction: row; }

/* الأسئلة */
details { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 0 24px; interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
details[open]::details-content { block-size: auto; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 600; min-height: 44px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.chev { flex: none; transition: rotate .45s var(--ease); }
details[open] .chev { rotate: 45deg; }
details p { padding: 0 0 20px; color: var(--muted); font-size: 17px; }

/* الدعوة الأخيرة والنماذج */
.cta { padding: 110px 0; text-align: center; }
.cta .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; width: 100%; max-width: 620px; }
.cta-form .field { flex: 1 1 260px; min-width: 0; text-align: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; }
input[type=text], input[type=tel], input[type=number], select, textarea {
  font: inherit; font-size: 17px; padding: 12px 16px; min-height: 52px; width: 100%;
  border-radius: 14px; border: 1px solid #B9C6C2; background: #fff; color: var(--text);
}
.dark input[type=text], .dark input[type=tel] { background: var(--ink-2); border-color: var(--pill-d); color: var(--on-d); }
.form-card form > div { margin-bottom: 16px; }
.form-card .helptext { display: block; color: var(--muted); font-size: 14px; }
.errorlist { list-style: none; margin: 0 0 6px; padding: 8px 12px; background: var(--bad-bg); color: var(--bad); border-radius: 10px; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* رأس الصفحات الداخلية */
.page-hero { padding: 72px 0; }
.page-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: relative; }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.prose h2 { font-size: 24px; margin-top: 18px; }
.prose ul { margin: 0; padding-inline-start: 22px; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 14px; padding: 12px 16px; }

/* التذييل */
.site-footer { background: var(--ink-3); color: var(--on-d3); padding: 44px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: flex-start; }
.site-footer a { color: var(--on-d2); padding: 8px 0; }
.site-footer strong { color: var(--on-d); font-size: 22px; }

/* الحركة */
@keyframes px-a { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
@keyframes px-b { from { transform: translateY(90px); } to { transform: translateY(-90px); } }
@keyframes px-c { from { transform: translateY(-55px); } to { transform: translateY(55px); } }
@keyframes px-x { from { transform: translateX(-50px); } to { transform: translateX(50px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise-in { from { opacity: 0; translate: 0 26px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(53,214,173,.55); } 60% { box-shadow: 0 0 0 10px rgba(53,214,173,0); } }
@keyframes fill-ltr { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes fill { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@property --n { syntax: '<integer>'; initial-value: 0; inherits: false; }
@keyframes count { from { --n: 0; } to { --n: var(--to); } }

@media (prefers-reduced-motion: no-preference) {
  .marq { animation: marq 48s linear infinite; }
  .marq:hover { animation-play-state: paused; }
  .dot { animation: pulse-dot 2.2s ease-out infinite; }
  .in-1 { animation: rise-in .9s var(--ease) both .05s; }
  .in-2 { animation: rise-in .9s var(--ease) both .18s; }
  .in-3 { animation: rise-in .9s var(--ease) both .31s; }
  .in-4 { animation: rise-in .9s var(--ease) both .44s; }
  .in-5 { animation: rise-in .9s var(--ease) both .57s; }
  @supports (animation-timeline: view()) {
    .px-a { animation: px-a linear both; animation-timeline: view(); }
    .px-b { animation: px-b linear both; animation-timeline: view(); }
    .px-c { animation: px-c linear both; animation-timeline: view(); }
    .px-x { animation: px-x linear both; animation-timeline: view(); }
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    .count-lit { position: absolute; opacity: 0; }
    .count { counter-reset: n var(--n); animation: count linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .count::after { content: counter(n); }
    .fill { color: transparent; background: linear-gradient(to left, var(--text) 50%, #B4C2BE 50%) 0% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: fill linear both; animation-timeline: view(); animation-range: entry 15% cover 50%; }
    [dir="ltr"] .fill { background-image: linear-gradient(to right, var(--text) 50%, #B4C2BE 50%); animation-name: fill-ltr; }
  }
}

@media (max-width: 760px) {
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--pill-d); background: transparent; color: var(--on-d); cursor: pointer; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .feature .big-num { font-size: 140px; top: -50px; }
  .ghost-word { font-size: 110px; }
}

@media (max-width: 520px) {
  .site-header .wrap { flex-wrap: wrap; gap: 10px 12px; padding-block: 12px; }
  .header-cta .btn-ghost-d { display: none; }
  .nav .nav-login { display: block; }
}

/* تبديل اللغة والنسخة الإنجليزية (اتجاه من اليسار لليمين) */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-d2); color: var(--on-d); font-weight: 700; font-size: 15px; text-decoration: none; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { .lang-switch { display: none; } }
[dir="ltr"] .progress { transform-origin: left; }
[dir="ltr"] .marq { animation-name: marq-ltr; }
@keyframes marq-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="ltr"] .h-xl, [dir="ltr"] .h-lg { letter-spacing: -0.02em; }
.lang-switch { padding: 0 16px; }
.site-header:has(.nav.open) { background: #0B1A18; }
