/* ============================================================
   AL MASDAR GLOBAL — Visual Identity v2
   الأساس: ليل كحلي عميق · اللمسة: برتقالي الشعار الرسمي (#F48C1C)
   الحركة: افتتاح بالشعار، عناوين تُكتب كلمةً كلمة، مدار الحلقة البرتقالية،
   خطوط طريق متحرّكة، بطاقات ثلاثية الأبعاد، ومسار رحلة يمتلئ مع النزول.
   ============================================================ */

:root {
  /* الألوان */
  --night:      #060B12;
  --night-2:    #0A1420;
  --navy:       #0F2D4A;
  --navy-2:     #163B5E;
  --orange:     #F48C1C;
  --orange-2:   #FFB257;
  --orange-3:   #FFD9A8;
  --ember:      #E0560F;
  --paper:      #F6F3EE;
  --paper-2:    #ECE6DC;
  --ink:        #0B1621;
  --muted:      #5D6B7A;
  --steel:      #9AAABB;
  --white:      #FFFFFF;
  --line:       rgba(11, 22, 33, .1);
  --line-light: rgba(255, 255, 255, .1);
  --glass:      rgba(10, 20, 32, .55);

  --grad-orange: linear-gradient(120deg, var(--ember) 0%, var(--orange) 45%, var(--orange-2) 100%);
  --glow-orange: 0 0 0 1px rgba(244, 140, 28, .35), 0 18px 50px -12px rgba(244, 140, 28, .55);

  /* الخطوط */
  --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body:    'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;

  /* الحركة */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --radius:    22px;
  --radius-sm: 14px;
  --header-h:  84px;
  --gutter:    clamp(18px, 4vw, 56px);
}

/* ── أساسيات ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--orange); color: var(--night); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ============================================================
   شاشة الافتتاح
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: radial-gradient(circle at 50% 45%, var(--navy) 0%, var(--night) 70%);
  transition: opacity .7s var(--ease-io), visibility .7s, clip-path 1s var(--ease-io);
  clip-path: circle(150% at 50% 50%);
}
.loader-mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader-mark img { width: 84px; height: 84px; border-radius: 50%; animation: loaderPop .9s var(--ease-back) both .15s; }
.loader-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader-ring circle {
  fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: ringDraw 1.3s var(--ease-io) forwards;
  filter: drop-shadow(0 0 8px rgba(244, 140, 28, .8));
}
.loader-name { font-family: var(--display); font-weight: 700; letter-spacing: .02em; opacity: 0; animation: fadeUp .7s var(--ease-out) .5s forwards; }
html.is-loaded .loader { opacity: 0; visibility: hidden; clip-path: circle(0% at 50% 50%); }
html.no-js .loader { display: none; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes loaderPop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── شريط تقدّم القراءة ── */
.scroll-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--grad-orange); box-shadow: 0 0 12px var(--orange);
  transform: scaleX(var(--p, 0)); transform-origin: var(--origin, right);
}
html[dir="ltr"] .scroll-progress span { --origin: left; }

/* ── توهّج يتبع المؤشّر (حاسوب فقط) ── */
.cursor-glow {
  position: fixed; z-index: 1; pointer-events: none; width: 520px; height: 520px; border-radius: 50%;
  left: 0; top: 0; translate: calc(var(--cx, -999px) - 50%) calc(var(--cy, -999px) - 50%);
  background: radial-gradient(circle, rgba(244, 140, 28, .10) 0%, transparent 62%);
  transition: opacity .4s; opacity: 0; mix-blend-mode: screen;
}
.has-pointer .cursor-glow { opacity: 1; }

