/* الاتصال القريب — تصميم الموقع (2026)
   الأسلوب: داكن رسمي بهوية الشركة (أزرق الشعار ← تركوازي)، مع وضع فاتح كامل.
   الألوان الأساسية والخط ونصف القطر تأتي من لوحة التحكم عبر --brand و--accent و--font و--r. */

:root {
  --brand: #026FA1; --accent: #19B3A2;
  --font: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif; --font-h: var(--font); --r: 16px;
  /* فاتح */
  --bg: #f4f7fa; --surface: #ffffff; --surface-2: #edf3f7; --line: #d9e4eb; --line-2: #c6d6e0;
  --ink: #0a2230; --muted: #526b7a; --hi: color-mix(in oklab, var(--brand) 88%, black);
  --brand-soft: color-mix(in oklab, var(--brand) 10%, transparent); --tile: #ffffff;
  --shadow: 0 1px 2px rgb(10 34 48 / .06), 0 12px 32px -16px rgb(10 34 48 / .18);
  --glow: color-mix(in oklab, var(--brand) 22%, transparent);
  --dot: color-mix(in oklab, var(--brand) 26%, transparent);
  --hdr-bg: color-mix(in oklab, var(--bg) 82%, transparent);
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px); --pad: clamp(56px, 8vw, 104px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06141d; --surface: #0b2130; --surface-2: #0d2636; --line: #1a3a4f; --line-2: #24506a;
    --ink: #e8f3f8; --muted: #93b1c0; --hi: color-mix(in oklab, var(--accent) 78%, white);
    --brand-soft: color-mix(in oklab, var(--brand) 22%, transparent); --tile: #f2f7f9;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -20px rgb(0 0 0 / .7);
    --glow: color-mix(in oklab, var(--accent) 26%, transparent);
    --dot: color-mix(in oklab, var(--accent) 22%, transparent);
    --hdr-bg: color-mix(in oklab, var(--bg) 78%, transparent);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06141d; --surface: #0b2130; --surface-2: #0d2636; --line: #1a3a4f; --line-2: #24506a;
  --ink: #e8f3f8; --muted: #93b1c0; --hi: color-mix(in oklab, var(--accent) 78%, white);
  --brand-soft: color-mix(in oklab, var(--brand) 22%, transparent); --tile: #f2f7f9;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -20px rgb(0 0 0 / .7);
  --glow: color-mix(in oklab, var(--accent) 26%, transparent);
  --dot: color-mix(in oklab, var(--accent) 22%, transparent);
  --hdr-bg: color-mix(in oklab, var(--bg) 78%, transparent);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hi); text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: 0; }
