/* ══════════════════════════════════════════════════════════════
   WebNas — style.css  v4.0 "دفتر المراجع الزجاجي"
   الهوية: كحلي #082A63 · أزرق #1976FF · سماوي #27C5FF
   Cairo (عربي) + Poppins (لاتيني/أرقام) | فاتح/داكن | RTL | AA
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Light (default) */
  --bg:          #F5F7FA;
  --bg2:         #ECF1F8;
  --surface:     #FFFFFF;
  --surface2:    #F8FAFD;
  --border:      rgba(8, 42, 99, 0.10);
  --border2:     rgba(8, 42, 99, 0.18);
  --ink:         #082A63;   /* عناوين */
  --text:        #1C3253;   /* نص أساسي */
  --text2:       #46587A;   /* نص ثانوي */
  --muted:       #5B6C8C;   /* هوامش — على الأسطح الفاتحة فقط */
  --primary:     #0D5BDD;   /* الفعل الأساسي (أزرق عميق AA) */
  --primary-hi:  #1976FF;
  --cyan:        #27C5FF;
  --accent-ink:  #0A58CC;   /* نص أزرق صغير على فاتح */
  --wa:          #0E7A52;   /* واتساب AA على فاتح */
  --wa-ink:      #FFFFFF;
  --panel:       #082A63;   /* اللوح الكحلي (نتائج الحاسبة/التواصل) */
  --panel-2:     #0B3A8C;
  --panel-text:  #F2F7FF;
  --panel-text2: #B9CDF2;
  --glass:       rgba(255, 255, 255, 0.72);
  --glass-brd:   rgba(8, 42, 99, 0.12);
  --shadow-sm:   0 2px 10px rgba(8, 42, 99, 0.07);
  --shadow:      0 10px 32px rgba(8, 42, 99, 0.10);
  --shadow-lg:   0 18px 48px rgba(8, 42, 99, 0.14);
  --grad:        linear-gradient(135deg, #1976FF, #27C5FF);
  --grad-panel:  linear-gradient(160deg, #082A63, #0B3A8C 65%, #0E56B8);
  --ok:          #0E7A52;
  --radius:      18px;
  --radius-sm:   12px;
  --radius-pill: 999px;
  --font:        'Poppins', 'Cairo', sans-serif; /* لاتيني→Poppins، عربي→Cairo */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint */
  --transition:  0.3s var(--ease);
}

[data-theme="dark"] {
  --bg:          #060F22;
  --bg2:         #0A1730;
  --surface:     #0D1B36;
  --surface2:    #122244;
  --border:      rgba(148, 178, 255, 0.14);
  --border2:     rgba(148, 178, 255, 0.24);
  --ink:         #EAF1FC;
  --text:        #DCE6F5;
  --text2:       #A8BAD8;
  --muted:       #8496B8;
  --primary:     #27C5FF;   /* في الداكن: الفعل سماوي بنص كحلي */
  --primary-hi:  #6FD8FF;
  --accent-ink:  #6FB6FF;
  --wa:          #2BD97E;
  --wa-ink:      #06301C;
  --panel:       #0B2150;
  --panel-2:     #0E2E6E;
  --panel-text:  #F2F7FF;
  --panel-text2: #B9CDF2;
  --glass:       rgba(13, 27, 54, 0.72);
  --glass-brd:   rgba(148, 178, 255, 0.16);
  --shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.30);
  --shadow:      0 10px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg:   0 18px 48px rgba(0, 0, 0, 0.46);
  --grad-panel:  linear-gradient(160deg, #0B2150, #0E2E6E 65%, #1252B4);
  --ok:          #2BD97E;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* ارتفاع الناف يتبع مقاس الشعار المضبوط من اللوحة (--logo-h يُحقن في index.php) */
:root { --nav-h: max(72px, calc(var(--logo-h, 44px) + 28px)); }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  overflow-x: hidden;
  direction: rtl;
  transition: background 0.35s ease, color 0.35s ease;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; }
ul { list-style: none; }

/* أسطح المتصفح تحمل الهوية أيضاً */
::selection { background: rgba(39, 197, 255, 0.35); color: var(--ink); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
input { caret-color: var(--primary); accent-color: var(--primary); }

/* ── Container & section rhythm ─────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }

.section-tag {
  display: inline-block; padding: 0.35rem 1rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700;
  color: var(--accent-ink); margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1.35; margin-bottom: 0.6rem;
  color: var(--ink); text-wrap: balance;
}
.section-subtitle { color: var(--text2); font-size: 1rem; max-width: 560px; }
.section-header { text-align: center; margin-bottom: 3.25rem; }
.section-header .section-subtitle { margin-inline: auto; }

/* التأكيد داخل العناوين: لون صلب — لا نص متدرج */
.gradient-text {
  background: none; -webkit-text-fill-color: currentColor;
  color: var(--accent-ink); font-weight: 800;
}
.hero .gradient-text, .contact .gradient-text { color: var(--cyan); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.8rem 1.6rem; min-height: 48px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 0.97rem;
  border: none; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 22px rgba(13, 91, 221, 0.28);
}
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #27C5FF, #6FD8FF);
  color: #082A63;
  box-shadow: 0 8px 22px rgba(39, 197, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(13, 91, 221, 0.34); }
.btn-outline {
  background: transparent; color: var(--accent-ink);
  border: 1.5px solid var(--border2); min-height: 44px;
}
.btn-outline:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.btn-ghost {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 11%, transparent); }
.btn-whatsapp {
  background: var(--wa); color: var(--wa-ink);
  font-size: 1.02rem; padding: 0.95rem 2rem;
  box-shadow: 0 8px 22px rgba(14, 122, 82, 0.28);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14, 122, 82, 0.34); }