/* ============================================================
   الأزرار والروابط
   ============================================================ */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding-inline: 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .98rem; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .4s, background .3s, color .3s, border-color .3s;
}
.btn-sm { --h: 42px; padding-inline: 18px; font-size: .88rem; }
.btn-lg { --h: 58px; padding-inline: 30px; font-size: 1.02rem; }
.btn-xl { --h: 66px; padding-inline: 36px; font-size: 1.12rem; }
.btn-primary { background: var(--grad-orange); color: #1A0D02; box-shadow: var(--glow-orange); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--orange-2), var(--white));
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn-primary:hover::before { transform: none; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 178, 87, .6), 0 22px 60px -10px rgba(244, 140, 28, .75); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .28); color: var(--white); backdrop-filter: blur(8px); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-2); background: rgba(244, 140, 28, .08); }
.btn-arrow {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .14); position: relative; flex: none;
  transition: transform .5s var(--ease-out);
}
.btn-arrow::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor;
  transform: translateX(2px) rotate(-45deg);
}
html[dir="ltr"] .btn-arrow::before { transform: translateX(-2px) rotate(45deg); }
.btn:hover .btn-arrow { transform: translateX(-5px); }
html[dir="ltr"] .btn:hover .btn-arrow { transform: translateX(5px); }
/* لمعة تعبر الزر */
.shine::after {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg); animation: shine 3.6s var(--ease-io) infinite 1s;
}
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 600;
  color: var(--orange); padding-block: 6px; position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(.25); transform-origin: var(--o, right); transition: transform .6s var(--ease-out);
}
html[dir="ltr"] .link-arrow::after { --o: left; }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; position: relative; transition: transform .5s var(--ease-out), background .3s; }
.link-arrow i::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px;
  border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: translateX(2px) rotate(-45deg);
}
html[dir="ltr"] .link-arrow i::before { transform: translateX(-2px) rotate(45deg); }
.link-arrow:hover i { background: var(--orange); color: var(--night); transform: translateX(-4px); }
html[dir="ltr"] .link-arrow:hover i { transform: translateX(4px); }

.pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none;
  box-shadow: 0 0 0 0 rgba(244, 140, 28, .7); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(244, 140, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 140, 28, 0); } }

.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 600; font-size: .86rem; letter-spacing: .08em; color: var(--orange);
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--grad-orange); border-radius: 2px; }
.lead { font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--muted); max-width: 54ch; }

/* ============================================================
   الرأس
   ============================================================ */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-inline: var(--gutter);
  transition: background .4s, height .4s var(--ease-out), box-shadow .4s, backdrop-filter .4s;
}
.site-header.scrolled {
  --header-h: 70px;
  background: rgba(6, 11, 18, .72); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line-light), 0 20px 40px -24px rgba(0, 0, 0, .6);
}
.site-header.hidden { transform: translateY(-100%); }
.site-header { transition: transform .5s var(--ease-out), background .4s, height .4s var(--ease-out), box-shadow .4s; }
.brand { display: inline-flex; align-items: center; gap: 12px; z-index: 2; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%; padding: 2px; flex: none;
  background: conic-gradient(from 0deg, var(--orange), var(--orange-2), var(--ember), var(--orange));
  animation: spin 8s linear infinite;
}
.brand-logo img { width: 100%; height: 100%; border-radius: 50%; background: #fff; padding: 1px; object-fit: contain; animation: spin 8s linear infinite reverse; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.brand-text small { font-family: var(--body); font-weight: 500; font-size: .74rem; color: var(--orange-2); opacity: .9; }
@keyframes spin { to { rotate: 360deg; } }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative; padding: 10px 16px; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: .93rem;
  color: rgba(255, 255, 255, .78); transition: color .3s, background .3s;
}
.main-nav a:hover, .main-nav a.current { color: var(--white); background: rgba(255, 255, 255, .07); }
.main-nav a.current::after {
  content: ""; position: absolute; bottom: 4px; inset-inline-start: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange); translate: 50% 0; box-shadow: 0 0 10px var(--orange);
}
html[dir="ltr"] .main-nav a.current::after { translate: -50% 0; }
.nav-num, .nav-mobile-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; z-index: 2; }
.language {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-light); font-family: var(--display); font-weight: 700; font-size: .82rem; transition: .3s;
}
.language:hover { border-color: var(--orange); color: var(--orange); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-light); position: relative; }
.menu-toggle span { position: absolute; inset-inline: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ============================================================
   البطل (Hero)
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding-block: calc(var(--header-h) + 40px) 120px; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-image {
  position: absolute; inset: -6%;
  background: var(--hero) center / cover no-repeat;
  transform: translate3d(var(--mx, 0), calc(var(--my, 0px) + var(--sy, 0px)), 0) scale(1.08);
  animation: kenburns 22s ease-in-out infinite alternate;
  filter: saturate(1.1) contrast(1.05);
}
@keyframes kenburns { from { scale: 1; } to { scale: 1.08; } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--shade-dir, 270deg), rgba(6, 11, 18, .96) 8%, rgba(6, 11, 18, .78) 42%, rgba(6, 11, 18, .25) 75%, rgba(6, 11, 18, .55) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 35%);
}
html[dir="ltr"] .hero-shade { --shade-dir: 90deg; }
.hero-glow {
  position: absolute; width: 70vmax; height: 70vmax; inset-inline-end: -25vmax; top: -20vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 140, 28, .22), transparent 60%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
