/* ============================================================
   EXCEED ERP WEBSITE - MAIN STYLESHEET
   Brand Colors from Guideline_260414_161007.pdf
   Fonts: Gilroy (English) + Cairo (Arabic)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --orange: #FF8136;
  --orange-dark: #e06520;
  --orange-light: #fff1ea;
  --teal: #1A667A;
  --teal-dark: #09686B;
  --teal-light: #e8f4f7;
  --blue: #175888;
  --blue-light: #e6f0f8;
  --gold: #FDAB20;
  --gold-light: #fff8e6;
  --dark: #233037;
  --dark-mid: #2d3e47;
  --gray-1: #D3DDDE;
  --gray-2: #E0E0E0;
  --gray-3: #EAEAE9;
  --cream-1: #FBF2E8;
  --cream-2: #F7F1EB;
  --white: #ffffff;

  /* Semantic */
  --bg-light: #F7F7F5;
  --text-dark: #1a2327;
  --text-body: #3d4f57;
  --text-muted: #6b8490;
  --border: #e2e8eb;

  /* Typography */
  --font-en: 'Gilroy', 'Cairo', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --font-base: var(--font-en);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1240px;
  --nav-h: 72px;
  --lang-bar-h: 36px;
  --total-nav-h: calc(var(--nav-h) + var(--lang-bar-h));

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26,102,122,0.08);
  --shadow-md: 0 4px 20px rgba(26,102,122,0.12);
  --shadow-lg: 0 8px 40px rgba(26,102,122,0.16);
  --shadow-xl: 0 16px 64px rgba(26,102,122,0.20);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Semantic role aliases (added for design-system clarity) */
  --color-primary: var(--teal);
  --color-accent: var(--orange);
  --color-highlight: var(--gold);
  --color-info: var(--blue);
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: var(--gold);

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(255,129,54,0.35);
  --focus-ring-teal: 0 0 0 3px rgba(26,102,122,0.30);

  /* Surface tokens (theme-aware) */
  --surface-base: #ffffff;
  --surface-alt:  #F7F7F5;
  --surface-card: #ffffff;
  --surface-nav:  rgba(255,255,255,0.95);
  --surface-nav-scrolled: rgba(255,255,255,0.98);
  --surface-dashboard-bg: #F7F7F5;
  --hero-base-1: var(--cream-2);
  --hero-base-2: var(--white);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --surface-base: #0d1117;
  --surface-alt:  #161b22;
  --surface-card: #161b22;
  --surface-nav:  rgba(13,17,23,0.92);
  --surface-nav-scrolled: rgba(13,17,23,0.98);
  --surface-dashboard-bg: #0d1117;
  --hero-base-1: #0d1117;
  --hero-base-2: #161b22;

  --text-dark: #f0f6fc;
  --text-body: #c9d1d9;
  --text-muted: #8b949e;
  --border: #30363d;
  --bg-light: #161b22;
  --white: #161b22;          /* card-equivalent surfaces */
  /* Keep --dark unchanged so dark-bg sections still render dark.
     Heading colors below get explicit overrides since current rules use var(--dark) for text. */
  --dark-mid: #161b22;
  --cream-1: #161b22;
  --cream-2: #1c2128;
  --gray-1: #c9d1d9;         /* used for muted text in dark sections — must stay light */
  --gray-2: #21262d;
  --gray-3: #161b22;

  --orange-light: rgba(255,129,54,0.14);
  --teal-light:   rgba(26,102,122,0.18);
  --blue-light:   rgba(23,88,136,0.18);
  --gold-light:   rgba(253,171,32,0.14);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.40);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.55);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.60);
}
[data-theme="dark"] body { background: var(--surface-base); color: var(--text-body); }
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section-header-flex h2,
[data-theme="dark"] .hero-title-line,
[data-theme="dark"] .dropdown-item strong,
[data-theme="dark"] .hero-floating,
[data-theme="dark"] .kpi-value,
[data-theme="dark"] .why-card h3,
[data-theme="dark"] .milestone-content h3,
[data-theme="dark"] .blog-card h3,
[data-theme="dark"] .testimonial-author strong,
[data-theme="dark"] .nav-link {
  color: var(--text-dark);
}
[data-theme="dark"] .testimonial-card p { color: var(--text-muted); }
[data-theme="dark"] .btn-outline { color: var(--text-dark); border-color: var(--teal); }
[data-theme="dark"] .nav-toggle span { background: var(--text-dark); }
[data-theme="dark"] .lang-bar { background: #000; }
[data-theme="dark"] .footer { background: #0a0c10; }
[data-theme="dark"] .clients-strip { background: var(--surface-alt); }
[data-theme="dark"] .clients-scroll::before { background: linear-gradient(to right, var(--surface-alt), transparent); }
[data-theme="dark"] .clients-scroll::after  { background: linear-gradient(to left,  var(--surface-alt), transparent); }
[data-theme="dark"] .client-logo { filter: grayscale(100%) opacity(0.6) brightness(1.4); }
[data-theme="dark"] .client-logo:hover { filter: grayscale(0%) opacity(1) brightness(1); }
[data-theme="dark"] .dashboard-body { background: var(--surface-card); }
[data-theme="dark"] .kpi-card { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .kpi-orange { background: rgba(255,129,54,0.10); }
[data-theme="dark"] .kpi-teal   { background: rgba(26,102,122,0.14); }
[data-theme="dark"] .kpi-blue   { background: rgba(23,88,136,0.14); }
[data-theme="dark"] .kpi-gold   { background: rgba(253,171,32,0.10); }
[data-theme="dark"] .dashboard-chart { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .chart-bar { background: rgba(255,255,255,0.10); }
[data-theme="dark"] .why-card:nth-child(1),
[data-theme="dark"] .why-card:nth-child(6) {
  background: linear-gradient(135deg, var(--surface-card) 0%, #1c2128 100%);
}

/* Respect users who prefer reduced motion */
@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;
  }
}

/* Page fade-in on load */
body {
  animation: pageFadeIn 0.4s ease-out both;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Soft section dividers — subtle gradient bands */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
  border: 0;
  margin: 0;
}

/* ---------- Gilroy Font (Self-hosted fallback stack) ---------- */
@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy'), local('Gilroy-Regular');
  font-weight: 400;
  font-display: swap;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-base);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Focus States (keyboard-only) ---------- */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.15s ease;
}
.btn:focus-visible { box-shadow: var(--focus-ring); }
.solution-card:focus-visible,
.why-card:focus-visible,
.testimonial-card:focus-visible,
.blog-card:focus-visible {
  box-shadow: var(--focus-ring-teal);
}

/* ---------- Cursor hint on interactive cards ---------- */
.solution-card,
.why-card,
.dropdown-item,
.blog-card a,
.testimonial-card { cursor: default; }
.solution-card,
.dropdown-item,
.blog-card a { cursor: pointer; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Section ---------- */
.section { padding: var(--space-2xl) 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--space-xl); }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--dark); margin-bottom: var(--space-sm); line-height: 1.2; }
body.lang-ar .section-header h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
body.lang-ar .hero-title-line { font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: 0; font-style: normal; line-height: 1.35; }
body.lang-ar .hero-title-accent { font-style: normal; letter-spacing: 0; }
body.lang-ar .customers-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
body.lang-ar .section-badge { font-size: 0.9rem; font-weight: 500; letter-spacing: 0; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-header-dark h2 { color: var(--white); }
.section-header-dark p { color: var(--gray-1); }
.section-badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-badge-light {
  background: rgba(255,129,54,0.15);
  color: var(--orange);
}
.section-header-flex { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--space-xl); gap: 1rem; flex-wrap: wrap; }
.section-header-flex h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--dark); margin-top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,129,54,0.35); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn-white:hover { background: var(--cream-2); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ============================================================
   LANGUAGE BAR
   ============================================================ */
.lang-bar {
  background: var(--dark);
  height: var(--lang-bar-h);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}
.lang-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-1);
}
.lang-bar-contact { display: flex; align-items: center; gap: 0.4rem; direction: ltr; unicode-bidi: embed; }
.lang-bar-contact a { color: var(--gray-1); }
.lang-bar-contact a:hover { color: var(--orange); }
a[href^="tel:"] { direction: ltr; unicode-bidi: embed; }
.lang-bar-actions { display: flex; align-items: center; gap: 0.85rem; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--gray-1);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); color: var(--orange); transform: rotate(8deg); }
.theme-toggle svg { display: block; }
.theme-toggle .theme-icon-moon { display: block; }
.theme-toggle .theme-icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-sun  { display: block; }
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; }
.lang-btn {
  background: none;
  border: none;
  color: var(--gray-1);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active { color: var(--orange); }
.lang-switcher span { color: rgba(255,255,255,0.3); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: var(--lang-bar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--surface-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--surface-nav-scrolled);
}
.navbar .container { height: 100%; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}
.nav-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; flex-shrink: 0; }
.logo-fallback { display: flex; flex-direction: column; align-items: flex-start; }
.logo-text-ex { font-size: 1.95rem; font-weight: 800; color: var(--teal); letter-spacing: -1px; line-height: 1; }
.logo-x { color: var(--orange); }
.logo-tagline { display: block; font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.05em; font-weight: 500; line-height: 1; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: center; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--orange); background: var(--orange-light); }
.nav-cta { flex-shrink: 0; align-self: center; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 560px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  /* delay hiding by 120ms so mouse can cross from nav link into panel */
  transition: opacity 0.25s ease 0.12s, visibility 0.25s ease 0.12s, transform 0.25s ease 0.12s;
  pointer-events: none;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
  transition-delay: 0s;
}
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 1rem; }
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg-light); }
.dropdown-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-light);
  color: var(--orange);
}
.dropdown-icon svg { width: 18px; height: 18px; display: block; }
.dropdown-item:nth-child(2n) .dropdown-icon { background: var(--teal-light); color: var(--teal); }
.dropdown-item:nth-child(3n) .dropdown-icon { background: var(--blue-light); color: var(--blue); }
.dropdown-item:nth-child(4n) .dropdown-icon { background: var(--gold-light); color: var(--gold); }
.dropdown-item strong { display: block; font-size: 0.88rem; color: var(--dark); margin-bottom: 0.1rem; }
.dropdown-item span { font-size: 0.78rem; color: var(--text-muted); }
.dropdown-footer { border-top: 1px solid var(--border); padding: 0.75rem 1rem; }
.dropdown-all-link { font-size: 0.88rem; font-weight: 700; color: var(--orange); }
.dropdown-all-link:hover { text-decoration: underline; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: calc(var(--total-nav-h) + 3rem) 0 6rem;
  background: var(--surface-base);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
}
/* Cursor-follow spotlight */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,129,54,0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s;
}
[data-theme="dark"] .hero::after {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,129,54,0.18), transparent 60%);
}
/* Animated mesh-gradient backdrop */
.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(55% 55% at 18% 22%, rgba(26,102,122,0.20) 0%, transparent 60%),
    radial-gradient(45% 45% at 82% 18%, rgba(255,129,54,0.16) 0%, transparent 60%),
    radial-gradient(40% 40% at 28% 82%, rgba(253,171,32,0.14) 0%, transparent 60%),
    radial-gradient(40% 40% at 88% 88%, rgba(23,88,136,0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--hero-base-1) 0%, var(--hero-base-2) 60%);
  animation: meshDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(55% 55% at 18% 22%, rgba(26,102,122,0.35) 0%, transparent 60%),
    radial-gradient(45% 45% at 82% 18%, rgba(255,129,54,0.22) 0%, transparent 60%),
    radial-gradient(40% 40% at 28% 82%, rgba(253,171,32,0.18) 0%, transparent 60%),
    radial-gradient(40% 40% at 88% 88%, rgba(23,88,136,0.20) 0%, transparent 60%),
    linear-gradient(180deg, #0d1117 0%, #161b22 60%);
}
[data-theme="dark"] .hero-title-line { color: var(--text-dark); }
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-2%, 1.5%) scale(1.04); }
  100% { transform: translate(1.5%, -1%) scale(1.02); }
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(60px);
}
.hero-shape-1 {
  width: 520px; height: 520px;
  background: var(--teal);
  top: -180px; right: -80px;
  opacity: 0.08;
}
.hero-shape-2 {
  width: 260px; height: 260px;
  background: var(--orange);
  bottom: 40px; left: -80px;
  opacity: 0.07;
}
.hero-shape-3 { display: none; }
.hero-dots {
  position: absolute;
  top: 18%; right: 4%;
  width: 180px; height: 180px;
  background-image: radial-gradient(var(--teal) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.08;
  mask-image: radial-gradient(circle, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,129,54,0.18);
  width: fit-content;
  animation: fadeSlideUp 0.6s ease both;
  box-shadow: 0 1px 3px rgba(255,129,54,0.08);
}
.hero-badge svg {
  width: 14px; height: 14px;
  padding: 2px;
  background: var(--orange);
  color: var(--white);
  border-radius: 999px;
  box-sizing: content-box;
  flex-shrink: 0;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}
.hero-title-line {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--dark);
  letter-spacing: -0.025em;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 65%, #ff9a4f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientPan 8s ease-in-out infinite alternate;
}
@keyframes gradientPan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  animation: fadeSlideUp 0.7s 0.4s ease both;
}
.hero-stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--teal); line-height: 1; }
.hero-stat strong .count-up { font: inherit; color: inherit; }
.hero-stat > span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }
[data-theme="dark"] .hero-stat strong { color: #4dd0e1; }

/* Dashboard Visual */
.hero-visual {
  position: relative;
  animation: fadeSlideRight 0.8s 0.2s ease both;
  perspective: 1800px;
}
.hero-dashboard {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 60px -15px rgba(26,102,122,0.25),
    0 18px 36px -18px rgba(0,0,0,0.30),
    0 0 0 1px rgba(255,255,255,0.5) inset;
  overflow: hidden;
  border: 1px solid var(--border);
  transform: rotateY(-8deg) rotateX(4deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-visual:hover .hero-dashboard {
  transform: rotateY(-2deg) rotateX(1deg) translateZ(0);
}
body.lang-ar .hero-dashboard { transform: rotateY(8deg) rotateX(4deg) translateZ(0); }
body.lang-ar .hero-visual:hover .hero-dashboard { transform: rotateY(2deg) rotateX(1deg) translateZ(0); }
@media (max-width: 1024px) {
  .hero-dashboard, body.lang-ar .hero-dashboard { transform: none; }
}
.dashboard-header {
  background: var(--dark);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dashboard-dots { display: flex; gap: 5px; }
.dashboard-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dashboard-dots span:nth-child(1) { background: #ff5f57; }
.dashboard-dots span:nth-child(2) { background: #febc2e; }
.dashboard-dots span:nth-child(3) { background: #28c840; }
.dashboard-title { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.dashboard-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.15rem 0.55rem;
  background: rgba(16,185,129,0.18);
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: 999px;
}
.dashboard-live-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-success);
}
.dashboard-live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--color-success);
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(0.6); opacity: 0.65; }
  50%      { transform: scale(1.6); opacity: 0;   }
}
body.lang-ar .dashboard-live { margin-left: 0; margin-right: auto; }
.dashboard-body { padding: 1.25rem; }
.dashboard-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.kpi-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  position: relative;
}
.kpi-orange { background: var(--orange-light); }
.kpi-teal { background: var(--teal-light); }
.kpi-blue { background: var(--blue-light); }
.kpi-gold { background: var(--gold-light); }
.kpi-icon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.kpi-icon svg { width: 20px; height: 20px; display: block; }
.kpi-orange .kpi-icon { color: var(--orange); }
.kpi-teal   .kpi-icon { color: var(--teal); }
.kpi-blue   .kpi-icon { color: var(--blue); }
.kpi-gold   .kpi-icon { color: var(--gold); }
.kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
}
.kpi-row .kpi-icon { margin-bottom: 0; }
.kpi-spark {
  width: 60px;
  height: 22px;
  opacity: 0.75;
  flex-shrink: 0;
}
.kpi-orange .kpi-spark { color: var(--orange); }
.kpi-teal   .kpi-spark { color: var(--teal); }
.kpi-blue   .kpi-spark { color: var(--blue); }
.kpi-gold   .kpi-spark { color: var(--gold); }
.kpi-spark polyline {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: sparkDraw 1.2s 0.8s ease-out forwards;
}
@keyframes sparkDraw {
  to { stroke-dashoffset: 0; }
}
.kpi-value { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.kpi-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.kpi-trend { font-size: 0.7rem; font-weight: 700; margin-top: 0.3rem; }
.kpi-trend.up { color: #10b981; }
.kpi-trend.neutral { color: var(--text-muted); }
.dashboard-chart { padding: 0.75rem; background: var(--bg-light); border-radius: var(--radius-md); }
.chart-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.75rem; }
.chart-bars { display: flex; align-items: flex-end; gap: 0.4rem; height: 70px; }
.chart-bar {
  flex: 1;
  background: var(--gray-2);
  border-radius: 3px 3px 0 0;
  height: var(--h);
  position: relative;
  transition: background 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: barGrow 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
.chart-bar:nth-child(1) { animation-delay: 0.35s; }
.chart-bar:nth-child(2) { animation-delay: 0.45s; }
.chart-bar:nth-child(3) { animation-delay: 0.55s; }
.chart-bar:nth-child(4) { animation-delay: 0.65s; }
.chart-bar:nth-child(5) { animation-delay: 0.75s; }
.chart-bar:nth-child(6) { animation-delay: 0.85s; }
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.chart-bar span { font-size: 0.6rem; color: var(--text-muted); padding-bottom: 4px; position: absolute; bottom: -18px; }
.chart-bar.active { background: var(--orange); }
.chart-bar:hover { background: var(--teal); }

/* Floating badges */
.hero-floating {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-floating svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-float-1 svg { color: var(--color-success); }
.hero-float-2 svg { color: var(--teal); }
.hero-float-3 svg { color: var(--blue); }
.hero-float-1 { top: -20px; left: 20px; animation: float 3s ease-in-out infinite; }
.hero-float-2 { bottom: 30px; left: -30px; animation: float 3.5s ease-in-out infinite 0.5s; }
.hero-float-3 { top: 40%; right: -20px; animation: float 4s ease-in-out infinite 1s; }

.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-light) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   CLIENTS STRIP
   ============================================================ */
.clients-strip { padding: 2.5rem 0; background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-label { text-align: center; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 auto 1.5rem; display: block; width: 100%; }
.clients-scroll { overflow: hidden; position: relative; direction: ltr; }
.clients-scroll::before, .clients-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
}
.clients-scroll::before { left: 0; background: linear-gradient(to right, var(--bg-light), transparent); }
.clients-scroll::after { right: 0; background: linear-gradient(to left, var(--bg-light), transparent); }
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-dist)); }
}
.clients-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  width: max-content;
  will-change: transform;
  direction: ltr;
}
.clients-track.running {
  animation: clients-marquee 60s linear infinite;
}
.clients-scroll:hover .clients-track.running {
  animation-play-state: paused;
}
.client-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-1);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.client-logo {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s ease;
  flex-shrink: 0;
}
.client-logo:hover { filter: grayscale(0%) opacity(1); }