[data-theme="dark"] .btn-whatsapp { box-shadow: 0 8px 22px rgba(43, 217, 126, 0.20); }
.btn-lg { padding: 1rem 2.3rem; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR — زجاج
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  padding: 0.8rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(8, 42, 99, 0.10);
  transition: box-shadow 0.3s ease;
  /* لوح أبيض ثابت في الوضعين ⇒ نثبّت توكِنز الحبر الفاتحة داخله،
     فتتبعها تلقائياً قواعد .logo-ar و.nav-link و.theme-toggle و.hamburger والدرج */
  --ink: #082A63; --text2: #46587A; --muted: #5B6C8C;
  --primary: #0D5BDD; --accent-ink: #0A58CC;
  --border: rgba(8, 42, 99, 0.10); --border2: rgba(8, 42, 99, 0.18);
  --surface: #fff;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 1.35rem; }
.logo-ar { color: var(--ink); }
.logo-accent { color: var(--accent-ink); }
.logo-en { font-size: 0.62rem; color: var(--muted); font-weight: 600; letter-spacing: 0.14em; }
.logo-img { height: var(--logo-h, 44px); width: auto; max-width: min(300px, 46vw); object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  color: var(--text2); font-size: 0.9rem; font-weight: 600;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.nav-link.btn-outline { padding: 0.4rem 1.1rem; color: var(--accent-ink); }

/* زر الثيم */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border2);
  color: var(--text2); display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent-ink); border-color: var(--primary); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  background: none; border: none; width: 44px; height: 44px; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.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-overlay {
  display: none; position: fixed; inset: 0; z-index: 490;
  background: rgba(8, 42, 99, 0.45); backdrop-filter: blur(3px);
}
.mobile-overlay.open { display: block; }

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 495;
    width: min(300px, 82vw); flex-direction: column; align-items: stretch;
    background: var(--surface); padding: 5.5rem 1.25rem 2rem;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
    gap: 0.2rem; border-inline-start: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { width: 100%; padding: 0.8rem 1rem; font-size: 1rem; }
  .nav-link.btn-outline { justify-content: center; margin-top: 0.5rem; }
}