h1 { font-weight: 800; } h2 { font-weight: 800; } h3 { font-weight: 700; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .arr { transform: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
bdi { unicode-bidi: isolate; }

/* ---------- أزرار ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, background-color .2s, border-color .2s; position: relative; overflow: hidden; white-space: nowrap; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .95rem; }
.btn-primary { color: #fff; background: linear-gradient(120deg, var(--brand), color-mix(in oklab, var(--brand) 45%, var(--accent)) 60%, var(--accent)); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary .arr { transition: transform .25s ease; }
.btn-primary:hover .arr { transform: translateX(-4px); }
[dir="ltr"] .btn-primary:hover .arr { transform: translateX(4px); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); transform: translateY(-2px); }
.btn-link { color: var(--hi); padding: 0; min-height: auto; }
.iconbtn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; font-weight: 700; font-size: .9rem; transition: border-color .2s, transform .2s; }
.iconbtn:hover { border-color: var(--line-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--hi); font-size: .9rem; font-weight: 600; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: transparent; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.site-header.scrolled, .site-header.solid { background: var(--hdr-bg); border-bottom-color: var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.hdr { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 42px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
.nav { display: flex; gap: 2px; margin-inline: auto; min-width: 0; overflow: hidden; padding: 5px; border: 1px solid var(--line); background: color-mix(in oklab, var(--surface) 70%, transparent); border-radius: 999px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 7px 13px; border-radius: 999px; transition: color .2s, background-color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--hi); background: var(--brand-soft); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; } :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; } }
.menu-toggle { display: none; }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; inset-inline: var(--gutter); top: calc(100% + 6px); flex-direction: column; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 1.05rem; }
  .hdr { position: relative; }
  .hdr-actions { margin-inline-start: auto; }
}
.site-header.compact .menu-toggle { display: inline-grid; }
.site-header.compact .nav { display: none; position: absolute; inset-inline: var(--gutter); top: calc(100% + 6px); flex-direction: column; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.site-header.compact .nav.open { display: flex; }
.site-header.compact .nav a { padding: 12px 16px; font-size: 1.05rem; }
.site-header.compact .hdr { position: relative; }
.site-header.compact .hdr-actions { margin-inline-start: auto; }
@media (max-width: 560px) { .hdr-cta { display: none; } .brand img { height: 36px; } }

/* ---------- أقسام ---------- */
.blk { padding-block: var(--pad); position: relative; }
.blk + .blk:not(.tone-alt):not(.blk-cta):not(.page-hero):not(.tone-alt-auto) { padding-top: calc(var(--pad) * .55); }
.tone-alt, .tone-alt-auto { background: var(--surface-2); border-block: 1px solid var(--line); }
.blk-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.blk-head.center { margin-inline: auto; text-align: center; }
.blk-head h2, .textblock h2, .split h2, .callout h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.5rem); }
.blk-head .lead, .page-hero .lead { color: var(--muted); font-size: 1.12rem; margin-top: 12px; }
.narrow .wrap > * { max-width: 860px; }
.prose { color: var(--ink); }
.prose p, .prose li { color: color-mix(in oklab, var(--ink) 82%, var(--muted)); }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-block: .35em; }
.prose li::marker { color: var(--accent); }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; } .prose h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-inline-start: 3px solid var(--accent); background: var(--surface); border-radius: 10px; }
.textblock h2 { margin-bottom: 14px; }

/* ---------- الواجهة ---------- */
.hero { padding-block: clamp(88px, 13vw, 156px) clamp(72px, 10vw, 120px); overflow: hidden; }
.hero .net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.net-bg { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000 0%, transparent 70%); }
[dir="ltr"] .net-bg { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 0%, transparent 70%); }
.no-pattern .net-bg, .no-pattern .net { display: none; }
.hero::after { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; inset-inline-end: -18vw; top: -24vw; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; }
.hero .pill { margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.4rem); line-height: 1.18; }
.hero h1 em, .page-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--hi), color-mix(in oklab, var(--accent) 70%, var(--hi))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--muted); font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); margin-top: 20px; max-width: 660px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 32px 0 0; border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); background: color-mix(in oklab, var(--surface) 80%, transparent); backdrop-filter: blur(6px); max-width: 760px; }
.facts div { padding: 16px 20px; border-inline-start: 1px solid var(--line); min-width: 0; }
.facts div:first-child { border-inline-start: 0; }
.facts dt { color: var(--muted); font-size: .86rem; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 800; font-size: 1.08rem; font-family: var(--font-h); }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(odd) { border-inline-start: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); margin-top: 14px; }
.page-hero .lead { max-width: 760px; font-size: 1.15rem; }
.page-hero .pill { margin-top: 10px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 14px; height: 14px; opacity: .6; }