.hero-road { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 42%; opacity: .9; }
.road-line { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 90 260; filter: drop-shadow(0 0 6px rgba(244, 140, 28, .9)); animation: roadRun 3.2s linear infinite; }
.road-line.l2 { stroke-width: 1.2; stroke: var(--orange-2); animation-duration: 4.4s; opacity: .7; }
.road-line.l3 { stroke-width: .8; stroke: #fff; animation-duration: 5.6s; opacity: .35; }
@keyframes roadRun { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
html[dir="ltr"] .hero-road { transform: scaleX(-1); }

.hero-inner { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 18px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(244, 140, 28, .1); border: 1px solid rgba(244, 140, 28, .35); color: var(--orange-2);
  font-family: var(--display); font-weight: 500; font-size: .9rem; backdrop-filter: blur(8px);
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 800; line-height: 1.12; max-width: 13ch; text-wrap: balance; }
html[lang="en"] .hero h1 { line-height: 1.02; letter-spacing: -.03em; }
.hero h1 em, .split strong, h2 em {
  font-style: normal; background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { position: relative; display: inline-block; }
.hero-desc { margin-top: 26px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: rgba(255, 255, 255, .78); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof { list-style: none; margin: 46px 0 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 42px); }
.hero-proof li { display: flex; flex-direction: column; padding-inline-start: 16px; border-inline-start: 2px solid rgba(244, 140, 28, .5); }
.hero-proof b { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; color: var(--white); line-height: 1.2; }
.hero-proof span { font-size: .8rem; color: var(--steel); }

/* مدار الشعار */
.hero-orbit { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.orbit { position: absolute; inset: 0; border-radius: 50%; }
.orbit-1 { inset: 4%; border: 1px solid rgba(255, 255, 255, .08); }
.orbit-2 { inset: 13%; border: 2px solid transparent; background: conic-gradient(from 0deg, var(--orange), transparent 30%, transparent 70%, var(--orange-2)) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 9s linear infinite; }
.orbit-3 { inset: 24%; border: 1px dashed rgba(244, 140, 28, .45); animation: spin 26s linear infinite reverse; }
.orbit i { position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 18px 4px rgba(244, 140, 28, .8); }
.orbit-3 i { width: 8px; height: 8px; top: -4px; left: calc(50% - 4px); background: var(--orange-2); }
.orbit-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.orbit-text text { fill: rgba(255, 255, 255, .55); font-family: var(--display); font-size: 12.5px; font-weight: 600; letter-spacing: 3px; }
.orbit-core {
  position: absolute; inset: 26%; border-radius: 50%; display: grid; place-items: center; background: #fff; padding: 2%;
  /* الشعار واضح دائماً: قرص أبيض صافٍ، حلقة رفيعة، وتوهّج برتقالي خلفه لا فوقه */
  box-shadow: 0 0 0 1px rgba(244, 140, 28, .55), 0 0 0 10px rgba(255, 255, 255, .06), 0 30px 80px -18px rgba(244, 140, 28, .65), 0 0 120px 10px rgba(244, 140, 28, .22);
  animation: float 6s ease-in-out infinite;
}
.orbit-core img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
@keyframes float { 50% { transform: translateY(-12px); } }
.orbit-chip {
  position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 16px; font-size: .78rem; color: var(--steel);
  background: var(--glass); border: 1px solid var(--line-light); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  animation: float 5s ease-in-out infinite;
}
.orbit-chip b { font-family: var(--display); font-size: 1.3rem; color: var(--white); line-height: 1.1; }
.chip-a { top: 12%; inset-inline-start: -2%; }
.chip-b { bottom: 10%; inset-inline-end: 0; animation-delay: -2.5s; }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .12em; color: var(--steel); }
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; position: relative; }
.scroll-mouse i { position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); animation: wheel 1.8s var(--ease-io) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ============================================================
   الشريط المتحرّك
   ============================================================ */
.ticker { position: relative; z-index: 3; padding-block: 18px; margin-block: -40px 0; overflow: hidden; }
.ticker-row { overflow: hidden; padding-block: 14px; }
.ticker-a { background: var(--grad-orange); color: #1A0D02; transform: rotate(-2deg) scale(1.04); box-shadow: 0 20px 50px -20px rgba(244, 140, 28, .7); }
.ticker-b { background: var(--navy); color: rgba(255, 255, 255, .85); transform: rotate(1.4deg) scale(1.04); margin-top: -10px; }
.ticker-track { display: flex; width: max-content; gap: 30px; align-items: center; animation: marquee 32s linear infinite; }
.ticker-b .ticker-track { animation-direction: reverse; animation-duration: 40s; }
.ticker span { font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.9rem); white-space: nowrap; }
.ticker i { font-style: normal; font-size: 1rem; opacity: .7; }
@keyframes marquee { to { transform: translateX(50%); } }
html[dir="ltr"] .ticker-track { animation-name: marqueeLtr; }
@keyframes marqueeLtr { to { transform: translateX(-50%); } }

/* ============================================================
   عن الشركة (فاتح)
   ============================================================ */
.about { background: var(--paper); color: var(--ink); padding-block: clamp(110px, 14vw, 180px) clamp(90px, 11vw, 150px); position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute; width: 640px; height: 640px; inset-inline-start: -260px; top: -200px; border-radius: 50%;
  border: 70px solid rgba(244, 140, 28, .07);
}
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; }
.about h2, .feature h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 800; line-height: 1.22; color: var(--ink); margin-bottom: 24px; text-wrap: balance; }
.about h2 strong, .feature h2 strong { display: block; }
.about .lead { margin-bottom: 30px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(11, 22, 33, .45);
  transition: box-shadow .5s var(--ease-out);
}
.stat-card:nth-child(3) { grid-column: 1 / -1; background: var(--night); color: var(--white); }
.stat-card:hover { box-shadow: 0 1px 0 var(--line), 0 40px 70px -30px rgba(244, 140, 28, .45); }
.stat-index { font-family: var(--display); font-size: .78rem; font-weight: 700; color: var(--orange); letter-spacing: .1em; }
.stat-value { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; margin-block: 10px 6px; }
.stat-card:nth-child(3) .stat-value { background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .92rem; }
.stat-card:nth-child(3) .stat-label { color: var(--steel); }
.stat-bar { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--grad-orange); transform: scaleX(0); transform-origin: var(--o, right); transition: transform 1.2s var(--ease-out) .3s; }
html[dir="ltr"] .stat-bar { --o: left; }
.is-in .stat-bar, .stat-card.is-in .stat-bar { transform: scaleX(1); }
.about-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--radius-sm); border: 1px dashed rgba(11, 22, 33, .2); color: var(--muted); font-size: .92rem; }

