/* ═══════════════════════════════════════════════════════════════════════════
   الرئيسية الفاتحة (home.php) — طابع «المخطّط الهندسي» فوق رموز aurora.css.
   (والرئيسية السابقة home-classic.php على قواعد .page-home-classic في aurora.css.)
   القواعد نفسها في lab.css:
   1) الحالة الساكنة هنا هي **النهائية** (بلا سكربت أو مع تقليل الحركة). home.js يضع
      الحالات الابتدائية، ويضيف إلى body الصنف lz-on (الحركة تعمل) وlz-pin (حاسوب: تثبيت).
   2) لا transition على transform في عنصرٍ يحرّكه GSAP (حقيقة 11).
   كل الأصناف بسابقة lz- (حقيقة 30.5).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── الأرضية والشريط العلوي الفاتحان ─────────────────────────────────────────
   القالب يرسم .canvas الداكنة لكل صفحة، والشريط مكتوبٌ للداكن. هنا يُقلبان مباشرة
   (لا عبر is-light: ذاك يعمل بعد السكربت وعند الالتصاق فقط). */
body.page-home { background: var(--light); color: var(--ink); }
.page-home .canvas { display: none; }
.page-home main { background: var(--light); color: var(--ink); overflow-x: clip; }
.page-home .foot { color: var(--dark-ink); }

.page-home .nav { color: var(--ink); }
.page-home .nav.is-stuck {
  background: rgba(255,255,255,.82); border-block-end-color: var(--light-line);
}
.page-home .nav-links > a { color: var(--dim); }
.page-home .nav-links > a:hover,
.page-home .nav-links > a[aria-current="page"] { color: var(--ink); background: rgba(17,24,50,.06); }
.page-home .nav-links > a.nav-lang { border-color: var(--light-line); }
/* فوق فيلم البطل (قبل التمرير) الشريط أبيض كالرئيسية السابقة؛ والدرج في الجوال يبقى فاتحاً */
.page-home .nav:not(.is-stuck) { color: #fff; }
@media (min-width: 1181px) {
  .page-home .nav:not(.is-stuck) .nav-links > a { color: rgba(255,255,255,.8); }
  .page-home .nav:not(.is-stuck) .nav-links > a:hover,
  .page-home .nav:not(.is-stuck) .nav-links > a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
  .page-home .nav:not(.is-stuck) .nav-links > a.nav-lang { border-color: rgba(255,255,255,.3); }
}
@media (max-width: 1180px) {
  .page-home .nav-links {
    background: rgba(255,255,255,.97); border-block-end-color: var(--light-line);
    box-shadow: 0 30px 60px rgba(17,24,50,.12);
  }
  .page-home .nav-links > a { color: var(--ink); }
}

.page-home main .btn-ghost { border-color: var(--light-line); color: var(--ink); background: #fff; }
.page-home main .btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* ── مشترك ──────────────────────────────────────────────────────────────── */
section[class^="lz-"] { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.lz-h2 { font-size: clamp(28px, 4.2vw, 50px); line-height: 1.15; margin: 0 0 18px; color: var(--ink); }
.lz-h2 span { color: var(--brand); }
.lz-lead { color: var(--dim); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8; max-inline-size: 60ch; }
[dir="rtl"] .lz-cta-btn .fa-arrow-right,
[dir="rtl"] .lz-sx-go i,
[dir="rtl"] .lz-sx-all i,
[dir="rtl"] .lz-tile-go { transform: scaleX(-1); }

/* ── البطل: الفيلم بعرض الشاشة كالرئيسية السابقة، والنصّ أبيض فوقه ───────────── */
.lz-hero {
  min-block-size: 100svh; display: flex; align-items: center; overflow: clip;
  padding-block: calc(var(--nav-h) + 40px) 120px !important;
  background: #070b18; color: #fff;
  /* حافة سفلية منحنية تفتح على الأقسام الفاتحة */
  border-end-start-radius: 50% 70px; border-end-end-radius: 50% 70px;
}
/* الشاشة خلفية كاملة: البوستر ثم الفيديو (initHeroVideo يضع is-video عند أول إطار) */
.lz-screen { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #070b18; }
.lz-screen img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 42%; }
.lz-screen .hero-vid { object-position: 50% 42%; }
.lz-screen.is-video .hero-vid { opacity: 1; }
/* الستار: أغمق عند النصّ (بداية السطر) وأسفل البطل */
.lz-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(7,11,24,.8) 0%, rgba(7,11,24,0) 42%),
    linear-gradient(to left, rgba(7,11,24,.94) 0%, rgba(7,11,24,.74) 46%, rgba(7,11,24,.4) 100%);
}
[dir="ltr"] .lz-scrim {
  background:
    linear-gradient(to top, rgba(7,11,24,.8) 0%, rgba(7,11,24,0) 42%),
    linear-gradient(to right, rgba(7,11,24,.94) 0%, rgba(7,11,24,.74) 46%, rgba(7,11,24,.4) 100%);
}
/* ورقة المخطّط: خطوط بيضاء خافتة فوق الفيلم تتلاشى نحو الأطراف */
.lz-blue {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px;
  mask-image: radial-gradient(80% 75% at 50% 45%, #000 20%, transparent 80%);
}
.lz-hero-grid { position: relative; z-index: 2; inline-size: 100%; }
.lz-hero-txt { max-inline-size: 680px; }
.lz-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px;
  font-weight: 700; font-size: 14px; color: #fff;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.lz-title { font-size: clamp(38px, 5.8vw, 74px); line-height: 1.12; margin: 0 0 22px; color: #fff; }
.lz-hero .lz-lead { color: rgba(255,255,255,.82); }
.lz-line-mask { padding-block-end: .06em; } /* قناع السطر: لا يقصّ ذيول الحروف */
.lz-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 30px; }
.page-home .lz-hero .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.08); }
.page-home .lz-hero .btn-ghost:hover { background: rgba(255,255,255,.16); }

