/* ==========================================================================
   Growth Engine — Design System
   Premium Saudi Growth Partner — Apple x Stripe x Linear x Notion x Framer
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* ---- Color: Ink / Paper ---- */
  --ink-950: #08090c;
  --ink-900: #0d0f14;
  --ink-800: #14171f;
  --ink-700: #1e222c;
  --ink-600: #2c313d;
  --ink-500: #4a5063;
  --ink-400: #6b7185;
  --ink-300: #9298a8;
  --ink-200: #c2c6d1;
  --ink-100: #e4e6ec;
  --paper-0: #ffffff;
  --paper-50: #faf9f6;
  --paper-100: #f3f1ea;
  --paper-200: #ece8dd;

  /* ---- Color: Brand (orange identity) ---- */
  --brand-orange-900: #6e2410;
  --brand-orange-700: #e2501f;
  --brand-orange-600: #fe6035;
  --brand-orange-500: #ff7350;
  --brand-orange-400: #ff8b63;
  --brand-orange-100: #fff4f1;
  --brand-gold-700: #a97a1f;
  --brand-gold-500: #c9962e;
  --brand-gold-400: #e0b04f;
  --brand-gold-100: #faedd0;

  /* ---- Gradients ---- */
  --grad-primary: linear-gradient(135deg, var(--brand-orange-700) 0%, var(--brand-orange-600) 55%, var(--brand-orange-400) 130%);
  --grad-dark: linear-gradient(160deg, #0a0c10 0%, #241408 55%, #0a0c10 100%);
  --grad-gold: linear-gradient(120deg, var(--brand-gold-500), var(--brand-gold-400));
  --grad-mesh: radial-gradient(60% 60% at 15% 20%, rgba(254,96,53,.16), transparent 60%),
               radial-gradient(50% 50% at 85% 15%, rgba(255,139,99,.16), transparent 60%),
               radial-gradient(45% 45% at 75% 85%, rgba(226,80,31,.10), transparent 60%);

  /* ---- Semantic ---- */
  --bg: var(--paper-50);
  --bg-elevated: var(--paper-0);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-soft: var(--ink-400);
  --border: rgba(13,15,20,0.08);
  --border-strong: rgba(13,15,20,0.14);
  --primary: var(--brand-orange-600);
  --primary-strong: var(--brand-orange-700);
  --on-primary: #ffffff;
  --ring: rgba(226,80,31,.35);

  /* ---- Elevation ---- */
  --shadow-xs: 0 1px 2px rgba(9,12,16,.04);
  --shadow-sm: 0 2px 8px rgba(9,12,16,.06);
  --shadow-md: 0 8px 24px rgba(9,12,16,.08);
  --shadow-lg: 0 16px 48px rgba(9,12,16,.12);
  --shadow-xl: 0 28px 80px rgba(9,12,16,.18);
  --shadow-glow: 0 0 0 1px rgba(254,96,53,.15), 0 20px 60px -10px rgba(254,96,53,.35);

  /* ---- Radius ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;

  /* ---- Type ---- */
  --font-ar: 'Cairo', 'Manrope', system-ui, sans-serif;
  --font-num: 'Manrope', 'Cairo', system-ui, sans-serif;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: .2s;
  --dur-med: .45s;
  --dur-slow: .8s;

  /* ---- Layout ---- */
  --container: 1240px;
  --header-h: 84px;
}

:root[data-theme='dark'] {
  --bg: var(--ink-950);
  --bg-elevated: var(--ink-900);
  --text: var(--paper-50);
  --text-muted: var(--ink-200);
  --text-soft: var(--ink-300);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --on-primary: #06120d;
  --paper-100: var(--ink-800);
  --paper-200: var(--ink-700);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand-orange-400); color: #06120d; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.section-dark { background: var(--grad-dark); color: var(--paper-50); }
