/*
 * اللوحة مأخوذة من الشعار نفسه: الفيروزي هو لون حروف "أوليكس"،
 * والفضي هو حلقة العدسة، والبريق السماوي هو وميضها. لا لون خارجها.
 * الفاتح هو الأساس (قرار 2026-09-17)، والداكن خيار تحت body.dark.
 */
:root {
  --brand-rgb: 33, 106, 94;
  --brand-light-rgb: 42, 130, 116;
  --spark-rgb: 79, 210, 232;

  --brand: rgb(var(--brand-rgb));
  --brand-light: rgb(var(--brand-light-rgb));
  --brand-deep: #123F39;
  --brand-pale: #6FA79C;
  --brand-dim: rgba(var(--brand-rgb), 0.07);
  --brand-border: rgba(var(--brand-rgb), 0.20);
  --steel: #6B7C82;
  --spark: rgb(var(--spark-rgb));

  --black: #F8F9F8;
  --surface: #FFFFFF;
  --surface2: #EEF3F2;
  --surface3: #E3EBE9;
  --text: #12201E;
  --muted: #556764;
  --line: rgba(18, 32, 30, 0.08);
  --shadow: 0 24px 60px -24px rgba(18, 32, 30, 0.25);

  /* Readex Pro عربي ولاتيني في عائلة واحدة، وسبيس جروتيسك للأرقام والاسم اللاتيني */
  --font-ar: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-en: 'Space Grotesk', 'Readex Pro', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-padding: clamp(40px, 4.5vw, 60px) 0;
  --container: 1200px;
  --radius: 16px;
  --radius-btn: 12px;
  --btn-h: 52px;
}

body.dark {
  --brand-rgb: 46, 133, 119;
  --brand-light-rgb: 79, 191, 172;
  --brand-pale: #BFE4DC;
  --brand-dim: rgba(var(--brand-rgb), 0.12);
  --brand-border: rgba(var(--brand-light-rgb), 0.22);
  --steel: #93A6AD;

  --black: #050707;
  --surface: #0B0E0E;
  --surface2: #121616;
  --surface3: #1A1F1F;
  --text: #ECF1F0;
  --muted: #8FA09D;
  --line: rgba(236, 241, 240, 0.08);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
 * قائمة الجوال المغلقة تُركن خارج الشاشة بـ translateX(100%)، وهي
 * fixed فلا يقصّها overflow الجسم — فيتّسع عرض المستند وتنزاح
 * الصفحة كلها بضعة بكسلات في RTL. القصّ عند الجذر يمنع ذلك.
 *
 * clip بدل hidden لأنه لا يُنشئ حاوية تمرير، فلا يكسر
 * position: sticky في لوحة المنصة. وhidden قبله لمتصفّح لا يعرفه.
 */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-ar);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  overflow-x: clip;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

[dir=ltr] body {
  font-family: var(--font-ar);
}

/*
 * العربية خط متصل: أي تباعد بين الحروف يقطع الوصلات ويجعل الكلمة
 * تُقرأ حرفاً حرفاً. التباعد يعود صراحةً للكلمات اللاتينية وحدها.
 */
[dir=rtl] body * {
  letter-spacing: 0;
}

[dir=rtl] .footer-brand-text {
  letter-spacing: 0.04em;
}

[dir=rtl] .nav-logo-sub,
[dir=rtl] .splash-logo-sub {
  letter-spacing: 0.32em;
}

[dir=rtl] .svc-number,
[dir=rtl] .process-step-num,
[dir=rtl] .pf-step-n {
  letter-spacing: 0.02em;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}

::selection {
  background: var(--brand-dim);
  color: var(--brand-light);
}

/*
 * شاشة البداية تُعرِّف بالشعار في أقل من ثانية ثم تختفي. لا شريط
 * تحميل ولا نسبة مئوية: رقم يعدّ إلى مئة على شاشة تعيش 950 مللي
 * ثانية وعدٌ كاذب، ويؤخّر أول رسم للصفحة بلا مقابل.
 */
#splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.32s var(--ease);
}

#splash.done {
  opacity: 0;
  pointer-events: none;
}

.splash-stage {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

/* حلقة العدسة نفسها التي في الشعار، تنفتح حول الاسم */
.splash-iris {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-light-rgb), 0.35);
  animation: irisOpen 0.75s var(--ease) both;
}

.splash-iris::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(var(--spark-rgb), 0.85) 40deg,
      transparent 90deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  animation: irisSweep 0.85s linear both;
}