/* شريط الإعلان من اللوحة (مكان الشارة حين يوجد): زجاجٌ فوق الفيلم */
.lz-ticker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; max-inline-size: 100%;
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 14.5px; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
}
.lz-ticker em { font-style: normal; color: #fff; font-weight: 700; }
.lz-ticker-dot { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(42,208,200,.25); }

/* زرّ الفيلم: شبحٌ بأيقونة تشغيلٍ في دائرة */
.lz-play { color: #fff; background: transparent; border-color: transparent; padding-inline: 10px; }
.lz-play i {
  display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%;
  font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px rgba(255,255,255,.12);
}
.lz-play:hover { color: var(--brand-2); }
@media (max-width: 900px) {
  .lz-hero { border-end-start-radius: 50% 36px; border-end-end-radius: 50% 36px; padding-block-end: 90px !important; }
  .lz-scrim, [dir="ltr"] .lz-scrim {
    background: linear-gradient(to top, rgba(7,11,24,.86) 0%, rgba(7,11,24,.62) 55%, rgba(7,11,24,.72) 100%);
  }
}

/* ── الغوص في الشاشة ─────────────────────────────────────────────────────── */
.lz-dive { overflow: clip; }
.lz-dive-head { text-align: center; }
.lz-lap { position: relative; inline-size: min(760px, 100%); margin: 40px auto 70px; }
.lz-lap-scr {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border: 12px solid #151b30; border-block-end-width: 16px; border-radius: 18px 18px 6px 6px;
  background: #151b30; box-shadow: 0 30px 70px rgba(17,24,50,.22);
}
.lz-lap-scr img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.lz-lap-fill {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 90% at 50% 50%, #1b4dff, var(--brand) 55%, #041a7a);
}
.lz-lap-base {
  display: block; block-size: 16px; margin-inline: -7%;
  border-radius: 2px 2px 16px 16px; background: linear-gradient(180deg, #d6dbea, #aeb6cc);
  box-shadow: 0 16px 30px rgba(17,24,50,.18);
}
.lz-layers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.lz-layer {
  position: relative; padding: 18px 18px 22px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--light-line); box-shadow: 0 20px 50px rgba(17,24,50,.08);
}
.lz-layer-shot {
  display: grid; place-items: center; block-size: 170px; margin-block-end: 16px; overflow: hidden;
  border-radius: 14px; background: linear-gradient(160deg, var(--light), #e2e9f7);
}
.lz-layer-shot img { max-inline-size: 90%; max-block-size: 88%; inline-size: auto; block-size: auto; border-radius: 8px; box-shadow: 0 10px 24px rgba(17,24,50,.15); }
.lz-layer-n { position: absolute; inset-block-start: 26px; inset-inline-end: 28px; font: 700 12px ui-monospace, Consolas, monospace; color: var(--brand); background: #fff; padding: 4px 8px; border-radius: 6px; }
.lz-layer h3 { margin: 0 0 8px; font-size: 20px; }
.lz-layer h3 i { color: var(--brand); margin-inline-end: 4px; }
.lz-layer p { margin: 0; color: var(--dim); line-height: 1.7; }

/* تثبيت (حاسوب): المرحلة بارتفاع الشاشة، والطبقات فوق الحاسوب في وسطه */
.lz-pin .lz-dive { padding-block: 0; }
.lz-pin .lz-dive-stage {
  position: relative; block-size: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.lz-pin .lz-lap { margin: 30px auto 0; inline-size: min(700px, 62vh * 16 / 9); }
.lz-pin .lz-layers {
  position: absolute; inset-inline: var(--gut); inset-block-start: 50%; translate: 0 -50%;
  perspective: 1400px; z-index: 2;
}
.lz-lap { will-change: transform; }

/* ── الأنظمة: شبكة بينتو كحلية ────────────────────────────────────────────────
   كحلية عمداً: الخدمات بعدها بينتو فاتح، فشبكتان فاتحتان متتاليتان تبدوان نسخة.
   الرائد 2×2، ثم اثنتان في العمود الثالث، ثم ثلاث. التوهّج يتبع --mx/--my (يضعهما home.js؛
   والافتراضي الوسط فيعمل بلا سكربت)، والميلان على <a> بـ GSAP والظهور على <li> — هدفان منفصلان.
   لا transition على transform (حقيقة 11). */
.lz-sys {
  color: var(--dark-ink);
  background:
    linear-gradient(rgba(173,200,255,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(173,200,255,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(70% 60% at 85% 0%, rgba(0,53,230,.35), transparent 70%),
    linear-gradient(180deg, #0b1430, var(--dark));
}
/* بقعةٌ على الشبكة تتبع المؤشر (--sx/--sy من home.js): خطوطٌ أسطع مقنّعة بدائرة، تظهر بـ is-sx-on
   ما دام المؤشر في القسم. المحتوى فوقها */
.lz-sys::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background:
    linear-gradient(rgba(173,200,255,.24) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(173,200,255,.24) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), #000, transparent 72%);
  mask: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), #000, transparent 72%);
}
.lz-sys.is-sx-on::after { opacity: 1; }
.lz-sys > .wrap { position: relative; z-index: 1; }
.lz-sys .lz-h2 { color: #fff; }
.lz-sys .lz-lead { color: var(--dark-dim); }
.lz-sx-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lz-sx-head .lz-lead { margin: 0; }
.lz-sx-all {
  color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(173,200,255,.22);
  transition-property: background, border-color;
}
.lz-sx-all:hover { background: var(--brand); border-color: var(--brand); }
.lz-sx-grid {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.lz-sx-card.is-lead { grid-column: span 2; grid-row: span 2; }
/* أقلّ من ست: لا خانة فارغة */
.lz-sx-card.is-lead:last-child { grid-column: span 3; grid-row: auto; }
.lz-sx-card:nth-child(2):last-child { grid-row: span 2; }
.lz-sx-card:nth-child(4):last-child { grid-column: span 3; }
.lz-sx-card:nth-child(5):last-child { grid-column: span 2; }
.lz-sx-card a {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 12px; block-size: 100%;
  padding: 28px; border-radius: var(--r-xl); color: var(--dark-ink);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(173,200,255,.14);
  transition-property: border-color, box-shadow, background; transition-duration: .3s;
}
.lz-sx-card a:hover { border-color: rgba(173,200,255,.42); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.lz-sx-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(42,208,200,.20), rgba(0,53,230,.12) 40%, transparent 70%);
}
.lz-sx-card a:hover .lz-sx-glow, .lz-sx-card a:focus-visible .lz-sx-glow { opacity: 1; }
/* حدٌّ يضيء قرب المؤشر: حلقةٌ بسُمك بكسلٍ واحد (القناع يطرح المحتوى من الإطار)، مركزها --mx/--my
   ولو خارج البطاقة — فتضيء حافّات الجارات القريبة أيضاً. الزوجان معاً لسفاري */
.lz-sx-card a::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(42,208,200,.95), rgba(0,83,255,.55) 40%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.lz-sys.is-sx-on .lz-sx-card a::after, .lz-sx-card a:focus-visible::after { opacity: 1; }
.lz-sx-top { display: flex; align-items: center; gap: 14px; }
.lz-sx-logo {
  inline-size: 56px; block-size: 56px; flex: none; border-radius: 16px; overflow: hidden;
  background: #fff; display: grid; place-items: center;
}
.lz-sx-logo img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.lz-sx-logo b { font-size: 26px; color: var(--brand); }
.lz-sx-tag { font-size: 13px; font-weight: 700; color: var(--brand-soft); display: inline-flex; align-items: center; gap: 6px; }
.lz-sx-name { font-size: 21px; line-height: 1.35; color: #fff; padding-inline-end: 44px; }
.lz-sx-text { color: var(--dark-dim); line-height: 1.75; font-size: 15px; }
.lz-sx-go {
  position: absolute; inset-block-start: 24px; inset-inline-end: 24px;
  inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(173,200,255,.2);
  transition-property: background, border-color; transition-duration: .3s;
}
.lz-sx-card a:hover .lz-sx-go { background: var(--brand); border-color: var(--brand); }
.lz-sx-card.is-lead a { padding: 34px; }
/* لوحة المؤشرات المرسومة: ثلاث حبوبٍ شكلية، وأعمدةٌ تحت خطٍّ بياني. الأعمدة scaleY من home.js
   (transform-origin أسفلها)، والخط stroke-dashoffset على pathLength=1 */
.lz-sx-dash {
  flex: 1 1 auto; min-block-size: 170px; margin-block: 6px;
  display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 18px;
  padding: 16px; border-radius: 16px; background: rgba(7,11,24,.45); border: 1px solid rgba(173,200,255,.12);
}
.lz-sx-kpis { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.lz-sx-kpis i {
  --k: #2ad0c8;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(173,200,255,.1);
}
.lz-sx-kpis i:nth-child(2) { --k: var(--brand-soft); }
.lz-sx-kpis i:nth-child(3) { --k: #ffb547; }
.lz-sx-kpis i::before { content: ""; flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--k); box-shadow: 0 0 12px var(--k); }
.lz-sx-kpis i::after {
  content: ""; flex: 1; block-size: 22px;
  background:
    linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6)) left 3px / 60% 6px no-repeat,
    linear-gradient(rgba(173,200,255,.25), rgba(173,200,255,.25)) left 15px / 85% 4px no-repeat;
}
[dir="rtl"] .lz-sx-kpis i::after { background-position: right 3px, right 15px; }
.lz-sx-chart { position: relative; min-block-size: 136px; }
.lz-sx-bars {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6%; padding-inline: 2%;
}
.lz-sx-bars i {
  flex: 1; block-size: var(--h); border-radius: 6px 6px 2px 2px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgba(0,83,255,.6), rgba(0,53,230,.12));
}
.lz-sx-chart svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
.lz-sx-area { fill: rgba(42,208,200,.08); }
.lz-sx-line {
  fill: none; stroke: #2ad0c8; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(42,208,200,.6));
}
.lz-sx-card.is-lead .lz-sx-logo { inline-size: 72px; block-size: 72px; border-radius: 20px; }
.lz-sx-card.is-lead .lz-sx-name { font-size: clamp(24px, 2.4vw, 32px); }
.lz-sx-feats {
  list-style: none; margin: auto 0 0; padding: 22px 0 0; border-block-start: 1px solid rgba(173,200,255,.14);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px;
}
.lz-sx-feats li { display: flex; align-items: flex-start; gap: 10px; color: #fff; font-size: 15px; line-height: 1.6; }
.lz-sx-feats i {
  flex: none; inline-size: 24px; block-size: 24px; border-radius: 50%; display: grid; place-items: center;
  margin-block-start: 1px; font-size: 11px; color: var(--dark); background: var(--brand-soft);
}

/* ── الأرقام: عدّاد المسافات ─────────────────────────────────────────────── */
.lz-nums { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lz-nums li {
  padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--light-line);
  display: flex; flex-direction: column; gap: 10px;
}
.lz-odo {
  display: inline-flex; font-size: clamp(34px, 4.4vw, 58px); line-height: 1; font-weight: 800;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
.lz-dg { display: inline-block; block-size: 1em; overflow: hidden; }
.lz-dg-col { display: flex; flex-direction: column; }
.lz-dg-col span { block-size: 1em; }
.lz-nums li > span { color: var(--dim); }

/* ── الخدمات: بنتو ───────────────────────────────────────────────────────── */
.lz-tiles {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 16px;
}
.lz-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.lz-tile:nth-child(2), .lz-tile:nth-child(5), .lz-tile:nth-child(6) { grid-column: span 2; }
.lz-tile:nth-child(3):last-child { grid-column: span 2; } /* ثلاث خدمات: لا خانة فارغة */
.lz-tile a {
  position: relative; display: flex; flex-direction: column; gap: 10px; block-size: 100%;
  padding: 26px; border-radius: var(--r-lg); background: #fff; color: var(--ink);
  border: 1px solid var(--light-line); box-shadow: 0 16px 40px rgba(17,24,50,.06);
  transition: border-color .25s, box-shadow .25s;
}
.lz-tile a:hover { border-color: var(--brand); box-shadow: 0 24px 50px rgba(0,53,230,.14); }
.lz-tile:nth-child(1) a { background: linear-gradient(150deg, var(--brand), #0b1b5c); color: #fff; border: 0; }
.lz-tile:nth-child(1) b { font-size: clamp(24px, 2.6vw, 34px); }
.lz-tile:nth-child(1) .lz-tile-text { color: rgba(255,255,255,.78); }
.lz-tile-n { font: 700 13px ui-monospace, Consolas, monospace; color: var(--brand); }
.lz-tile:nth-child(1) .lz-tile-n { color: var(--brand-2); }
.lz-tile b { font-size: 20px; line-height: 1.3; }
.lz-tile-text { color: var(--dim); line-height: 1.7; }
.lz-tile-go { margin-block-start: auto; align-self: flex-end; color: var(--brand); }
.lz-tile:nth-child(1) .lz-tile-go { color: #fff; }

/* ── العملاء: المدار ─────────────────────────────────────────────────────── */
.lz-orbit { text-align: center; overflow: clip; }
.lz-orbit .lz-h2 { margin-inline: auto; max-inline-size: 22ch; }
.lz-orbit-stage { position: relative; margin-block-start: 40px; }
.lz-ring, .lz-core { display: none; }
.lz-sats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lz-sat {
  inline-size: 84px; block-size: 84px; border-radius: 22px; padding: 10px;
  background: #fff; border: 1px solid var(--light-line); box-shadow: 0 12px 30px rgba(17,24,50,.08);
}
.lz-sat img { inline-size: 100%; block-size: 100%; object-fit: contain; }
/* بالحركة: المسرح بارتفاعٍ ثابت، والأقمار في مركزه يوزّعها home.js على القطع الناقص */
.lz-on .lz-orbit-stage { block-size: clamp(360px, 48vw, 560px); }
.lz-on .lz-ring {
  /* مواضع فيزيائية عمداً: المدار هندسةٌ لا نصّ، وhome.js يحسب الأقمار من المركز */
  display: block; position: absolute; left: 50%; top: 50%;
  inline-size: var(--rw, 80%); aspect-ratio: 1; translate: -50% -50%;
  border: 1.5px dashed rgba(0,53,230,.22); border-radius: 50%;
  transform: perspective(900px) rotateX(74deg); pointer-events: none;
}
.lz-on .lz-ring-2 { --rw: 52%; border-color: rgba(42,208,200,.3); }
.lz-on .lz-core {
  display: grid; place-items: center; position: absolute; inset: 0; margin: auto;
  inline-size: 120px; block-size: 120px; border-radius: 34px; z-index: 50;
  background: #fff; box-shadow: 0 30px 70px rgba(0,53,230,.25), 0 0 0 12px rgba(0,53,230,.06);
}
.lz-core svg { inline-size: 60px; block-size: 60px; }
.lz-on .lz-sats { display: block; position: absolute; inset: 0; }
.lz-on .lz-sat { position: absolute; left: 50%; top: 50%; margin: -42px; }

/* ── الأخبار: بطاقاتٌ تتوسّع إلى معاينة ─────────────────────────────────── */
.lz-news-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lz-posts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lz-post-in {
  position: relative; block-size: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--light-line); box-shadow: 0 16px 40px rgba(17,24,50,.07);
}
.lz-post-link { display: flex; flex-direction: column; gap: 8px; padding-block-end: 22px; color: var(--ink); }
.lz-post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light); }
.lz-post-media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.lz-post-link time { padding-inline: 20px; margin-block-start: 8px; font-size: 13px; color: var(--brand); }
.lz-post-title { padding-inline: 20px; font-size: 19px; line-height: 1.45; }
.lz-post-more { display: none; padding: 0 20px 26px; }
.lz-post-more p { color: var(--dim); line-height: 1.85; margin: 0 0 20px; }
.lz-post-close {
  display: none; place-items: center; position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 2;
  inline-size: 42px; block-size: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 18px; box-shadow: 0 6px 18px rgba(17,24,50,.2);
}
/* المفتوحة: النافذة نفسها تصير معاينةً ثابتة في وسط ما تحت الشريط العلوي (main طبقةٌ
   z-index:1 فلا يعلو ما فيه الشريط)، وخانتها تحفظ مكانها */
.lz-post-in.is-open {
  position: fixed; z-index: 90; inset: var(--nav-h) 0 0; margin: auto;
  inline-size: min(720px, calc(100vw - 32px)); block-size: fit-content; max-block-size: calc(100svh - var(--nav-h) - 32px);
  overflow-y: auto; box-shadow: 0 50px 120px rgba(17,24,50,.35);
}
.lz-post-in.is-open .lz-post-more { display: block; }
.lz-post-in.is-open .lz-post-close { display: grid; }
.lz-post-in.is-open .lz-post-title { font-size: clamp(22px, 2.6vw, 30px); }
.lz-peek-bg {
  position: fixed; inset: 0; z-index: 80; background: rgba(17,24,50,.45); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lz-peek-bg.is-on { opacity: 1; visibility: visible; }

/* ── القطاعات: رقائق بيضاء بلونٍ لكلٍّ منها ─────────────────────────────── */
.lz-sectors { text-align: center; }
.lz-chips { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lz-chip { --c: var(--brand); }
.lz-chip:nth-child(6n+2) { --c: #16a6a0; }
.lz-chip:nth-child(6n+3) { --c: #e0662f; }
.lz-chip:nth-child(6n+4) { --c: #6a4df0; }
.lz-chip:nth-child(6n+5) { --c: #c98612; }
.lz-chip:nth-child(6n+6) { --c: #1f9d5c; }
.lz-chip a {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600; border: 1px solid var(--light-line);
  box-shadow: 0 8px 22px rgba(17,24,50,.05); transition: border-color .25s, box-shadow .25s, color .25s;
}
.lz-chip a:hover { border-color: var(--c); color: var(--c); box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 18%, transparent); }
.lz-chip i { color: var(--c); }
.lz-chip img { inline-size: 18px; block-size: 18px; object-fit: contain; }
.lz-chip.is-special a { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.lz-more { margin: 30px 0 0; }
.lz-more .btn i { margin-inline-end: 8px; }

/* ── دعوة التدريب: شريطٌ متدرّج بعرض الحاوية ─────────────────────────── */
.lz-train { padding-block: clamp(30px, 5vw, 60px) !important; }
.lz-train-box {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); flex-wrap: wrap;
  padding: clamp(26px, 4vw, 44px); border-radius: 28px; color: #fff;
  background: linear-gradient(120deg, #0b1b5c, var(--brand) 55%, #1aa9c9);
  box-shadow: 0 30px 70px rgba(0,53,230,.25);
}
.lz-train-ico {
  flex: none; display: grid; place-items: center; inline-size: 68px; block-size: 68px; border-radius: 20px;
  background: rgba(255,255,255,.14); font-size: 28px;
}
.lz-train-txt { flex: 1 1 320px; }
.lz-train-eyebrow { font-size: 13px; font-weight: 700; color: #9ff3ee; }
.lz-train-h { margin: 6px 0 6px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; }
.lz-train-txt p { margin: 0; color: rgba(255,255,255,.8); line-height: 1.7; }
.lz-train-btn { background: #fff; color: var(--brand); font-weight: 700; }
.lz-train-btn:hover { background: #fff; color: var(--ink); }

/* ── الأسئلة الشائعة ─────────────────────────────────────────────────────── */
.lz-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.lz-faq-list { display: flex; flex-direction: column; gap: 12px; }
.lz-faq-list details {
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--light-line);
  transition: border-color .25s, box-shadow .25s;
}
.lz-faq-list details[open] { border-color: rgba(0,53,230,.35); box-shadow: 0 16px 40px rgba(0,53,230,.08); }
.lz-faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none;
}
.lz-faq-list summary::-webkit-details-marker { display: none; }
.lz-faq-list summary::after {
  content: '+'; flex: none; display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 50%;
  background: var(--light); color: var(--brand); font-size: 20px; font-weight: 400; transition: rotate .3s var(--ease);
}
.lz-faq-list details[open] summary::after { rotate: 45deg; background: var(--brand); color: #fff; }
.lz-faq-list details p { margin: 0; padding: 0 24px 22px; color: var(--dim); line-height: 1.85; }

/* ── الدعوة: تدرّجٌ يتحرّك داخل الحروف ──────────────────────────────────── */
.lz-cta { text-align: center; overflow: clip; }
.lz-cta .lz-lead { margin-inline: auto; }
.lz-cta-title {
  font-size: clamp(44px, 9vw, 130px); line-height: 1.1; margin: 0 0 24px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), #7a5cff, var(--brand-3), var(--brand));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* أسطر القناع أثناء الظهور: التدرّج يُعاد إلى كل سطر (يُزال التقسيم بعد الظهور) */
.lz-cta-title .lz-line-mask,
.lz-cta-title .lz-line { background: inherit; -webkit-background-clip: text; background-clip: text; }
.lz-cta-btn { margin-block-start: 16px; font-size: 17px; padding: 16px 30px; }

/* ── الشاشات الصغيرة ─────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .lz-hero-grid, .lz-faq-grid { grid-template-columns: 1fr; }
  .lz-nums { grid-template-columns: repeat(2, 1fr); }
  .lz-posts { grid-template-columns: 1fr 1fr; }
}
/* عمودان: الرائد بعرض الصف، والبقية أزواجاً، والفردة الأخيرة بعرض الصف */
@media (max-width: 900px) {
  .lz-sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* بسابقة الحاوي: قواعد الملء أعلاه أخصّ من .lz-sx-card:nth-child(n) وحدها */
  .lz-sx-grid .lz-sx-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .lz-sx-grid .lz-sx-card.is-lead, .lz-sx-grid .lz-sx-card:nth-child(even):last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .lz-sx-grid { grid-template-columns: minmax(0, 1fr); }
  .lz-sx-grid .lz-sx-card.is-lead, .lz-sx-grid .lz-sx-card:nth-child(even):last-child { grid-column: auto; }
  .lz-sx-card.is-lead a { padding: 26px; }
  .lz-sx-feats { grid-template-columns: minmax(0, 1fr); }
  .lz-sx-dash { display: none; }
}
@media (max-width: 700px) {
  .lz-layers { grid-template-columns: 1fr; }
  .lz-tiles { grid-template-columns: 1fr 1fr; }
  .lz-tile:nth-child(n) { grid-column: span 2; grid-row: auto; }
  .lz-tile:nth-child(3), .lz-tile:nth-child(4) { grid-column: span 1; }
  .lz-posts { grid-template-columns: 1fr; }
  .lz-on .lz-core { inline-size: 84px; block-size: 84px; border-radius: 24px; }
  .lz-core svg { inline-size: 42px; block-size: 42px; }
  .lz-sat { inline-size: 64px; block-size: 64px; border-radius: 16px; padding: 8px; }
  .lz-on .lz-sat { margin: -32px; }
}
