/* أحمد عمرو للبرمجيات — نظام التصميم المشترك (الإصدار الرابع)
   عائلة خط واحدة في كل الموقع: «ثمانية سيرف ديسبلاي» للعناوين والأرقام الكبيرة، و«ثمانية سانس» لباقي النصوص.
   وضعان: فاتح نظيف، وداكن «نيون». */
:root {
  --bg: #ffffff; --bg-2: #f4f6fb; --bg-3: #e9f0fc; --card: #ffffff;
  --ink: #0a1124; --ink-2: #2c374e; --ink-3: #4f5a72;
  --line: rgb(10 17 36 / .12); --line-2: rgb(10 17 36 / .2);
  --chip: #eef2f8; --chip-2: #e1e8f3;
  --acc: #8ab9ff; --acc-hover: #74a9ff; --acc-2: #dbeaff; --hlw: #c4dbff; --acc-deep: #082862; --acc-text: #1559c9; --on-acc: #0a1124;
  --brand: #1868e8; --ok: #12915a; --warn: #b4540a; --bad: #c43a2f;
  --nav-bg: rgb(255 255 255 / .88); --shadow: 0 30px 60px -38px rgb(10 17 36 / .35);
  --glow: none; --h-glow: none;
  --dark-bg: #0a0d14; --dark-ink: #f4ead4;
  --glass: rgb(255 255 255 / .55); --glass-sh: inset 0 1px 1px rgb(255 255 255 / .95), inset 0 -1px 1px rgb(10 17 36 / .05), 0 0 0 1px rgb(10 17 36 / .08), 0 10px 30px -16px rgb(10 17 36 / .35); --pill-bg: #082862; --pill-ink: #ffffff; --pill-glow: rgb(8 40 98 / .5); --tab-bg: #ffffff; --tab-line: #082862; --tab-cur: linear-gradient(135deg, #2a7af0, #1559c9); --tab-glow: rgb(24 104 232 / .7); --lg-bg: linear-gradient(180deg, rgb(255 255 255 / .66), rgb(255 255 255 / .5) 55%, rgb(255 255 255 / .58)); --lg-sh: 0 16px 40px -12px rgb(61 139 255 / .45), 0 6px 22px -10px rgb(168 85 247 / .3), 0 2px 8px rgb(0 0 0 / .06), inset 0 1.5px 1.5px rgb(255 255 255 / .94), inset 0 -1.5px 2px rgb(255 255 255 / .65), 0 0 0 1px rgb(0 0 0 / .06); --lg-rest: rgb(0 0 0 / .068);
  --foot-bg: #0b1a5c; --zoom-bg: #082862; --door-dim: 0; --door-neon: #1868e8; --door-neon-glow: 0 0 0 transparent;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px; --s7: 152px;
  --wrap: 1320px; --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1); --pop: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Thmanyah Serif", "Thmanyah", serif;
  --sans: "Thmanyah", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --brush: polygon(.6% 8%, 6% 0, 30% 5%, 58% 0, 86% 4%, 99.5% 0, 100% 46%, 99% 92%, 74% 100%, 46% 95%, 20% 100%, 1% 94%, 0 52%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #05070f; --bg-2: #0a0f1e; --bg-3: #0d1530; --card: #0a1022;
  --ink: #eef3ff; --ink-2: #c6d0e6; --ink-3: #9aa7c4;
  --line: rgb(120 160 255 / .16); --line-2: rgb(120 160 255 / .28);
  --chip: #0f1731; --chip-2: #17224a;
  --acc: #2f7bff; --acc-hover: #4a8dff; --acc-2: #0f1d45; --hlw: #1a3a80; --acc-deep: #8ab9ff; --acc-text: #7cb6ff; --on-acc: #ffffff;
  --brand: #3d8bff; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --nav-bg: rgb(5 7 15 / .8); --shadow: 0 30px 70px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(120 160 255 / .1);
  --glow: 0 0 32px rgb(47 123 255 / .45); --h-glow: 0 0 34px rgb(61 139 255 / .38);
  --dark-bg: #03050b; color-scheme: dark;
  --glass: rgb(16 26 56 / .5); --glass-sh: inset 0 1px 1px rgb(255 255 255 / .12), 0 0 0 1px rgb(120 160 255 / .2), 0 10px 30px -14px rgb(0 0 0 / .8); --pill-bg: #2f7bff; --pill-ink: #ffffff; --pill-glow: rgb(47 123 255 / .8); --tab-bg: #0a1022; --tab-line: #3d8bff; --tab-cur: linear-gradient(135deg, #4d9bff, #1f63f0); --tab-glow: rgb(61 139 255 / .9); --lg-bg: linear-gradient(180deg, rgb(30 44 86 / .62), rgb(14 22 48 / .5) 55%, rgb(22 34 70 / .58)); --lg-sh: 0 16px 40px -12px rgb(47 123 255 / .6), 0 6px 22px -10px rgb(168 85 247 / .4), 0 14px 36px -10px rgb(0 0 0 / .6), inset 0 1.5px 1.5px rgb(255 255 255 / .16), inset 0 -1.5px 2px rgb(255 255 255 / .06), 0 0 0 1px rgb(120 160 255 / .22); --lg-rest: rgb(77 155 255 / .16);
  --foot-bg: #040a22; --zoom-bg: #0a1f5c; --door-dim: .6; --door-neon: #4d9bff; --door-neon-glow: 0 0 18px #2f7bff, 0 0 60px rgb(47 123 255 / .6);
} }
:root[data-theme="dark"] {
  --bg: #05070f; --bg-2: #0a0f1e; --bg-3: #0d1530; --card: #0a1022;
  --ink: #eef3ff; --ink-2: #c6d0e6; --ink-3: #9aa7c4;
  --line: rgb(120 160 255 / .16); --line-2: rgb(120 160 255 / .28);
  --chip: #0f1731; --chip-2: #17224a;
  --acc: #2f7bff; --acc-hover: #4a8dff; --acc-2: #0f1d45; --hlw: #1a3a80; --acc-deep: #8ab9ff; --acc-text: #7cb6ff; --on-acc: #ffffff;
  --brand: #3d8bff; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --nav-bg: rgb(5 7 15 / .8); --shadow: 0 30px 70px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(120 160 255 / .1);
  --glow: 0 0 32px rgb(47 123 255 / .45); --h-glow: 0 0 34px rgb(61 139 255 / .38);
  --dark-bg: #03050b; color-scheme: dark;
  --glass: rgb(16 26 56 / .5); --glass-sh: inset 0 1px 1px rgb(255 255 255 / .12), 0 0 0 1px rgb(120 160 255 / .2), 0 10px 30px -14px rgb(0 0 0 / .8); --pill-bg: #2f7bff; --pill-ink: #ffffff; --pill-glow: rgb(47 123 255 / .8); --tab-bg: #0a1022; --tab-line: #3d8bff; --tab-cur: linear-gradient(135deg, #4d9bff, #1f63f0); --tab-glow: rgb(61 139 255 / .9); --lg-bg: linear-gradient(180deg, rgb(30 44 86 / .62), rgb(14 22 48 / .5) 55%, rgb(22 34 70 / .58)); --lg-sh: 0 16px 40px -12px rgb(47 123 255 / .6), 0 6px 22px -10px rgb(168 85 247 / .4), 0 14px 36px -10px rgb(0 0 0 / .6), inset 0 1.5px 1.5px rgb(255 255 255 / .16), inset 0 -1.5px 2px rgb(255 255 255 / .06), 0 0 0 1px rgb(120 160 255 / .22); --lg-rest: rgb(77 155 255 / .16);
  --foot-bg: #040a22; --zoom-bg: #0a1f5c; --door-dim: .6; --door-neon: #4d9bff; --door-neon-glow: 0 0 18px #2f7bff, 0 0 60px rgb(47 123 255 / .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.9; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; transition: background-color .4s, color .4s; }
@supports (overflow: clip) { body { overflow-x: clip; } }
html[lang="en"] body { line-height: 1.65; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
mark { background: none; color: inherit; }
bdi { unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--acc); color: var(--on-acc); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; inset-inline-start: var(--s2); top: -100px; z-index: 200; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; }
.skip:focus { top: var(--s2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--acc-text); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.lede { font-size: 19px; line-height: 1.85; max-width: 52ch; color: var(--ink-2); text-wrap: pretty; }
html[lang="en"] .lede { line-height: 1.6; }
.display { font-family: var(--serif); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; text-shadow: var(--h-glow); }
html[lang="en"] .display { letter-spacing: -.025em; line-height: 1.05; }

/* الفرشاة خلف الكلمة المميزة */
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; z-index: -1; top: 40%; right: -.08em; bottom: 4%; left: -.08em; background: var(--acc); clip-path: var(--brush); transform-origin: right; animation: brush .9s .45s var(--ease) both; box-shadow: var(--glow); }
html[dir="ltr"] .hl::before { transform-origin: left; }
.js .hl.wait::before { animation: none; transform: scaleX(0); }
.js .hl.go::before { animation: brush .9s .1s var(--ease) both; }
@keyframes brush { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== الأزرار ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; clip-path: var(--brush); font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; transition: background-color .25s, color .25s, transform .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
html[dir="ltr"] .btn svg.flip { transform: scaleX(-1); }
.btn:hover svg.go { transform: translateX(-4px); }
html[dir="ltr"] .btn:hover svg.go { transform: scaleX(-1) translateX(-4px); }
.btn--acc { background: var(--acc); color: var(--on-acc); }
.btn--acc:hover { background: var(--acc-hover); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--line { background: var(--chip); color: var(--ink); }
.btn--line:hover { background: var(--chip-2); }
.btn--wa { background: #25d366; color: #05220f; }
.btn--wa:hover { background: #1fbe5b; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
:root[data-theme="dark"] .btn--acc, :root[data-theme="dark"] .hl::before { background: linear-gradient(180deg, #4b95ff, #1f63f0); text-shadow: 0 0 14px rgb(160 200 255 / .65); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--acc, :root:not([data-theme="light"]) .hl::before { background: linear-gradient(180deg, #4b95ff, #1f63f0); text-shadow: 0 0 14px rgb(160 200 255 / .65); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== الهيدر ===== */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 60; background: var(--nav-bg); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 1px 0 transparent; transition: box-shadow .3s, background-color .4s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; flex: none; }
.brand__mark { width: 54px; height: 54px; flex: none; display: grid; place-items: center; background: #082862; clip-path: polygon(0 1%, 24% 7%, 62% 4%, 100% 0, 100% 100%, 66% 95%, 30% 97%, 0 100%); border-radius: 0; }
:root[data-theme="dark"] .brand__mark { background: #1868e8; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__mark { background: #1868e8; } }
.brand__mark svg { width: 27px; height: 27px; display: block; }
:root[data-theme="dark"] .hero__mark .p1 { fill: #3d8bff; } :root[data-theme="dark"] .hero__mark .p2 { fill: #8ab9ff; } :root[data-theme="dark"] .hero__mark .p3 { fill: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__mark .p1 { fill: #3d8bff; } :root:not([data-theme="light"]) .hero__mark .p2 { fill: #8ab9ff; } :root:not([data-theme="light"]) .hero__mark .p3 { fill: #ffffff; } }
.brand__text { display: grid; line-height: 1.15; gap: 2px; }
.brand__text strong { font-family: var(--serif); font-size: 26px; font-weight: 900; line-height: 1.15; white-space: nowrap; color: var(--ink); }
.brand__text small { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
/* القائمة على طريقة قافلة: كلام بلا إطار، وضربة فرشاة زرقاء تنزلق خلف الرابط الذي يمرّ عليه المؤشر وتثبت تحت الصفحة الحالية */
.stabs { position: relative; display: flex; gap: 2px; }
.stabs a { position: relative; z-index: 1; display: block; padding: 12px 16px; font-family: "Thmanyah", system-ui, sans-serif; font-size: 15.5px; font-weight: 400; line-height: 1.2; white-space: nowrap; color: var(--ink-2); transition: color .3s ease; -webkit-tap-highlight-color: transparent; }
.stabs a:hover, .stabs a.is-on { color: var(--on-acc); }
.stabs__cur { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; background: var(--acc); clip-path: var(--brush); box-shadow: var(--glow); opacity: 0; transform: translateX(var(--x, 0)); transition: transform .55s cubic-bezier(.34, 1.45, .55, 1), width .55s cubic-bezier(.34, 1.45, .55, 1), opacity .25s; pointer-events: none; }
.stabs.has-cur .stabs__cur { opacity: 1; }
.nav__end { display: flex; align-items: center; gap: 8px; flex: none; }
.ibtn { min-width: 40px; height: 44px; display: inline-grid; place-items: center; padding: 0 6px; background: none; color: var(--ink-2); transition: color .2s, transform .2s; font-size: 15px; font-weight: 700; }
.ibtn:hover { color: var(--brand); }
.ibtn:active { transform: scale(.94); }
.ibtn svg { width: 20px; height: 20px; }
.ibtn--lang { font-family: var(--sans); letter-spacing: .02em; }
.nav__menu { width: 50px; height: 46px; clip-path: var(--brush); background: var(--chip); color: var(--ink); }
.theme-ico--moon { display: none; }
:root[data-theme="dark"] .theme-ico--sun { display: none; }
:root[data-theme="dark"] .theme-ico--moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme-ico--sun { display: none; } :root:not([data-theme]) .theme-ico--moon { display: block; } }
.nav__cta { min-height: 46px; padding: 0 22px; font-size: 15px; }
/* الشمس تدور والقمر يتمايل عند المرور */
[data-theme-toggle]:hover .theme-ico--sun { transform: rotate(90deg); }
[data-theme-toggle]:hover .theme-ico--moon { animation: wobble .6s var(--ease); }
@keyframes wobble { 30% { transform: rotate(-18deg); } 60% { transform: rotate(10deg); } }
.nav__menu { display: none !important; position: relative; }
.nav__menu span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav__menu span:first-child { top: 17px; } .nav__menu span:last-child { top: 25px; }
[data-menu="open"] .nav__menu span:first-child { transform: translateY(4px) rotate(45deg); }
[data-menu="open"] .nav__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet { position: fixed; top: calc(80px + env(safe-area-inset-top, 0px)); inset-inline: 0; bottom: 0; z-index: 59; background: var(--bg); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .55s var(--ease), visibility 0s .55s; overflow-y: auto; }
[data-menu="open"] .sheet { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease), visibility 0s; }
.sheet__in { display: grid; gap: 2px; padding-block: var(--s3) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); }
.sheet__in a { font-family: var(--serif); font-size: clamp(34px, 9vw, 48px); font-weight: 900; line-height: 1.5; opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-menu="open"] .sheet__in a { opacity: 1; transform: none; }
[data-menu="open"] .sheet__in a:nth-child(2) { transition-delay: .05s; } [data-menu="open"] .sheet__in a:nth-child(3) { transition-delay: .1s; } [data-menu="open"] .sheet__in a:nth-child(4) { transition-delay: .15s; } [data-menu="open"] .sheet__in a:nth-child(5) { transition-delay: .2s; } [data-menu="open"] .sheet__in a:nth-child(6) { transition-delay: .25s; }
.sheet__cta { margin-top: var(--s3); }
.sheet__in .sheet__cta a { font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1.2; width: 100%; min-height: 58px; }
@media (max-width: 1080px) { .nav__links { display: none; } .nav__menu { display: inline-grid !important; } }
@media (max-width: 560px) { .nav__cta { display: none; } .brand__mark { width: 46px; height: 46px; } .brand__mark svg { width: 23px; height: 23px; } .brand__text strong { font-size: 22px; } .brand__text small { font-size: 14px; } .nav__in { height: 72px; } .sheet { top: calc(72px + env(safe-area-inset-top, 0px)); } }

/* ===== الأقسام العامة ===== */
.section { padding-block: var(--s7); }
@media (max-width: 900px) { .section { padding-block: var(--s6); } }
.sec-head { display: grid; gap: var(--s2); margin-bottom: var(--s5); max-width: 760px; }
.sec-title { font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 5.6vw, 84px); line-height: 1.2; text-wrap: balance; text-shadow: var(--h-glow); }
html[lang="en"] .sec-title { line-height: 1.05; letter-spacing: -.025em; }

/* ===== الفوتر (على طريقة أبو طارق): شريط مربعات ملوّن، ثم كحلي بأربعة أعمدة، ثم سطر الحقوق ===== */
.footer { position: relative; background: var(--foot-bg); color: #fff; margin-top: -28px; padding-top: 28px; padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px)); clip-path: polygon(0 22px, 4% 8px, 11% 18px, 19% 4px, 27% 16px, 36% 2px, 44% 14px, 53% 0, 61% 12px, 70% 3px, 78% 17px, 87% 5px, 94% 15px, 100% 6px, 100% 100%, 0 100%); }
.footer__in { display: grid; padding-top: clamp(64px, 9vw, 150px); }
.footer__cols { display: grid; grid-template-columns: 1.25fr 1.15fr .9fr .8fr; gap: var(--s4); align-items: start; padding-bottom: clamp(64px, 8vw, 130px); }
.footer__brand { display: grid; gap: var(--s3); justify-items: start; }
.footer__logo { display: inline-flex; align-items: center; gap: 16px; color: #fff; }
.footer__tile { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, #2b78f0, #1559c9); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); clip-path: polygon(0 1%, 24% 7%, 62% 4%, 100% 0, 100% 100%, 66% 95%, 30% 97%, 0 100%); }
.footer__tile svg { width: 50%; height: auto; }
.footer__logo b { font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1.1; }
.footer__logo small { display: block; margin-top: 4px; font-family: var(--sans); font-weight: 500; font-size: 15px; color: #8ab9ff; }
.footer__brand p { margin: 0; font-size: 17px; line-height: 1.8; color: rgb(255 255 255 / .82); max-width: 32ch; }
.footer__col { display: grid; gap: var(--s2); align-content: start; }
.footer__col h3 { margin: 0; font-size: 15px; font-weight: 500; color: rgb(255 255 255 / .72); }
.footer__big { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.45; color: #fff; max-width: 14ch; }
.footer__num { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 2.7vw, 44px); line-height: 1.2; color: #8ab9ff; justify-self: start; white-space: nowrap; }
html[lang="en"] .footer__num { font-size: clamp(22px, 2vw, 32px); }
.footer__num:hover { color: #fff; }
.footer__mail { font-size: 16px; color: rgb(255 255 255 / .82); justify-self: start; }
.footer__mail:hover { color: #8ab9ff; }
.footer__soc { display: grid; gap: 6px; }
.footer__soc a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 18px; color: #fff; justify-self: start; transition: color .2s; }
.footer__soc a:hover { color: #8ab9ff; }
.footer__soc svg { width: 20px; height: 20px; flex: none; }
.footer__legal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s2) var(--s4); padding-top: var(--s4); border-top: 1px solid rgb(255 255 255 / .22); font-size: 15px; line-height: 1.7; color: rgb(255 255 255 / .8); }
.footer__legal nav { display: flex; gap: var(--s3); flex-wrap: wrap; }
.footer__legal a { color: rgb(255 255 255 / .8); } .footer__legal a:hover { color: #fff; }
.footer__top { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 1000px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); } }
@media (max-width: 600px) { .footer__cols { grid-template-columns: 1fr; } .footer__legal { flex-direction: column; align-items: flex-start; } }

/* ===== الأزرار العائمة: واتساب + المساعد الذكي ===== */
.dock { position: fixed; z-index: 70; inset-inline-end: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; justify-items: center; }
html[dir="ltr"] .dock { inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); }
.fab { position: relative; width: 62px; height: 62px; clip-path: var(--brush); display: grid; place-items: center; transition: transform .35s var(--pop), background-color .25s; -webkit-tap-highlight-color: transparent; }
.fab:hover { transform: translateY(-3px); }
.fab:active { transform: scale(.95); }
.fab svg { width: 28px; height: 28px; }
.fab--wa { background: #25d366; color: #fff; }
.fab--wa:hover { background: #1fbe5b; }
.fab--ai { background: var(--acc-deep); color: #fff; }
:root[data-theme="dark"] .fab--ai { background: #1868e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fab--ai { background: #1868e8; } }
.fab--ai:hover { background: #1868e8; }
.fab-wrap { position: relative; filter: drop-shadow(0 10px 16px rgb(10 17 36 / .3)); }
.fab__badge { position: absolute; top: -6px; inset-inline-start: -6px; z-index: 2; min-width: 20px; height: 20px; border-radius: 10px; background: #e0483a; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 3px var(--bg); }
.fab[aria-expanded="true"] + .fab__badge { display: none; }
.fab__tip { position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px var(--line); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.fab-wrap:hover .fab__tip, .fab:focus-visible + .fab__tip { opacity: 1; }
@media (hover: none) { .fab__tip { display: none; } }
.dock { transition: opacity .3s, transform .3s; } :root:not(.past-top) .dock { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 560px) { .dock { gap: 10px; inset-inline-end: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } html[dir="ltr"] .dock { inset-inline-end: calc(12px + env(safe-area-inset-right, 0px)); } .fab { width: 52px; height: 52px; } .fab svg { width: 24px; height: 24px; } }

.panel { position: fixed; z-index: 71; inset-inline-end: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 24px)); max-height: min(640px, calc(100svh - 110px)); display: flex; flex-direction: column; border-radius: 26px; background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(10 17 36 / .55), 0 0 0 1px var(--line); overflow: hidden; transform-origin: bottom left; transform: translateY(16px) scale(.92); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
html[dir="ltr"] .panel { inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); transform-origin: bottom right; }
.panel.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s, visibility 0s; }
@media (max-width: 560px) { .panel { inset-inline: 8px !important; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-height: calc(100svh - 90px); border-radius: 22px; } }
.panel__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; color: #fff; }
.panel--wa .panel__head { background: linear-gradient(135deg, #0b6b4a, #128c7e 60%, #25d366); }
.panel--ai .panel__head { background: linear-gradient(135deg, #061a4a, #0d3b9e 60%, #1868e8); }
.panel--ai .panel__av { background: #fff; }
.panel__av { position: relative; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; }
.panel__av img { width: 34px; height: 34px; }
.panel__av::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: -2px; width: 13px; height: 13px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2.5px #0f6f53; }
.panel--ai .panel__av::after { box-shadow: 0 0 0 2.5px #0d3b9e; }
.panel__who { display: grid; line-height: 1.35; min-width: 0; flex: 1; }
.panel__who strong { font-size: 16.5px; font-weight: 700; }
.panel__who small { font-size: 13px; opacity: .9; }
.panel__x { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .14); color: #fff; flex: none; }
.panel__x:hover { background: rgb(255 255 255 / .24); }
.panel__x svg { width: 18px; height: 18px; }
.panel__body { flex: 1; overflow-y: auto; padding: 18px 16px; display: grid; align-content: start; gap: 12px; background: var(--bg-2); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.bub { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.75; background: var(--card); box-shadow: 0 1px 0 var(--line); justify-self: start; white-space: pre-line; overflow-wrap: anywhere; }
html[lang="en"] .bub { line-height: 1.55; }
.bub--me { justify-self: end; background: var(--acc-2); color: var(--ink); }
.panel--wa .bub--me { background: #d9fdd3; color: #0b2a1a; }
:root[data-theme="dark"] .panel--wa .bub--me { background: #005c4b; color: #e9fff6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panel--wa .bub--me { background: #005c4b; color: #e9fff6; } }
.bub small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.bub--typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.bub--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.bub--typing i:nth-child(2) { animation-delay: .2s; } .bub--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; text-align: start; min-height: 48px; padding: 10px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; line-height: 1.5; transition: box-shadow .2s, background-color .2s; }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #25d366; background: rgb(37 211 102 / .08); }
.opt svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.panel__foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px) * 0); background: var(--card); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.panel__foot .btn { width: 100%; clip-path: none; border-radius: 14px; }
.panel__num { font-size: 13px; color: var(--ink-3); text-align: center; }
.panel__num b { color: var(--ink); font-weight: 600; user-select: all; }
.ask-form { display: flex; gap: 8px; align-items: flex-end; }
.ask-form textarea { flex: 1; min-width: 0; resize: none; min-height: 48px; max-height: 120px; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; line-height: 1.5; color: var(--ink); }
.ask-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.ask-form button { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.ask-form button:disabled { opacity: .5; }
.ask-form button svg { width: 20px; height: 20px; }
html[dir="rtl"] .ask-form button svg { transform: scaleX(-1); }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset button { min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; line-height: 1.3; transition: box-shadow .2s; }
.chipset button:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ai-note { font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.6; }

/* ===== صفحات داخلية: رأس الصفحة ===== */
.phero { position: relative; padding-top: calc(80px + env(safe-area-inset-top, 0px) + var(--s6)); padding-bottom: var(--s5); overflow: hidden; isolation: isolate; }
.phero::before { display: none; content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 0%, var(--bg-3), transparent 70%), radial-gradient(40% 50% at 10% 20%, var(--acc-2), transparent 70%); opacity: .9; }
.phero::after { display: none; content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(70% 80% at 50% 0%, #000 20%, transparent 75%); mask: radial-gradient(70% 80% at 50% 0%, #000 20%, transparent 75%); opacity: .55; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: var(--s3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.phero__title { font-family: var(--serif); font-weight: 900; font-size: clamp(52px, 8vw, 128px); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; text-shadow: var(--h-glow); }
html[lang="en"] .phero__title { line-height: 1.02; letter-spacing: -.03em; }
.phero__lede { margin-top: var(--s3); }
.phero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s3); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pill svg { width: 16px; height: 16px; color: var(--brand); }

/* بطاقات المزايا الثلاث تحت رأس الصفحة */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.tile { display: grid; gap: 10px; align-content: start; padding: var(--s3); border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tile__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-2); color: var(--brand); box-shadow: var(--glow); }
.tile__ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 19px; font-weight: 700; line-height: 1.5; }
.tile p { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* محتوى السياسات: فهرس + نص */
.doc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s5); align-items: start; padding-block: var(--s5) var(--s7); }
.toc { position: sticky; top: 110px; display: grid; gap: 2px; padding: var(--s2); border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.toc h2 { font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 6px 10px 10px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); transition: background-color .2s, color .2s; }
.toc a b { font-size: 12.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.toc a:hover, .toc a.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.toc a.on b { color: var(--brand); }
.prose { display: grid; gap: var(--s5); max-width: 760px; }
.prose section { display: grid; gap: var(--s2); scroll-margin-top: 110px; }
.prose h2 { display: flex; gap: 14px; align-items: baseline; font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.35; }
html[lang="en"] .prose h2 { line-height: 1.15; letter-spacing: -.015em; }
.prose h2 b { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; flex: none; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.95; color: var(--ink-2); }
html[lang="en"] .prose p, html[lang="en"] .prose li { line-height: 1.7; }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-inline-start: 28px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .78em; width: 9px; height: 9px; border-radius: 3px; background: var(--acc); transform: rotate(45deg); box-shadow: var(--glow); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--acc-text); text-decoration: underline; text-underline-offset: 4px; }
.facts { display: grid; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.facts div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: var(--s2); padding: 14px 18px; font-size: 16px; line-height: 1.7; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-weight: 500; }
.facts dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.tbl { width: 100%; border-collapse: collapse; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: start; line-height: 1.6; }
.tbl th { background: var(--bg-2); font-weight: 600; color: var(--ink-2); }
.tbl tr + tr td { border-top: 1px solid var(--line); }
.tbl td:last-child { font-weight: 600; color: var(--ink); }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; gap: var(--s4); } .toc { position: relative; top: 0; } }

/* شريط الدعوة في آخر الصفحات */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--acc-deep); color: #fff; isolation: isolate; }
:root[data-theme="dark"] .cta { background: linear-gradient(135deg, #0b1d4f, #102c78); box-shadow: 0 0 0 1px rgb(120 160 255 / .25), 0 0 60px -10px rgb(47 123 255 / .45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: linear-gradient(135deg, #0b1d4f, #102c78); box-shadow: 0 0 0 1px rgb(120 160 255 / .25), 0 0 60px -10px rgb(47 123 255 / .45); } }
.cta::after { display: none; content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(138 185 255 / .25) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask: radial-gradient(60% 90% at 90% 50%, #000, transparent); mask: radial-gradient(60% 90% at 90% 50%, #000, transparent); }
html[dir="ltr"] .cta::after { display: none; -webkit-mask: radial-gradient(60% 90% at 10% 50%, #000, transparent); mask: radial-gradient(60% 90% at 10% 50%, #000, transparent); }
.cta h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.25; }
html[lang="en"] .cta h2 { line-height: 1.08; letter-spacing: -.02em; }
.cta p { font-size: 18px; line-height: 1.8; color: rgb(255 255 255 / .85); margin-top: 8px; max-width: 48ch; }
.cta .btn--acc { background: #8ab9ff; color: #0a1124; }
.cta .btn--line { background: rgb(255 255 255 / .12); color: #fff; }
.cta .btn--line:hover { background: rgb(255 255 255 / .2); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }
.basma { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: center; margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: 26px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.basma__logo { font-family: var(--serif); font-weight: 900; font-size: 34px; color: var(--brand); line-height: 1; text-shadow: var(--h-glow); }
.basma h3 { font-size: 19px; font-weight: 700; line-height: 1.5; }
.basma p { font-size: 15.5px; color: var(--ink-2); line-height: 1.8; }
@media (max-width: 760px) { .basma { grid-template-columns: 1fr; padding: var(--s3); } }

/* ===== النماذج ===== */
.field { display: grid; gap: 8px; }
.field > span, .field > label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field small.req { color: var(--bad); }
.field small.opt-l { font-weight: 400; color: var(--ink-3); }
.input { width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; line-height: 1.5; color: var(--ink); transition: box-shadow .2s; -webkit-appearance: none; appearance: none; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.75; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: 18px 50%, 24px 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-start: 16px; padding-inline-end: 16px; }
html[dir="ltr"] select.input { background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand), var(--glow); }
.input::placeholder { color: var(--ink-3); opacity: .8; }
.err { font-size: 13.5px; color: var(--bad); min-height: 0; }
.err:empty { display: none; }
.bad .input { box-shadow: inset 0 0 0 2px var(--bad); }

/* الأرقام (تصميم الإصدار الأول: أرقام عملاقة بخطوط فاصلة) */
.st { display: grid; grid-template-columns: 1fr 1fr; }
.st__row { display: grid; gap: 4px; padding-block: var(--s4); }
.st__row:nth-child(odd) { padding-inline-end: var(--s4); }
.st__row:nth-child(2n) { padding-inline-start: var(--s4); }
/* خط أفقي واحد بين الصفوف فقط: بلا خطوط طولية وبلا خط تحت آخر صف */
.st__row:not(:nth-last-child(-n+2)) { box-shadow: inset 0 -1px 0 var(--line); }
.st__row:nth-last-child(2):nth-child(even) { box-shadow: inset 0 -1px 0 var(--line); }
.st__pre { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.st__n { display: flex; align-items: baseline; gap: .12em; font-family: var(--serif); font-weight: 900; font-size: clamp(100px, 14vw, 230px); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; text-shadow: var(--h-glow); }
.st__u { font-size: .3em; line-height: 1; color: var(--acc-deep); }
.st__l { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
@media (max-width: 800px) { .st { grid-template-columns: 1fr; } .st__row:nth-child(odd), .st__row:nth-child(2n) { padding-inline: 0; box-shadow: inset 0 -1px 0 var(--line); } .st__row:last-child { box-shadow: none; } }

/* بطاقة مشروع (شاشة زجاجية) */
.pj { scroll-snap-align: start; display: grid; gap: 14px; }
.pj__win { position: relative; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.pj:hover .pj__win { transform: translateY(-6px); }
.pj__bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--bg-2); box-shadow: inset 0 -1px 0 var(--line); direction: ltr; }
.pj__bar i { width: 9px; height: 9px; border-radius: 50%; }
.pj__bar i:nth-child(1) { background: #ff6159; } .pj__bar i:nth-child(2) { background: #ffbd2e; } .pj__bar i:nth-child(3) { background: #28c941; }
.pj__bar b { margin-left: 10px; font: 500 12px/1 var(--mono); color: var(--ink-3); background: var(--card); padding: 6px 10px; border-radius: 7px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pj__shot { aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--bg-2); }
.pj__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 4s ease-in-out; }
.pj:hover .pj__shot img { object-position: bottom; }
.pj__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-inline: 4px; }
.pj__meta strong { font-size: 19px; font-weight: 700; line-height: 1.5; }
.pj__meta span { font-size: 14.5px; color: var(--ink-3); white-space: nowrap; }

/* ===== الظهور مع التمرير (لا يُخفي أي نص بعد ظهوره) ===== */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* الانترو: مربعات الشعار تتجمع، ثم يظهر الاسم، ثم تُرفع الستارة أعمدةً كالبكسلات */
.intro { display: none; }
.intro-on .intro { display: grid; position: fixed; inset: 0; z-index: 1000; place-items: center; cursor: pointer; }
.intro-on body { overflow: hidden; }
.intro__cols { position: absolute; inset: 0; display: flex; }
.intro__cols i { flex: 1; margin-inline: -1px; background: #082862; animation: introCol .75s calc(1.95s + var(--i) * .055s) cubic-bezier(.76, 0, .24, 1) both; }
.intro__in { position: relative; display: grid; justify-items: center; gap: 14px; color: #fff; text-align: center; animation: introOut .45s 1.75s ease-in both; }
.intro__in svg { width: clamp(96px, 18vw, 150px); height: auto; overflow: visible; filter: drop-shadow(0 0 0 transparent); animation: introGlow 1.2s .7s ease-out both; }
.intro__in rect { transform-box: fill-box; transform-origin: center; animation: introPix .55s calc(.1s + var(--d, 0s)) var(--pop) both; }
.intro__in b { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 4.4vw, 44px); line-height: 1.3; clip-path: inset(0 0 0 100%); animation: introName .8s .85s var(--ease) both; }
html[lang="en"] .intro__in b { clip-path: inset(0 100% 0 0); animation-name: introNameEn; }
.intro__in small { font-size: 13px; letter-spacing: .3em; color: #8ab9ff; opacity: 0; animation: introFade .6s 1.2s ease both; direction: ltr; }
@keyframes introPix { from { transform: scale(0) rotate(-35deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes introGlow { 50% { filter: drop-shadow(0 0 22px rgb(61 139 255 / .9)); } to { filter: drop-shadow(0 0 8px rgb(61 139 255 / .35)); } }
@keyframes introName { to { clip-path: inset(0 0 0 0); } }
@keyframes introNameEn { to { clip-path: inset(0 0 0 0); } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introOut { to { opacity: 0; transform: translateY(-24px) scale(.96); } }
@keyframes introCol { to { transform: translateY(-101%); } }
:root[data-theme="dark"] .intro__cols i { background: #03050b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .intro__cols i { background: #03050b; } }
:root[data-theme="dark"] .intro__in b { text-shadow: 0 0 24px rgb(61 139 255 / .6); }

/* تبديل الوضع: دائرة تتسع من زر التبديل (View Transitions)، ومع المتصفحات الأقدم انتقال ألوان ناعم */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; } ::view-transition-new(root) { z-index: 2; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 60%); mask-image: linear-gradient(to bottom, #000 40%, transparent 60%); -webkit-mask-size: 100% 250%; mask-size: 100% 250%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 0 0; mask-position: 0 0; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .55s ease, color .55s ease, border-color .55s ease, fill .55s ease, stroke .55s ease, box-shadow .55s ease !important; }
[data-theme-toggle] svg { transition: transform .6s var(--ease), opacity .3s; }
.theme-spin [data-theme-toggle] svg { transform: rotate(180deg) scale(.6); }

/* عنوان الفوتر الكبير: «لنبدأ الحديث» بخط مفرّغ يمتلئ عند المرور */
.footer__cta { margin: 0 0 clamp(56px, 7vw, 110px); font-family: var(--serif); font-weight: 900; font-size: clamp(54px, 8.4vw, 140px); line-height: 1.2; letter-spacing: -.01em; }
html[lang="en"] .footer__cta { line-height: 1.02; letter-spacing: -.045em; }
.footer__cta a { color: #fff; display: inline-block; }
.footer__cta span { color: #8ab9ff; }