@keyframes irisOpen {
  from {
    transform: scale(0.55);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes irisSweep {
  to {
    transform: rotate(360deg);
  }
}

.splash-logo-wrap {
  position: relative;
  animation: splashIn 0.5s var(--ease) both;
}

@keyframes splashIn {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/*
 * الشعار بنسبته الأصلية (3:2) وبعرضه الطبيعي: حشره في مربع كان
 * يضغطه ويكبّره فوق دقّته فيظهر مهزوزاً.
 */
.splash-logo-img {
  width: 268px;
  max-width: 68vw;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 30px rgba(var(--brand-rgb), 0.5));
}

.splash-logo-sub {
  font-family: var(--font-en);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--steel);
  margin-top: 12px;
  text-transform: uppercase;
  margin-inline-start: 0.32em;
  animation: splashUp 0.45s var(--ease) 0.14s both;
}

@keyframes splashUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9000;
  padding: 20px 0;
  transition: all 0.5s var(--ease);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(248, 249, 248, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}

body.dark .nav.scrolled {
  background: rgba(5, 7, 7, 0.8);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/*
 * الاسم اللاتيني مرسوم داخل الشعار أصلاً، فكتابته بجانبه تكرار.
 * القفل الآن: الشعار فوق، و"Digital Agency" تحته وحدها.
 */
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/*
 * الشعار عريض (3:2). يُثبَّت الارتفاع ويتبعه العرض، فلا يُضغط
 * داخل مربع كما كان.
 */
.nav-logo-img {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(var(--brand-rgb), 0.35));
  transition: transform 0.3s var(--ease), height 0.4s var(--ease);
}

.nav.scrolled .nav-logo-img {
  height: 40px;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-logo-sub {
  font-family: var(--font-en);
  font-size: 0.54rem;
  font-weight: 500;
  color: var(--steel);
  text-transform: uppercase;
  white-space: nowrap;
  /* التباعد يضيف فراغاً بعد آخر حرف، فيُزاح النص ليبقى تحت الشعار */
  margin-inline-start: 0.34em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s var(--ease);
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/*
 * ثلاث مراتب واضحة في شريط الإجراءات بدل أربعة أزرار متشابهة:
 * أدوات صغيرة (اللغة والوضع)، ثم زر اللوحة المحدَّد، ثم النداء
 * الرئيسي المصمت. زر اللوحة كان يشبه زر اللغة تماماً فيضيع بينهما.
 */
.nav-utils {
  display: flex;
  gap: 6px;
  padding-inline-end: 10px;
  margin-inline-end: 2px;
  border-inline-end: 1px solid var(--brand-border);
}

/* زرّ اللغة رابط الآن، ولا قاعدة a عامة في الصفحة تصفّر التسطير */
.btn-icon {
  width: 36px;
  height: 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-icon:hover {
  color: var(--brand-light);
  background: var(--brand-dim);
  border-color: var(--brand-border);
}

.btn-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 6px;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-family: var(--font-ar);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.btn-panel i {
  font-size: 0.8rem;
}

.btn-panel:hover {
  color: var(--text);
}

/* اسمان قديمان بقيا في مواضع أخرى، يرثان مظهر الأدوات نفسه */
.btn-lang,
.btn-theme {
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--brand-light);
  border-radius: 9px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: 0.8rem;
  transition: 0.3s;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-lang:hover,
.btn-theme:hover {
  background: var(--brand-dim);
  border-color: var(--brand);
}

.btn-cta-nav {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  height: 44px;
  line-height: 44px;
  padding: 0 22px;
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  text-decoration: none;
  display: inline-block;
}

.btn-cta-nav:hover {
  background: var(--brand-deep);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.mobile-actions .btn-cta-nav,
.mobile-actions .btn-panel {
  font-size: 1rem;
  height: auto;
  line-height: 1.2;
  padding: 14px 32px;
  width: min(280px, 80vw);
  justify-content: center;
  text-align: center;
  display: inline-flex;
  align-items: center;
}

.mobile-actions .nav-utils {
  border: none;
  padding: 0;
  margin: 4px 0 0;
  gap: 10px;
}

.mobile-actions .btn-icon {
  border-color: var(--brand-border);
  width: 42px;
  height: 42px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brand-light);
  transition: 0.3s;
  transform-origin: center;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  backdrop-filter: blur(28px);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}

.mobile-menu.open {
  transform: none;
}

.mobile-menu .nav-links {
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu .nav-links a {
  font-size: 1.5rem;
  font-weight: 500;
}

.section {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/*
 * العلامة الفوقية والفاصل يستعيران مسارات الدارة المرسومة داخل
 * حروف الشعار: خط رفيع ينتهي بعقدة. هذا هو العنصر المميّز الوحيد
 * في الصفحة، ويتكرّر في كل قسم ليربطها بالهوية.
 */
.section-label {
  font-size: 0.76rem;
  color: var(--brand-light);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.section-label::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.section-label::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-ar);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

[dir=ltr] .section-title {
  font-family: var(--font-en);
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.9;
}

/* ترويسة موحّدة: كانت تُكتب كأنماط داخل السطر بقيم مختلفة في كل قسم */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-title .gold,
.section-title .grad {
  color: var(--brand);
}

/* الفاصل: مسار ينتهي بعقدة، لا شريط متدرّج عام */
.divider {
  position: relative;
  width: 78px;
  height: 1px;
  background: linear-gradient(270deg, var(--brand-light), transparent);
  margin: 22px 0;
}

.divider::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 10px rgba(var(--brand-light-rgb), 0.8);
}

[dir=ltr] .divider {
  background: linear-gradient(90deg, var(--brand-light), transparent);
}

/* نظام حركة واحد: ظهور بالتمرير، مرة واحدة، بتعاقب اختياري عبر --i */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* هوفر موحّد: سهم يتقدّم، بطاقة يتلوّن حدّها — لا طفو ولا دوران */
.btn-primary i,
.btn-outline i,
.btn-cta-nav i,
.svc-link i {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover i,
.btn-outline:hover i,
.svc-link:hover i {
  transform: translateX(-4px);
}

[dir=ltr] .btn-primary:hover i,
[dir=ltr] .btn-outline:hover i,
[dir=ltr] .svc-link:hover i {
  transform: translateX(4px);
}

.card-hover {
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.card-hover:hover {
  border-color: var(--brand);
  background-color: var(--brand-dim);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--btn-h) + 96px) 0 28px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.hero-h1 {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
}

[dir=rtl] .hero-h1 {
  font-family: var(--font-ar);
  /* نزلات العربية (ع، ج، ي) تحتاج ارتفاع سطر أوسع من اللاتيني */
  line-height: 1.38;
  letter-spacing: 0;
}

.hero-h1 .line {
  display: block;
}

.hero-h1 .word {
  display: inline-block;
}

.hero-h1 .gold {
  color: var(--brand);
}

.hero-tagline {
  margin-top: 18px;
  color: var(--brand);
  font-weight: 500;
  font-size: 1rem;
}

.hero-desc {
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  max-width: 620px;
  margin: 14px auto 0;
  line-height: 1.95;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* المتصفح الوهمي — يُعاد استعماله في الأعمال */
.browser {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  direction: ltr;
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface3);
}

.browser-bar span {
  margin: 0 auto;
  font: 500 0.72rem var(--font-en);
  color: var(--muted);
  background: var(--surface2);
  padding: 3px 12px;
  border-radius: 6px;
}

.browser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

/* معرض الهيرو: مركزي كبير وجانبيان خلفه — تركيب ثابت مقصود */
.hero-show {
  position: relative;
  margin: 64px auto 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
}

.hero-show .browser {
  grid-area: 1 / 1;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.hero-show .browser-side {
  width: 42%;
  opacity: 0.85;
  transform: scale(0.82) translateY(6%);
  z-index: 1;
}

.hero-show .browser-side:first-child {
  justify-self: start;
}

.hero-show .browser-side:last-child {
  justify-self: end;
}

/* تسلسل الهيرو: كل عنصر له ترتيب --s، بلا ارتداد */
.js .hero-seq {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.7s var(--ease) forwards;
  animation-delay: calc(var(--s) * 120ms);
}

.js .hero-show.hero-seq {
  transform: translateY(18px) scale(0.98);
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 100px;
  padding: 16px 38px;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  opacity: 0;
  transition: 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(var(--brand-rgb), 0.45);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: var(--brand-light);
  border: 1.5px solid var(--brand-border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--brand-dim);
  border-color: var(--brand);
}

.marquee-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

/*
 * في RTL يوضع الشريط عند الحافة اليمنى ويمتدّ يساراً. إزاحته
 * سالباً كانت تسحبه كلّه خارج النافذة فيفرغ الشريط ويبدو مختفياً.
 * الاتجاه الصحيح هنا موجب، ولكل اتجاه إطاراته الخاصة.
 */
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marqueeRtl 26s linear infinite;
}

[dir=ltr] .marquee-track {
  animation: marqueeLtr 26s linear infinite;
}

@keyframes marqueeRtl {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(50%);
  }
}

@keyframes marqueeLtr {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 500;
}

.marquee-item i {
  color: var(--brand-light);
  font-size: 0.75rem;
}

.services {
  padding: var(--section-padding);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 70px;
  flex-wrap: wrap;
  gap: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--brand-border);
  border-radius: 32px;
  padding: 40px 32px;
  cursor: pointer;
  transition: 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 120%, rgba(var(--brand-rgb), 0.12), transparent 60%);
  opacity: 0;
  transition: 0.5s;
}

.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
  transform: scaleX(0);
  transition: 0.5s;
  transform-origin: left;
}

[dir=rtl] .svc-card::after {
  transform-origin: right;
}

.svc-card:hover {
  border-color: var(--brand);
  background: var(--brand-dim);
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-card:hover::after {
  transform: scaleX(1);
}

.svc-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-light);
  margin-bottom: 28px;
  transition: 0.4s;
}

.svc-card:hover .svc-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border-color: transparent;
  transform: scale(1.04);
}