/* ============================================================
   CUSTOMERS PAGE
   ============================================================ */
.customers-hero { background: linear-gradient(135deg, var(--dark) 0%, #1a2540 100%); padding: calc(var(--total-nav-h) + 4rem) 0 4rem; text-align: center; color: #fff; }
.customers-hero .section-badge { color: var(--orange); border-color: rgba(255,122,0,0.3); margin-bottom: 1rem; display: inline-block; }
.customers-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; color: #fff; }
.customers-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto 2rem; }

.customers-grid-section { padding: 4rem 0 5rem; }
.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.customer-logo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.customer-logo-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.10); transform: translateY(-3px); }
.customer-logo-card img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%) opacity(0.85);
  transition: filter 0.3s ease;
}
.customer-logo-card:hover img { filter: grayscale(0%) opacity(1); }
.customers-grid-loading { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 0.95rem; grid-column: 1 / -1; }

/* ============================================================
   WHY SECTION (Bento Grid)
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.why-card:nth-child(1) { grid-column: span 2; }
.why-card:nth-child(6) { grid-column: span 2; }
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,129,54,0.10) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.why-card:hover::before { opacity: 1; }
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
body.lang-ar .why-card::after { transform-origin: right; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.why-card:hover::after { transform: scaleX(1); }
/* Featured (large) bento cards get richer treatment */
.why-card:nth-child(1),
.why-card:nth-child(6) {
  background: linear-gradient(135deg, var(--white) 0%, var(--cream-2) 100%);
}
.why-card:nth-child(6) {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--white) 100%);
}
.why-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.why-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   SOLUTIONS SECTION
   ============================================================ */