/* ============================================================
   الخدمات (داكن)
   ============================================================ */
.services { position: relative; padding-block: clamp(100px, 12vw, 160px); background: radial-gradient(1200px 600px at 85% 0%, rgba(22, 59, 94, .65), transparent 60%), var(--night); overflow: hidden; }
.services::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; position: relative; z-index: 1; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.18; max-width: 16ch; }
.section-sub { color: var(--steel); max-width: 38ch; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 1; perspective: 1200px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 320px; padding: 28px 26px;
  border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-light); overflow: hidden; transform-style: preserve-3d;
  transition: border-color .4s, transform .6s var(--ease-out), background .4s;
}
.service-card:hover, .service-card:focus-visible { border-color: rgba(244, 140, 28, .55); background: linear-gradient(160deg, rgba(244, 140, 28, .12), rgba(255, 255, 255, .02)); }
.service-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: auto; }
.service-icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: rgba(244, 140, 28, .12); border: 1px solid rgba(244, 140, 28, .3); transition: transform .6s var(--ease-back), background .4s; }
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .service-icon { transform: translateZ(40px) rotate(-8deg) scale(1.08); background: var(--orange); }
.service-card:hover .service-icon svg { stroke: var(--night); }
.service-num { font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); transition: -webkit-text-stroke-color .4s; }
.service-card:hover .service-num { -webkit-text-stroke-color: rgba(244, 140, 28, .7); }
.service-card h3 { font-size: 1.28rem; font-weight: 700; transform: translateZ(26px); }
.service-card p { color: var(--steel); font-size: .95rem; transform: translateZ(18px); }
.service-line { position: absolute; inset-inline: 26px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad-orange); transform: scaleX(0); transition: transform .6s var(--ease-out); transform-origin: var(--o, right); }
html[dir="ltr"] .service-line { --o: left; }
.service-card:hover .service-line { transform: scaleX(1); }
/* بقعة ضوء تتبع المؤشّر داخل البطاقة */
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(244, 140, 28, .16), transparent 45%);
}
.spot:hover::before { opacity: 1; }