.svc-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  transition: 0.3s;
}

.svc-card:hover .svc-title {
  color: var(--brand-light);
}

.svc-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.svc-tag {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--brand-light);
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  border-radius: 100px;
  padding: 5px 14px;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  opacity: 0.8;
}

.svc-link:hover {
  opacity: 1;
  gap: 14px;
}

.svc-number {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--brand-border);
}

[dir=ltr] .svc-number {
  right: auto;
  left: 28px;
}

.svc-card.featured {
  background: linear-gradient(145deg, rgba(var(--brand-rgb), 0.09), var(--surface));
  border-color: rgba(var(--brand-rgb), 0.5);
}

.svc-card.featured .svc-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
}

.process {
  padding: var(--section-padding);
  background: var(--surface);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--brand-border);
  border: 1px solid var(--brand-border);
  border-radius: 28px;
  overflow: hidden;
  margin-top: 60px;
}

.process-step {
  background: var(--surface);
  padding: 44px 32px;
  position: relative;
  transition: 0.4s;
}

.process-step:hover {
  background: var(--surface2);
}

.process-step-num {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 700;
  color: var(--brand-border);
  line-height: 1;
  margin-bottom: 24px;
  transition: 0.3s;
}

.process-step:hover .process-step-num {
  color: var(--brand);
}