/* ---------- بطاقات المنتجات ---------- */
.roll { overflow: hidden; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.roll-track { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; width: max-content; animation: roll var(--dur, 60s) linear infinite; }
.roll:hover .roll-track, .roll:focus-within .roll-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(50%); } }
[dir="ltr"] .roll-track { animation-name: roll-ltr; }
@keyframes roll-ltr { to { transform: translateX(-50%); } }
.roll .pcard { width: 290px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pgrid > div { display: grid; }
.pcard { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; }
.pcard:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: 0 22px 44px -24px var(--glow), var(--shadow); }
.pc-top { height: 176px; display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 0%, var(--brand-soft), transparent 70%), var(--surface-2); border-bottom: 1px solid var(--line); }
.pc-body { padding: 20px 22px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-tag { color: var(--hi); font-size: .82rem; font-weight: 700; }
.pcard h3 { font-size: 1.22rem; }
.pcard p { color: var(--muted); font-size: .97rem; line-height: 1.75; margin: 0; }
.pc-more { display: inline-flex; align-items: center; gap: 6px; padding: 14px 22px 20px; color: var(--hi); font-weight: 700; font-size: .95rem; }
.pc-more .icon { transition: transform .25s; } .pcard:hover .pc-more .icon { transform: translateX(-4px); } [dir="ltr"] .pcard:hover .pc-more .icon { transform: translateX(4px); }
.mark { display: inline-grid; place-items: center; }
.mark.icon { width: 60px; height: 60px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 12px 26px -12px var(--glow); }
.mark.icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.mark.logo img { height: 52px; max-width: 180px; width: auto; object-fit: contain; }
.mark .m-dark { display: none; }
:root[data-theme="dark"] .mark .m-light { display: none; } :root[data-theme="dark"] .mark .m-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark .m-light { display: none; } :root:not([data-theme="light"]) .mark .m-dark { display: block; } }
.mark.plated { padding: 10px 16px; border-radius: 12px; background: var(--tile); }
.mark.big.icon { width: 120px; height: 120px; border-radius: 32px; } .mark.big.icon .icon { width: 54px; height: 54px; }
.mark.big.logo img { height: 110px; max-width: 280px; }