.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.align-start { margin-inline: unset; text-align: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-num); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; color: var(--primary-strong);
  background: var(--brand-orange-100); border: 1px solid rgba(226,80,31,.16);
  padding: 7px 16px; border-radius: var(--r-full); margin-bottom: 18px;
}
.section-dark .eyebrow { color: var(--brand-orange-400); background: rgba(254,96,53,.12); border-color: rgba(254,96,53,.25); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange-500); box-shadow: 0 0 0 4px rgba(254,96,53,.25); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1.15; }
h2 { font-size: clamp(28px, 4.2vw, 46px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
p { color: var(--text-muted); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); }
.section-dark p, .section-dark .lede { color: var(--ink-200); }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Buttons ---- */
.btn {
  --btn-fg: var(--on-primary);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ar); font-weight: 700; font-size: 15.5px;
  padding: 15px 28px; border-radius: var(--r-full);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink-900); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
:root[data-theme='dark'] .btn-primary { background: var(--paper-50); color: var(--ink-950); }
.btn-gradient { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(254,96,53,.25), 0 26px 70px -12px rgba(254,96,53,.45); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); background: var(--brand-orange-100); }
.section-dark .btn-outline { border-color: rgba(255,255,255,.2); color: #fff; }
.section-dark .btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-ghost { padding: 12px 6px; font-weight: 700; color: var(--primary-strong); }
.btn-ghost .icon { transition: transform var(--dur-fast) var(--ease-out); }
.btn-ghost:hover .icon { transform: translateX(-4px); }
.btn-lg { padding: 18px 34px; font-size: 16.5px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* magnetic ripple */
.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.35);
  transform: scale(0); animation: ripple .6s var(--ease-out); pointer-events: none;
}
@keyframes ripple { to { transform: scale(3); opacity: 0; } }

/* ---- Cards ---- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(226,80,31,.25); }

.glass {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
}
:root[data-theme='dark'] .glass { background: rgba(20,23,31,0.55); border-color: rgba(255,255,255,0.08); }

.icon-tile {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.icon-tile.soft { background: var(--brand-orange-100); color: var(--primary-strong); box-shadow: none; }
.icon-tile svg { width: 26px; height: 26px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-full);
  background: var(--paper-100); color: var(--text-muted); border: 1px solid var(--border);
}

/* ---- Grid utilities ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

/* ---- Reveal-on-scroll ---- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-scale] { opacity: 0; transform: scale(.94); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal-scale].is-visible { opacity: 1; transform: scale(1); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }

/* ---- Scroll progress ---- */
#scroll-progress {
  position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 999;
  background: var(--grad-primary); width: 0%; transform-origin: left;
}
[dir="rtl"] #scroll-progress { transform-origin: right; }