.solutions-section {
  position: relative;
  overflow: hidden;
}
.solutions-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,102,122,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.solutions-section::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,129,54,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.solutions-section > .container { position: relative; z-index: 1; }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.solution-card {
  display: block;
  background: rgba(255,255,255,0.04);
  padding: 2rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  color: var(--gray-1);
  text-decoration: none;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,129,54,0.18) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.solution-card:hover {
  background: rgba(255,129,54,0.10);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(255,129,54,0.30);
}
.solution-card:hover::before { opacity: 1; }
.solution-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.solution-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-1);
  margin-bottom: 1rem;
  transition: background var(--transition), color var(--transition);
}
.solution-icon svg { width: 22px; height: 22px; display: block; }
.solution-card:hover .solution-icon { background: rgba(255,129,54,0.18); color: var(--orange); }
.solution-card-accent .solution-icon { background: rgba(255,129,54,0.18); color: var(--orange); }
.solution-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.solution-card p { font-size: 0.85rem; line-height: 1.6; color: var(--gray-1); }
.solution-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 1.25rem;
  color: var(--orange);
  transition: transform var(--transition);
}
.solution-arrow svg { width: 20px; height: 20px; display: block; }
.solution-card:hover .solution-arrow { transform: translateX(6px); }
body.lang-ar .solution-card:hover .solution-arrow { transform: translateX(-6px); }
body.lang-ar .solution-arrow svg { transform: scaleX(-1); }
.solution-card-accent { background: rgba(255,129,54,0.08); border: 1px solid rgba(255,129,54,0.2); }
.solution-card-outline { border: 1px dashed rgba(255,255,255,0.15); background: transparent; }