.process-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--brand-light);
}

.process-step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}






















.form-input select,
.form-input option {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

/* أعمال مختارة: صفوف كبيرة متناوبة — البصري 60% والنص 40% */
.work {
  padding: var(--section-padding);
}

.work-list {
  display: grid;
  gap: clamp(36px, 4.5vw, 64px);
  padding-bottom: 3%;
}

.work-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.work-row:nth-child(even) .work-visual {
  order: 2;
}

.work-visual {
  position: relative;
  display: block;
}

.work-visual .browser img {
  transition: transform 0.6s var(--ease);
}

.work-visual:hover .browser img {
  transform: scale(1.02);
}

.work-row.is-platform .work-visual .browser {
  border-color: var(--brand-border);
}

.phone {
  position: absolute;
  bottom: -6%;
  inset-inline-end: -4%;
  width: 22%;
  margin: 0;
  border: 6px solid var(--surface3);
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}

/* تطبيق: ثلاثة جوالات جنباً إلى جنب، الأوسط أعلى قليلاً — بلا متصفح */
.app-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
  align-items: end;
  padding: 4% 6% 0;
}

.phone-static {
  position: static;
  width: auto;
  border-width: 5px;
  border-radius: 22px;
}

.phone-static img {
  aspect-ratio: 390 / 672;
}

.app-phones .phone-static:nth-child(2) {
  transform: translateY(-6%);
}

.work-visual:hover .app-phones img {
  transform: none;
}

.work-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.work-cat {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.work-name {
  margin-top: 6px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--text);
}

.work-desc {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.9;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.work-tag {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.work-link i {
  font-size: 0.8em;
  transition: transform 0.3s var(--ease);
}

.work-link:hover i {
  transform: translate(2px, -2px);
}

[dir=rtl] .work-link:hover i {
  transform: translate(-2px, -2px);
}

@media (max-width: 900px) {
  .work-row,
  .work-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .work-row:nth-child(even) .work-visual {
    order: 0;
  }

  .phone:not(.phone-static) {
    width: 26%;
    bottom: -4%;
    inset-inline-end: 0;
  }
}

.about {
  padding: var(--section-padding);
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-inner {
  background: var(--surface2);
  border: 1px solid var(--brand-border);
  border-radius: 32px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--brand-rgb), 0.07), transparent 60%);
}

/*
 * الشعار يُعرض هنا بحجمه الكامل: هذا هو الموضع الوحيد في الصفحة
 * الذي يمكن فيه قراءة اسم "أوليكس" بحروفه العربية ومسارات الدارة
 * داخلها. كان مكانه أيقونة جوهرة جاهزة لا تخصّ الهوية بشيء.
 */
.about-visual-logo {
  width: min(260px, 68%);
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 34px rgba(var(--brand-rgb), 0.45));
  animation: float 5s ease-in-out infinite;
}

