/* ============================================================
   شركة مكين الرقمية — نظام التصميم
   قاعدة داكنة · لون اشارة واحد · عناوين عربية كبيرة بوزن خفيف
   بلا اي مورد خارجي · بلا جافاسكربت
   الخط: IBM Plex Sans Arabic — مستضاف ذاتيا بترخيص OFL 1.1
   ============================================================ */

@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/assets/fonts/plex-arabic-300.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/assets/fonts/plex-latin-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/plex-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/plex-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/plex-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/plex-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }

/* ---------- الرموز ---------- */
:root {
  --void:      #05101a;
  --deep:      #08192a;
  --surface:   #0d2436;
  --hairline:  #1c3d57;

  --signal:    #17e39a;
  --signal-dk: #0a9e6b;
  --signal-gl: rgba(23, 227, 154, .12);

  --fg:        #eef6fb;
  --fg-soft:   #a8c2d4;
  --fg-mute:   #6d8ba3;

  --paper:     #ffffff;
  --paper-2:   #f4f8fa;
  --ink:       #08192a;
  --ink-soft:  #4a6478;
  --rule:      #e0e9ef;

  --maxw:      1180px;
  --gutter:    clamp(20px, 5vw, 44px);

  --s-1: 8px;  --s-2: 14px; --s-3: 22px;
  --s-4: 34px; --s-5: 52px; --s-6: 80px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plex Arabic", "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--signal); color: var(--void); }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 99;
  background: var(--signal); color: var(--void); padding: 12px 22px; font-weight: 500;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; }

/* شارة القسم */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 500; letter-spacing: .12em;
  color: var(--signal-dk); margin-bottom: var(--s-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.band.dark .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--signal); }

/* ============================================================
   الترويسة
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 16, 26, .94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: saturate(140%) blur(10px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; min-height: 74px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border: 1px solid var(--signal); color: var(--signal);
  font-size: 1.05rem; font-weight: 500; position: relative;
  transition: box-shadow .25s var(--ease);
}
.brand .mark::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--signal); opacity: .22; }
.brand:hover .mark { box-shadow: 0 0 0 3px var(--signal-gl); }
.brand .name { color: var(--fg); font-size: 1.08rem; font-weight: 500; display: block; line-height: 1.4; }
.brand .latin { display: block; font-size: .62rem; letter-spacing: .26em; color: var(--fg-mute); }

nav.main { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav.main a {
  position: relative; color: var(--fg-soft); font-size: .93rem;
  padding-block: 6px; transition: color .2s var(--ease);
}
nav.main a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: inline-end;
  transition: transform .28s var(--ease);
}
nav.main a:hover { color: var(--fg); }
nav.main a:hover::after { transform: scaleX(1); transform-origin: inline-start; }
nav.main a[aria-current="page"] { color: var(--fg); }
nav.main a[aria-current="page"]::after { transform: scaleX(1); }
nav.main a.cta {
  border: 1px solid var(--hairline); padding: 8px 18px; color: var(--fg);
  transition: background .22s var(--ease), border-color .22s var(--ease);
}
nav.main a.cta::after { display: none; }
nav.main a.cta:hover { background: var(--signal-gl); border-color: var(--signal); }

/* ============================================================
   الواجهة
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--void); color: var(--fg);
  padding: clamp(74px, 10vw, 122px) 0 clamp(64px, 9vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(42% 52% at 78% 12%, rgba(23,227,154,.20) 0%, transparent 64%),
    radial-gradient(40% 55% at 14% 92%, rgba(30,116,170,.22) 0%, transparent 62%);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 76% at 50% 38%, #000 12%, transparent 76%);
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.hero .wrap { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.05rem, 4.9vw, 3.4rem);
  font-weight: 300; line-height: 1.45; letter-spacing: -.015em;
  margin: 0 0 var(--s-3); max-width: 21ch;
}
.hero h1 b { font-weight: 600; color: var(--signal); }
.hero .sub {
  font-size: clamp(1rem, 1.55vw, 1.14rem); font-weight: 300;
  color: var(--fg-soft); max-width: 62ch; margin: 0 0 var(--s-4);
}
.hero .sub b { color: var(--fg); font-weight: 500; }

.hero.page { padding: clamp(58px, 8vw, 92px) 0 clamp(46px, 6vw, 72px); }
.hero.page h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); max-width: 24ch; }

/* فتات المسار */
.crumbs { font-size: .84rem; color: var(--fg-mute); margin-bottom: var(--s-2); }
.crumbs a { color: var(--fg-soft); }
.crumbs a:hover { color: var(--signal); }
.crumbs i { font-style: normal; margin-inline: 8px; opacity: .45; }