/* ============================================================
   لماذا المصدر / مسار الرحلة (فاتح)
   ============================================================ */
.feature { background: var(--paper); color: var(--ink); padding-block: clamp(100px, 12vw, 160px); overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.feature-media { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(11, 22, 33, .65); }
.feature-image { position: absolute; inset: -10% 0; background: var(--feature) center / cover; transform: translate3d(0, var(--fy, 0px), 0) scale(1.05); }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 11, 18, .85), transparent 55%); }
.feature-media figcaption {
  position: absolute; z-index: 2; inset-inline: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line-light); color: #fff; font-family: var(--display); font-weight: 600;
}
.feature-badge { position: absolute; z-index: 2; top: 22px; inset-inline-end: 22px; width: 118px; height: 118px; display: grid; place-items: center; }
.feature-badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.feature-badge text { fill: #fff; font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 2.5px; }
.feature-badge img { width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(244, 140, 28, .35); }
.feature .lead { margin-bottom: 34px; }

.journey { list-style: none; margin: 0 0 34px; padding: 0; position: relative; display: grid; gap: 14px; }
.journey-track { position: absolute; inset-inline-start: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.journey-fill { position: absolute; inset: 0; background: var(--grad-orange); transform: scaleY(var(--jp, 0)); transform-origin: top; box-shadow: 0 0 10px var(--orange); }
.journey-step {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 12px 18px 12px 12px; border-radius: 18px;
  transition: background .5s, transform .6s var(--ease-out), box-shadow .5s;
}
html[dir="ltr"] .journey-step { padding: 12px 12px 12px 12px; }
.journey-dot { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; border: 2px solid var(--paper-2); font-family: var(--display); font-size: .85rem; color: var(--muted); position: relative; z-index: 1; transition: .5s var(--ease-back); }
.journey-text { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--muted); transition: color .4s; }
.journey-step.lit { background: #fff; box-shadow: 0 20px 40px -28px rgba(11, 22, 33, .45); transform: translateX(-6px); }
html[dir="ltr"] .journey-step.lit { transform: translateX(6px); }
.journey-step.lit .journey-dot { background: var(--orange); border-color: var(--orange); color: #1A0D02; transform: scale(1.08); box-shadow: 0 0 0 7px rgba(244, 140, 28, .18); }
.journey-step.lit .journey-text { color: var(--ink); }

/* ============================================================
   التواصل
   ============================================================ */
.contact { position: relative; overflow: hidden; padding-block: clamp(110px, 13vw, 170px); background: var(--night); isolation: isolate; }
.contact-aurora { position: absolute; inset: 0; z-index: -1; filter: blur(70px); opacity: .7; }
.contact-aurora i { position: absolute; border-radius: 50%; }
.contact-aurora i:nth-child(1) { width: 46vw; height: 46vw; background: rgba(244, 140, 28, .35); top: -10vw; inset-inline-end: -10vw; animation: drift 14s ease-in-out infinite alternate; }
.contact-aurora i:nth-child(2) { width: 38vw; height: 38vw; background: rgba(22, 59, 94, .9); bottom: -14vw; inset-inline-start: -8vw; animation: drift 18s ease-in-out infinite alternate-reverse; }
.contact-aurora i:nth-child(3) { width: 22vw; height: 22vw; background: rgba(224, 86, 15, .35); top: 40%; left: 40%; animation: drift 11s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vw, -4vw) scale(1.15); } }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 24px; }
.contact h2 strong { display: block; }
.contact .lead { color: rgba(255, 255, 255, .72); margin-bottom: 38px; }
.contact-cards { display: grid; gap: 14px; perspective: 1000px; }
.contact-card {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light); backdrop-filter: blur(14px); overflow: hidden;
  transition: border-color .4s, background .4s, transform .6s var(--ease-out);
}
.contact-card:hover { border-color: rgba(244, 140, 28, .55); background: rgba(244, 140, 28, .08); }
.contact-card.is-wa:hover { border-color: rgba(37, 211, 102, .6); background: rgba(37, 211, 102, .08); }
.contact-icon { width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--grad-orange); box-shadow: var(--glow-orange); }
.is-wa .contact-icon { background: linear-gradient(135deg, #1EBE5D, #25D366); box-shadow: 0 18px 40px -14px rgba(37, 211, 102, .7); }
.contact-icon svg, .mobile-dock svg { width: 24px; height: 24px; fill: none; stroke: #1A0D02; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-wa .contact-icon svg { stroke: #fff; }
.contact-info { display: flex; flex-direction: column; min-width: 0; }
.contact-info small { color: var(--steel); font-size: .82rem; }
.contact-info b { font-family: var(--display); font-weight: 700; font-size: clamp(1.02rem, 1.6vw, 1.3rem); }
.contact-go { margin-inline-start: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-light); position: relative; flex: none; transition: .4s var(--ease-out); }
.contact-go::before { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: translateX(2px) rotate(-45deg); }
html[dir="ltr"] .contact-go::before { transform: translateX(-2px) rotate(45deg); }
.contact-card:hover .contact-go { background: #fff; color: var(--night); transform: rotate(-45deg); }
html[dir="ltr"] .contact-card:hover .contact-go { transform: rotate(45deg); }

/* ============================================================
   التذييل
   ============================================================ */
.site-footer { position: relative; background: var(--night); border-top: 1px solid var(--line-light); padding-top: 34px; overflow: hidden; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.footer-copy { color: var(--steel); font-size: .86rem; }
.back-top { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: .4s var(--ease-out); }
.back-top i { width: 10px; height: 10px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: translateY(2px) rotate(45deg); }
.back-top:hover { background: var(--orange); color: var(--night); border-color: var(--orange); transform: translateY(-4px); }
.footer-mega {
  font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 22vw, 20rem); line-height: .8; text-align: center; margin-top: 30px;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(244, 140, 28, .22), transparent 75%); -webkit-background-clip: text; background-clip: text;
  translate: 0 18%; user-select: none;
}

/* ── شريط الجوال السفلي ── */
.mobile-dock { display: none; }

/* ============================================================
   الظهور مع النزول
   ============================================================ */
.js [data-anim] { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), clip-path 1.4s var(--ease-io); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-anim="up"] { transform: translateY(46px); }
.js [data-anim="fade"] { transform: translateY(18px); }
.js [data-anim="clip"] { opacity: 1; clip-path: inset(18% 18% 18% 18% round 32px); }
.js [data-anim].is-in { opacity: 1; transform: none; }
.js [data-anim="clip"].is-in { clip-path: inset(0 0 0 0 round 32px); }

/* العناوين تُكتب كلمةً كلمة */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .wi { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 70ms + var(--split-delay, 0ms)); }
.split.is-in .wi { transform: none; }
.no-js .split .wi { transform: none; }
.hero .split { --split-delay: 250ms; }
.hero [data-anim] { transition-delay: calc(var(--d, 0) * 110ms + 700ms); }
.hero-eyebrow[data-anim] { transition-delay: 150ms; }
.hero .hero-proof[data-anim] { transition-delay: 1100ms; }