/* ══════════════════════════════════════════════════════════════
   HERO — اللوح الكحلي بسماء سماوية
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding-top: calc(var(--nav-h) + 18px);
  background: var(--grad-panel);
  color: var(--panel-text);
}
.hero-aurora {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-aurora::before, .hero-aurora::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55;
}
.hero-aurora::before {
  width: 55vmax; height: 55vmax; top: -22vmax; left: -12vmax;
  background: radial-gradient(circle, rgba(39, 197, 255, 0.5), transparent 65%);
  animation: auroraDrift 16s var(--ease) infinite alternate;
}
.hero-aurora::after {
  width: 45vmax; height: 45vmax; bottom: -20vmax; right: -10vmax;
  background: radial-gradient(circle, rgba(25, 118, 255, 0.45), transparent 65%);
  animation: auroraDrift 19s var(--ease) infinite alternate-reverse;
}
@keyframes auroraDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}
.hero-inner {
  position: relative; z-index: 2; padding-block: 3.5rem 4.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-content { max-width: 760px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 1.05rem;
  background: rgba(39, 197, 255, 0.12);
  border: 1px solid rgba(39, 197, 255, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.84rem; font-weight: 700; color: #A8E7FF;
  margin-bottom: 1.5rem;
  animation: riseIn 0.7s var(--ease) both;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  animation: pulseDot 2.4s ease infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.hero-title {
  font-size: clamp(2rem, 5.6vw, 3.5rem); font-weight: 800; line-height: 1.3;
  margin-bottom: 1.25rem; color: #fff; text-wrap: balance;
  animation: riseIn 0.8s 0.08s var(--ease) both;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--panel-text2); line-height: 1.85;
  max-width: 560px; margin-inline: auto; margin-bottom: 2.25rem;
  animation: riseIn 0.8s 0.16s var(--ease) both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-bottom: 2.75rem;
  animation: riseIn 0.8s 0.24s var(--ease) both;
}
/* أزرار الهيرو فوق الكحلي: الأساسي سماوي بنص كحلي (AA) */
.hero .btn-primary {
  background: linear-gradient(135deg, #27C5FF, #7FDCFF);
  color: #082A63; box-shadow: 0 10px 28px rgba(4, 16, 42, 0.45);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08); color: #EAF3FF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }

.hero-stats {
  display: flex; align-items: stretch; justify-content: center; gap: 0.85rem; flex-wrap: wrap;
  animation: riseIn 0.8s 0.32s var(--ease) both;
}
.hero-stat {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0.7rem 1.25rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-stat-num { font-size: 1.45rem; font-weight: 700; color: #7FDCFF; direction: ltr; text-align: right; }
.hero-stat-label { font-size: 0.8rem; color: var(--panel-text2); }
.hero-stat-divider { display: none; }

.scroll-hint { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-chevron { display: flex; flex-direction: column; align-items: center; gap: -2px; opacity: 0.7; }
.scroll-chevron svg { display: block; color: #A8E7FF; }
.scroll-chevron svg + svg { margin-top: -10px; animation: chevronFade 1.8s var(--ease) infinite; }
@keyframes chevronFade { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(4px); } }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS (قسم مستقل — مخفي افتراضياً)
   ══════════════════════════════════════════════════════════════ */
.testimonials-section { padding: 2.5rem 0; }
.marquee-label {
  text-align: center; font-size: 0.78rem; color: var(--muted);
  font-weight: 700; margin-bottom: 0.9rem;
}
.marquee-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: marqueeScroll 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
.marquee-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.7rem 1.1rem; white-space: nowrap;
  font-size: 0.87rem; color: var(--text2); flex-shrink: 0;
  max-width: 300px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--shadow-sm);
}
.marquee-item strong { color: var(--ink); font-size: 0.8rem; display: block; margin-bottom: 0.1rem; }

/* ══════════════════════════════════════════════════════════════
   AUTHORITY BAR
   ══════════════════════════════════════════════════════════════ */
.authority-bar {
  padding: 1.4rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.authority-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.6rem 1rem;
}
.authority-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem; min-height: 40px;
  background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.authority-item.visible { opacity: 1; transform: translateY(0); }
.authority-item:nth-child(1) { transition-delay: 0.04s; }
.authority-item:nth-child(2) { transition-delay: 0.10s; }
.authority-item:nth-child(3) { transition-delay: 0.16s; }
.authority-item:nth-child(4) { transition-delay: 0.22s; }
.authority-item:nth-child(5) { transition-delay: 0.28s; }
.authority-icon { font-size: 1rem; }
.authority-label { font-size: 0.82rem; font-weight: 700; color: var(--text2); }

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════════ */
.how-it-works { padding: 5.5rem 0 5rem; }
.steps-wrapper { position: relative; display: flex; gap: 2rem; align-items: flex-start; }
.steps-connector {
  position: absolute; top: 30px; right: calc(16.6% + 42px); left: calc(16.6% + 42px);
  height: 2px; background: linear-gradient(to left, var(--cyan), var(--primary-hi));
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
  pointer-events: none; border-radius: 2px;
}
.steps-connector.draw { clip-path: inset(0 0% 0 0); }

.step-card { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-number-wrap {
  width: 60px; height: 60px; border-radius: 50%; margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--border2);
  margin-bottom: 1.2rem; box-shadow: var(--shadow-sm);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.3s var(--ease);
}
.step-card:hover .step-number-wrap {
  border-color: var(--primary); box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.step-number { font-size: 1.2rem; font-weight: 700; color: var(--accent-ink); }
.step-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.45rem; color: var(--ink); }
.step-desc { font-size: 0.9rem; color: var(--text2); line-height: 1.75; }

@media (max-width: 640px) {
  .steps-wrapper { flex-direction: column; gap: 1.5rem; }
  .steps-connector { display: none; }
  .step-card { text-align: right; display: flex; gap: 1rem; align-items: flex-start; }
  .step-number-wrap { margin: 0; flex-shrink: 0; }
}

/* ══════════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════════ */
.services { padding: 5rem 0; background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
.service-card-top { padding: 1.75rem 1.75rem 0.75rem; }
.service-icon-wrap {
  width: 54px; height: 54px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.5rem;
  transition: transform 0.3s var(--ease);
}
.service-card:hover .service-icon-wrap { transform: scale(1.06); }
.service-title { font-size: 1.08rem; font-weight: 800; margin-bottom: 0.55rem; color: var(--ink); }
.service-desc { font-size: 0.9rem; color: var(--text2); line-height: 1.8; margin-bottom: 0.75rem; }
.service-features { padding: 0 1.75rem; margin-bottom: 0.85rem; }
.service-feature {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text2); padding: 0.34rem 0;
  border-bottom: 1px solid var(--border);
}
.service-feature:last-child { border-bottom: none; }
.service-feature::before { content: '✓'; color: var(--ok); font-weight: 800; flex-shrink: 0; }

/* موكابات الخدمات */
.service-mockup {
  margin: 0 1.25rem 1.25rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; font-size: 0.78rem;
}
.mock-chat-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.8rem; background: var(--bg2);
  border-bottom: 1px solid var(--border); font-size: 0.75rem; font-weight: 700; color: var(--ink);
}
.mock-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.mock-online { color: var(--ok); font-size: 0.7rem; margin-right: auto; font-weight: 700; }
.mock-chat-body { padding: 0.7rem; display: flex; flex-direction: column; gap: 0.45rem; }
.mock-msg { display: flex; }
.mock-msg--in { justify-content: flex-end; }
.mock-msg--out { justify-content: flex-start; }
.mock-bubble { padding: 0.4rem 0.7rem; border-radius: 12px; max-width: 80%; font-size: 0.77rem; line-height: 1.5; }
.mock-msg--in  .mock-bubble { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--text); }
.mock-msg--out .mock-bubble { background: var(--bg2); color: var(--text2); }
.mock-typing { display: inline-flex; gap: 3px; align-items: center; }
.mock-typing span { width: 4px; height: 4px; background: var(--text2); border-radius: 50%; animation: typingDot 1.2s ease infinite; }
.mock-typing span:nth-child(2) { animation-delay: 0.2s; }
.mock-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

.mock-dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.8rem; background: var(--bg2); border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; color: var(--ink);
}
.mock-dash-badge {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok); padding: 0.15rem 0.5rem; border-radius: var(--radius-pill); font-size: 0.68rem; font-weight: 700;
}
.mock-dash-stats { display: flex; gap: 0.5rem; padding: 0.7rem 0.8rem; }
.mock-dash-stat { flex: 1; text-align: center; }
.mock-dash-val { font-size: 0.9rem; font-weight: 700; color: var(--accent-ink); direction: ltr; }
.mock-dash-lbl { font-size: 0.68rem; color: var(--text2); }
.mock-chart { display: flex; align-items: flex-end; gap: 4px; padding: 0 0.8rem 0.7rem; height: 48px; }
.mock-bar {
  flex: 1; height: var(--h, 50%);
  background: linear-gradient(180deg, var(--primary-hi), var(--cyan));
  border-radius: 3px 3px 0 0; min-height: 5px;
  animation: barGrow 0.8s var(--ease) both;
}
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }

.mock-roadmap { padding: 0.7rem 0.8rem; }
.mock-rm-step {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.32rem 0; font-size: 0.75rem; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.mock-rm-step:last-child { border-bottom: none; }
.mock-rm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-rm-dot.done { background: var(--ok); }
.mock-rm-dot.active { background: var(--primary); }
.mock-rm-dot.pending { background: var(--border2); }

.service-card-footer { padding: 0.85rem 1.75rem 1.1rem; border-top: 1px solid var(--border); margin-top: auto; }
.service-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  color: var(--accent-ink); font-size: 0.9rem; font-weight: 700;
  transition: gap 0.25s var(--ease);
}
.service-cta:hover { gap: 0.7rem; }

/* ══════════════════════════════════════════════════════════════
   PRODUCTS
   ══════════════════════════════════════════════════════════════ */
.products { padding: 5.5rem 0; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
@media (min-width: 560px) and (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); max-width: none; } }

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.1rem 1.5rem 1.75rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.product-visual {
  width: 96px; height: 96px; border-radius: 26px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), color-mix(in srgb, var(--cyan) 14%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; overflow: hidden;
}
.product-icon { font-size: 2.5rem; line-height: 1; }
.product-img { width: 100%; height: 100%; object-fit: contain; padding: 0.6rem; }
.product-name { font-size: 1.08rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--ink); }
.product-desc { font-size: 0.87rem; color: var(--text2); line-height: 1.7; margin-bottom: 0.85rem; }
.product-cta { margin-top: auto; }