/* ---- Header ---- */
#site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 900;
  padding-block: 16px;
  transition: background var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(250,249,246,0.78);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: var(--border); box-shadow: var(--shadow-sm);
  padding-block: 10px;
}
:root[data-theme='dark'] #site-header.scrolled { background: rgba(13,15,20,0.75); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo .mark { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); flex-shrink: 0; }
.logo .mark svg { width: 20px; height: 20px; color: #fff; }
.logo .mark img { width: 24px; height: 24px; object-fit: contain; }
.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop > li { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-radius: var(--r-full); font-weight: 600; font-size: 15px; transition: background var(--dur-fast), color var(--dur-fast); }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--paper-100); color: var(--primary-strong); }
:root[data-theme='dark'] .nav-link:hover { background: var(--ink-800); }
.nav-link .chev { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 50%; transform: translateX(-50%);
  width: min(760px, 90vw); background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xl); padding: 22px; z-index: 50;
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
[dir="rtl"] .mega { transform: translateX(50%); }
.mega.open { opacity: 1; visibility: visible; translate: 0 0; }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--r-md); transition: background var(--dur-fast); }
.mega-item:hover { background: var(--paper-100); }
:root[data-theme='dark'] .mega-item:hover { background: var(--ink-800); }
.mega-item .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
.mega-item .icon-tile svg { width: 20px; height: 20px; }
.mega-item strong { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.mega-item span { font-size: 12.5px; color: var(--text-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.icon-btn:hover { background: var(--paper-100); transform: translateY(-2px); }
:root[data-theme='dark'] .icon-btn:hover { background: var(--ink-800); }
.icon-btn svg { width: 19px; height: 19px; }
.burger { display: none; }

@media (max-width: 980px) {
  .nav-desktop, .header-actions .btn-gradient { display: none; }
  .burger { display: flex; }
}

/* ---- Mobile nav ---- */
#mobile-nav {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  translate: 100% 0; transition: translate .45s var(--ease-in-out);
  display: flex; flex-direction: column; padding: 20px;
}
[dir="rtl"] #mobile-nav { translate: -100% 0; }
#mobile-nav.open { translate: 0 0; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-nav-links > li > a, .mobile-accordion-trigger { display: flex; align-items: center; justify-content: space-between; padding: 18px 6px; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--border); width: 100%; text-align: start; }
.mobile-accordion-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.mobile-accordion-panel.open { max-height: 600px; }
.mobile-accordion-panel a { display: block; padding: 12px 6px; color: var(--text-muted); font-weight: 500; }
.mobile-nav-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }

/* ---- Hero ---- */
.hero { position: relative; padding-top: calc(var(--header-h) + 56px); padding-bottom: 90px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--grad-mesh); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { max-width: 540px; margin-bottom: 34px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-trust .item { display: flex; align-items: center; gap: 10px; }
.hero-trust .icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.hero-trust .icon-tile svg { width: 18px; height: 18px; }
.hero-trust strong { display: block; font-size: 14.5px; font-weight: 700; }
.hero-trust span { font-size: 12.5px; color: var(--text-soft); }

.hero-visual { position: relative; height: 520px; }
.orbit-card {
  position: absolute; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-xl);
  animation: float 6s var(--ease-in-out) infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero-core {
  position: absolute; inset: 12% 14%; border-radius: 32px; background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.hero-core svg { width: 46%; opacity: .9; }
.hero-core::after {
  content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.35), transparent 30%);
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-core .dash-illustration { width: 70%; opacity: 1; position: relative; z-index: 1; }
.dash-illustration path, .dash-illustration circle { opacity: 0; animation: dash-line-in .6s var(--ease-out) .9s forwards; }
.dash-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: dash-bar-in .7s var(--ease-out) forwards; }
@keyframes dash-bar-in { to { transform: scaleY(1); } }
@keyframes dash-line-in { to { opacity: .9; } }
.card-metric { top: 4%; inset-inline-start: -2%; width: 190px; animation-delay: .3s; }
.card-metric .num { font-family: var(--font-num); font-size: 30px; font-weight: 800; color: var(--primary-strong); }
.card-channels { bottom: 8%; inset-inline-end: -4%; width: 210px; animation-delay: 1s; }
.card-channels .rowline { display: flex; align-items: center; gap: 10px; padding-block: 6px; font-size: 13px; font-weight: 600; }
.card-channels .dot2 { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange-500); }
.card-rating { top: 40%; inset-inline-start: -8%; width: 160px; animation-delay: 1.6s; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ---- Marquee (industries strip) ---- */
.marquee-wrap { border-block: 1px solid var(--border); overflow: hidden; padding-block: 28px; background: var(--paper-100); }
:root[data-theme='dark'] .marquee-wrap { background: var(--ink-900); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track .m-item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-soft); font-size: 15px; white-space: nowrap; }
.marquee-track .m-item svg { width: 20px; height: 20px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] @keyframes marquee { }

/* ---- Stats ---- */
.stats-grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-card { padding: 32px 20px; }
.stat-num { font-family: var(--font-num); font-size: clamp(34px, 4vw, 48px); font-weight: 800; }
.stat-label { margin-top: 8px; font-weight: 600; color: var(--text-soft); font-size: 14.5px; }

