/* =========================================================
   زاوية صفر — site.css — الاتجاه B «نقطة الصفر الداكنة»
   الداكن افتراضي؛ @media (prefers-color-scheme: light) يبدّل للفاتح، و:root[data-theme] (من scripts/theme.js) يغلب الجهاز.
   كل الألوان tokens في :root وكتلة الوسائط فقط. خصائص منطقية ليعمل الملف في RTL وLTR.
   ========================================================= */

/* ---------- Fonts (مستضافة ذاتياً) ----------
   العربية: Kufi 400 للعناوين (وزن واحد، لا bold مصطنع) + IBM Plex Sans Arabic 400/700 للنص.
   اللاتينية: Alexandria Latin 400/700 — هندسية تجاور Kufi، وتغطي علامات الترقيم الإنجليزية (’ “ —)
   الناقصة من نسخة Plex Arabic المتوفرة. unicode-range يضمن أن كل حرف يأخذ خطه الصحيح في اللغتين. */
@font-face { font-family: "ZS Latin"; font-weight: 400; font-display: swap; src: url("/fonts/alexandria-latin-400-normal.82215db8.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "ZS Latin"; font-weight: 700; font-display: swap; src: url("/fonts/alexandria-latin-700-normal.b9162e96.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/fonts/plex-arabic-400.abd663af.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/fonts/plex-arabic-700.3b077165.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Kufi"; font-weight: 400; font-display: swap; src: url("/fonts/kufi-arabic-400.8faa92b7.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }

/* ---------- Tokens: داكن افتراضي، والفاتح في الوسيط الأول من light-dark() ---------- */
:root {
  /* مصدر واحد للقيم: light-dark(فاتح, داكن) — يحسمها color-scheme أدناه */
  color-scheme: dark;
  --bg: light-dark(#F5F6F1, #07080B);
  --surface: light-dark(#FFFFFF, #0F1117);
  --surface-2: light-dark(#ECEEE6, #151821);
  --line: light-dark(#DCDFD5, #232734);
  --line-2: light-dark(#9AA08E, #343A4B);
  --edge: light-dark(#767C6A, #646C7E);            /* حدود العناصر التفاعلية ≥ 3:1 */
  --btn-edge: light-dark(#4A6400, #C8FF4D);
  --text: light-dark(#0B0D10, #F2F3F5);
  --muted: light-dark(#4A5161, #9BA3B4);
  --accent: #C8FF4D;          /* تعبئة: زر، نقطة، توهج */
  --accent-ink: #07080B;      /* نص فوق التعبئة */
  --accent-text: light-dark(#4A6400, #C8FF4D);     /* نص/روابط/خطوط مبرزة فوق الخلفية */
  --focus: light-dark(#4A6400, #C8FF4D);
  --glow: light-dark(rgba(150, 205, 20, .38), rgba(200, 255, 77, .22));
  --glow-soft: light-dark(rgba(150, 205, 20, .14), rgba(200, 255, 77, .07));
  --text-glow: light-dark(transparent, rgba(200, 255, 77, .22));
  --ring: light-dark(rgba(11, 13, 16, .08), rgba(242, 243, 245, .07));
  --dot-edge: light-dark(#4A6400, rgba(200, 255, 77, .07));
  --skeleton: light-dark(#E3E6DC, #1E2230);
  --glass: light-dark(rgba(255, 255, 255, .75), rgba(15, 17, 23, .7));
  --ghost: light-dark(#DCDFD5, #343A4B); /* حد الكلمات الشبحية: أهدأ في الفاتح */
  --shadow: light-dark(rgba(74, 100, 0, .22), rgba(200, 255, 77, .22));

  --font: "ZS Latin", "Plex Arabic", system-ui, sans-serif;
  --display: "ZS Latin", "Kufi", "Plex Arabic", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --r-1: 8px; --r-2: 16px; --r-3: 24px; --r-pill: 999px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --tap: 44px;
  /* الترويسة: ضبابية خفيفة تظهر بعد بدء التمرير */
  --hdr-bg: color-mix(in srgb, var(--bg) 78%, transparent);
  --hdr-bg-solid: color-mix(in srgb, var(--bg) 95%, transparent);
  /* الرادار: دورة واحدة لكل الحركات */
  --T: 8s;
}

/* ---------- اختيار الوضع (القيم كلها في :root أعلاه عبر light-dark) ----------
   بلا JS أو بلا اختيار محفوظ: يتبع الجهاز. مع JS: data-theme على <html> يحسم (اختيار المستخدم يغلب الجهاز). */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; } }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* fallback للمتصفحات بلا light-dark() (مثل iOS < 17.5): الوضع الداكن دائماً، والمبدّل مخفي.
   يجب أن يحوي كل token يستخدم light-dark() — يتحقق منه check.mjs. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --bg: #07080B;
    --surface: #0F1117;
    --surface-2: #151821;
    --line: #232734;
    --line-2: #343A4B;
    --edge: #646C7E;
    --btn-edge: #C8FF4D;
    --text: #F2F3F5;
    --muted: #9BA3B4;
    --accent-text: #C8FF4D;
    --focus: #C8FF4D;
    --glow: rgba(200, 255, 77, .22);
    --glow-soft: rgba(200, 255, 77, .07);
    --text-glow: rgba(200, 255, 77, .22);
    --ring: rgba(242, 243, 245, .07);
    --dot-edge: rgba(200, 255, 77, .07);
    --skeleton: #1E2230;
    --glass: rgba(15, 17, 23, .7);
    --ghost: #343A4B;
    --shadow: rgba(200, 255, 77, .22);
  }
  .js .theme-toggle { display: none; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 96px; } /* الترويسة الثابتة لا تغطي هدف الروابط الداخلية */
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.8; overflow-x: hidden; }
:lang(en) body, body:lang(en) { line-height: 1.7; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, .words, .card h3 { font-family: var(--display); font-weight: 400; font-synthesis: none; }
h1, h2, h3, .lead { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:where(ul, ol) { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-1); }
.skip { position: absolute; inset-inline-start: var(--s-4); top: -80px; z-index: 60; background: var(--accent); color: var(--accent-ink); padding: var(--s-3) var(--s-4); font-weight: 700; text-decoration: none; border-radius: var(--r-1); }
.skip:focus { top: var(--s-3); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hl { color: var(--accent-text); text-shadow: 0 0 40px var(--text-glow); }
svg .s-acc { stroke: var(--accent-text); }
svg .f-acc { fill: var(--accent-text); }
mark.todo { font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 2px 10px; border-radius: 6px; font-size: 14px; }

/* ---------- Header: ثابتة، شفافة أعلى الصفحة، وتظهر خلفيتها الضبابية الخفيفة بعد بدء التمرير ---------- */
.top { position: fixed; inset-inline: 0; top: 0; z-index: 50; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--hdr-bg);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); min-height: var(--tap); text-decoration: none; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1; }
.brand .mark { filter: drop-shadow(0 0 8px var(--glow)); }
.nav { display: flex; gap: var(--s-1); }
.nav a { text-decoration: none; font-size: 15px; padding: 0 var(--s-3); min-height: var(--tap); display: inline-flex; align-items: center; color: var(--text); text-underline-offset: 10px; text-decoration-thickness: 2px; }
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { text-decoration-line: underline; text-decoration-color: var(--accent-text); } /* مؤشر هادئ: خط سفلي ليموني رفيع */
.top-actions { display: flex; align-items: center; gap: var(--s-3); }
.round { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); padding: 0; border: 1px solid var(--edge); border-radius: var(--r-pill); background: none; font: inherit; color: var(--text); cursor: pointer; }
.round:hover { color: var(--accent-text); border-color: var(--accent-text); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu summary path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; transition: transform .3s ease; transform-origin: 12px 12px; }
.menu[open] summary .m1 { transform: rotate(45deg) translateY(3px); }
.menu[open] summary .m2 { transform: rotate(-45deg) translateY(-3px); }
/* لوحة القائمة: بنفس الضبابية الخفيفة */
.menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + var(--s-3)); width: min(320px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-2);
  background: var(--hdr-bg-solid); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); box-shadow: 0 16px 40px -16px rgb(0 0 0 / .35); transition: opacity .2s ease, translate .2s ease; }
@starting-style { .menu[open] .menu-panel { opacity: 0; translate: 0 -6px; } }
.menu-panel nav a { display: flex; min-height: 48px; align-items: center; padding: 0 var(--s-4); border-radius: var(--r-1); text-decoration: none; }
.menu-panel nav a:hover, .menu-panel nav a[aria-current="page"] { background: var(--surface-2); }
.menu-panel nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--accent-text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- مبدّل الإضاءة (يظهر فقط مع JS) ---------- */
.theme-toggle { display: none; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--accent-text); }
.ti { overflow: visible; }
.ti path, .ti circle { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.ti .ti-dot { fill: var(--accent-text); stroke: none; }
.ti-core, .ti-rays, .ti-dot, .ti-beam, .ti-ring { transform-origin: 12px 12px; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, stroke-dasharray .6s ease; }
.ti-ring { stroke-dasharray: 32 8.2; }
.ti-dot { filter: drop-shadow(0 0 3px var(--accent)); }
.ti-rays { opacity: 0; transform: scale(.3) rotate(-60deg); }
:root[data-theme="light"] .ti-core { transform: rotate(90deg); }
:root[data-theme="light"] .ti-ring { stroke-dasharray: 40.2 0; }
:root[data-theme="light"] .ti-beam { opacity: 0; transform: scale(.2); }
:root[data-theme="light"] .ti-dot { transform: scale(1.5); filter: none; }
:root[data-theme="light"] .ti-rays { opacity: 1; transform: none; transition-delay: .12s; }
/* تبديل الصفحة: كشف دائري عبر View Transitions (يحرّكه theme.js)، وإلا انتقال ألوان ناعم */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after { transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease, stroke .4s ease !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill); font: 700 15px/1 var(--font); text-decoration: none; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px var(--btn-edge), 0 0 32px var(--glow); }
.btn--sm { min-height: var(--tap); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--edge); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }

/* ---------- Hero: نقطة الصفر + الحلقات + مخروط الضوء ---------- */
.hero { --zy: calc(100% - 90px); position: relative; display: grid; place-items: center; text-align: center; overflow: hidden; padding-block: 160px 220px; isolation: isolate; }
/* الـhero الكبير بارتفاع محتواه: المركز = أسفل الأزرار + 90px، فنقطة الصفر وخط 0° والإشارات في أول شاشة */
.hero--big { --zy: calc(100% - 150px); padding-block: 120px 240px; }
/* الحاسب: الـhero بملء الشاشة (لا يظهر القسم التالي)، والنص يستقر فوق الرادار: المركز = أسفل الأزرار + 90 دائماً
   (فتبقى مواضع الإشارات صحيحة)، وتحت المركز مساحة حلقات مرنة --zx بالـsvh ⇒ المركز في الثلث السفلي */
@media (min-width: 1200px) {
  .hero--big { --zx: clamp(110px, 22svh, 320px); --zy: calc(100% - var(--zx)); min-height: 100vh; min-height: 100svh; align-content: end; padding-block: clamp(88px, 13svh, 120px) calc(90px + var(--zx)); }
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(circle at 50% var(--zy), var(--glow) 0, transparent 18%), repeating-radial-gradient(circle at 50% var(--zy), transparent 0 79px, var(--ring) 79px 80px);
  -webkit-mask: radial-gradient(circle at 50% var(--zy), #000 0, #000 30%, transparent 62%); mask: radial-gradient(circle at 50% var(--zy), #000 0, #000 30%, transparent 62%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: conic-gradient(from -38deg at 50% var(--zy), var(--glow) 0deg, var(--glow-soft) 22deg, transparent 24deg);
  -webkit-mask: radial-gradient(circle at 50% var(--zy), #000 0, transparent 55%); mask: radial-gradient(circle at 50% var(--zy), #000 0, transparent 55%); }
.zero { position: absolute; left: 50%; top: var(--zy); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--dot-edge), 0 0 0 6px var(--glow-soft), 0 0 40px 10px var(--glow); z-index: -1; }
.coord { position: absolute; left: calc(50% + 22px); top: calc(var(--zy) + 14px); z-index: -1; direction: ltr; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* ---------- رادار الرئيسية (CSS فقط: transform/opacity، عنصر دوران واحد) ----------
   الزوايا مع عقارب الساعة من 0° = اليمين (المحور x الموجب، لا يُعكس في RTL). كل الحركات بمدة --T واحدة؛
   وميض الإشارة يبدأ عند (--p = زاويتها/360) من الدورة ⇒ تأخير سالب = (p − 1) × T حتى تتزامن من أول تحميل. */
.hero--big::before { -webkit-mask: radial-gradient(circle at 50% var(--zy), #000 0, #000 40%, transparent 90%); mask: radial-gradient(circle at 50% var(--zy), #000 0, #000 40%, transparent 90%); } /* الحلقات تغطي الـhero كله */
.hero--big::after { display: none; }
.hero--big .lead { text-shadow: 0 0 8px var(--bg), 0 0 16px var(--bg), 0 0 24px var(--bg); } /* هالة بلون الخلفية: الشعاع يمر تحت الفقرة دون أن يُضعف قراءتها */ /* المخروط الثابت يحل محله الشعاع الدوّار */
.radar { position: absolute; left: 50%; top: var(--zy); width: 0; height: 0; z-index: -1; pointer-events: none; direction: ltr; --R: 1100px; --zl: 372px; }
/* حاوية ثابتة بقناع (لا تدور): الشعاع طبقة خلفية للـhero كله ويدور 360° ويصل إلى أعلى العنوان وحواف الشاشة.
   القناع لا يقص: تلاشٍ عند الأطراف البعيدة + تخفيف إلى 45% فوق مستوى الأزرار + هالة خلفية حول حروف الفقرة ⇒ مقروءة لحظة مرور الحافة الساطعة */
.radar-beam { contain: strict; position: absolute; left: calc(-1 * var(--R)); top: calc(-1 * var(--R)); width: calc(2 * var(--R)); height: calc(2 * var(--R));
  -webkit-mask-image: radial-gradient(circle, #000 0 50%, transparent 85%), linear-gradient(to bottom, rgb(0 0 0 / .45) calc(50% - 150px), #000 calc(50% - 40px)); -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle, #000 0 50%, transparent 85%), linear-gradient(to bottom, rgb(0 0 0 / .45) calc(50% - 150px), #000 calc(50% - 40px)); mask-composite: intersect; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%;
  /* الحافة الأمامية عند 90deg (اليمين) قبل الدوران، والذيل يتلاشى خلفها عكس عقارب الساعة */
  background: conic-gradient(from 30deg, transparent 0deg, var(--glow-soft) 30deg, var(--glow) 58deg, color-mix(in srgb, var(--accent) 55%, transparent) 60deg, transparent 60.6deg);
  animation: zs-sweep var(--T) linear infinite; will-change: transform; }
@keyframes zs-sweep { to { transform: rotate(360deg); } }
/* خط الزاوية صفر: ثابت أفقياً لليمين، يتوهج لحظة مرور الشعاع (بداية الدورة) ثم يخفت */
.radar-zero { position: absolute; left: 0; top: -1px; width: var(--zl); height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--accent-text), color-mix(in srgb, var(--accent-text) 30%, transparent)); box-shadow: 0 0 12px var(--glow); animation: zs-zero var(--T) linear infinite; }
.radar-deg { position: absolute; left: calc(var(--zl) + 8px); top: -9px; font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
@keyframes zs-zero { 0% { opacity: 1; } 16% { opacity: .3; } 100% { opacity: .3; } }
.hero--big .zero::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); animation: zs-zero-dot var(--T) linear infinite; }
@keyframes zs-zero-dot { 0% { opacity: 1; transform: scale(1.8); } 16% { opacity: .25; transform: scale(1); } 100% { opacity: .25; transform: scale(1); } }
/* الإشارات: نقطة + تسمية؛ تومض لحظة مرور الشعاع ثم تخفت كأثر الفسفور */
.blip { position: absolute; left: 0; top: 0; translate: calc(cos(var(--a)) * var(--r)) calc(sin(var(--a)) * var(--r));
  animation: zs-blip var(--T) linear infinite; animation-delay: calc((var(--p) - 1) * var(--T)); }
.blip i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 0 4px var(--glow-soft), 0 0 14px var(--glow); }
.blip span { position: absolute; top: -10px; white-space: nowrap; font-size: 13px; font-weight: 700; line-height: 20px; color: var(--text); padding: 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 88%, transparent); } /* أرضية خفيفة تضمن التباين حتى فوق حافة الشعاع الساطعة */
.blip.to-right span { left: 8px; }
.blip.to-left span { right: 8px; }
@keyframes zs-blip { 0% { opacity: 1; } 5% { opacity: 1; } 45% { opacity: .1; } 100% { opacity: .1; } }
/* مواضع الإشارات (فوق خط الصفر، مرئية في أول شاشة): --a مع عقارب الساعة من 0°، --p = a/360، --r من المركز.
   الحاسب (≥ 1200): على جانبي الفقرة/الأزرار — اثنتان يساراً وواحدة يميناً بارتفاعات مختلفة. */
.b1 { --a: 332.38deg; --p: .9233; --r: 485.3px; }  /* (+430, −225) بجانب الفقرة */
.b2 { --a: 207.62deg; --p: .5767; --r: 485.3px; }  /* (−430, −225) بجانب الفقرة */
.b3 { --a: 193.63deg; --p: .5379; --r: 483.6px; }  /* (−470, −114) بجانب الأزرار */
/* الإنجليزية: الفقرة أعرض (60ch) ⇒ الإشارات بجانب الأزرار وتحتها قليلاً (فوق خط الصفر) */
:lang(en) .b1 { --a: 345.15deg; --p: .9588; --r: 444.9px; }  /* (+430, −114) */
:lang(en) .b2 { --a: 194.85deg; --p: .5413; --r: 444.9px; }  /* (−430, −114) */
:lang(en) .b3 { --a: 185.31deg; --p: .5148; --r: 431.9px; }  /* (−430, −40) */
/* أقل من 1200: لا مساحة جانبية ⇒ صف واحد في الفراغ بين الفقرة والأزرار، والتسمية تحت النقطة */
@media (max-width: 1199px) {
  /* شريط الإشارات بين الفقرة والأزرار: 24 + 32 (نقطة + تسمية) + 24؛ المركز = أسفل الأزرار + 90 (أو + 100 على الجوال) */
  .hero--big .actions { margin-top: calc(var(--s-7) + var(--s-6)); }
  .blip.to-right span, .blip.to-left span { left: 0; right: auto; top: 8px; translate: -50% 0; font-size: 12px; }
  .b1, :lang(en) .b1 { --a: 319.18deg; --p: .8866; --r: 290.7px; }  /* (+220, −190) */
  .b2, :lang(en) .b2 { --a: 220.82deg; --p: .6134; --r: 290.7px; }  /* (−220, −190) */
  .b3, :lang(en) .b3 { --a: 270deg; --p: .75; --r: 190px; }         /* (0, −190) */
}
.hero .wrap > * { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--glass); font-size: 15px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--dot-edge), 0 0 12px var(--accent); }
.hero h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1.32; letter-spacing: -.01em; margin-top: var(--s-6); max-width: 16ch; }
.hero--big h1 { font-size: clamp(44px, min(7.2vw, 9svh), 112px); line-height: 1.3; max-width: 13ch; } /* يتقيّد بالارتفاع أيضاً */
/* الإنجليزي: Alexandria أعرض وأطول من Kufi ⇒ حجم أصغر وسطران على الحاسب («We build and run / digital growth systems») */
:lang(en) .hero--big h1 { font-size: clamp(36px, min(5.4vw, 8.5svh), 72px); max-width: 30ch; } /* سطران حتى أعرض شاشة (عرض الحاوية 1240) */
:lang(en) .hero--big .lead { max-width: 60ch; }
:lang(en) .hero h1, .hero h1:lang(en) { line-height: 1.12; }
.hero h1 .hl { white-space: nowrap; } /* عبارة الإبراز لا تنقسم بين سطرين */
.hero .lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--muted); max-width: 44ch; margin-top: var(--s-6); }
.hero .meta { margin-top: var(--s-4); color: var(--muted); font-size: 15px; }
.hero .actions, .hero .contact { justify-content: center; }
.hero .label { justify-content: center; margin-bottom: 0; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent-text); box-shadow: 0 0 10px var(--glow); }
h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.35; letter-spacing: -.01em; }
h2:lang(en) { line-height: 1.15; }
.sub { color: var(--muted); font-size: 18px; margin-top: var(--s-5); max-width: 56ch; }
.sub + .sub { margin-top: var(--s-4); }
.sec--split .wrap { display: grid; grid-template-columns: 1fr 1.05fr; grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.sec--split .sec-body { grid-column: 2; grid-row: 1 / span 2; }
.sec--split .wrap > .actions { grid-column: 1; grid-row: 2; }
.sec--center { text-align: center; }
.sec--center .wrap > * { margin-inline: auto; }
.sec--center .label, .sec--center .phr, .sec--center .actions, .sec--center .contact { justify-content: center; }
.soon { display: inline-flex; align-items: center; margin-top: var(--s-5); padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: var(--glow-soft); border: 1px solid var(--accent-text); color: var(--accent-text); font-weight: 700; }
.hero .soon { margin-top: 0; }

/* قائمة مرقّمة */
.diff li { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.diff li:last-child { border-bottom: 1px solid var(--line); }
.diff .mono { color: var(--accent-text); padding-top: 6px; }
.diff h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.6; }
.diff p { color: var(--muted); margin-top: var(--s-2); }

/* بطاقات بتوهج علوي */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.card { position: relative; overflow: hidden; container-type: inline-size; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; inset-inline: var(--s-5); top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-text), transparent); box-shadow: 0 0 20px var(--accent-text); }
.card--svc { min-height: 460px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.card-top .num { color: var(--accent-text); }
.card h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; margin-top: var(--s-6); }
.card--svc h3 { margin-top: var(--s-7); }
.card .sub { margin-top: var(--s-2); font-size: 12px; max-width: none; }
.card p { color: var(--muted); margin-top: var(--s-3); position: relative; }
.card dt { margin-bottom: var(--s-1); }
.card dl { margin-top: var(--s-6); display: grid; gap: var(--s-4); position: relative; padding-bottom: var(--s-7); }
.card dt { font-size: 13px; color: var(--muted); }
.card dd { font-size: 17px; font-weight: 700; line-height: 1.6; }
.ghost { position: absolute; bottom: -.1em; inset-inline: var(--s-5) auto; font-family: var(--font); font-weight: 700; font-size: min(88px, 15cqi); line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--ghost); white-space: nowrap; pointer-events: none; direction: ltr; }
.card:not(.card--svc) .ghost { font-size: min(64px, 12cqi); opacity: .6; }
.card:not(.card--svc) { padding-bottom: 72px; }