/* ---------- عناصر المحتوى ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chips li { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .98rem; transition: border-color .2s, color .2s; }
.chips li:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); color: var(--hi); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .steps.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps li { position: relative; padding: 26px 20px 8px 18px; border-inline-start: 1px solid var(--line); min-width: 0; }
.steps li:first-child { border-inline-start: 0; }
.steps li::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: right; transition: transform .7s ease calc(var(--i, 0) * 120ms); }
[dir="ltr"] .steps li::before { transform-origin: left; }
.steps li.in::before, .no-motion .steps li::before, html:not(.js) .steps li::before { transform: scaleX(1); }
.steps .num { display: block; color: var(--hi); font-family: var(--font-h); font-weight: 800; font-size: .95rem; margin-bottom: 10px; }
.steps b { display: block; font-family: var(--font-h); font-size: 1.22rem; margin-bottom: 6px; }
.steps span:not(.num) { color: var(--muted); font-size: .98rem; line-height: 1.75; }
@media (max-width: 980px) { .steps, .steps.n4, .steps.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:nth-child(odd) { border-inline-start: 0; } .steps li { border-bottom: 1px solid var(--line); padding-bottom: 22px; } }
@media (max-width: 520px) { .steps, .steps.n4, .steps.n6, .steps.n2 { grid-template-columns: 1fr; } .steps li { border-inline-start: 0; } }
.fgrid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fgrid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .fgrid, .fgrid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fgrid, .fgrid.c2, .fgrid.c4 { grid-template-columns: 1fr; } }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; transition: transform .3s ease, border-color .3s; }
.fcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.fcard h3 { font-size: 1.14rem; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: .98rem; line-height: 1.8; margin: 0; }
.fic, .fnum { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 16px; color: var(--hi); background: var(--brand-soft); border: 1px solid color-mix(in oklab, var(--brand) 25%, var(--line)); }
.fnum { font-family: var(--font-h); font-weight: 800; font-size: 1.15rem; border-radius: 50%; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.8; }
.checks .icon { width: 22px; height: 22px; margin-top: 4px; padding: 3px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); stroke-width: 3; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split .blk-head { margin-bottom: 22px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.shots { display: grid; gap: 16px; }
.shots.wide { margin-bottom: 28px; max-width: 940px; }
.shots.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shots.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .shots.n2, .shots.n3 { grid-template-columns: 1fr; } }
.shot { margin: 0; padding: 8px; border-radius: calc(var(--r) + 4px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: calc(var(--r) - 4px); overflow: hidden; }
.zoom img { width: 100%; transition: transform .5s ease; }
.zoom:hover img { transform: scale(1.02); }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.gal figure { margin: 0; padding: 6px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.gal figure:hover { transform: translateY(-3px); border-color: var(--line-2); }
.gal img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.callout { display: flex; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--r) + 6px); background: radial-gradient(120% 140% at 100% 0%, var(--brand-soft), transparent 60%), var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.callout::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: linear-gradient(var(--brand), var(--accent)); }
.callout .q { width: 36px; height: 36px; color: var(--hi); flex: none; opacity: .8; }
.callout h2 { margin-bottom: 10px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; font-size: .95rem; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s; color: var(--hi); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .prose { padding-bottom: 16px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stats div { padding: 24px; border-inline-start: 1px solid var(--line); }
.stats div:first-child { border-inline-start: 0; }
.stats dd { margin: 0; font-family: var(--font-h); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); background: linear-gradient(100deg, var(--hi), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dt { color: var(--muted); font-size: .95rem; }

/* ---------- الشعارات ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 14px; list-style: none; margin: 0; padding: 4px 0; width: max-content; animation: roll var(--dur, 50s) linear infinite; }
[dir="ltr"] .marquee .track { animation-name: roll-ltr; }
.marquee:hover .track { animation-play-state: paused; }
.marquee li, .logo-grid li { width: 168px; height: 96px; display: grid; place-items: center; padding: 16px 22px; border-radius: var(--r); background: var(--tile); border: 1px solid var(--line); flex: none; }
.marquee img, .logo-grid img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-grid li { width: auto; }

/* ---------- المدوّنة ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .3s, border-color .3s; }
.post-card a:hover { transform: translateY(-4px); border-color: var(--line-2); }
.post-cover { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-ph .icon { width: 40px; height: 40px; color: var(--muted); }
.post-meta { padding: 18px 20px 0; color: var(--hi); font-size: .85rem; font-weight: 700; }
.post-card h3 { padding: 6px 20px 0; font-size: 1.2rem; }
.post-card p { padding: 8px 20px 0; color: var(--muted); font-size: .97rem; margin: 0; }
.post-more { margin-top: auto; padding: 16px 20px 20px; color: var(--hi); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.post-empty { color: var(--muted); }
.more-link { margin-top: 26px; }
.article { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); }
.article-cover { margin: 0 0 28px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.article-body { margin-bottom: 30px; font-size: 1.1rem; }
.case-facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.case-facts div { padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.case-facts dt { color: var(--muted); font-size: .85rem; } .case-facts dd { margin: 0; font-weight: 700; }

/* ---------- الدعوة للتواصل ---------- */
.blk-cta { padding-block: calc(var(--pad) * .7) var(--pad); }
.cta-box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--r) * 1.6); background: var(--surface); border: 1px solid var(--line); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 0% 0%, var(--brand-soft), transparent 70%), radial-gradient(50% 120% at 100% 100%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box > div:not(.cta-glow) { max-width: 640px; }
.cta-box h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.cta-box .lead { color: var(--muted); margin-top: 10px; font-size: 1.08rem; }
.cta-box .btns { margin-top: 0; }

/* ---------- التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.form h2 { font-size: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent); }
.hp { position: absolute; inset-inline-start: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.consent input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--brand); }
.form .btn { justify-self: start; }
.form-status { padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); margin: 0; }
.form-note { color: var(--muted); font-size: .9rem; margin: 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 26px; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-card li { display: flex; gap: 14px; align-items: flex-start; }
.contact-card li > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--hi); }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card a { color: var(--ink); text-decoration: none; font-weight: 600; }

/* ---------- صفحة المنتج ---------- */
.pd-hero { padding-bottom: clamp(48px, 7vw, 80px); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 18px; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pd-id .mark.icon { width: 48px; height: 48px; border-radius: 14px; } .pd-id .mark.icon .icon { width: 22px; height: 22px; }
.pd-id .mark.logo img { max-height: 40px; }
.pd-hero h1 { margin-top: 16px; }
.pd-kind { color: var(--hi); font-weight: 700; font-size: 1.15rem; margin: 10px 0 0; }
.pd-hero .lead { margin-top: 14px; }
.pd-cover { margin: 0; padding: 8px; border-radius: calc(var(--r) + 6px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pd-mark { display: grid; place-items: center; min-height: 280px; border-radius: calc(var(--r) * 1.6); background: radial-gradient(70% 70% at 50% 40%, var(--brand-soft), transparent 70%), var(--surface); border: 1px solid var(--line); }
.toc { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--hdr-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toc ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; border: 1px solid transparent; transition: color .2s, background-color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--hi); background: var(--brand-soft); border-color: color-mix(in oklab, var(--brand) 30%, transparent); }
.pd-body .blk:nth-child(even) { background: var(--surface-2); border-block: 1px solid var(--line); }
.pd-body .blk { overflow: hidden; }
.pd-body .blk { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- إطارات الصور والمعرض ---------- */
.frame { margin: 0; border-radius: calc(var(--r) + 2px); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -34px rgb(0 0 0 / .55), var(--shadow); overflow: hidden; min-width: 0; position: relative; }
.fbar { display: flex; gap: 6px; align-items: center; height: 30px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); direction: ltr; }
.fbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.fbar i:first-child { background: #ff5f57; opacity: .8; } .fbar i:nth-child(2) { background: #febc2e; opacity: .8; } .fbar i:nth-child(3) { background: #28c840; opacity: .8; }
.frame .zoom { border-radius: 0; }
.frame img { width: 100%; display: block; }
.media { position: relative; }
.media::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1; filter: blur(10px); }
.split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split.rev > :first-child { order: 0; } }
.split.feat { align-items: start; }
.split.feat .media { position: sticky; top: 150px; }
.fgrid.compact { gap: 12px; }
.fgrid.compact .fcard { padding: 18px 18px 16px; }
.fgrid.compact .fcard h3 { font-size: 1.04rem; margin-bottom: 6px; }
.fgrid.compact .fcard p { font-size: .94rem; line-height: 1.75; }
.fdot { display: block; width: 26px; height: 4px; border-radius: 4px; margin-bottom: 14px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.steps.vert { grid-template-columns: 1fr !important; border-top: 0; }
.steps.vert li { border-inline-start: 0; border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
.steps.vert li::before { display: none; }
.steps.vert .num { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); margin: 0; }
.slider { display: grid; gap: 12px; }
.stage { position: relative; }
.stage .frame img { aspect-ratio: 16 / 9.4; object-fit: contain; background: var(--surface-2); transition: opacity .35s ease; }
.stage .frame img.fading { opacity: 0; }
.sl-btn { position: absolute; top: calc(50% + 15px); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(6px); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; z-index: 2; }
.sl-btn:hover { border-color: var(--accent); transform: translateY(-50%) scale(1.06); }
.sl-prev { inset-inline-start: -14px; } .sl-next { inset-inline-end: -14px; }
@media (max-width: 700px) { .sl-prev { inset-inline-start: 8px; } .sl-next { inset-inline-end: 8px; } }
.sl-count { position: absolute; bottom: 12px; inset-inline-end: 12px; padding: 4px 12px; border-radius: 999px; background: rgb(3 14 20 / .72); color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; direction: ltr; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.thumb { flex: none; width: 104px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb:hover { opacity: .9; } .thumb.on { opacity: 1; border-color: var(--accent); }
.gallery-wrap { max-width: 1040px; margin-inline: auto; }

/* ---------- واجهة صفحة المنتج ---------- */
.pd-visual { position: relative; padding: 18px 0 44px; perspective: 1400px; }
.pd-visual .pd-main { transform: rotateY(9deg) rotateX(3deg); transform-origin: left center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
[dir="ltr"] .pd-visual .pd-main { transform: rotateY(-9deg) rotateX(3deg); transform-origin: right center; }
.pd-visual:hover .pd-main { transform: none; }
.pd-visual .pd-float { position: absolute; width: 46%; bottom: 0; inset-inline-end: -4%; transform: translateY(0); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); animation: floaty 7s ease-in-out infinite; }
.pd-visual .pd-float .fbar { height: 20px; } .pd-visual .pd-float .fbar i { width: 7px; height: 7px; }
.pd-visual .pd-float img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.pd-orb { position: absolute; inset: -10% -6% 0; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 70%); z-index: -1; pointer-events: none; }
.pd-chip { position: absolute; top: 0; inset-inline-start: -14px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 16px; background: color-mix(in oklab, var(--surface) 90%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 2; max-width: 70%; }
.pd-chip .mark.icon { width: 38px; height: 38px; border-radius: 11px; } .pd-chip .mark.icon .icon { width: 18px; height: 18px; }
.pd-chip .mark.logo img { height: 28px; max-width: 90px; } .pd-chip .mark.plated { padding: 6px 8px; }
.pd-chip b { display: block; font-size: .95rem; line-height: 1.3; } .pd-chip small { color: var(--hi); font-size: .78rem; font-weight: 600; }
.pd-visual.art { min-height: 320px; display: grid; place-items: center; }
.pd-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pd-rings i { position: absolute; border-radius: 50%; border: 1px dashed color-mix(in oklab, var(--accent) 40%, transparent); }
.pd-rings i:nth-child(1) { width: 200px; height: 200px; } .pd-rings i:nth-child(2) { width: 290px; height: 290px; opacity: .6; } .pd-rings i:nth-child(3) { width: 380px; height: 380px; opacity: .3; }
html.js.motion .pd-rings i:nth-child(2) { animation: spin 40s linear infinite; } html.js.motion .pd-rings i:nth-child(3) { animation: spin 70s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .pd-visual .pd-main { transform: none !important; } .pd-chip { inset-inline-start: 6px; } .pd-visual .pd-float { inset-inline-end: 4px; } }
@media (prefers-reduced-motion: reduce) { .pd-visual .pd-float, .pd-rings i { animation: none !important; } }
.pc-top.has-cover { position: relative; height: 176px; padding: 14px; display: block; overflow: hidden; background: var(--surface-2); }
.pc-cover { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .5); transition: transform .6s ease; }
.pcard:hover .pc-cover { transform: scale(1.03); }
.pc-badge { position: absolute; top: 22px; inset-inline-start: 22px; }
.pc-badge .mark.icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow); } .pc-badge .mark.icon .icon { width: 17px; height: 17px; }
.pc-badge .mark.logo { background: var(--tile); padding: 5px 9px; border-radius: 9px; box-shadow: var(--shadow); } .pc-badge .mark .m-dark { display: none !important; } .pc-badge .mark .m-light { display: block !important; }
.pc-badge .mark.logo img { height: 24px; max-width: 80px; }

/* ---------- الفوتر ---------- */
.site-footer { margin-top: 0; padding: 64px 0 calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--surface-2); border-top: 1px solid var(--line); font-size: .97rem; }
.fgrid-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
@media (max-width: 900px) { .fgrid-top { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fgrid-top { grid-template-columns: 1fr; } }
.fbrand p { color: var(--muted); margin: 16px 0; max-width: 380px; }
.fbrand .brand img { height: 44px; }
.fcol h3 { font-size: 1rem; margin-bottom: 14px; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fcol a { color: var(--muted); text-decoration: none; transition: color .2s; }
.fcol a:hover { color: var(--hi); }
.fcontact li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.fcontact .icon { margin-top: 5px; color: var(--hi); width: 18px; height: 18px; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: color .2s, border-color .2s, transform .2s; }
.social a:hover { color: var(--hi); border-color: var(--line-2); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.fbottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.wa-fab { position: fixed; z-index: 40; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 14px 30px -12px rgb(16 120 60 / .7); transition: transform .2s; }
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .wa-fab span { display: none; } .wa-fab { padding: 13px; } }

/* ---------- عارض الصور ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 56px 64px; background: rgb(3 12 18 / .92); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); border-radius: 12px; box-shadow: 0 30px 60px rgb(0 0 0 / .5); }
.lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close { top: 14px; inset-inline-end: 14px; } .lb-prev { inset-inline-start: 12px; top: 50%; } .lb-next { inset-inline-end: 12px; top: 50%; }
@media (max-width: 600px) { .lightbox { padding: 64px 12px; } .lb-prev, .lb-next { top: auto; bottom: 12px; } }

/* ---------- الحركة ---------- */
html.js.motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
html.js.motion [data-reveal].in { opacity: 1; transform: none; }
html.js.motion .hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
html.js.motion .hero-copy > :nth-child(2) { animation-delay: .08s; } html.js.motion .hero-copy > :nth-child(3) { animation-delay: .16s; }
html.js.motion .hero-copy > :nth-child(4) { animation-delay: .24s; } html.js.motion .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.no-motion .roll-track, .no-motion .marquee .track { animation: none; }
.no-motion .roll, .no-motion .marquee { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) {
  html.js.motion [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js.motion .hero-copy > * { animation: none; }
  .roll-track, .marquee .track { animation: none; }
  .roll, .marquee { overflow-x: auto; }
  .btn, .pcard, .fcard { transition: none; }
  html { scroll-behavior: auto; }
}
@media print { .site-header, .wa-fab, .toc, .net, .net-bg { display: none !important; } }

/* =====================================================================
   الطبقة السينمائية: نواة الاتصال، الشفق، الإضاءة التفاعلية
   ===================================================================== */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* شفق متحرك خلف الواجهات */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; background: var(--brand); top: -22%; inset-inline-end: -8%; animation: drift1 22s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; background: var(--accent); bottom: -30%; inset-inline-end: 28%; opacity: .32; animation: drift2 26s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 26vw; height: 26vw; max-width: 420px; max-height: 420px; background: color-mix(in oklab, var(--brand) 55%, #6d5dfc); top: 20%; inset-inline-start: -10%; opacity: .22; animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-6vw, 6vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(8vw, -5vw) scale(.9); } }
:root:not([data-theme="dark"]) .aurora span { opacity: .18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aurora span:nth-child(1) { opacity: .5; } }
:root[data-theme="dark"] .aurora span:nth-child(1) { opacity: .5; }
.page-hero .aurora span:nth-child(1) { opacity: .35; } .page-hero .aurora span:nth-child(3) { display: none; }
.no-pattern .aurora { display: none; }

/* حبيبات خفيفة فوق الصفحة لملمس سينمائي */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root:not([data-theme="dark"]) .grain { opacity: .03; }
.no-motion .grain { display: none; }

/* شريط تقدّم القراءة */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 95; transform-origin: right; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--brand)); pointer-events: none; }
[dir="ltr"] .progress { transform-origin: left; }

/* الواجهة مع نواة الاتصال */
.hero.has-core { min-height: min(92vh, 900px); display: flex; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.hero.has-core .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero.has-core .core { order: 2; }
.hero.has-core .hero-copy { max-width: none; }
.hero.has-core .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.hero.has-core .facts div:nth-child(odd) { border-inline-start: 0; }
.hero.has-core .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (max-width: 980px) { .hero.has-core .wrap { grid-template-columns: 1fr; } .hero.has-core { min-height: 0; } .hero.has-core .core { max-width: 560px; margin-inline: auto; width: 100%; } }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.6rem); letter-spacing: -.005em; }
.hero h1 em { background-size: 220% 100%; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero h1 .w { display: inline-block; }
html.js.motion .hero h1 .w { animation: wordin .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordin { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.core { position: relative; width: 100%; aspect-ratio: 1 / .86; }
.core-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.core-orb { position: absolute; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; z-index: 5;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--accent) 60%, white), var(--brand) 55%, color-mix(in oklab, var(--brand) 60%, black));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 0 60px 10px color-mix(in oklab, var(--accent) 35%, transparent), 0 0 140px 40px color-mix(in oklab, var(--brand) 30%, transparent), inset 0 -18px 40px rgb(0 0 0 / .35); }
.core-orb img { width: 74%; height: auto; border-radius: 50%; filter: drop-shadow(0 6px 16px rgb(0 0 0 / .35)); position: relative; z-index: 2; }
.core-halo { position: absolute; inset: -18%; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent); animation: halo 3.6s ease-out infinite; }
.core-ring { position: absolute; inset: -9%; border-radius: 50%; padding: 2px; background: conic-gradient(from var(--ang), transparent 0 55%, var(--accent) 75%, #fff 80%, transparent 85%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ang 5s linear infinite; }
@keyframes halo { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes ang { to { --ang: 360deg; } }
.core-node { position: absolute; transform: translate(-50%, -50%) scale(var(--s, 1)); display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem;
  background: color-mix(in oklab, var(--surface) 72%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .55); opacity: var(--o, 1); z-index: var(--z, 3); transition: border-color .2s, box-shadow .2s; will-change: transform, left, top; }
[dir="ltr"] .core-node { padding: 6px 6px 6px 14px; }
.core-node:hover { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent), 0 10px 30px -12px rgb(0 0 0 / .55); }
.cn-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); flex: none; }
.cn-ic .icon { width: 15px; height: 15px; }
.cn-ic.logo { background: var(--tile); } .cn-ic.logo img { width: 22px; height: 22px; object-fit: contain; }
@media (max-width: 600px) { .core-node { font-size: .74rem; padding: 4px 10px 4px 4px; gap: 6px; } .cn-ic { width: 22px; height: 22px; } .cn-ic .icon { width: 12px; height: 12px; } }