/* ---- Growth calculator ---- */
.calc-card { max-width: 900px; margin-inline: auto; padding: clamp(28px, 4vw, 48px); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 20px; }
.calc-control label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 18px; }
.calc-control input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand-orange-600) var(--fill, 20%), var(--paper-100) var(--fill, 20%));
  outline: none; cursor: pointer;
}
.calc-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  border: 4px solid var(--brand-orange-600); box-shadow: var(--shadow-md); cursor: pointer;
}
.calc-control input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 4px solid var(--brand-orange-600); box-shadow: var(--shadow-md); cursor: pointer;
}
.calc-budget-val { margin-top: 16px; font-family: var(--font-num); font-weight: 800; font-size: 22px; color: var(--primary-strong); }
.calc-results { display: flex; flex-direction: column; gap: 18px; }
.calc-result-item { display: flex; align-items: center; gap: 14px; }
.calc-result-item .calc-num { display: block; font-family: var(--font-num); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-result-item .calc-label { display: block; font-size: 13px; color: var(--text-soft); font-weight: 600; }
.calc-disclaimer { font-size: 12.5px; color: var(--text-soft); margin-bottom: 20px; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Services ---- */
.service-card { padding: 30px; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.service-card .num { font-family: var(--font-num); font-size: 13px; font-weight: 800; color: var(--text-soft); }
.service-card h3 { margin-top: 4px; }
.service-card p { font-size: 14.5px; flex-grow: 1; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.service-more { padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; background: var(--grad-dark); color: #fff; }
.service-more p { color: var(--ink-200); }

/* ---- Process / How we work ---- */
.process-track { position: relative; }
.process-track::before { content: ''; position: absolute; top: 34px; inset-inline: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px); }
.process-grid { grid-template-columns: repeat(4, 1fr); position: relative; }
.process-step { text-align: start; }
.process-step .step-num { width: 68px; height: 68px; border-radius: 20px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-weight: 800; font-size: 22px; color: var(--primary-strong); margin-bottom: 20px; position: relative; z-index: 2; }
@media (max-width: 980px) { .process-grid { grid-template-columns: repeat(2,1fr); } .process-track::before { display: none; } }

/* ---- Industries ---- */
.industry-card { padding: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.industry-card .icon-tile { margin-inline: auto; }

/* ---- Why us ---- */
.why-card { padding: 28px; }
.why-card .icon-tile { margin-bottom: 18px; }

/* ---- Timeline (growth roadmap) ---- */
@media (min-width: 981px) { .roadmap-intro { position: sticky; top: 120px; } }
.roadmap { position: relative; padding-inline-start: 0; }
.roadmap-line { position: absolute; top: 0; bottom: 0; inset-inline-start: 27px; width: 2px; background: var(--border-strong); }
.roadmap-item { position: relative; padding-inline-start: 76px; padding-bottom: 48px; }
[dir="rtl"] .roadmap-item { padding-inline-start: 76px; }
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-dot { position: absolute; inset-inline-start: 8px; top: 2px; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-num); font-weight: 800; box-shadow: var(--shadow-glow); z-index: 1; }
.roadmap-item .phase-tag { font-size: 12.5px; font-weight: 700; color: var(--primary-strong); }

/* ---- Testimonials ---- */
.testi-track-wrap { overflow: hidden; }
.testi-track { display: flex; gap: 24px; transition: transform .6s var(--ease-out); }
.testi-card { min-width: min(420px, 86vw); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.testi-stars { display: flex; gap: 3px; color: var(--brand-gold-500); }
.testi-stars svg { width: 16px; height: 16px; }
.testi-quote { font-size: 16.5px; color: var(--text); font-weight: 500; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.testi-controls { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: all var(--dur-fast); }
.testi-dot.active { width: 24px; background: var(--primary); }

/* ---- Video ---- */
.video-block { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/8; background: var(--grad-dark); box-shadow: var(--shadow-xl); }
.video-block .video-poster { position: absolute; inset: 0; background: var(--grad-mesh), var(--grad-dark); }
.play-btn { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; color: #fff; transition: transform var(--dur-fast); }
.play-btn::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); animation: pulse-ring 2.4s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 30px; height: 30px; margin-inline-start: 4px; }
.video-caption { position: absolute; bottom: 24px; inset-inline-start: 24px; color: #fff; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 4px; font-weight: 700; font-size: 17px; text-align: start; }
.faq-q .plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast); }
.faq-q .plus svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.faq-item.open .faq-q .plus { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.faq-item.open .faq-q .plus svg:last-child { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.faq-a-inner { padding-bottom: 26px; padding-inline-end: 48px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---- Blog preview ---- */
.blog-card { overflow: hidden; }
.blog-cover { aspect-ratio: 16/10; background: var(--grad-mesh), var(--paper-100); position: relative; }
.blog-cover .icon-tile { position: absolute; bottom: 16px; inset-inline-start: 16px; }
.blog-body { padding: 24px; }
.blog-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-soft); margin-bottom: 10px; font-weight: 600; }

/* ---- Final CTA ---- */
.final-cta { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--grad-dark); padding: clamp(48px, 8vw, 90px) clamp(24px, 6vw, 72px); text-align: center; box-shadow: var(--shadow-xl); }
.final-cta::before { content: ''; position: absolute; inset: 0; background: var(--grad-mesh); opacity: .8; }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; }
.final-cta p { color: var(--ink-200); max-width: 560px; margin-inline: auto; }
.final-cta .hero-cta-row { justify-content: center; margin-top: 32px; margin-bottom: 0; }

/* ---- Footer ---- */
footer { background: var(--ink-950); color: var(--ink-200); padding-top: 80px; }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { color: var(--ink-300); margin-block: 18px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-300); font-size: 14.5px; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--brand-orange-400); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-300); }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--brand-orange-400); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; transition: all var(--dur-fast); }
.footer-social a:hover { background: var(--grad-primary); border-color: transparent; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-full); padding: 12px 18px; color: #fff; font-size: 14px; }
.newsletter-form input::placeholder { color: var(--ink-400); }
.newsletter-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.newsletter-form button svg { width: 18px; height: 18px; }
.map-embed { border-radius: var(--r-md); overflow: hidden; height: 140px; border: 1px solid rgba(255,255,255,.1); margin-top: 16px; filter: grayscale(1) invert(.92) contrast(.9); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; font-size: 13.5px; color: var(--ink-400); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--ink-400); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Floating elements ---- */
.floating-stack { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 800; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
  opacity: 0; translate: 0 16px; pointer-events: none;
}
.fab.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab-whatsapp { background: #25D366; color: #fff; opacity: 1; translate: 0 0; pointer-events: auto; animation: wa-pulse 2.6s ease-in-out infinite; }
.fab-whatsapp svg { width: 30px; height: 30px; }
@keyframes wa-pulse { 0%,100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: var(--shadow-lg), 0 0 0 10px rgba(37,211,102,0); } }
.fab-top { background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text); width: 46px; height: 46px; }
.fab-top svg { width: 20px; height: 20px; }