/* تسميات عربية بنفس الأسلوب (بلا تباعد حروف يكسر الاتصال وبخط النص بدل mono) */
.label:not(:lang(en)), .mono:not(:lang(en)) { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ماذا تستلم (داخل بطاقة الخط) */
.get { position: relative; padding-bottom: var(--s-6); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.get-h { font-size: 13px; color: var(--muted); margin: 0 0 var(--s-2); }
.get li { position: relative; padding-inline-start: var(--s-5); font-size: 15px; line-height: 1.7; margin-top: var(--s-2); }
.get li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }
.card--svc dl { padding-bottom: var(--s-5); }

/* المنصات: نص فقط (بلا شعارات) */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.platforms p { margin: 0; font-size: 13px; color: var(--muted); }
.platforms ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.platforms li { padding: var(--s-1) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 14px; font-weight: 700; }
.platforms--card { margin-top: 0; padding-bottom: var(--s-7); position: relative; }
.platforms--card li { font-size: 13px; }

/* جملة الانتقال بعد القائمة */
.after { color: var(--text); font-weight: 700; margin-top: var(--s-5); }

/* قسم المشكلة: عنوان جملة كاملة ⇒ حجم أهدأ */
.sec--statement h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1.45; }
:lang(en) .sec--statement h2 { line-height: 1.25; }