.about-visual-ring {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-light-rgb), 0.18);
  z-index: 1;
}

.about-visual-ring::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--brand-light-rgb), 0.12);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-list-item i {
  color: var(--brand-light);
  margin-top: 4px;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact {
  padding: var(--section-padding);
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface2);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 22px 26px;
  text-decoration: none;
  transition: 0.4s;
}

.contact-info-card:hover {
  background: var(--surface3);
  border-color: rgba(var(--brand-rgb), 0.6);
  transform: translateX(-6px);
}

[dir=ltr] .contact-info-card:hover {
  transform: translateX(6px);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 1.5px;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form {
  background: var(--surface2);
  border: 1px solid var(--brand-border);
  border-radius: 32px;
  padding: 44px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface3);
  border: 1.5px solid var(--brand-border);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s;
  resize: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand);
  background: rgba(var(--brand-rgb), 0.04);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.08);
}

.form-textarea {
  min-height: 130px;
}

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border: none;
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.form-submit:hover {
  box-shadow: 0 14px 30px rgba(var(--brand-rgb), 0.45);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.footer {
  padding: 56px 0 26px;
  background: var(--black);
  border-top: 1px solid var(--brand-border);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 60px;
  align-items: start;
  padding-bottom: 34px;
}

.footer-brand-text {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
  padding-bottom: 0.1em;
}

[dir=rtl] .footer-brand-text {
  font-family: var(--font-ar);
  font-size: 1.7rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 380px;
}

/* الروابط صفٌّ يلتفّ، لا عمودٌ يُطيل التذييل */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-content: start;
  max-width: 420px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s var(--ease);
}

.footer-nav a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  border-top: 1px solid var(--brand-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.footer-social a:hover {
  background: var(--brand-dim);
  border-color: var(--brand-light);
  color: var(--brand-light);
}

.wa-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: 0.3s;
  animation: waRing 2.5s infinite;
}

[dir=ltr] .wa-float {
  left: auto;
  right: 32px;
}

@keyframes waRing {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 16px rgba(37, 211, 102, 0);
  }
}

.wa-float:hover {
  transform: scale(1.12);
}

.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  background: var(--surface2);
  border: 1.5px solid var(--brand-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-light);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, border-color 0.3s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

[dir=ltr] .scroll-top-btn {
  right: auto;
  left: 108px;
}

.scroll-top-btn:hover {
  background: var(--brand);
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 99000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--brand-border);
  border-radius: 36px;
  max-width: 600px;
  width: 100%;
  padding: 52px 44px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.4s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-border);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}

[dir=ltr] .modal-close {
  right: auto;
  left: 22px;
}

.modal-close:hover {
  background: var(--brand-dim);
  color: var(--brand-light);
  transform: rotate(90deg);
}

.modal-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 28px;
}

.modal-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--brand-light);
}

.modal-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.modal-body ul {
  margin: 16px 0;
  padding-right: 0;
  list-style: none;
}

[dir=ltr] .modal-body ul {
  padding-left: 0;
}

.modal-body li {
  padding: 10px 0;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.modal-body li::before {
  content: '✦';
  color: var(--brand-light);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.modal-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.modal-cta:hover {
  box-shadow: 0 12px 28px rgba(var(--brand-rgb), 0.45);
}

@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }



  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-visual {
    max-width: 450px;
    margin: 0 auto;
  }

}

/*
 * القائمة العلوية تحمل شعاراً أكبر وروابط ستة وثلاث مجموعات
 * إجراءات، فتتزاحم قبل 768 بكثير. الانهيار إلى زر القائمة يبدأ
 * من 1100، وقياس الشريط هو ما حدّد الرقم لا التخمين.
 */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  /* على الجوال يبقى زرّا اللغة والثيم في الشريط العلوي، ويختفي الباقي إلى القائمة */
  .nav-actions .btn-panel,
  .nav-actions .btn-cta-nav {
    display: none;
  }

  .nav-utils {
    border: 0;
    padding: 0;
    margin: 0;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu .nav-links {
    display: flex;
  }
}