/* ============================================================
   الشاشات المتوسطة
   ============================================================ */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  /* عمودان حتى على الشاشات المتوسطة: الشعار بجانب العنوان بحجمٍ واضح، لا خلفية باهتة */
  .hero-inner { grid-template-columns: 1.25fr .75fr; gap: 24px; }
  .hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
  .hero-orbit { width: min(100%, 420px); }
  .orbit-chip { display: none; }
}

/* ============================================================
   الجوال
   ============================================================ */
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  body { font-size: 15px; padding-bottom: 76px; }
  .brand-text small { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }

  /* قائمة ملء الشاشة بروابط تنزلق تباعاً */
  .main-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px;
    padding: 100px var(--gutter) 40px;
    background: radial-gradient(circle at 80% 10%, rgba(244, 140, 28, .25), transparent 50%), rgba(6, 11, 18, .97);
    backdrop-filter: blur(20px); clip-path: circle(0% at var(--mx-o, 92%) 36px); transition: clip-path .8s var(--ease-io); visibility: hidden;
  }
  html[dir="ltr"] .main-nav { --mx-o: 8%; }
  .menu-open .main-nav { clip-path: circle(150% at var(--mx-o, 92%) 36px); visibility: visible; }
  .main-nav a {
    display: flex; align-items: baseline; gap: 16px; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line-light);
    font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; color: #fff; background: none !important;
    opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  }
  .menu-open .main-nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 250ms); }
  .main-nav a.current::after { display: none; }
  .nav-num { display: inline; font-size: .85rem; color: var(--orange); font-weight: 600; }
  .nav-mobile-cta { display: flex !important; justify-content: center; margin-top: 26px; border: 0 !important; border-radius: 999px !important; padding: 18px !important; font-size: 1.1rem !important; background: var(--grad-orange) !important; color: #1A0D02 !important; }
  .menu-open { overflow: hidden; }

  .hero { min-height: 100svh; padding-block: calc(var(--header-h) + 30px) 110px; align-items: end; }
  .hero-image { inset: 0; background-position: 35% center; }
  html[dir="ltr"] .hero-image { background-position: 65% center; }
  .hero-shade { background: linear-gradient(0deg, var(--night) 12%, rgba(6, 11, 18, .82) 48%, rgba(6, 11, 18, .45) 100%); }
  /* الجوال: العلامة في أعلى الواجهة بوضوح كامل (مدار مصغّر)، والنص في الأسفل */
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-orbit { position: relative; order: -1; width: 210px; margin: 0 auto 26px; justify-self: center; }
  .orbit-text text { font-size: 15px; }
  .orbit-1 { display: none; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { gap: 16px; margin-top: 34px; justify-content: space-between; }
  .hero-proof li { padding-inline-start: 10px; }
  .hero-proof b { font-size: 1.15rem; }
  .scroll-hint { display: none; }
  .hero-road { height: 30%; }

  .ticker { margin-top: -26px; }

  .about-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; margin-bottom: 36px; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { min-height: 0; padding: 24px 22px; }
  .service-top { margin-bottom: 8px; }
  .service-num { font-size: 2.4rem; }
  .feature-media { aspect-ratio: 4 / 3.4; border-radius: 24px; }
  .js [data-anim="clip"] { clip-path: inset(10% 10% 10% 10% round 24px); }
  .js [data-anim="clip"].is-in { clip-path: inset(0 0 0 0 round 24px); }
  .feature-badge { width: 92px; height: 92px; }
  .feature-badge img { width: 42px; height: 42px; }
  .journey-step.lit { transform: none; }
  .contact .btn-xl { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cursor-glow { display: none; }

  /* شريط سفلي ثابت: اتصال + واتساب */
  .mobile-dock {
    position: fixed; z-index: 90; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px; border-radius: 22px; background: rgba(6, 11, 18, .78); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line-light);
    box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .8); transform: translateY(140%); transition: transform .6s var(--ease-back);
  }
  .dock-on .mobile-dock { transform: none; }
  .menu-open .mobile-dock { transform: translateY(140%); }
  .mobile-dock a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 16px; font-family: var(--display); font-weight: 700; background: var(--grad-orange); color: #1A0D02; }
  .mobile-dock a.is-wa { background: linear-gradient(135deg, #1EBE5D, #25D366); color: #fff; }
  .mobile-dock a.is-wa svg { stroke: #fff; }
}

/* شاشات الجوال القصيرة: لا مساحة للمدار فوق النص — يكفي شعار الرأس */
@media (max-width: 860px) and (max-height: 760px) {
  .hero-orbit { display: none; }
}

@media (max-width: 380px) {
  .brand-text { font-size: .9rem; }
  .hero-proof li:last-child { display: none; }
}

/* ============================================================
   احترام «تقليل الحركة»
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-anim], .split .wi { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .loader { display: none; }
}