/* ============================================================
   MODULES SHOWCASE (Tabbed)
   ============================================================ */
.modules-showcase {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.modules-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.module-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.6);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  font-family: inherit;
}
.module-tab:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.10);
  transform: translateX(4px);
}
body.lang-ar .module-tab { text-align: right; }
body.lang-ar .module-tab:hover { transform: translateX(-4px); }
.module-tab.active {
  background: linear-gradient(135deg, rgba(255,129,54,0.18) 0%, rgba(255,129,54,0.06) 100%);
  border-color: rgba(255,129,54,0.45);
  color: var(--white);
  box-shadow: 0 8px 24px -10px rgba(255,129,54,0.35);
}
.module-tab-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.08em;
  min-width: 26px;
  font-variant-numeric: tabular-nums;
}
.module-tab-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.module-tab-icon svg { width: 18px; height: 18px; }
.module-tab.active .module-tab-icon { background: var(--orange); color: var(--white); }
.module-tab-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.module-tab-text strong { font-size: 0.9rem; font-weight: 700; color: inherit; line-height: 1.2; }
.module-tab-text small { font-size: 0.74rem; color: rgba(255,255,255,0.45); line-height: 1.3; }
.module-tab.active .module-tab-text small { color: rgba(255,255,255,0.75); }

.modules-preview {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 460px;
}
.module-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.module-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.module-panel-info { display: flex; flex-direction: column; gap: 0.8rem; }
.module-panel-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  width: fit-content;
}
.module-panel h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}
.module-panel p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
.module-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.module-feature-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}
.module-feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,129,54,0.18);
}
body.lang-ar .module-feature-list li::before { left: auto; right: 0; }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.30); margin-top: 0.5rem; align-self: flex-start; }
.btn-outline-light:hover { background: rgba(255,255,255,0.10); border-color: var(--white); transform: translateY(-2px); }