/* قسم مدمج (OS في الرئيسية) */
.sec--compact { padding-block: var(--s-7); }
.sec--compact h2 { font-size: clamp(24px, 2.8vw, 36px); }
.sec--compact .soon { margin-top: var(--s-3); }

/* جدول المقارنة؛ تحت 640px يتحول إلى بطاقات */
.compare-wrap { margin-top: var(--s-6); overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.6; }
.compare th, .compare td { text-align: start; vertical-align: top; padding: var(--s-4); border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; color: var(--muted); font-weight: 700; }
.compare tbody th { font-weight: 700; width: 28%; }
.compare td { color: var(--muted); }
.compare .us { color: var(--text); font-weight: 700; background: var(--glow-soft); }
.compare thead .us { color: var(--accent-text); border-top: 2px solid var(--accent-text); }
@media (max-width: 640px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-2) 0; margin-bottom: var(--s-3); background: var(--surface); }
  .compare tbody th { width: auto; border-bottom: 0; padding-bottom: var(--s-1); }
  .compare td { border-bottom: 0; padding-block: var(--s-1); }
  .compare td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
  .compare .us { border-radius: var(--r-1); margin-inline: var(--s-2); }
}

/* ما لا نبيعه */
.notlist { display: grid; gap: var(--s-3); }
.notlist li { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); font-size: 17px; font-weight: 700; line-height: 1.7; }
.notlist li::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent-text);
  background: linear-gradient(45deg, transparent 46%, var(--accent-text) 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--accent-text) 46% 54%, transparent 54%);
  background-size: 12px 12px; background-position: center; background-repeat: no-repeat; }