/* الازرار */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; font-size: .97rem; font-weight: 500;
  border: 1px solid var(--signal); background: var(--signal); color: var(--void);
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { background: var(--signal-dk); border-color: var(--signal-dk); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--hairline); }
.btn.ghost:hover { background: rgba(255,255,255,.05); border-color: var(--fg-mute); color: var(--fg); }
.band.paper .btn.ghost, .band.tint .btn.ghost { color: var(--ink); border-color: var(--rule); }
.band.paper .btn.ghost:hover, .band.tint .btn.ghost:hover { background: var(--paper-2); border-color: var(--ink-soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* شريط الاثبات */
.assure {
  position: relative; z-index: 1;
  margin-top: clamp(44px, 6vw, 72px); padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
}
.assure span { display: block; font-size: .79rem; color: var(--fg-mute); letter-spacing: .06em; margin-bottom: 4px; }
.assure strong { font-weight: 400; font-size: 1rem; color: var(--fg); }

/* ============================================================
   الاقسام
   ============================================================ */
.band { padding: clamp(58px, 8vw, 100px) 0; }
.band.paper { background: var(--paper); }
.band.tint { background: var(--paper-2); border-block: 1px solid var(--rule); }
.band.dark { background: var(--deep); color: var(--fg); border-block: 1px solid var(--hairline); }
.band.dark h2, .band.dark h3 { color: var(--fg); }
.band.dark p, .band.dark li { color: var(--fg-soft); }

h2 {
  font-size: clamp(1.48rem, 3vw, 2.05rem); font-weight: 300;
  line-height: 1.5; letter-spacing: -.01em; margin: 0 0 var(--s-2);
  color: var(--ink); max-width: 26ch;
}
h3 { font-size: 1.08rem; font-weight: 500; margin: 0 0 var(--s-1); color: var(--ink); line-height: 1.6; }
.lede { color: var(--ink-soft); max-width: 66ch; margin: 0 0 var(--s-5); font-weight: 300; font-size: 1.03rem; }
.lede b { color: var(--ink); font-weight: 500; }
.band.dark .lede { color: var(--fg-soft); }
.band.dark .lede b { color: var(--fg); }

/* الشبكة */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.band.dark .grid { background: var(--hairline); border-color: var(--hairline); }

.cell {
  background: var(--paper); padding: var(--s-4);
  position: relative; overflow: hidden; transition: background .25s var(--ease);
}
.band.dark .cell { background: var(--deep); }
.cell::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: inline-end;
  transition: transform .32s var(--ease);
}
.cell:hover::before { transform: scaleX(1); transform-origin: inline-start; }
.cell:hover { background: var(--paper-2); }
.band.dark .cell:hover { background: var(--surface); }
.cell p { margin: 0; color: var(--ink-soft); font-size: .96rem; font-weight: 300; }
.band.dark .cell p { color: var(--fg-soft); }
.cell .ico { display: block; margin-bottom: var(--s-2); color: var(--signal-dk); }
.band.dark .cell .ico { color: var(--signal); }

/* بطاقات */
.cards { display: grid; gap: var(--s-3); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--rule); padding: var(--s-4); background: var(--paper); }
.band.dark .card { border-color: var(--hairline); background: var(--surface); }

/* قوائم */
ul.ticks { list-style: none; margin: 0; padding: 0; }
ul.ticks li {
  position: relative; padding-inline-start: 25px; margin-bottom: 10px;
  font-size: .98rem; font-weight: 300; color: var(--ink);
}
.band.dark ul.ticks li { color: var(--fg-soft); }
ul.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .78em;
  width: 6px; height: 6px; background: var(--signal-dk); transform: rotate(45deg);
}
.band.dark ul.ticks li::before { background: var(--signal); }

/* بطاقة مجال */
.pillar .cell { display: flex; flex-direction: column; }
.pillar .cell h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.pillar .cell ul.ticks { margin-bottom: var(--s-3); }
.pillar .cell ul.ticks li { font-size: .94rem; margin-bottom: 7px; }
.pillar .cell .more {
  margin-top: auto; align-self: flex-start;
  font-size: .92rem; font-weight: 500; color: var(--signal-dk);
  display: inline-flex; align-items: center; gap: 8px;
}
.pillar .cell .more::after { content: "\2190"; display: inline-block; transition: transform .26s var(--ease); }
.pillar .cell:hover .more::after { transform: translateX(-5px); }
.band.dark .pillar .cell .more { color: var(--signal); }

/* وسم نموذج الارتباط */
.mode {
  display: inline-block; font-size: .75rem; font-weight: 500; letter-spacing: .03em;
  color: var(--signal-dk); border: 1px solid var(--rule); padding: 4px 11px; white-space: nowrap;
}
.band.dark .mode, .hero .mode { color: var(--signal); border-color: var(--hairline); }
.mode-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }

/* ============================================================
   صفحة مجال: فهرس لاصق + كتل
   ============================================================ */
.layout { display: grid; grid-template-columns: 234px 1fr; gap: clamp(30px, 5vw, 62px); align-items: start; }

.toc { position: sticky; top: 104px; }
.toc h4 { font-size: .78rem; letter-spacing: .12em; color: var(--ink-soft); margin: 0 0 var(--s-2); font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a {
  display: flex; gap: 10px; padding: 9px 0;
  font-size: .92rem; font-weight: 300; color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  transition: color .2s var(--ease), padding-inline-start .2s var(--ease);
}
.toc li:last-child a { border-bottom: 1px solid var(--rule); }
.toc a::before { content: "0" counter(t); color: var(--signal-dk); font-size: .77rem; flex: none; padding-top: 2px; }
.toc a:hover { color: var(--ink); padding-inline-start: 5px; }

.blocks { min-width: 0; }

.svc { padding-block: var(--s-5); border-top: 1px solid var(--rule); scroll-margin-top: 100px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc .head { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-1); }
.svc .num { font-size: 1.85rem; font-weight: 300; color: var(--signal-dk); line-height: 1; font-feature-settings: "tnum"; }
.svc h3 { font-size: 1.32rem; font-weight: 500; margin: 0; }
.svc > p { color: var(--ink-soft); font-weight: 300; margin: var(--s-2) 0 var(--s-3); max-width: 70ch; }
.svc ul.ticks { columns: 2; column-gap: 40px; }
.svc ul.ticks li { break-inside: avoid; }

/* لوح الافصاح */
.disclose {
  border: 1px solid var(--rule); border-inline-start: 3px solid var(--signal-dk);
  background: var(--paper-2); padding: var(--s-3) var(--s-4);
  font-size: .97rem; font-weight: 300; color: var(--ink-soft);
}
.disclose strong { color: var(--ink); font-weight: 500; }
.band.dark .disclose {
  background: var(--surface); border-color: var(--hairline);
  border-inline-start-color: var(--signal); color: var(--fg-soft);
}
.band.dark .disclose strong { color: var(--fg); }

/* سطر الترابط */
.interlock {
  margin-top: var(--s-4); padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--rule); color: var(--ink-soft);
  font-size: .97rem; font-weight: 300;
}
.interlock b { color: var(--ink); font-weight: 500; }

/* الجداول */
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: start; padding: 13px 18px; border: 1px solid var(--rule); font-weight: 300; }
.tbl th { background: var(--paper-2); font-weight: 500; color: var(--ink); }
.scroll-x { overflow-x: auto; }