/* ══════════════════════════════════════════════════════════════
   PARTNERS — سلايدر لوجوهات
   ══════════════════════════════════════════════════════════════ */
.partners { padding: 5rem 0; background: var(--bg2); }
.partners-marquee-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.partners-track {
  display: flex; align-items: stretch; width: max-content;
  padding-block: 0.6rem;
  /* المدة تأتي inline من partners.php حسب عدد الكروت */
  animation: marqueeScroll var(--marquee-dur, 30s) linear infinite;
  will-change: transform;
}
/* التوقف عند المرور بالماوس فقط — على اللمس قد يعلق :hover فيُجمّد السلايدر نهائياً */
@media (hover: hover) and (pointer: fine) {
  .partners-track:hover { animation-play-state: paused; }
}
.partner-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.65rem; min-width: 200px; padding: 1.5rem 1.7rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  /* الفاصل margin لا gap: يجعل عرض النصف = نسخة كاملة بالضبط ⇒ حلقة بلا قفزة */
  margin-inline-end: 1.4rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.partner-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  transform: translateY(-3px); box-shadow: var(--shadow);
}
/* صندوق ثابت ⇒ صفر قفز تخطيط مهما كانت أبعاد الصورة المرفوعة */
.partner-logo-box {
  width: 150px; height: 54px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.partner-logo { max-height: 54px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
/* مونوجرام مصمم عند غياب اللوجو — حرف واحد */
.partner-logo-fallback {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  font-size: 1.5rem; font-weight: 700;
}
.partner-name { font-size: 0.86rem; font-weight: 700; color: var(--text2); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════
   IN-DEV (مخفي افتراضياً) — بطاقات مشاريع
   ══════════════════════════════════════════════════════════════ */
.portfolio { padding: 5rem 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .portfolio-grid { grid-template-columns: 1fr; } }
@media (min-width: 480px) and (max-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }

.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem;
  display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-badge {
  display: inline-block; align-self: flex-start; padding: 0.2rem 0.7rem; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; margin-bottom: 0.75rem;
  background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
}
.project-badge--indev {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}
.project-title { font-size: 1rem; font-weight: 800; margin-bottom: 0.4rem; color: var(--ink); }
.project-desc { font-size: 0.85rem; color: var(--text2); margin-bottom: 0.85rem; flex: 1; }

.progress-wrap { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.progress-bar { flex: 1; height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.progress-fill {
  height: 100%; background: var(--grad);
  border-radius: 3px; width: 0; transition: width 1.1s var(--ease);
}
.progress-label { font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); white-space: nowrap; direction: ltr; }

/* ══════════════════════════════════════════════════════════════
   SAVINGS CALCULATOR — دفتر المراجع الزجاجي
   ══════════════════════════════════════════════════════════════ */
.calculator { padding: 5.5rem 0; }
.calc-card {
  max-width: 920px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden;
}
@media (max-width: 768px) { .calc-card { grid-template-columns: 1fr; } }

.calc-sliders { padding: 2.4rem 2.25rem; display: flex; flex-direction: column; gap: 1.8rem; justify-content: center; }
.calc-slider-row { display: flex; flex-direction: column; gap: 0.7rem; }
.calc-slider-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.calc-slider-head label { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.calc-slider-value {
  font-size: 1.1rem; font-weight: 700; color: var(--accent-ink);
  min-width: 3.2ch; text-align: center; direction: ltr;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 8px; padding: 0.05rem 0.5rem;
}
.calc-sliders input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border-radius: 4px; outline-offset: 6px; cursor: pointer; direction: ltr;
  background: linear-gradient(90deg, var(--primary-hi) var(--fill, 50%), var(--bg2) var(--fill, 50%));
}
.calc-sliders input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(8, 42, 99, 0.25); cursor: grab;
  transition: transform 0.15s var(--ease);
}
.calc-sliders input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-sliders input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(8, 42, 99, 0.25); cursor: grab;
}
.calc-sliders input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-hi) var(--fill, 50%), var(--bg2) var(--fill, 50%));
}