/* صفوف بسيطة */
.rows li { position: relative; padding: var(--s-4) 0; padding-inline-start: var(--s-6); border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; line-height: 1.7; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(var(--s-4) + .85em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--dot-edge), 0 0 10px var(--glow); }

/* عبارات / رقائق */
.phr { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.phr li { padding: var(--s-3) var(--s-5); border: 1px solid var(--line-2); border-radius: var(--r-pill); font-weight: 700; }
.phr li:first-child { border-color: var(--accent-text); color: var(--accent-text); box-shadow: 0 0 24px var(--glow-soft); }

/* قصة الاسم */
.words { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 48px); font-size: clamp(56px, 12vw, 176px); line-height: 1.1; margin-bottom: var(--s-7); }
.ringmark { width: clamp(64px, 11vw, 150px); height: clamp(64px, 11vw, 150px); flex: none; filter: drop-shadow(0 0 24px var(--glow)); }
.sec--center h2 { font-size: clamp(28px, 3.4vw, 44px); }
.sec--center .sub { max-width: 52ch; }

/* نافذة OS تخطيطية */
.win { border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); overflow: hidden; box-shadow: 0 40px 120px -40px var(--shadow); }
.win-bar { display: flex; align-items: center; gap: var(--s-2); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-bar .mono { margin-inline-start: auto; }
.win-body { display: grid; grid-template-columns: 170px 1fr; min-height: 340px; }
.win-side { border-inline-end: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 2px; align-content: start; }
.win-side li { padding: var(--s-2) var(--s-3); border-radius: var(--r-1); font-size: 14px; color: var(--muted); }
.win-side li:first-child { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent-text); }
.win-main { padding: 22px; display: grid; gap: 14px; align-content: start; }
.sk { height: 12px; border-radius: 6px; background: var(--skeleton); }
.w38 { width: 38%; } .w58 { width: 58%; } .w76 { width: 76%; } .w84 { width: 84%; } .w92 { width: 92%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sk-box { height: 84px; border-radius: var(--r-1); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.sk-box:first-child { border-color: var(--line-2); box-shadow: inset 0 1px 0 var(--accent-text); }

/* CTA الختامي */
.sec--cta { position: relative; text-align: center; overflow: hidden; isolation: isolate; }
.sec--cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 60% at 50% 100%, var(--glow), transparent 70%); }
.sec--cta .wrap > * { margin-inline: auto; }
.sec--cta h2 { max-width: 16ch; }
.sec--cta .label, .sec--cta .actions { justify-content: center; }