/* الخطوات */
ol.steps {
  list-style: none; counter-reset: s; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.band.dark ol.steps { background: var(--hairline); border-color: var(--hairline); }
ol.steps li { counter-increment: s; background: var(--paper); padding: var(--s-4) var(--s-3); }
.band.dark ol.steps li { background: var(--deep); }
ol.steps li::before {
  content: "0" counter(s); display: block; font-size: .8rem; letter-spacing: .1em;
  color: var(--signal-dk); margin-bottom: var(--s-2);
}
.band.dark ol.steps li::before { color: var(--signal); }
ol.steps h3 { font-size: 1rem; margin-bottom: 4px; }
ol.steps p { margin: 0; font-size: .92rem; color: var(--ink-soft); font-weight: 300; }
.band.dark ol.steps p { color: var(--fg-soft); }

/* نداء ختامي */
.cta-band { background: var(--void); color: var(--fg); padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(48% 100% at 86% 50%, rgba(23,227,154,.15), transparent 68%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--fg); max-width: 22ch; }
.cta-band p { color: var(--fg-soft); font-weight: 300; max-width: 58ch; margin: 0 0 var(--s-4); }

/* ============================================================
   التذييل
   ============================================================ */
.site-footer {
  background: var(--void); color: var(--fg-mute);
  border-top: 1px solid var(--hairline);
  padding: var(--s-6) 0 var(--s-4); font-size: .92rem; font-weight: 300;
}
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-5); }
.site-footer h4 { color: var(--fg); font-size: .95rem; font-weight: 500; margin: 0 0 var(--s-2); }
.site-footer p { margin: 0 0 7px; }
.site-footer a { color: var(--fg-soft); transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--signal); }
.site-footer .bottom {
  margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}