@media (max-width: 768px) {
  /*
   * إيقاع الجوال: 104 بكسل فوق القسم ومثلها تحته تعني 208 بكسل
   * فراغاً بين كل قسمين على شاشة عرضها 375 — الأقسام تبدو متباعدة
   * لا مترابطة. المقياس يصغر مع الشاشة بدل أن يبقى مقاس المكتب.
   */
  :root {
    --section-padding: 52px 0;
  }

  .container {
    padding: 0 22px;
  }

  .hero {
    padding-top: calc(var(--btn-h) + 64px);
  }

  /* على الجوال: المتصفح الرئيسي أولاً ثم سحب أفقي للبقية */
  /* الجوال: الشعار وحده بعرض الشاشة، والتموّج يبقى ظاهراً حول الهيرو */
  .hero-show {
    margin-top: 8px;
    overflow: hidden;
  }


  .section-head {
    margin-bottom: 32px;
  }

  .nav {
    padding: 14px 0;
  }

  .nav-logo-img,
  .nav.scrolled .nav-logo-img {
    height: 36px;
  }

  .hero-badge {
    font-size: 0.72rem;
  }

  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 320px;
  }

  /* التذييل عمود واحد، والسطر الأخير متمركز بدل طرفين متباعدين */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 26px;
  }

  .footer-nav {
    max-width: none;
    gap: 12px 22px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .wa-float,
  .scroll-top-btn {
    bottom: 18px;
  }

}

@media (max-width: 480px) {
  :root {
    --section-padding: 44px 0;
  }

  .container {
    padding: 0 18px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .modal-box {
    padding: 36px 24px;
  }

  .pf-step,
  .pf-plan {
    padding: 18px;
  }

  .footer {
    padding: 46px 0 22px;
  }
}
  
/* ============ منصة olyx ============ */

.platform {
  padding: var(--section-padding);
  background: var(--surface);
}

.pf-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 40px;
}

/* محاكاة اللوحة: شريط متصفّح فيه العنوان الحقيقي، فيُعرف ما يُنظر إليه */











/* لقطة اللوحة الحقيقية: صورة داكنة داخل بطاقة، تلتصق بجانب الخطوات على سطح المكتب */
/* لقطة اللوحة الحقيقية مقصوصة بلا خلفية: جهازان يجلسان على الصفحة، لا بطاقة */
.pf-visual {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pf-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(18, 32, 30, 0.22));
}

body.dark .pf-visual img {
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

.pf-visual figcaption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
}

.pf-steps {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
}

.pf-step {
  display: flex;
  gap: 18px;
  background: var(--surface2);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.pf-step:hover {
  border-color: rgba(var(--brand-light-rgb), 0.5);
}

/*
 * الترقيم هنا صحيح لأن الخطوات متسلسلة فعلاً: تطلب، ثم نجهّز، ثم
 * تدير. الرقم يحمل معلومة الترتيب، لا زينة.
 */
.pf-step-n {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-light);
  padding-top: 2px;
}

.pf-step h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.pf-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pf-plans-head {
  margin-bottom: 28px;
}

.pf-plans-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin: 0;
}

.pf-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.pf-plan {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.pf-plan.pick { border-color: var(--brand-light); }

.pf-badge {
  position: absolute;
  top: -12px;
  inset-inline-end: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 40px;
}

.pf-plan .svc-desc { flex: 1; }

.pf-plan-cta {
  margin-top: 4px;
  border: 1px solid var(--brand-border);
  color: var(--brand-light);
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 0.86rem;
  text-decoration: none;
  transition: 0.3s var(--ease);
}

.pf-plan.pick .pf-plan-cta { background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; border-color: transparent; }
.pf-plan-cta:hover { background: var(--brand-deep); }







/* ============ الأسئلة الشائعة ============ */

.faqsec {
  padding: var(--section-padding);
}

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--surface2);
  border: 1px solid var(--brand-border);
  border-radius: 15px;
  padding: 0 22px;
}

.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 0 18px; color: var(--muted); font-size: 0.93rem; }

@media (max-width: 1024px) {
  .pf-top {
    grid-template-columns: 1fr;
  }
}

/* ---- أرضية الجودة: تركيز ظاهر بلوحة المفاتيح، وحركة تُحترم ---- */

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 14px;
  top: -100px;
  z-index: 100001;
  background: var(--brand);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .hero-seq {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* حالة النموذج: لون وأيقونة بدل الرموز التعبيرية */
.form-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-status.ok {
  color: var(--brand);
}

.form-status.err {
  color: #C0392B;
}

/* متصفح مصغّر متداخل: لقطة ثانية من داخل النظام */
.browser-mini {
  position: absolute;
  bottom: -8%;
  inset-inline-end: -4%;
  width: 46%;
  border-width: 1px;
}

.browser-mini .browser-bar {
  padding: 6px 10px;
}

.browser-mini .browser-bar i {
  width: 6px;
  height: 6px;
}

/* حين يوجد جوال ومتصفح مصغّر معاً: الجوال في زاوية والمصغّر في المقابلة */
.phone ~ .browser-mini {
  inset-inline-end: auto;
  inset-inline-start: -4%;
  width: 40%;
}


/* الشريط يلتصق بالهيرو، والقسم بعده يبدأ قريباً — لا فراغات ميتة */
.marquee-section + .section {
  padding-top: 48px;
}

/* الوسط بلا إطار: صورة الشعار تذوب حوافها في الخلفية (قناع شعاعي)، والحلقات
   تخرج منها إلى الصفحة كلها. كله transform/opacity، ويتوقف مع تقليل الحركة. */
.hero-show .hero-main {
  grid-area: 1 / 1;
  display: block;
  position: relative;
  width: 58%;
  margin-inline: auto;
  z-index: 2;
  text-decoration: none;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.hero-live {
  position: relative;
  display: block;
  aspect-ratio: 1556 / 1011;
}

.hero-orb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* القناع على الحاوية والصورة معاً: Chromium يتجاهل قناع الأب حين يُمزج الابن */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, transparent 72%);
}