/* قنوات التواصل */
.contact { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.hero .contact { margin-top: var(--s-6); }
.chip { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 var(--s-5); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); text-decoration: none; }
.chip span:first-child { color: var(--muted); font-size: 14px; }
a.chip bdi { font-weight: 700; color: var(--accent-text); }
a.chip { border-color: var(--edge); }
a.chip:hover { border-color: var(--accent-text); }

/* صفحات نصية (الخصوصية) */
.sec--prose { padding-block: var(--s-7); }
.sec--prose h2 { font-size: clamp(24px, 2.6vw, 34px); }
.sec--prose .sub { color: var(--text); }
.sec--prose .contact { margin-top: var(--s-5); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: var(--s-7); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-5); align-items: center; }
.foot .brand { color: var(--text); }
.foot-brand p { margin-top: var(--s-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.foot nav a { text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 var(--s-3); border-radius: var(--r-pill); }
.foot nav a:hover { color: var(--text); background: var(--surface); }
.foot-meta { flex-basis: 100%; }
/* حسابات التواصل: أيقونات أحادية اللون من tokens، لمس 44px */
.social { display: flex; gap: var(--s-2); }
.soc { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 1px solid var(--edge); border-radius: var(--r-pill); color: var(--text); }
.soc:hover { color: var(--accent-text); border-color: var(--accent-text); }
.soc svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc svg .dot { fill: currentColor; stroke: none; }
.follow { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-5); }
.follow p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- الترويسة: fallbacks + ظهور الخلفية مع التمرير (scroll-driven، بلا JS) ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top::before, .menu-panel { background: var(--hdr-bg-solid); } }
@media (prefers-reduced-transparency: reduce) { .top::before, .menu-panel { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes zs-hdr { from { opacity: 0; } }
    .top::before { animation: zs-hdr linear both; animation-timeline: scroll(root); animation-range: 0 80px; } /* شفافة تماماً أعلى الصفحة */
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .sec--split .wrap { grid-template-columns: 1fr; grid-template-rows: none; row-gap: var(--s-7); }
  .sec--split .sec-body, .sec--split .wrap > .actions { grid-column: auto; grid-row: auto; }
  .sec--split .wrap > .actions { margin-top: 0; }
  .card--svc { min-height: 0; }
}
@media (max-width: 860px) {
  .nav, .cta { display: none; }
  .menu { display: block; }
  .bar { min-height: 64px; }
}
/* العروض المتوسطة: رادار أصغر حتى تبقى التسميات و«0°» داخل الشاشة (الزوايا والتزامن كما هي) */
@media (min-width: 521px) and (max-width: 980px) { .radar { --R: 900px; --zl: 260px; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-block: 130px 200px; }
  .hero--big { padding-block: 104px 220px; --zy: calc(100% - 120px); } /* المركز = أسفل الأزرار + 100 */
  /* الجوال: مواضع خاصة (التسمية تحت النقطة) داخل المنطقة بين الأزرار وأسفل الـhero، والتزامن نفسه (--p = الزاوية/360) */
  .radar { --R: 700px; --zl: 150px; }
  /* زر الجلسة طويل ⇒ الزرّان مكدّسان في اللغتين (108px) ⇒ شريط الإشارات عند −260 */
  .b1 { --a: 294.78deg; --p: .8188; --r: 286.4px; }  /* (+120, −260) */
  .b2 { --a: 245.22deg; --p: .6812; --r: 286.4px; }  /* (−120, −260) */
  .b3 { --a: 270deg; --p: .75; --r: 260px; }         /* (0, −260) */
  :lang(en) .hero--big h1 { font-size: 32px; }
  /* الإنجليزية: الزرّان مكدّسان (108px) ⇒ الفقرة أبعد عن المركز؛ والتسميات أطول ⇒ خط 11px وتوزيع غير متماثل
     بفراغ ≈ 18px بين التسميات وهامش 16px على 375 (يسار Digital Systems، وسط Growth Operations، يمين Store Launch) */
  :lang(en) .blip.to-right span, :lang(en) .blip.to-left span { font-size: 11px; }
  :lang(en) .b1 { --a: 296.3deg; --p: .8231; --r: 290px; }    /* (+128.5, −260) */
  :lang(en) .b2 { --a: 271.65deg; --p: .7546; --r: 260.1px; }  /* (+7.5, −260) */
  :lang(en) .b3 { --a: 245.05deg; --p: .6807; --r: 286.8px; }  /* (−121, −260) */
  .diff li { grid-template-columns: 44px 1fr; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: flex; flex-wrap: wrap; gap: var(--s-1); border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .sk-row { grid-template-columns: 1fr 1fr; }
  .sk-row .sk-box:last-child { display: none; }
  .contact li, .chip { width: 100%; }
  .chip { justify-content: space-between; }
  .ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (min-width: 1600px) { .radar { --R: 1800px; } } /* الشعاع يتلاشى عند حواف الشاشات العريضة لا قبلها (بعد القاعدة الأساسية) */