/* ============================================================
   ظهور تدريجي عند التمرير — CSS خالص بلا جافاسكربت
   ============================================================ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band .wrap > *, .cta-band .wrap > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 24%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ============================================================
   الاستجابة
   ============================================================ */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--rule); padding-bottom: var(--s-3); }
  .toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s-3); }
}
@media (max-width: 940px) {
  .grid.c4, .grid.c3, .cards.c3 { grid-template-columns: repeat(2, 1fr); }
  ol.steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid.c4, .grid.c3, .grid.c2, .cards.c3, .cards.c2 { grid-template-columns: 1fr; }
  ol.steps { grid-template-columns: 1fr; }
  .assure { grid-template-columns: 1fr; gap: var(--s-3); }
  .svc ul.ticks { columns: 1; }
  .toc ol { grid-template-columns: 1fr; }
  .site-header { position: relative; z-index: 80; }
  .site-header .wrap { min-height: 0; padding-block: 13px; gap: 12px; }
  nav.main { gap: 13px 16px; width: 100%; }
  nav.main a { font-size: .86rem; }
  nav.main a.cta { display: none; }  /* الاتصال متاح في الواجهة والتذييل — نوفر صفا كاملا من ارتفاع الترويسة */
  .brand .mark { width: 32px; height: 32px; flex-basis: 32px; }
  .brand .name { font-size: 1rem; }
  .site-footer .cols { grid-template-columns: 1fr; gap: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .cta-band, .btn-row, .toc { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .band.dark, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .band.dark h2, .band.dark h3, .band.dark p, .band.dark li { color: #000 !important; }
  .layout { grid-template-columns: 1fr; }
}

/* ادوات */
.mt-lg { margin-top: var(--s-4); }

/* ============================================================
   التقييمات الذاتية
   ============================================================ */
.qprogress { border: 1px solid var(--rule); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-3); }
.qptop { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.qptop b { color: var(--signal-dk); font-weight: 500; }

.rtrack { height: 5px; background: var(--rule); overflow: hidden; }
.rfill { height: 100%; background: var(--signal-dk); transition: width .35s var(--ease); }
.rfill.mid { background: #d2a63a; }
.rfill.low { background: #cf5c48; }

.qdots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.qdot { width: 9px; height: 9px; padding: 0; border: 1px solid var(--rule); background: transparent; cursor: pointer; transition: all .2s var(--ease); }
.qdot.done { background: var(--signal-dk); border-color: var(--signal-dk); }
.qdot.on { transform: scale(1.5); border-color: var(--ink-soft); }

.qcard { border: 1px solid var(--rule); padding: var(--s-5) var(--s-4); }
.qcard .mode { margin-bottom: var(--s-3); }
.qq { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; line-height: 1.75; margin: 0 0 var(--s-4); max-width: 62ch; }

.qrows { display: grid; gap: 10px; }
.qrow {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: start;
  border: 1px solid var(--rule); background: var(--paper); padding: 15px 18px;
  font: inherit; font-size: .99rem; font-weight: 300; color: var(--ink); cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.qrow:hover { border-color: var(--ink-soft); background: var(--paper-2); }
.qmark { width: 16px; height: 16px; flex: none; border: 1px solid var(--ink-soft); border-radius: 50%; position: relative; }
.qrow.on { border-color: var(--signal-dk); background: var(--signal-gl); }
.qrow.on .qmark { border-color: var(--signal-dk); }
.qrow.on .qmark::after { content: ""; position: absolute; inset: 3px; background: var(--signal-dk); border-radius: 50%; }

.qnav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: var(--s-4); flex-wrap: wrap; }
.qlink { background: none; border: 0; font: inherit; font-size: .95rem; color: var(--ink-soft); cursor: pointer; padding: 8px 0; }
.qlink:hover { color: var(--ink); }
.qlink:disabled { opacity: .35; cursor: not-allowed; }

.qactions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: var(--s-4); }

/* النتيجة */
.rhead { display: grid; grid-template-columns: 190px 1fr; gap: var(--s-4); align-items: center; border: 1px solid var(--rule); padding: var(--s-4); margin-bottom: var(--s-4); }
.rscore { text-align: center; border-inline-end: 1px solid var(--rule); padding-inline-end: var(--s-4); }
.rscore strong { display: block; font-size: 3rem; font-weight: 300; line-height: 1; color: var(--signal-dk); }
.rscore span { display: block; margin-top: 8px; font-size: .95rem; color: var(--ink-soft); }
.rnote h3 { margin-bottom: 6px; }
.rnote p { margin: 0; color: var(--ink-soft); font-weight: 300; }

.rbars { margin-bottom: var(--s-4); }
.rbars h3, .rpri h3 { margin-bottom: var(--s-3); }
.rbar { margin-bottom: var(--s-3); }
.rbartop { display: flex; justify-content: space-between; font-size: .93rem; margin-bottom: 6px; }
.rbartop b { font-weight: 500; }

.rlist { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.rlist li { counter-increment: r; position: relative; padding-inline-start: 38px; margin-bottom: var(--s-3); }
.rlist li::before {
  content: counter(r); position: absolute; inset-inline-start: 0; top: 2px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--signal-dk); color: var(--signal-dk); font-size: .82rem;
}
.rlist li.ok::before { content: "¹3"; border-color: var(--signal-dk); color: var(--signal-dk); }
.rlist li.bad::before { content: "¹5"; border-color: #cf5c48; color: #cf5c48; }
.rlist li b { display: block; font-weight: 500; margin-bottom: 2px; }
.rlist li span { color: var(--ink-soft); font-weight: 300; font-size: .96rem; }

.noscript-note { border: 1px solid var(--rule); border-inline-start: 3px solid #cf5c48; padding: var(--s-3) var(--s-4); color: var(--ink-soft); font-weight: 300; }

/* بطاقة تقييم في المركز */
.acard { display: flex; flex-direction: column; }
.acard .atop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s-3); }
.acard .acount { font-size: .76rem; color: var(--ink-soft); border: 1px solid var(--rule); padding: 3px 10px; }
.band.dark .acard .acount { color: var(--fg-mute); border-color: var(--hairline); }
.acard h3 { font-size: 1.16rem; margin-bottom: 8px; }
.acard p { margin-bottom: var(--s-3); }
.acard .atags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-3); }
.acard .atag { font-size: .74rem; color: var(--ink-soft); border: 1px solid var(--rule); padding: 3px 9px; }
.band.dark .acard .atag { color: var(--fg-mute); border-color: var(--hairline); }
.acard .abot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acard .awho { font-size: .84rem; color: var(--ink-soft); }
.band.dark .acard .awho { color: var(--fg-mute); }

@media (max-width: 820px) {
  .rhead { grid-template-columns: 1fr; }
  .rscore { border-inline-end: 0; border-bottom: 1px solid var(--rule); padding-inline-end: 0; padding-bottom: var(--s-3); }
  .qcard { padding: var(--s-4) var(--s-3); }
}

/* ============================================================
   واجهة مقسومة برسم متحرك
   ============================================================ */
.hero.split .wrap { display: grid; grid-template-columns: 1fr 340px; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero.split .htext { min-width: 0; }
.hvisual { color: var(--signal); }
.hvisual svg { width: 100%; height: auto; display: block; }

.radar .ring { fill: none; stroke: currentColor; stroke-width: .6; opacity: .22; }
.radar .cross { stroke: currentColor; stroke-width: .5; opacity: .14; }
.radar .sweep { transform-origin: 100px 100px; animation: sweep 6s linear infinite; }
.radar .core { fill: currentColor; opacity: .9; }
.radar .halo { fill: none; stroke: currentColor; stroke-width: 1; transform-origin: 100px 100px; animation: halo 3.2s ease-out infinite; }
.radar .blip { fill: currentColor; opacity: 0; animation: blip 6s linear infinite; }
.radar .blip:nth-of-type(1) { animation-delay: .4s; }
.radar .blip:nth-of-type(2) { animation-delay: 1.9s; }
.radar .blip:nth-of-type(3) { animation-delay: 3.3s; }
.radar .blip:nth-of-type(4) { animation-delay: 4.7s; }

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes halo { 0% { r: 6; opacity: .7; } 100% { r: 74; opacity: 0; } }
@keyframes blip { 0%,6% { opacity: 0; } 10% { opacity: 1; } 40% { opacity: .55; } 70%,100% { opacity: 0; } }

/* طبقات البناء — تقنية المعلومات */
.stack .lyr { fill: none; stroke: currentColor; stroke-width: .8; opacity: .3; }
.stack .lyr.a { animation: lift 5s ease-in-out infinite; }
.stack .lyr.b { animation: lift 5s ease-in-out infinite .5s; }
.stack .lyr.c { animation: lift 5s ease-in-out infinite 1s; }
.stack .pulse { fill: currentColor; opacity: 0; animation: travel 4s linear infinite; }
.stack .pulse:nth-of-type(2) { animation-delay: 1.4s; }
.stack .pulse:nth-of-type(3) { animation-delay: 2.7s; }
@keyframes lift { 0%,100% { opacity: .22; } 50% { opacity: .55; } }
@keyframes travel { 0% { opacity: 0; transform: translateY(58px); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(-52px); } }

/* شبكة عقد — الذكاء الاصطناعي */
.mesh .lnk { stroke: currentColor; stroke-width: .6; opacity: .2; }
.mesh .nd { fill: currentColor; opacity: .5; }
.mesh .nd.live { animation: fire 3.6s ease-in-out infinite; }
.mesh .nd.live:nth-of-type(2) { animation-delay: .6s; }
.mesh .nd.live:nth-of-type(3) { animation-delay: 1.2s; }
.mesh .nd.live:nth-of-type(4) { animation-delay: 1.8s; }
.mesh .nd.live:nth-of-type(5) { animation-delay: 2.4s; }
.mesh .spark { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; opacity: 0; stroke-dasharray: 10 200; animation: dash 3.2s linear infinite; }
.mesh .spark:nth-of-type(2) { animation-delay: 1.1s; }
.mesh .spark:nth-of-type(3) { animation-delay: 2.2s; }
@keyframes fire { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes dash { 0% { opacity: 0; stroke-dashoffset: 200; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { opacity: 0; stroke-dashoffset: 0; } }

/* عدسة — المنتجات */
.lens .iris { fill: none; stroke: currentColor; stroke-width: .8; opacity: .3; transform-origin: 100px 100px; animation: iris 7s ease-in-out infinite; }
.lens .iris:nth-of-type(2) { animation-delay: .8s; }
.lens .iris:nth-of-type(3) { animation-delay: 1.6s; }
.lens .blade { stroke: currentColor; stroke-width: .6; opacity: .2; }
.lens .dot { fill: currentColor; opacity: .85; }
@keyframes iris { 0%,100% { transform: scale(1); opacity: .3; } 50% { transform: scale(.86); opacity: .6; } }

@media (max-width: 900px) {
  .hero.split .wrap { grid-template-columns: 1fr; }
  .hero.split .hvisual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .radar .sweep, .radar .halo, .radar .blip,
  .stack .lyr, .stack .pulse, .mesh .nd, .mesh .spark, .lens .iris { animation: none; }
  .radar .blip, .stack .pulse { opacity: .7; }
}

/* ساعات العمل */
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .96rem; font-weight: 300; }
.hours li:last-child { border-bottom: 0; }
.hours li b { font-weight: 500; }

/* ============================================================
   تجربة التقييم — نسخة داكنة بثلاث مراحل
   ============================================================ */
.assess-wrap { background: var(--void); }
.assess-wrap .lede { color: var(--fg-soft); }

/* شريط المراحل الثلاث */
.steps3 { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-bottom: var(--s-5); }
.steps3 .st { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; flex: 1; max-width: 180px; }
.steps3 .st::before {
  content: ""; position: absolute; top: 21px; inset-inline-end: 50%;
  width: 100%; height: 1px; background: var(--hairline);
}
.steps3 .st:first-child::before { display: none; }
.steps3 .st.done::before, .steps3 .st.on::before { background: var(--signal); opacity: .7; }
.steps3 .stc {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline); background: var(--void); color: var(--fg-mute);
  position: relative; z-index: 1; transition: all .25s var(--ease);
}
.steps3 .stc svg { width: 18px; height: 18px; }
.steps3 .st.on .stc { border-color: var(--signal); color: var(--signal); box-shadow: 0 0 0 4px var(--signal-gl); }
.steps3 .st.done .stc { border-color: var(--signal); color: var(--signal); }
.steps3 .stl { font-size: .82rem; color: var(--fg-mute); }
.steps3 .st.on .stl { color: var(--fg); }

/* بطاقة التمهيد */
.acard-intro {
  border: 1px solid var(--hairline); background: var(--surface);
  padding: clamp(34px, 5vw, 58px) var(--s-4); text-align: center;
  max-width: 760px; margin-inline: auto;
}
.aicon {
  width: 62px; height: 62px; margin: 0 auto var(--s-3);
  border: 1px solid var(--signal); color: var(--signal);
  display: grid; place-items: center;
}
.aicon svg { width: 26px; height: 26px; }
.acard-intro h2 { color: var(--fg); margin-inline: auto; max-width: 22ch; }
.alead { color: var(--fg-soft); font-weight: 300; max-width: 60ch; margin: var(--s-2) auto var(--s-3); }
.mode-row.center { justify-content: center; }
.acta { margin-top: var(--s-4); }
.afoot { color: var(--fg-mute); font-size: .86rem; font-weight: 300; margin: var(--s-3) 0 0; }

/* زر كبير */
.btn.big { padding: 15px 34px; font-size: 1.02rem; }
.btn.big svg { width: 17px; height: 17px; transition: transform .22s var(--ease); }
.btn.big:hover svg { transform: translateX(-4px); }
.btn.soft { background: transparent; color: var(--fg); border-color: var(--hairline); }
.btn.soft:hover { background: rgba(255,255,255,.06); border-color: var(--fg-mute); color: var(--fg); }

/* الأسئلة على الداكن */
.assess-wrap .qprogress { border-color: var(--hairline); background: transparent; }
.assess-wrap .qptop { color: var(--fg-mute); }
.assess-wrap .qptop b { color: var(--signal); }
.assess-wrap .rtrack { background: var(--hairline); }
.assess-wrap .rfill { background: var(--signal); }
.assess-wrap .qdot { border-color: var(--hairline); }
.assess-wrap .qdot.done { background: var(--signal); border-color: var(--signal); }
.assess-wrap .qdot.on { border-color: var(--fg-soft); }

.assess-wrap .qcard { border-color: var(--hairline); background: var(--surface); }
.assess-wrap .qq { color: var(--fg); }
.assess-wrap .qrow { background: var(--deep); border-color: var(--hairline); color: var(--fg-soft); }
.assess-wrap .qrow:hover { background: #10293d; border-color: var(--fg-mute); color: var(--fg); }
.assess-wrap .qmark { border-color: var(--fg-mute); }
.assess-wrap .qrow.on { border-color: var(--signal); background: var(--signal-gl); color: var(--fg); }
.assess-wrap .qrow.on .qmark { border-color: var(--signal); }
.assess-wrap .qrow.on .qmark::after { background: var(--signal); }
.assess-wrap .qlink { color: var(--fg-mute); }
.assess-wrap .qlink:hover { color: var(--fg); }
.qnavr { display: flex; gap: 10px; }

/* النتيجة على الداكن */
.assess-wrap .rhead, .assess-wrap .disclose { border-color: var(--hairline); background: var(--surface); }
.assess-wrap .rscore { border-inline-end-color: var(--hairline); }
.assess-wrap .rscore strong { color: var(--signal); }
.assess-wrap .rscore span, .assess-wrap .rnote p, .assess-wrap .rlist li span { color: var(--fg-soft); }
.assess-wrap .rnote h3, .assess-wrap .rbars h3, .assess-wrap .rpri h3, .assess-wrap .rlist li b { color: var(--fg); }
.assess-wrap .rbartop { color: var(--fg-soft); }
.assess-wrap .rbartop b { color: var(--fg); }
.assess-wrap .rlist li::before { border-color: var(--signal); color: var(--signal); }
.assess-wrap .disclose { border-inline-start-color: var(--signal); color: var(--fg-soft); }
.assess-wrap .disclose strong { color: var(--fg); }

/* الخدمات الموصى بها */
.rrec { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--hairline); }
.rrec h3 { color: var(--fg); margin-bottom: 6px; }
.recl { color: var(--fg-soft); font-weight: 300; margin: 0 0 var(--s-3); }
.recg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.reci {
  border: 1px solid var(--hairline); background: var(--surface); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.reci:hover { border-color: var(--signal); background: var(--signal-gl); }
.reci b { color: var(--fg); font-weight: 500; }
.reci span { color: var(--signal); font-size: .88rem; }

@media (max-width: 700px) {
  .recg { grid-template-columns: 1fr; }
  .steps3 .stl { font-size: .74rem; }
  .qnav { flex-direction: column-reverse; align-items: stretch; }
  .qnavr .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   صفحة الخدمة العميقة
   ============================================================ */
.cover3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.cov { border: 1px solid var(--hairline); background: var(--surface); padding: var(--s-4); }
.cov h3 { display: flex; align-items: center; gap: 10px; color: var(--fg); margin-bottom: var(--s-3); }
.cov .cdot { width: 9px; height: 9px; flex: none; }
.cov.threat { border-top: 2px solid #cf5c48; }
.cov.threat .cdot { background: #cf5c48; }
.cov.env { border-top: 2px solid #4a8fd0; }
.cov.env .cdot { background: #4a8fd0; }
.cov.act { border-top: 2px solid var(--signal); }
.cov.act .cdot { background: var(--signal); }
.cov ul { list-style: none; margin: 0; padding: 0; }
.cov li { color: var(--fg-soft); font-weight: 300; font-size: .95rem; margin-bottom: 10px; padding-inline-start: 18px; position: relative; }
.cov li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 5px; height: 5px; background: currentColor; opacity: .5; }
.cov li b { display: block; color: var(--fg); font-weight: 500; font-size: .93rem; }

/* مراحل الهجوم */
.kill { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.kstep { background: var(--deep); padding: var(--s-4) var(--s-3); }
.kstep .kn { font-size: .78rem; letter-spacing: .1em; color: var(--fg-mute); display: block; margin-bottom: 8px; }
.kstep h3 { font-size: 1rem; color: var(--fg); margin-bottom: 10px; }
.kstep .katt { color: var(--fg-soft); font-size: .9rem; font-weight: 300; margin: 0 0 12px; }
.kstep .kus { border-top: 1px solid var(--hairline); padding-top: 12px; color: var(--signal); font-size: .9rem; font-weight: 300; margin: 0; }

@media (max-width: 940px) {
  .cover3 { grid-template-columns: 1fr; }
  .kill { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .kill { grid-template-columns: 1fr; } }

/* ============================================================
   رموز الخلفية وكشف العنوان
   ============================================================ */
.glyphfield {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 1; direction: ltr; user-select: none;
}
.gf {
  position: absolute; color: var(--fg-soft);
  letter-spacing: .08em; opacity: 0;
  animation-name: floatup; animation-timing-function: linear; animation-iteration-count: infinite;
  transition: color .3s var(--ease);
}
.gf.hot { color: var(--signal); }
@keyframes floatup {
  0%   { transform: translateY(60px); opacity: 0; }
  20%  { opacity: .3; }
  80%  { opacity: .3; }
  100% { transform: translateY(-96px); opacity: 0; }
}
.glyphfield .p1 { top: 9%; inset-inline-start: 76%; font-size: .6rem; animation-duration: 15s; animation-delay: -2s; }
.glyphfield .p2 { top: 13%; inset-inline-start: 54%; font-size: .6rem; animation-duration: 17s; animation-delay: -3s; }
.glyphfield .p3 { top: 25%; inset-inline-start: 55%; font-size: .6rem; animation-duration: 9s; animation-delay: -2s; }
.glyphfield .p4 { top: 37%; inset-inline-start: 80%; font-size: .78rem; animation-duration: 17s; animation-delay: -6s; }
.glyphfield .p5 { top: 34%; inset-inline-start: 83%; font-size: .6rem; animation-duration: 10s; animation-delay: -0s; }
.glyphfield .p6 { top: 59%; inset-inline-start: 67%; font-size: .66rem; animation-duration: 12s; animation-delay: -5s; }
.glyphfield .p7 { top: 58%; inset-inline-start: 69%; font-size: .66rem; animation-duration: 12s; animation-delay: -11s; }
.glyphfield .p8 { top: 35%; inset-inline-start: 72%; font-size: .6rem; animation-duration: 9s; animation-delay: -13s; }
.glyphfield .p9 { top: 31%; inset-inline-start: 68%; font-size: .66rem; animation-duration: 12s; animation-delay: -2s; }
.glyphfield .p10 { top: 56%; inset-inline-start: 47%; font-size: .6rem; animation-duration: 17s; animation-delay: -13s; }
.glyphfield .p11 { top: 64%; inset-inline-start: 87%; font-size: .66rem; animation-duration: 12s; animation-delay: -12s; }
.glyphfield .p12 { top: 63%; inset-inline-start: 92%; font-size: .72rem; animation-duration: 12s; animation-delay: -5s; }
.glyphfield .p13 { top: 90%; inset-inline-start: 60%; font-size: .78rem; animation-duration: 9s; animation-delay: -4s; }
.glyphfield .p14 { top: 51%; inset-inline-start: 64%; font-size: .72rem; animation-duration: 15s; animation-delay: -7s; }
.glyphfield .p15 { top: 90%; inset-inline-start: 87%; font-size: .72rem; animation-duration: 12s; animation-delay: -11s; }
.glyphfield .p16 { top: 20%; inset-inline-start: 65%; font-size: .66rem; animation-duration: 17s; animation-delay: -9s; }
.glyphfield .p17 { top: 77%; inset-inline-start: 89%; font-size: .72rem; animation-duration: 10s; animation-delay: -2s; }
.glyphfield .p18 { top: 32%; inset-inline-start: 47%; font-size: .72rem; animation-duration: 10s; animation-delay: -10s; }
.glyphfield .p19 { top: 59%; inset-inline-start: 64%; font-size: .72rem; animation-duration: 12s; animation-delay: -1s; }
.glyphfield .p20 { top: 66%; inset-inline-start: 58%; font-size: .72rem; animation-duration: 16s; animation-delay: -6s; }
.glyphfield .p21 { top: 14%; inset-inline-start: 81%; font-size: .6rem; animation-duration: 13s; animation-delay: -1s; }
.glyphfield .p22 { top: 89%; inset-inline-start: 53%; font-size: .66rem; animation-duration: 12s; animation-delay: -5s; }
.glyphfield .p23 { top: 28%; inset-inline-start: 91%; font-size: .66rem; animation-duration: 16s; animation-delay: -0s; }
.glyphfield .p24 { top: 71%; inset-inline-start: 85%; font-size: .72rem; animation-duration: 14s; animation-delay: -9s; }

/* واجهة الرئيسية: نص ورسم */
.hsplit { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 5vw, 62px); align-items: center; }
.hsplit .htext { min-width: 0; }

/* نواة الرئيسية */
.core .orb { fill: none; stroke: currentColor; }
.core .o1 { stroke-width: .7; opacity: .3; stroke-dasharray: 5 9; transform-origin: 100px 100px; animation: spin 26s linear infinite; }
.core .o2 { stroke-width: .8; opacity: .22; transform-origin: 100px 100px; animation: spin 18s linear infinite reverse; }
.core .o3 { stroke-width: .6; opacity: .16; stroke-dasharray: 2 7; transform-origin: 100px 100px; animation: spin 34s linear infinite; }
.core .hex { fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .8; }
.core .hexglow { fill: none; stroke: currentColor; stroke-width: 1.1; transform-origin: 100px 100px; animation: hexpulse 3.4s ease-out infinite; }
.core .nd { fill: currentColor; }
.core .n1 { animation: ndp 3s ease-in-out infinite; }
.core .n2 { animation: ndp 3s ease-in-out infinite 1s; }
.core .n3 { animation: ndp 3s ease-in-out infinite 2s; }
.core .spoke { stroke: currentColor; stroke-width: .5; opacity: .18; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hexpulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ndp { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* كشف العنوان سطرا سطرا */
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: inline-block; animation: lnup .9s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .18s; }
.hero h1 [data-decode] { font-feature-settings: "tnum"; }
.hero .sub, .hero .btn-row, .hero .assure { animation: fadein 1s var(--ease) both .35s; }
@keyframes lnup { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hsplit { grid-template-columns: 1fr; }
  .hsplit .hvisual { display: none; }
  .glyphfield { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .ln > span, .hero .sub, .hero .btn-row, .hero .assure { animation: none; }
  .core .o1, .core .o2, .core .o3, .core .hexglow, .core .nd { animation: none; }
  .glyphfield { display: none; }
}

/* ============================================================
   قائمة منسدلة في الترويسة — بلا جافاسكربت
   ============================================================ */
.navdrop { position: relative; display: inline-flex; align-items: center; }
.navdrop > a::before {
  content: "\25BE"; font-size: .62rem; margin-inline-start: 6px; opacity: .6;
  display: inline-block; transition: transform .2s var(--ease);
}
.navdrop:hover > a::before, .navdrop:focus-within > a::before { transform: rotate(180deg); }
.navmenu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 278px; background: var(--void); border: 1px solid var(--hairline);
  padding: 6px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.navdrop:hover .navmenu, .navdrop:focus-within .navmenu { opacity: 1; visibility: visible; transform: none; }
.navmenu::before { content: ""; position: absolute; top: -10px; inset-inline: 0; height: 10px; }
.navmenu a {
  display: block; padding: 11px 14px; font-size: .91rem; color: var(--fg-soft);
  border-bottom: 1px solid transparent; margin: 0;
}
.navmenu a::after { display: none; }
.navmenu a:hover { background: var(--surface); color: var(--fg); }
.navmenu .nmhead {
  display: block; padding: 8px 14px 10px; font-size: .74rem; letter-spacing: .1em;
  color: var(--fg-mute); border-bottom: 1px solid var(--hairline); margin-bottom: 4px;
}
.navmenu a b { display: block; font-weight: 500; color: inherit; }
.navmenu a i { font-style: normal; font-size: .78rem; color: var(--fg-mute); }

@media (max-width: 680px) {
  .navmenu { display: none; }
  .navdrop > a::before { display: none; }
}

/* ============================================================
   الوضع الداكن الكامل — يلغي الخلفية البيضاء
   ثلاث درجات داكنة تحفظ تناوب الأقسام:
   void ‏#05101a ← deep ‏#08192a ← surface ‏#0d2436
   للتراجع: احذف هذه الكتلة كاملة.
   ============================================================ */
:root {
  --paper:    #08192a;
  --paper-2:  #0d2436;
  --ink:      #eef6fb;
  --ink-soft: #a8c2d4;
  --rule:     #1c3d57;
}

body { background: var(--void); }

.band.paper { background: var(--deep); }
.band.tint  { background: var(--surface); border-block-color: var(--hairline); }
.band.dark  { background: var(--void); border-block-color: var(--hairline); }

/* رفع وزن النصوص الصغيرة: الخط الخفيف على الداكن يتعب العين */
ul.ticks li, .cell p, .card p, .cov li, .kstep .katt, .kstep .kus,
.rlist li span, .qrow, .hours li, .acard p, ol.steps p, .tbl td, .tbl th,
.qwhy, .recl, .interlock, .disclose { font-weight: 400; }

.lede { color: var(--fg-soft); }
h2, h3 { color: var(--fg); }

/* حواف وبطاقات على الداكن */
.grid { background: var(--hairline); border-color: var(--hairline); }
.cell { background: var(--deep); }
.cell:hover { background: var(--surface); }
.band.tint .cell { background: var(--surface); }
.band.tint .cell:hover { background: #12303f; }
.card { background: var(--surface); border-color: var(--hairline); }
.qrow { background: var(--deep); border-color: var(--hairline); color: var(--fg-soft); }
.qrow:hover { background: #10293d; color: var(--fg); }
.tbl th { background: var(--surface); color: var(--fg); }
.tbl th, .tbl td { border-color: var(--hairline); color: var(--fg-soft); }
.disclose { background: var(--surface); border-color: var(--hairline); border-inline-start-color: var(--signal); color: var(--fg-soft); }
.disclose strong { color: var(--fg); }
.interlock { border-color: var(--hairline); color: var(--fg-soft); }
.interlock b { color: var(--fg); }
ol.steps { background: var(--hairline); border-color: var(--hairline); }
ol.steps li { background: var(--deep); }
.band.tint ol.steps li { background: var(--surface); }
.qprogress, .qcard, .rhead, .qopt { border-color: var(--hairline); }
.qcard { background: var(--surface); }
.rtrack { background: var(--hairline); }
.eyebrow { color: var(--signal); }
.eyebrow::before { background: currentColor; }
.rfill, .rlist li::before, .cell .ico, .pillar .cell .more, .svc .num,
ol.steps li::before, .mode, .toc a::before, .rscore strong { color: var(--signal); }
ul.ticks li::before { background: var(--signal); }
.mode { border-color: var(--hairline); }
.toc a { color: var(--fg-soft); border-color: var(--hairline); }
.toc a:hover { color: var(--fg); }
.toc h4 { color: var(--fg-mute); }
.svc { border-color: var(--hairline); }
.svc h3, .rbartop b { color: var(--fg); }
.svc > p, .rbartop { color: var(--fg-soft); }
.btn.ghost, .band.paper .btn.ghost, .band.tint .btn.ghost { color: var(--fg); border-color: var(--hairline); }
.btn.ghost:hover, .band.paper .btn.ghost:hover, .band.tint .btn.ghost:hover { background: rgba(255,255,255,.06); border-color: var(--fg-mute); color: var(--fg); }
.noscript-note { border-color: var(--hairline); color: var(--fg-soft); }
.hours li { border-bottom-color: var(--hairline); color: var(--fg-soft); }
.hours li b { color: var(--fg); }
.acard .acount, .acard .atag, .acard .awho { color: var(--fg-mute); border-color: var(--hairline); }
.qhint, .qlink { color: var(--fg-mute); }
.reci { background: var(--surface); border-color: var(--hairline); }

/* ============================================================
   ضبط الجوال: قائمة بصف واحد يُسحب، ومساحات لمس أكبر
   ============================================================ */
@media (max-width: 680px) {
  nav.main {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    gap: 4px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
  }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a {
    flex: 0 0 auto;
    padding: 12px 10px;      /* ارتفاع لمس 44px */
    font-size: .9rem;
    scroll-snap-align: start;
  }
  nav.main a::after { bottom: 6px; }
  nav.main a.cta { display: inline-block; padding: 10px 16px; margin-inline-start: 6px; }
  .site-header .wrap { padding-block: 10px; gap: 8px; }

  /* مساحات لمس أكبر في بقية الروابط */
  .pillar .cell .more, .toc a, .site-footer a, .crumbs a { padding-block: 6px; }
  .qrow { padding: 17px 16px; }
  .btn { padding: 15px 26px; }
}

/* ============================================================
   قائمة الجوال: أيقونة تفتح قائمة الصفحات — بلا جافاسكربت
   ============================================================ */
.mnav { display: contents; }
.mbtn { display: none; }
.mtoggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

@media (max-width: 680px) {
  .site-header { position: relative; z-index: 80; }
  .site-header .wrap { position: relative; flex-wrap: nowrap; padding-block: 12px; }

  .mnav { display: block; }

  .mbtn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px; cursor: pointer;
    border: 1px solid var(--hairline);
    transition: border-color .2s var(--ease), background .2s var(--ease);
  }
  .mbtn span {
    display: block; height: 1.5px; background: var(--fg);
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  .mtoggle:focus-visible + .mbtn { outline: 2px solid var(--signal); outline-offset: 3px; }
  .mtoggle:checked + .mbtn { border-color: var(--signal); background: var(--signal-gl); }
  .mtoggle:checked + .mbtn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .mtoggle:checked + .mbtn span:nth-child(2) { opacity: 0; }
  .mtoggle:checked + .mbtn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* لوح القائمة */
  .mnav > nav.main { display: none; }
  .mtoggle:checked ~ nav.main {
    position: absolute; top: calc(100% + 12px); inset-inline: 0; z-index: 90;
    display: flex; flex-direction: column; gap: 0; overflow-y: auto;
    background: var(--deep); border: 1px solid var(--hairline);
    padding: 6px; margin: 0;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    max-height: calc(100vh - 110px); overscroll-behavior: contain;
  }
  .mnav nav.main > a {
    display: block; width: 100%; padding: 14px 16px; font-size: .96rem;
    border-bottom: 1px solid var(--hairline); color: var(--fg-soft);
  }
  .mnav nav.main > a:last-of-type { border-bottom: 0; }
  .mnav nav.main > a::after { display: none; }
  .mnav nav.main > a[aria-current="page"] { color: var(--signal); }
  .mnav nav.main > a:hover { background: var(--surface); color: var(--fg); }

  /* التقييمات داخل اللوح */
  .navdrop { display: block; position: static; }
  .navdrop > a {
    display: block; padding: 14px 16px; font-size: .96rem; color: var(--fg);
    border-bottom: 1px solid var(--hairline);
  }
  .navdrop > a::before { display: none; }
  .navmenu {
    display: block; position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; padding: 0; min-width: 0; box-shadow: none;
  }
  .navmenu::before { display: none; }
  .navmenu .nmhead { padding: 12px 16px 6px; border-bottom: 0; }
  .navmenu a { padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
  .navmenu a:last-child { border-bottom: 0; }
  .navmenu a b { font-size: .93rem; }
  .navmenu a i { font-size: .76rem; }
}