/* إضاءة تتبع المؤشر وحدود متوهجة على البطاقات */
.pcard, .fcard, .post-card a, .contact-card, .form { position: relative; isolation: isolate; }
.pcard::before, .fcard::before, .post-card a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pcard::after, .fcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%); }
.pcard:hover::before, .fcard:hover::before, .post-card a:hover::before, .pcard:hover::after, .fcard:hover::after { opacity: 1; }
html.js.motion .pcard { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .25s ease-out, border-color .3s, box-shadow .3s; }
html.js.motion .pcard:hover { --ty: -6px; }

/* دعوة التواصل: حد ضوئي يدور */
.cta-box { border-color: transparent; background: radial-gradient(60% 120% at 0% 0%, var(--brand-soft), transparent 70%), var(--surface); }
.cta-box::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--line) 0 60%, var(--accent) 75%, var(--brand) 85%, var(--line) 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ang 7s linear infinite; }

/* خط المراحل: نبضة ضوء تسري */
.steps:not(.vert) { position: relative; }
.steps:not(.vert)::after { content: ""; position: absolute; top: -2px; width: 120px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: travel 6s linear infinite; inset-inline-start: 0; }
@keyframes travel { from { inset-inline-start: -120px; } to { inset-inline-start: 100%; } }
@media (max-width: 980px) { .steps:not(.vert)::after { display: none; } }