.hero-orb img {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, transparent 72%);
}

.hero-orb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroBreathe 14s ease-in-out infinite;
  transform-origin: center;
}

body.dark .hero-orb img {
  mix-blend-mode: normal;
}

@keyframes heroBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.hero-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  aspect-ratio: 1;
  margin: -20% 0 0 -20%;
  border-radius: 50%;
  border: 2px solid rgba(var(--brand-rgb), 0.55);
  box-shadow: 0 0 30px rgba(var(--brand-rgb), 0.25), inset 0 0 30px rgba(var(--brand-rgb), 0.15);
  opacity: 0;
  animation: heroRipple 7s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

body.dark .hero-ring {
  border-color: rgba(var(--brand-light-rgb), 0.7);
  box-shadow: 0 0 34px rgba(var(--brand-light-rgb), 0.35), inset 0 0 30px rgba(var(--brand-light-rgb), 0.2);
}

.hero-ring:nth-child(2) { animation-delay: 2.3s; }
.hero-ring:nth-child(3) { animation-delay: 4.6s; }

@keyframes heroRipple {
  0% { transform: scale(0.5); opacity: 0; }
  10% { opacity: 0.85; }
  100% { transform: scale(6); opacity: 0; }
}

.hero-sheen {
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, 0.35) 50%, transparent 56%);
  transform: translateX(-70%);
  animation: heroSheen 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroSheen {
  0%, 55% { transform: translateX(-70%); }
  80%, 100% { transform: translateX(70%); }
}

.hero-main:hover .hero-orb img {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb img, .hero-ring, .hero-sheen { animation: none; }
  .hero-ring, .hero-sheen { display: none; }
}

/* الجوال: أعمال أبسط — لا متصفح مصغّر فوق الجوال، والتطبيق بجوالاته الثلاثة أعرض،
   ورسمة «من نحن» أصغر حتى لا تبتلع الشاشة */
@media (max-width: 600px) {
  .browser-mini {
    display: none;
  }

  .phone:not(.phone-static) {
    width: 30%;
    bottom: -3%;
    inset-inline-end: 2%;
  }

  .app-phones {
    gap: 3%;
    padding: 3% 0 0;
  }

  .work-name {
    font-size: 1.35rem;
  }

  .about-visual {
    max-width: 280px;
    margin: 0 auto 8px;
  }

  .process-step-num {
    font-size: 2.6rem;
  }

  .faq-item summary {
    font-size: 0.98rem;
  }
}

/* الجوال: الشعار أعرض من الشاشة قليلاً حتى يُقرأ، وحوافه تذوب فلا يظهر القص */
@media (max-width: 768px) {
  .hero-show .hero-main {
    width: 124%;
    margin-inline: -12%;
    transform: none !important;
  }

  /* على الجوال يخرج جزء من الصورة عن الشاشة، فيُشدّ القناع حتى تذوب الحواف قبل القصّ */
  .hero-orb,
  .hero-orb img {
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 62%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 62%);
  }
}

/* ============ الجوال: صفحة أقصر وأكثر ترتيباً ============ */
@media (max-width: 768px) {
  /* الخدمات: شريط يُسحب باللمس يميناً ويساراً بدل ستة بطاقات فوق بعض */
  .services-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 0 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .services-grid .svc-card {
    flex: 0 0 82%;
    max-width: 320px;
    scroll-snap-align: start;
    padding: 26px 22px;
    border-radius: 22px;
  }

  .svc-card .svc-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  .svc-title {
    font-size: 1.1rem;
  }

  /* الخطوات: خط زمني عمودي، كل خطوة تظهر بدورها عند النزول */
  .process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
    margin-top: 12px;
    position: relative;
    padding-inline-start: 30px;
  }

  .process-grid::before {
    content: '';
    position: absolute;
    inset-block: 14px;
    inset-inline-start: 9px;
    width: 2px;
    background: var(--brand-border);
  }

  .process-step {
    background: none;
    padding: 6px 0 26px;
    position: relative;
  }

  .process-step::before {
    content: '';
    position: absolute;
    inset-inline-start: -27px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-dim);
  }

  .process-step-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
  }

  .process-step-title {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 6px;
  }

  .process-step-desc {
    font-size: 0.9rem;
  }

  /* الخطوات تدخل من جهة الخط بالتتابع */
  .js .process-step.reveal {
    transform: translateX(12px);
  }

  [dir=ltr] .js .process-step.reveal {
    transform: translateX(-12px);
  }

  .js .process-step.reveal.visible {
    transform: none;
  }

  /* اختصار الطول: هيرو أقرب للأعلى، وخطوات المنصة والباقات أضيق */
  .hero {
    padding-top: calc(var(--btn-h) + 40px);
  }

  .hero-h1 {
    font-size: 2.1rem;
  }

  .pf-step {
    padding: 16px 18px;
  }

  .pf-steps {
    gap: 10px;
  }

  .pf-plan {
    padding: 22px 20px;
  }

  .section-head {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 36px 0;
  }
}