.sticky-cta-desktop {
  position: fixed; bottom: 24px; left: 24px; z-index: 800; display: none;
  align-items: center; gap: 14px; padding: 10px 10px 10px 22px; border-radius: var(--r-full);
  opacity: 0; translate: 0 16px; transition: opacity var(--dur-fast), translate var(--dur-fast);
}
[dir="rtl"] .sticky-cta-desktop { left: auto; right: 24px; flex-direction: row-reverse; padding: 10px 22px 10px 10px; }
.sticky-cta-desktop.show { opacity: 1; translate: 0 0; }
@media (min-width: 981px) { .sticky-cta-desktop { display: flex; } }

/* ---- Counter helper ---- */
[data-counter] { font-variant-numeric: tabular-nums; }

/* ---- Exit intent modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,9,12,.6); backdrop-filter: blur(4px); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity var(--dur-med); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--bg-elevated); border-radius: var(--r-xl); max-width: 460px; width: 100%; padding: 40px; text-align: center; position: relative; box-shadow: var(--shadow-xl); transform: scale(.92) translateY(10px); transition: transform var(--dur-med) var(--ease-out); }
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); }
.modal-close svg { width: 16px; height: 16px; }
.modal-box .icon-tile { margin-inline: auto; margin-bottom: 20px; width: 64px; height: 64px; border-radius: 18px; }
.modal-box .icon-tile svg { width: 30px; height: 30px; }
.modal-box h3 { margin-bottom: 10px; }
.modal-box p { margin-bottom: 24px; }

/* ---- Skeleton loader ---- */
.skel { background: linear-gradient(90deg, var(--paper-100) 25%, var(--paper-200) 37%, var(--paper-100) 63%); background-size: 400% 100%; animation: skel-shine 1.4s ease infinite; border-radius: var(--r-md); }
@keyframes skel-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Utilities ---- */
.mt-0{margin-top:0}.text-center{text-align:center}
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 2000; background: var(--ink-900); color: #fff; padding: 12px 20px; border-radius: var(--r-md); transition: top var(--dur-fast); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--brand-orange-500); outline-offset: 3px; }

/* ---- Responsive grid overrides (kept last so they always win the cascade) ---- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .process-grid, .stats-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
  .stats-grid .stat-card { padding: 20px 12px; border-bottom: 1px solid var(--border); }
  .hero-cta-row, .final-cta .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn, .final-cta .hero-cta-row .btn { width: 100%; }
}