/* لوح النتائج الكحلي — قلب الهوية */
.calc-results {
  padding: 2.4rem 2.25rem; text-align: center;
  background: var(--grad-panel);
  color: var(--panel-text);
  display: flex; flex-direction: column; justify-content: center;
}
.calc-result-label { font-size: 0.88rem; color: var(--panel-text2); margin-bottom: 0.25rem; }
.calc-result-num {
  font-size: clamp(2.3rem, 6vw, 3.3rem); font-weight: 700; line-height: 1.15;
  color: #7FDCFF; direction: ltr;
  font-variant-numeric: tabular-nums;
}
.calc-result-unit { font-size: 1rem; font-weight: 700; color: var(--panel-text2); }
.calc-divider { height: 1px; background: rgba(255, 255, 255, 0.18); margin: 1.3rem auto; width: 72%; }
.calc-cta {
  margin: 1.6rem auto 0.9rem;
  background: linear-gradient(135deg, #27C5FF, #7FDCFF); color: #082A63;
  box-shadow: 0 10px 26px rgba(4, 16, 42, 0.4);
}
.calc-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(4, 16, 42, 0.5); }
.calc-footnote { font-size: 0.8rem; color: var(--panel-text2); line-height: 1.75; max-width: 330px; margin-inline: auto; }

/* ══════════════════════════════════════════════════════════════
   CONSULT FUNNEL
   ══════════════════════════════════════════════════════════════ */
.consult-funnel { padding: 5rem 0; background: var(--bg2); }
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 860px; margin-inline: auto; }
@media (max-width: 620px) { .consult-grid { grid-template-columns: 1fr; } }