/* عناوين الأقسام */
.blk-head h2 { position: relative; padding-bottom: 14px; }
.blk-head h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.blk-head.center h2::after { inset-inline-start: calc(50% - 28px); }
html.js.motion [data-reveal].blk-head h2::after { transform: scaleX(0); transform-origin: right; transition: transform .9s .25s cubic-bezier(.2,.7,.2,1); }
html.js.motion [data-reveal].blk-head.in h2::after { transform: scaleX(1); }

/* توقيع الفوتر */
.site-footer { position: relative; overflow: hidden; }
.f-wordmark { position: absolute; bottom: -0.18em; inset-inline: 0; text-align: center; font-family: var(--font-h); font-weight: 800; font-size: clamp(56px, 11vw, 170px); letter-spacing: .04em; line-height: 1; white-space: nowrap; direction: ltr;
  color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--accent) 22%, transparent); pointer-events: none; user-select: none; }
.site-footer .wrap { position: relative; z-index: 1; }
.site-footer { padding-bottom: calc(clamp(56px, 9vw, 140px) + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  .aurora span, .core-halo, .core-ring, .cta-box::after, .steps::after, .hero h1 em { animation: none !important; }
  html.js.motion .pcard { transform: none; }
}
.no-motion .aurora span, .no-motion .core-halo, .no-motion .core-ring, .no-motion .cta-box::after, .no-motion .steps::after, .no-motion .hero h1 em { animation: none !important; }

.hero.has-core .net { display: none; }
html.js.motion .hero h1 em { display: inline-block; animation: sheen 7s ease-in-out infinite, emin 1.1s .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes emin { from { opacity: 0; transform: translateY(.3em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@media (min-width: 981px) { .hero.has-core .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero.has-core h1 { font-size: clamp(2.1rem, 1rem + 3.1vw, 3.7rem); }
.hero.has-core .core { aspect-ratio: 1 / .92; }
@media (min-width: 981px) { .hero.has-core .core { margin-inline-end: calc(var(--gutter) * -0.6); } }
.core-orb { width: 27%; }
.core-node { font-size: .95rem; }
@media (max-width: 600px) { .core-node b { display: none; } .core-node, [dir="ltr"] .core-node { padding: 5px; } .cn-ic { width: 34px; height: 34px; } .cn-ic .icon { width: 17px; height: 17px; } .hero.has-core .core { aspect-ratio: 1 / .8; } }