/* Mock window inside the preview */
.module-panel-mock { display: flex; align-items: center; justify-content: center; }
.mock-window {
  width: 100%;
  background: rgba(13,17,23,0.92);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.55);
  transform: rotateY(-2deg) rotateX(2deg);
  transform-origin: center;
}
.mock-window-bar {
  background: rgba(255,255,255,0.05);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mock-window-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock-window-bar span:first-child { background: #ff5f57; }
.mock-window-bar span:nth-child(2) { background: #febc2e; }
.mock-window-bar span:nth-child(3) { background: #28c840; }
.mock-window-bar em { font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-inline-start: 0.5rem; letter-spacing: 0.05em; }
.mock-window-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.85rem; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.mock-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mock-stat-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); }
.mock-stat-value { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.mock-trend { font-size: 0.65rem; font-weight: 700; }
.mock-trend.up { color: var(--color-success); }
.mock-trend.neutral { color: rgba(255,255,255,0.5); }
.mock-line-chart { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 0.5rem; }
.mock-line-chart svg { width: 100%; height: 90px; display: block; }
.mock-table {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.78rem;
}
.mock-row {
  display: grid;
  grid-template-columns: 70px 1fr 60px 80px;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  color: rgba(255,255,255,0.78);
}
.mock-row span:first-child { color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; }
.mock-row:last-child { border-bottom: 0; }
.mock-row-head { background: rgba(255,255,255,0.04); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.45); }
.mock-pill { font-size: 0.62rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; text-align: center; }
.mock-pill.ok   { background: rgba(16,185,129,0.18); color: #34d399; }
.mock-pill.warn { background: rgba(253,171,32,0.18); color: var(--gold); }
.mock-pill.err  { background: rgba(239,68,68,0.18); color: #f87171; }
.mock-bar-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 110px; padding: 0.4rem; background: rgba(255,255,255,0.03); border-radius: 8px; }
.mock-bar { flex: 1; background: rgba(255,255,255,0.10); border-radius: 4px 4px 0 0; height: var(--h); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.mock-bar.active { background: var(--orange); }
.mock-bar i { font-style: normal; font-size: 0.58rem; color: rgba(255,255,255,0.45); }
.mock-bar.active i { color: rgba(255,255,255,0.85); }
.mock-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.mock-pipe-col { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 0.55rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mock-pipe-col h6 { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin: 0; font-weight: 700; }
.mock-pipe-card { background: rgba(255,255,255,0.06); padding: 0.45rem 0.55rem; border-radius: 6px; font-size: 0.72rem; color: rgba(255,255,255,0.85); border-left: 3px solid rgba(255,255,255,0.20); }
body.lang-ar .mock-pipe-card { border-left: 0; border-right: 3px solid rgba(255,255,255,0.20); }
.mock-pipe-warm { border-left-color: var(--gold) !important; }
.mock-pipe-hot  { border-left-color: var(--orange) !important; }
.mock-pipe-won  { border-left-color: var(--color-success) !important; background: rgba(16,185,129,0.12) !important; }
.mock-pos { display: grid; grid-template-rows: 1fr auto; gap: 0.6rem; height: 100%; }
.mock-pos-cart { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 0.65rem; }
.mock-pos-line { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.78); border-bottom: 1px solid rgba(255,255,255,0.05); }
.mock-pos-line:last-of-type { border-bottom: 0; }
.mock-pos-line b { color: var(--white); }
.mock-pos-total { display: flex; justify-content: space-between; padding-top: 0.55rem; font-size: 0.95rem; color: var(--white); font-weight: 700; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 0.4rem; }
.mock-pos-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.mock-pos-pay button { padding: 0.6rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: 8px; color: rgba(255,255,255,0.75); font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all var(--transition); }
.mock-pos-pay button.active { background: var(--orange); color: var(--white); border-color: var(--orange); }
.modules-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; align-content: center; justify-content: center; height: 100%; }
.modules-cloud span { padding: 0.55rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600; }
.modules-cloud span:nth-child(3n) { background: rgba(255,129,54,0.10); border-color: rgba(255,129,54,0.30); color: #ffba8a; }
.modules-cloud span:nth-child(5n) { background: rgba(26,102,122,0.18); border-color: rgba(26,102,122,0.45); color: #6ec6db; }

@media (max-width: 1024px) {
  .modules-showcase { grid-template-columns: 1fr; }
  .module-panel { grid-template-columns: 1fr; padding: 1.5rem; }
  .modules-preview { min-height: 660px; }
}
@media (max-width: 640px) {
  .modules-preview { min-height: 780px; }
  .mock-stat-row { grid-template-columns: 1fr 1fr; }
  .mock-row { grid-template-columns: 60px 1fr 60px; }
  .mock-row span:nth-child(4) { display: none; }
}

/* ============================================================
   MILESTONES
   ============================================================ */
.milestones-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.milestones-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
}
.milestone-item {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.milestone-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  height: 28px;
  min-width: 72px;
  padding: 0 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  font-family: var(--font-sans, inherit);
  font-variant-numeric: tabular-nums;
}
.milestone-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.milestone-dot-active {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,129,54,0.2);
}
.milestone-content { text-align: center; }
.milestone-content h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.4; }
.milestone-content p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonials-marquee {
  position: relative;
  overflow: hidden;
  margin-left: calc(-1 * 1.5rem);
  margin-right: calc(-1 * 1.5rem);
  padding: 0.5rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  padding: 1rem 1.5rem;
}
.testimonials-track .testimonial-card {
  flex: 0 0 360px;
  margin: 0;
}
@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--testimonials-dist)); }
}
.testimonials-marquee { direction: ltr; }
.testimonials-track   { direction: ltr; }
.testimonials-track.running {
  animation: testimonials-scroll 40s linear infinite;
}
.testimonials-marquee:hover .testimonials-track.running {
  animation-play-state: paused;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem; right: 1.25rem;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  opacity: 0.12;
  pointer-events: none;
}
body.lang-ar .testimonial-card::before { right: auto; left: 1.25rem; }
.testimonial-card-featured::before { color: var(--white); opacity: 0.18; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card-featured {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.testimonial-card-featured p { color: rgba(255,255,255,0.9); }
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; }
.testimonial-card-featured .testimonial-stars { color: var(--gold); }
.testimonial-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.88rem; color: var(--dark); font-weight: 700; }
.testimonial-card-featured .testimonial-author strong { color: var(--white); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }
.testimonial-card-featured .testimonial-author span { color: rgba(255,255,255,0.6); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, var(--dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, black 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 60%);
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,129,54,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: 0.75rem; line-height: 1.2; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 500px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   BLOG PREVIEW
   ============================================================ */
.blog-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition-slow); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  min-height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem 1.4rem;
  gap: 0.5rem;
}
.blog-card-category {
  align-self: flex-start;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}