.consult-card {
  position: relative; border-radius: var(--radius); padding: 2.1rem 2rem;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.consult-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.consult-card--free { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.consult-card--paid { border-color: color-mix(in srgb, var(--primary) 30%, transparent); }

.consult-tag {
  display: inline-block; align-self: flex-start; padding: 0.25rem 0.8rem; border-radius: var(--radius-pill);
  font-size: 0.74rem; font-weight: 700; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
}
.consult-card--paid .consult-tag {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}
.consult-title { font-size: 1.22rem; font-weight: 800; margin-bottom: 0.25rem; color: var(--ink); }
.consult-duration { font-size: 0.84rem; color: var(--accent-ink); font-weight: 700; margin-bottom: 0.85rem; }
.consult-desc { font-size: 0.9rem; color: var(--text2); line-height: 1.8; margin-bottom: 1.5rem; flex: 1; }
.consult-cta { align-self: flex-start; }

/* ══════════════════════════════════════════════════════════════
   ABOUT — ليه تختار ويب ناس؟
   ══════════════════════════════════════════════════════════════ */
.about { padding: 5.5rem 0; }
.about-layout--single { display: block; max-width: 780px; margin-inline: auto; }
.about-title { font-size: clamp(1.3rem, 2.8vw, 1.8rem); margin-bottom: 0.9rem; font-weight: 800; color: var(--ink); }
.about-text { color: var(--text2); font-size: 0.98rem; line-height: 1.85; margin-bottom: 1.4rem; }
.about-subheading {
  font-size: 1.05rem; font-weight: 800; color: var(--accent-ink);
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem;
}
.about-subheading::before {
  content: ''; width: 24px; height: 3px; border-radius: 2px;
  background: var(--grad);
}
.about-bullets { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.25rem; }
.about-bullet { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--text2); }
.about-bullet::before { content: '✓'; color: var(--ok); font-weight: 800; flex-shrink: 0; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.about-tag {
  padding: 0.32rem 0.85rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700; color: var(--accent-ink);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT — اللوح الكحلي الختامي
   ══════════════════════════════════════════════════════════════ */
.contact { padding: 5rem 0 5.5rem; }
.contact-card {
  max-width: 680px; margin-inline: auto; text-align: center;
  background: var(--grad-panel);
  color: var(--panel-text);
  border-radius: 22px;
  padding: 3.5rem 2rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-glow {
  position: absolute; top: -45%; left: 50%; transform: translateX(-50%);
  width: 420px; height: 300px;
  background: radial-gradient(ellipse, rgba(39, 197, 255, 0.28) 0%, transparent 70%);
  pointer-events: none; filter: blur(34px);
}
.contact-content { position: relative; z-index: 1; }
.contact .section-tag {
  background: rgba(39, 197, 255, 0.12);
  border-color: rgba(39, 197, 255, 0.4);
  color: #A8E7FF;
}
.contact-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 0.85rem; color: #fff; text-wrap: balance; }
.contact-subtitle { font-size: 0.98rem; color: var(--panel-text2); margin-bottom: 2rem; max-width: 430px; margin-inline: auto; }
.contact .btn-whatsapp { background: #2BD97E; color: #06301C; box-shadow: 0 10px 28px rgba(4, 16, 42, 0.45); }

/* ══════════════════════════════════════════════════════════════
   FOOTER — كحلي
   ══════════════════════════════════════════════════════════════ */
.footer { padding: 2.75rem 0; background: var(--panel); color: var(--panel-text2); }
.footer-inner { display: flex; flex-direction: column; gap: 1.4rem; align-items: center; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.footer .logo-ar { color: #fff; }
.footer .logo-accent { color: #7FDCFF; }
.footer .logo-img { height: var(--logo-h-footer, 38px); max-width: min(340px, 72vw); }
.footer-tagline { font-size: 0.84rem; color: var(--panel-text2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.2rem; justify-content: center; }
.footer-link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.3rem 0.8rem; color: var(--panel-text2); font-size: 0.85rem;
  border-radius: var(--radius-pill); transition: color 0.2s, background 0.2s;
}
.footer-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.footer-bottom { font-size: 0.8rem; color: var(--panel-text2); }
.footer-bottom a { color: #A8E7FF; }

/* ══════════════════════════════════════════════════════════════
   FLOATING
   ══════════════════════════════════════════════════════════════ */
.wa-fab {
  position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: 400;
  width: 58px; height: 58px; background: var(--wa); color: var(--wa-ink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(8, 42, 99, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(8, 42, 99, 0.32); }

.back-to-top {
  position: fixed; bottom: 5.6rem; left: 1.55rem; z-index: 400;
  width: 46px; height: 46px; background: var(--surface);
  border: 1.5px solid var(--border2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease), color 0.2s;
  box-shadow: var(--shadow-sm);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); color: var(--accent-ink); }

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL — يعمل فقط مع JS (لا صفحة عمياء عند فشله)
   ══════════════════════════════════════════════════════════════ */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.04s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.20s; }
.stagger-4 { transition-delay: 0.28s; }

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION — كل الزخرفي يتوقف
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-aurora::before, .hero-aurora::after,
  .badge-dot, .scroll-chevron svg + svg,
  .mock-typing span, .mock-bar { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  /* الشركاء: صفٌّ أفقي واحد يُمرَّر باللمس — لا لفّ رأسي ولا نسخة مكررة ظاهرة */
  .partners-track { animation: none; }
  .partners-track [data-marquee-clone] { display: none; }
  .partners-marquee-wrapper {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    -webkit-mask-image: none; mask-image: none;
  }
  .partner-card { scroll-snap-align: center; }
  .hero-badge, .hero-title, .hero-subtitle, .hero-cta, .hero-stats { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .authority-item { opacity: 1; transform: none; transition: none; }
  .steps-connector { clip-path: inset(0 0 0 0); transition: none; }
  .progress-fill { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