/* الجوال: بطاقات التواصل الأربع في شبكة 2×2 بدل عمود طويل */
@media (max-width: 600px) {
  .contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .contact-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 12px;
    border-radius: 16px;
  }

  .contact-info-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  /* حواف الشعار تذوب قبل حافة الشاشة بهامش أوسع */
  .hero-orb,
  .hero-orb img {
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 36%, transparent 58%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 36%, transparent 58%);
  }
}

/* التواصل: العمودان بنفس الارتفاع، والبطاقتان تتقاسمان ارتفاع النموذج */
.contact-grid {
  align-items: stretch;
}

.contact-grid > div:first-child {
  display: flex;
  flex-direction: column;
}

.contact-info-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-info-card {
  flex: 1;
  min-height: 0;
}

@media (max-width: 600px) {
  .contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* بطاقتان كبيرتان: الأيقونة والاسم في الوسط ليقرآ كزرّين لا كصفّين فارغين */
@media (min-width: 601px) {
  .contact-info-card {
    justify-content: center;
    gap: 18px;
  }

  .contact-info-card .contact-info-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .contact-info-card .contact-info-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0;
  }
}

/* ============ مراجعة المحتوى 2026-09-18 ============ */

/* الأقسام تظهر تحت الشريط الثابت عند الانتقال إليها */
section[id] {
  scroll-margin-top: 84px;
}

/* سطر ميزة اللوحة تحت الوصف */
.hero-panel {
  margin: 14px auto 0;
  max-width: 620px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: start;
}

.hero-panel i {
  color: var(--brand);
  flex-shrink: 0;
}

/* الشعار أصغر بـ 30% ليظهر ما بعده مبكراً */
.hero-show {
  margin-top: 44px;
}

.hero-show .hero-main {
  width: 42%;
}

/* الباقات: صفوف قابلة للمقارنة */
.pf-rows {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pf-rows li {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.pf-row-k {
  color: var(--muted);
  font-size: 0.78rem;
}

.pf-row-v {
  color: var(--text);
  line-height: 1.6;
}

.pf-badge {
  display: none;
}

/* الأعمال: الحالة وما نُفّذ، وزر عرض الكل */
.work-status {
  color: var(--brand);
  font-weight: 600;
}

.work-did {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.work-tags {
  margin-top: 8px;
}

.work-row[hidden] {
  display: none;
}

.work-more {
  text-align: center;
  margin-top: 8px;
}

.work-more .btn-outline i {
  transition: transform 0.3s var(--ease);
}

.work-more .btn-outline[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* «تفاصيل الخدمة» زر حقيقي يرث شكل الرابط */
button.svc-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* تركيز ظاهر بلوحة المفاتيح على كل ما يُضغط */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.modal-box:focus {
  outline: none;
}

/* الفاتح: نصوص ثانوية وحدود أوضح */
:root {
  --muted: #4E605D;
  --line: rgba(18, 32, 30, 0.12);
}

.form-input,
.form-textarea {
  border: 1px solid rgba(18, 32, 30, 0.18);
}

body.dark .form-input,
body.dark .form-textarea {
  border-color: rgba(236, 241, 240, 0.14);
}

/* الأزرار العائمة لا تغطي آخر الصفحة */
.footer {
  padding-bottom: 96px;
}

/* الجوال: مؤشرات تدل على وجود خدمات أخرى في الشريط */
@media (max-width: 768px) {
  .services-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
  }

  .services-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .services-dots i.is-active {
    background: var(--brand);
    transform: scale(1.25);
  }

  .hero-show .hero-main {
    width: 110%;
    margin-inline: -5%;
  }
}

@media (min-width: 769px) {
  .services-dots {
    display: none;
  }
}