.blog-card-img h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.blog-card-img h3 a { color: var(--white); }
.blog-card-img h3 a:hover { color: rgba(255,255,255,0.85); }
.blog-card-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-card-date { font-size: 0.78rem; color: var(--text-muted); }
.blog-read-more { font-size: 0.85rem; font-weight: 700; color: var(--orange); margin-top: auto; }
.blog-read-more:hover { text-decoration: underline; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.article-back {
  display: inline-block; margin-bottom: 1.75rem;
  font-size: 0.95rem; font-weight: 700; color: var(--orange);
  padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}
.article-back:hover { background: var(--orange-light); border-color: var(--orange); }
.blog-card-sm { display: flex; flex-direction: column; }
.blog-card-img-sm { height: 100px; }

/* ============================================================
   RECAPTCHA
   ============================================================ */
.recaptcha-wrap { margin-bottom: 1.25rem; }
.recaptcha-error { display: none; color: #ef4444; font-size: 0.82rem; margin-top: 0.5rem; font-weight: 500; }
body.lang-ar .recaptcha-wrap { direction: ltr; } /* reCAPTCHA widget is always LTR */

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); }
.footer-top { padding: 4rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 1rem; color: rgba(255,255,255,0.55); }
.footer-logo { display: flex; flex-direction: column; }
.footer-logo-text { font-size: 2rem; font-weight: 800; color: var(--white); }
.logo-tagline-footer { font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--orange); color: var(--white); }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact-list li { display: flex; align-items: center; gap: 0.5rem; }
.footer-contact-list svg { flex-shrink: 0; color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p, .footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--orange); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* scrollTrack animation handled by JS startClientsMarquee() */

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
.why-card { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.why-card.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* WhatsApp Floating Action Button */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  z-index: 2147483000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
body.lang-ar .whatsapp-fab { right: auto; left: 22px; }
@media (max-width: 480px) { .whatsapp-fab { width: 52px; height: 52px; bottom: 16px; right: 16px; } body.lang-ar .whatsapp-fab { left: 16px; } }

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { align-items: center; }
  .hero-desc { max-width: 100%; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .hero-float-1, .hero-float-2, .hero-float-3 { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card:nth-child(1), .why-card:nth-child(6) { grid-column: span 2; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .milestones-timeline { grid-template-columns: repeat(2, 1fr); }
  .milestones-timeline::before { display: none; }
  .blog-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (covers phones in portrait/landscape and small tablets) */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .section { padding: 3rem 0; }

  /* Nav — collapse into hamburger, vertical drawer */
  .nav-menu {
    position: fixed;
    top: var(--total-nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
    max-height: calc(100vh - var(--total-nav-h));
    overflow-y: auto;
    z-index: 999;
  }
  body.lang-ar .nav-menu { direction: rtl !important; }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-menu > li { width: 100%; }
  .nav-link { width: 100%; padding: 0.75rem 1rem; display: block; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  /* EN: hamburger on LEFT, logo on RIGHT. AR keeps default (hamburger RIGHT). */
  body:not(.lang-ar) .nav-inner { flex-direction: row-reverse; }
  .dropdown-menu { position: static; width: 100%; transform: none !important; box-shadow: none; border: none; opacity: 1 !important; visibility: visible !important; display: none; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: calc(var(--total-nav-h) + 2rem) 0 4rem; text-align: center; }
  .hero-title-line { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero-stat-divider { display: none; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  /* Grids — stack single column */
  .why-grid, .solutions-grid, .testimonials-grid, .blog-preview-grid { grid-template-columns: 1fr; }
  .why-card:nth-child(1), .why-card:nth-child(6) { grid-column: auto; }
  .milestones-timeline { grid-template-columns: 1fr; }
  .milestone-item { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
  .milestone-dot { margin: 0 0 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .section-header-flex { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-badge { font-size: 0.72rem; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { padding: 0.8rem 1.6rem; font-size: 0.9rem; }
}
