/* ============================================================
   Doktori Media — Landing
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy-900: #070823;
  --navy-800: #0A0B2E;
  --navy-700: #0F1038;
  --navy-600: #13143D;
  --navy-500: #1B1C54;
  --line: rgba(196, 181, 253, 0.08);
  --line-strong: rgba(196, 181, 253, 0.16);

  --purple-500: #6B3FFF;
  --purple-400: #8B5CF6;
  --purple-300: #A855F7;
  --lilac: #C4B5FD;
  --lilac-soft: rgba(196, 181, 253, 0.6);

  --text: #F5F3FF;
  --text-muted: rgba(245, 243, 255, 0.65);
  --text-dim: rgba(245, 243, 255, 0.4);

  --grad: linear-gradient(135deg, #6B3FFF 0%, #A855F7 60%, #D946EF 100%);
  --grad-soft: linear-gradient(135deg, #6B3FFF 0%, #A855F7 100%);

  --accent-mult: 1;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --page-max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy-800);
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] body, .app[dir="rtl"] { font-family: var(--font-ar); }
.app[dir="rtl"] h1, .app[dir="rtl"] h2, .app[dir="rtl"] h3 { font-family: var(--font-ar); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Backgrounds ---------- */
.app { position: relative; min-height: 100vh; isolation: isolate; }
.app[data-bg="grid"]::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}
.app[data-bg="flat"] { background: var(--navy-900); }

/* Aurora orbs */
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: float 18s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #6B3FFF 0%, transparent 70%); top: -150px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #A855F7 0%, transparent 70%); top: 20%; right: -150px; animation-delay: -6s; }
.orb-3 { width: 700px; height: 700px; background: radial-gradient(circle, #3B0F82 0%, transparent 70%); bottom: -200px; left: 30%; animation-delay: -12s; }
.app[data-accent="subtle"] .orb { opacity: 0.25 !important; }
.app[data-accent="vibrant"] .orb { opacity: 0.8 !important; filter: blur(60px); }

.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.3; mix-blend-mode: overlay;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* ---------- Cursor spotlight ---------- */
.cursor-spotlight {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(107, 63, 255, 0.12), transparent 50%);
  transition: background 0.1s;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 20px; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  transition: top 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  width: min(96%, 1200px);
  padding: 12px 16px 12px 24px;
  background: rgba(10, 11, 46, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.nav-scrolled .nav-inner { background: rgba(7, 8, 35, 0.85); border-color: var(--line-strong); }
.nav-brand img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-muted); padding: 7px 12px; border-radius: 100px;
  font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.04em;
  display: flex; gap: 6px; align-items: center;
}
.lang-toggle .lang-label { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  font-family: var(--font-display);
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-large { padding: 18px 28px; font-size: 16px; }
.btn-primary {
  background: var(--grad);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 10px 40px -10px rgba(107, 63, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: btn-shine 6s ease infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -10px rgba(107, 63, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.3); }
@keyframes btn-shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--lilac);
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(196, 181, 253, 0.04);
}
.app[dir="rtl"] .eyebrow { font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple-300); box-shadow: 0 0 12px var(--purple-300); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.dot-green { background: #4ade80 !important; box-shadow: 0 0 8px #4ade80 !important; }

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

/* Animated shiny gradient text — eye-catching sweep across the whole word.
   A bright highlight band travels through the purple→pink gradient. */
.shine-text {
  font-style: normal;
  background: linear-gradient(
    100deg,
    #6B3FFF 0%,
    #A855F7 28%,
    #ffffff 46%,
    #D946EF 64%,
    #A855F7 82%,
    #6B3FFF 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: text-shine 5.5s ease-in-out infinite;
}
.display-shine { line-height: 1.08; }
@keyframes text-shine {
  0%   { background-position: 200% 50%; }
  100% { background-position: -50% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .shine-text { animation: none; background-position: 50% 50%; }
}

/* ---------- Hero base ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 80px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--page-max); }

/* Editorial */
.display {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 28px 0 32px;
  text-wrap: balance;
}
.app[dir="rtl"] .display { font-family: var(--font-ar); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.app[dir="rtl"] .display .word { display: block !important; }
.display .word { display: inline-block; }
.display.is-reveal .word { opacity: 0; transform: translateY(20px); animation: word-in 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
.display.is-reveal .word-0 { animation-delay: 0.1s; }
.display.is-reveal .word-1 { animation-delay: 0.25s; }
.display.is-reveal .word-2 { animation-delay: 0.4s; }
@keyframes word-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .display.is-reveal .word { opacity: 1; transform: none; animation: none; }
}

.display-compact { font-size: clamp(44px, 6vw, 88px); }
.display-huge { font-size: clamp(64px, 13vw, 200px); margin-bottom: 40px; }
.display-huge .block-word { display: block; }
.display-huge .block-word:nth-child(2) { padding-left: 0.5em; }
.app[dir="rtl"] .display-huge .block-word:nth-child(2) { padding-left: 0; padding-right: 0.5em; }

.hero-sub {
  max-width: 640px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 72px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 900px;
}
@media (max-width: 700px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-n { font-family: var(--font-display); font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -0.02em; }
.stat-l { color: var(--text-dim); font-size: 13px; margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.app[dir="rtl"] .stat-l { font-family: var(--font-ar); letter-spacing: 0; }

/* Split */
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

/* Dashboard mock */
.dash {
  background: linear-gradient(180deg, rgba(27, 28, 84, 0.6), rgba(15, 16, 56, 0.8));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: dash-in 1s cubic-bezier(0.2, 0.9, 0.3, 1) 0.4s backwards;
}
@keyframes dash-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.dash-header { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(196, 181, 253, 0.3); }
.dash-dot:nth-child(2) { background: rgba(168, 85, 247, 0.5); }
.dash-title { margin-left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.dash-stat { padding: 14px; background: rgba(0, 0, 0, 0.25); border-radius: 12px; border: 1px solid var(--line); }
.dash-stat-l { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.dash-stat-n { font-family: var(--font-display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.dash-stat-d { font-family: var(--font-mono); font-size: 11px; color: #86efac; margin-top: 4px; }
.dash-chart { width: 100%; height: 100px; margin-bottom: 16px; }
.dash-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }
.dash-pill { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); color: var(--lilac); }
.dash-pulse { width: 6px; height: 6px; border-radius: 50%; background: #A855F7; animation: pulse-dot 1.4s infinite; }

/* Showreel */
.showreel-card {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 560px;
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--navy-600);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.3s;
}
.showreel-card:hover { transform: scale(1.01); }
.showreel-play {
  position: relative; z-index: 2;
  width: 80px; height: 80px;
  background: var(--grad);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 20px 60px -10px rgba(107, 63, 255, 0.6);
}
.showreel-meta {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--lilac-soft); z-index: 2;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.showreel-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(196,181,253,0.03) 0 10px, rgba(196,181,253,0.06) 10px 20px);
}

/* Clinic placeholder */
.clinic-placeholder {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--navy-600);
}
.ph-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(196,181,253,0.04) 0 14px, rgba(196,181,253,0.08) 14px 28px);
}
.ph-label {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--lilac); text-transform: uppercase;
  padding: 6px 10px; border: 1px dashed var(--line-strong);
  border-radius: 6px; background: rgba(10, 11, 46, 0.5);
}
.ph-label-sm { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; }
.ph-overlay { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.ph-chip {
  padding: 8px 14px;
  background: rgba(10, 11, 46, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--lilac);
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  position: relative;
  background: rgba(7, 8, 35, 0.4);
  direction: ltr; /* force LTR so animation works in both EN and AR */
}
.marquee { display: flex; gap: 0; animation: marquee 35s linear infinite; white-space: nowrap; will-change: transform; }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 20px;
  display: flex; align-items: center; gap: 30px;
}
.app[dir="rtl"] .marquee-item { font-family: var(--font-ar); }
.marquee-dot { color: var(--purple-300); font-size: 0.6em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.33%); } }
@keyframes marquee-2x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 120px 24px;
  max-width: var(--page-max);
  margin: 0 auto;
  z-index: 2;
}
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 20px 0 20px;
  text-wrap: balance;
}
.app[dir="rtl"] .section-title { font-family: var(--font-ar); font-weight: 600; line-height: 1.15; }
.section-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative;
  padding: 36px 28px;
  background: rgba(10, 11, 46, 0.7);
  backdrop-filter: blur(12px);
  transition: background 0.3s, transform 0.3s;
  min-height: 280px;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(107, 63, 255, 0.12), transparent 40%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card.is-hover { background: rgba(19, 20, 61, 0.9); }
.service-card.is-hover::before { opacity: 1; }
.service-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(107, 63, 255, 0.12);
  border: 1px solid rgba(107, 63, 255, 0.2);
  display: grid; place-items: center;
  color: var(--lilac);
  transition: background 0.3s, transform 0.3s;
}
.service-card.is-hover .service-icon { background: var(--grad); color: white; transform: rotate(-4deg) scale(1.05); }
.service-kpi {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--lilac); letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(196, 181, 253, 0.06);
  border: 1px solid var(--line-strong);
}
.service-num { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 10px; }
.service-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500;
  margin: 0 0 12px; letter-spacing: -0.02em;
}
.app[dir="rtl"] .service-title { font-family: var(--font-ar); font-weight: 600; }
.service-body { color: var(--text-muted); line-height: 1.5; font-size: 14px; margin: 0; }
.service-arrow {
  position: absolute;
  bottom: 28px; right: 28px;
  color: var(--lilac);
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
}
.app[dir="rtl"] .service-arrow { left: 28px; right: auto; transform: scaleX(-1); }
.service-card.is-hover .service-arrow { opacity: 1; transform: translate(4px, -4px); }
.app[dir="rtl"] .service-card.is-hover .service-arrow { transform: scaleX(-1) translate(4px, -4px); }

/* ---------- Region / map ---------- */
.region-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .region-inner { grid-template-columns: 1fr; gap: 48px; } }
.map {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(19, 20, 61, 0.8), rgba(7, 8, 35, 0.4));
  padding: 28px;
  margin-bottom: 32px;
}
.map-svg { width: 100%; height: 100%; }
.map-caption {
  position: absolute; bottom: 16px; left: 20px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.06em;
}
.markets { display: grid; gap: 14px; }
.market {
  padding: 16px 20px;
  background: rgba(10, 11, 46, 0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background 0.25s, transform 0.25s;
}
.market:hover { background: rgba(19, 20, 61, 0.7); transform: translateX(4px); }
.app[dir="rtl"] .market:hover { transform: translateX(-4px); }
.market-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.market-name { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.app[dir="rtl"] .market-name { font-family: var(--font-ar); font-weight: 600; }
.market-flag { font-size: 22px; line-height: 1; filter: saturate(1.1); }
.market-cities { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.04em; }
.app[dir="rtl"] .market-cities { font-family: var(--font-ar); letter-spacing: 0; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  padding: 36px;
  background: rgba(10, 11, 46, 0.5);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.work-card:hover { background: rgba(19, 20, 61, 0.7); border-color: var(--line-strong); transform: translateY(-4px); }
.work-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--lilac); letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(196, 181, 253, 0.06);
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.app[dir="rtl"] .work-tag { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; }
.work-logo-real {
  height: 84px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(27, 28, 84, 0.35), rgba(10, 11, 46, 0.5));
  display: grid; place-items: center;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s, background 0.3s;
}
.work-card:hover .work-logo-real { border-color: rgba(168, 85, 247, 0.4); }
.work-logo-real img {
  max-height: 100%; max-width: 100%;
  object-fit: contain; display: block;
  filter: brightness(1.05) contrast(1.02) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.work-logo-ph {
  height: 60px; margin-bottom: 24px;
  border: 1px dashed var(--line-strong); border-radius: 8px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  background: rgba(7, 8, 35, 0.4);
}
.work-logo-mono {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.work-metric-n { font-family: var(--font-display); font-size: clamp(48px, 6vw, 80px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.work-metric-l { font-family: var(--font-mono); font-size: 13px; color: var(--lilac); letter-spacing: 0.04em; margin-bottom: 28px; }
.app[dir="rtl"] .work-metric-l { font-family: var(--font-ar); letter-spacing: 0; }
.work-clinic { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.app[dir="rtl"] .work-clinic { font-family: var(--font-ar); font-weight: 600; }
.work-note { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Testimonials — shared bits ---------- */
.tm-quote { color: var(--purple-300); margin: 0 0 8px; }
.tm-cap { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tm-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.tm-name { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.app[dir="rtl"] .tm-name { font-family: var(--font-ar); font-weight: 600; }
.tm-role { font-size: 13px; color: var(--text-dim); }

/* ---------- Testimonials — featured player + rail ---------- */
.tm-stage {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 900px) { .tm-stage { grid-template-columns: 1fr; } }

.tm-player {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--navy-700);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
.tm-iframe { width: 100%; height: 100%; border: 0; display: block; }
.tm-poster {
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  background: var(--navy-700);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s;
}
.tm-poster:hover { transform: scale(1.005); }
.tm-poster-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(107, 63, 255, 0.35), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.3), transparent 55%),
    var(--navy-700);
}
.tm-poster-glow {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, rgba(107,63,255,0.15), rgba(168,85,247,0.2), rgba(217,70,239,0.15), rgba(107,63,255,0.15));
  animation: tm-spin 20s linear infinite;
  opacity: 0.6;
}
@keyframes tm-spin { to { transform: rotate(360deg); } }
.tm-play-big {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 30px 80px -10px rgba(107, 63, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.25s;
}
.tm-poster:hover .tm-play-big { transform: translate(-50%, -50%) scale(1.08); }
.tm-poster-meta {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--lilac); letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}
.app[dir="rtl"] .tm-poster-meta { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; }

.tm-body {
  display: flex; flex-direction: column;
  padding: 32px;
  background: rgba(10, 11, 46, 0.5);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.tm-text-lg {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 12px 0 28px;
  text-wrap: pretty;
}
.app[dir="rtl"] .tm-text-lg { font-family: var(--font-ar); line-height: 1.55; font-size: clamp(18px, 1.9vw, 24px); }

.tm-rail {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 500px) { .tm-rail { grid-template-columns: repeat(2, 1fr); } }
.tm-thumb {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text-muted);
  transition: all 0.25s;
  cursor: pointer;
}
.app[dir="rtl"] .tm-thumb { text-align: right; }
.tm-thumb:hover { border-color: var(--line-strong); background: rgba(19, 20, 61, 0.5); color: var(--text); }
.tm-thumb.is-active {
  background: rgba(107, 63, 255, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--text);
}
.tm-thumb-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--lilac);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.tm-thumb-role {
  font-size: 12px;
  line-height: 1.3;
  text-wrap: balance;
}
.app[dir="rtl"] .tm-thumb-role { font-size: 13px; }

/* ---------- Logos — dual-row brand showcase ---------- */
.logos-section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(107, 63, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(7, 8, 35, 0.4), rgba(10, 11, 46, 0.6));
}
.logos-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(196,181,253,0.12) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(168,85,247,0.1) 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(107,63,255,0.08) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px, 100px 100px;
  opacity: 0.5;
  pointer-events: none;
}

.logos-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.logos-head {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .logos-head { grid-template-columns: 1fr; align-items: start; gap: 32px; }
}
.logos-head-left { max-width: 620px; }
.logos-title { margin: 20px 0 20px; }

.logos-head-right {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 11, 46, 0.5);
  backdrop-filter: blur(12px);
}
.logos-stat-div {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.logos-stat-n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logos-stat-l {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.app[dir="rtl"] .logos-stat-l { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 13px; }

.logos-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin: 0 -24px;
  direction: ltr;
}

.logo-row-wrap {
  overflow: hidden;
  padding: 4px 0;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
}

.logo-row {
  display: flex;
  gap: 16px;
  width: max-content;
  direction: ltr; /* Always animate in LTR-space so keyframes are predictable */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.logo-row:hover { animation-play-state: paused; }
.logo-row-left { animation-name: logo-row-left; }
.logo-row-right { animation-name: logo-row-right; }

@keyframes logo-row-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes logo-row-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.logo-tile {
  flex: 0 0 auto;
  width: 220px;
  height: 120px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 28, 84, 0.35), rgba(10, 11, 46, 0.5));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s, background 0.4s, box-shadow 0.4s;
}
.logo-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.28), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.logo-tile:hover {
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(39, 40, 120, 0.55), rgba(18, 19, 70, 0.7));
  box-shadow: 0 24px 50px -16px rgba(107, 63, 255, 0.55);
}
.logo-tile:hover::before { opacity: 1; }

.logo-tile-inner {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(1.05) contrast(1.02) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.5s, filter 0.5s;
}
.logo-tile:hover img {
  transform: scale(1.05);
  filter: brightness(1.15) contrast(1.05) drop-shadow(0 2px 6px rgba(168, 85, 247, 0.4));
}

/* ---------- CTA ---------- */
.cta-section { padding: 60px 24px 120px; }
.cta-inner {
  position: relative;
  border-radius: 32px;
  padding: 96px 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(19, 20, 61, 0.8), rgba(10, 11, 46, 0.9));
  text-align: center;
  isolation: isolate;
}
.cta-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta-title { margin-top: 0; }
.cta-sub { color: var(--text-muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; margin: 0 auto 40px; max-width: 560px; text-wrap: pretty; }
.cta-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 24px; letter-spacing: 0.04em; }
.app[dir="rtl"] .cta-note { font-family: var(--font-ar); letter-spacing: 0; }

/* ---------- Footer ---------- */
.footer { padding: 60px 24px 32px; border-top: 1px solid var(--line); background: rgba(7, 8, 35, 0.6); position: relative; z-index: 2; }
.footer-top { max-width: var(--page-max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }
.footer-logo { height: 36px; margin-bottom: 20px; }
.footer-tagline { color: var(--text-muted); font-size: 15px; line-height: 1.5; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-col-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.app[dir="rtl"] .footer-col-title { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { color: var(--text-muted); font-size: 14px; }
.footer-col li a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-col li a:hover { color: var(--text); }
.footer-bottom { max-width: var(--page-max); margin: 32px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.04em; }
.app[dir="rtl"] .footer-bottom { font-family: var(--font-ar); letter-spacing: 0; }
.footer-status { display: flex; align-items: center; gap: 8px; }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 320px;
  background: rgba(7, 8, 35, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  z-index: 200;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  font-family: var(--font-body);
  animation: panel-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--lilac);
}
.tweaks-head button { background: transparent; border: none; color: var(--text-muted); padding: 4px; border-radius: 6px; }
.tweaks-head button:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.tweaks-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.tweaks-row { display: flex; flex-direction: column; gap: 8px; }
.tweaks-row-inline { flex-direction: row; justify-content: space-between; align-items: center; }
.tweaks-label { font-size: 12px; color: var(--text-muted); }
.tweaks-seg { display: flex; gap: 2px; padding: 2px; background: rgba(0,0,0,0.3); border-radius: 8px; border: 1px solid var(--line); }
.tweaks-seg button { flex: 1; padding: 7px 10px; background: transparent; border: none; color: var(--text-muted); font-size: 12px; border-radius: 6px; transition: all 0.2s; }
.tweaks-seg button:hover { color: var(--text); }
.tweaks-seg button.on { background: var(--grad); color: white; }
.tweaks-switch { width: 36px; height: 20px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 100px; position: relative; padding: 0; }
.tweaks-switch span { position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-dim); transition: all 0.25s; }
.tweaks-switch.on { background: var(--grad); }
.tweaks-switch.on span { left: 17px; background: white; }
.tweaks-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }


/* ========================================================= */
/* ================  SERVICES v2 (A–Z system)  ============== */
/* ========================================================= */

/* Hero pillar — the call-center differentiator */
.pillar {
  position: relative;
  margin: 0 auto 56px;
  max-width: 1240px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 0% 0%, rgba(107,63,255,0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(236,72,153,0.18), transparent 55%),
    linear-gradient(180deg, rgba(26,28,84,0.55), rgba(10,11,46,0.85));
  border: 1px solid rgba(168, 85, 247, 0.22);
  overflow: hidden;
  isolation: isolate;
}
.pillar::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(196,181,253,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(196,181,253,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
  opacity: 0.6; z-index: -1;
}
.pillar-glow {
  position: absolute; inset: -30%; z-index: -1;
  background: conic-gradient(from 120deg, rgba(107,63,255,0.18), rgba(236,72,153,0.14), rgba(107,63,255,0.18));
  filter: blur(80px);
  animation: pillar-spin 28s linear infinite;
}
@keyframes pillar-spin { to { transform: rotate(360deg); } }

.pillar-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding: 56px 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .pillar-inner { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
}

.pillar-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.app[dir="rtl"] .pillar-badge { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 12px; }
.pillar-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(236,72,153,0.25), 0 0 12px rgba(236,72,153,0.6);
  animation: pb-pulse 1.6s ease-in-out infinite;
}
@keyframes pb-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.85); } }

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #fff 0%, #C4B5FD 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app[dir="rtl"] .pillar-title { font-family: var(--font-ar); font-weight: 700; line-height: 1.2; }
.pillar-body {
  color: var(--text-muted);
  font-size: 16px; line-height: 1.65;
  margin: 0 0 28px;
  max-width: 52ch;
}
.app[dir="rtl"] .pillar-body { font-size: 17px; line-height: 1.8; }

.pillar-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pillar-stat-n {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.pillar-stat-l {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.app[dir="rtl"] .pillar-stat-l { font-family: var(--font-ar); letter-spacing: 0; font-size: 13px; }

/* Right-side call-center visual */
.pillar-right { position: relative; min-height: 420px; }
.cc-visual {
  position: relative;
  width: 100%;
  background: rgba(7, 8, 35, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 16px;
  font-family: var(--font-mono);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.cc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 6px 14px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cc-header-left { display: flex; align-items: center; gap: 8px; }
.cc-dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18), 0 0 10px rgba(16,185,129,0.6);
  animation: cc-live 1.4s ease-in-out infinite;
}
@keyframes cc-live { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.cc-counter { color: #10B981; font-weight: 600; }

.cc-calls { display: flex; flex-direction: column; gap: 6px; }
.cc-call {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(19, 20, 61, 0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background 0.5s, border-color 0.5s, transform 0.5s;
}
.cc-call.is-active {
  background: rgba(107, 63, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}
.app[dir="rtl"] .cc-call { direction: rtl; }

.cc-wave { display: flex; align-items: center; gap: 2px; height: 20px; width: 22px; }
.cc-bar {
  width: 2px; background: var(--purple-300); border-radius: 2px;
  height: 30%;
  animation: cc-wave 0.9s ease-in-out infinite;
}
.cc-call:not(.is-active) .cc-bar { animation: none; height: 20%; opacity: 0.4; }
@keyframes cc-wave {
  0%, 100% { height: 20%; }
  50% { height: 90%; }
}

.cc-call-body { min-width: 0; overflow: hidden; }
.cc-call-name { font-size: 13px; color: var(--text); font-weight: 500; font-family: var(--font-body); }
.cc-call-clinic { font-size: 11px; color: var(--text-dim); letter-spacing: 0.02em; margin-top: 2px; }

.cc-call-right { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.app[dir="rtl"] .cc-call-right { text-align: left; align-items: flex-start; }
.cc-status {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.cc-status-booked { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.cc-status-qualifying { background: rgba(168,85,247,0.12); color: var(--purple-300); border: 1px solid rgba(168,85,247,0.25); }
.cc-status-reminder { background: rgba(245,158,11,0.12); color: #FBBF24; border: 1px solid rgba(245,158,11,0.25); }
.cc-dur { font-size: 10px; color: var(--text-dim); }

.cc-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.cc-footer-stat { display: flex; align-items: baseline; gap: 6px; }
.cc-footer-n { color: var(--purple-300); font-weight: 600; font-size: 13px; }

/* Pipeline grid */
.pipeline-head {
  display: flex; align-items: center; gap: 16px;
  margin: 0 auto 24px;
  max-width: 1240px;
}
.pipeline-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lilac);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.app[dir="rtl"] .pipeline-label { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 13px; }
.pipeline-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(168,85,247,0.4), transparent);
}
.app[dir="rtl"] .pipeline-line { background: linear-gradient(-90deg, rgba(168,85,247,0.4), transparent); }

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 1000px) { .pipeline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pipeline-grid { grid-template-columns: 1fr; } }

.pipeline-card {
  position: relative;
  padding: 28px 24px 28px;
  background: rgba(10, 11, 46, 0.85);
  transition: background 0.3s;
  cursor: default;
  display: flex; flex-direction: column; gap: 10px;
}
.pipeline-card.is-hover { background: rgba(26, 28, 84, 0.95); }
.pipeline-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s;
}
.app[dir="rtl"] .pipeline-card::before { transform-origin: right center; }
.pipeline-card.is-hover::before { transform: scaleX(1); }

.pipeline-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 0;
}
.pipeline-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(107, 63, 255, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-300);
  margin-bottom: 4px;
  transition: all 0.3s;
}
.pipeline-card.is-hover .pipeline-icon {
  background: var(--grad);
  color: white;
  border-color: transparent;
}
.pipeline-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.app[dir="rtl"] .pipeline-title { font-family: var(--font-ar); font-weight: 600; font-size: 18px; }
.pipeline-body { color: var(--text-muted); line-height: 1.5; font-size: 13.5px; margin: 0; }
.app[dir="rtl"] .pipeline-body { font-size: 14px; line-height: 1.7; }

/* Niches ribbon */
.niches {
  display: flex; align-items: center; gap: 16px;
  margin: 40px auto 0;
  max-width: 1240px;
  padding: 20px 24px;
  background: rgba(10, 11, 46, 0.5);
  border: 1px solid var(--line);
  border-radius: 100px;
  flex-wrap: wrap;
}
.niches-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.app[dir="rtl"] .niches-label { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 13px; }
.niches-items { display: flex; flex-wrap: wrap; gap: 8px; }
.niche-chip {
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(107, 63, 255, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  color: var(--purple-200);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.app[dir="rtl"] .niche-chip { font-family: var(--font-ar); font-size: 14px; }

/* ========================================================= */
/* =================  WORK v2 (case study)  ================= */
/* ========================================================= */
.work-stage {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 900px) { .work-stage { grid-template-columns: minmax(0, 1fr); } }

.work-rail {
  display: flex; flex-direction: column; gap: 8px;
}
.work-rail-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(10, 11, 46, 0.4);
  border: 1px solid var(--line);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}
.app[dir="rtl"] .work-rail-item { text-align: right; }
.work-rail-item:hover { background: rgba(19, 20, 61, 0.6); border-color: var(--line-strong); color: var(--text); }
.work-rail-item.is-active {
  background: rgba(107, 63, 255, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--text);
}
.work-rail-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lilac);
  letter-spacing: 0.1em;
}
.work-rail-item.is-active .work-rail-idx { color: var(--purple-300); }
.work-rail-clinic {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.app[dir="rtl"] .work-rail-clinic { font-family: var(--font-ar); font-weight: 600; font-size: 16px; }
.work-rail-meta {
  font-size: 12px; color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.app[dir="rtl"] .work-rail-meta { font-family: var(--font-ar); letter-spacing: 0; font-size: 13px; }
.work-rail-arrow {
  color: var(--text-dim);
  transition: color 0.25s, transform 0.25s;
  opacity: 0.4;
}
.app[dir="rtl"] .work-rail-arrow { transform: scaleX(-1); }
.work-rail-item.is-active .work-rail-arrow { color: var(--purple-300); opacity: 1; transform: translateX(3px); }
.app[dir="rtl"] .work-rail-item.is-active .work-rail-arrow { transform: scaleX(-1) translateX(3px); }

/* Big card */
.work-card-big {
  position: relative;
  padding: 40px 40px 36px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(107,63,255,0.14), transparent 60%),
    linear-gradient(180deg, rgba(19,20,61,0.75), rgba(10,11,46,0.75));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  opacity: 1;
}
.work-card-big.is-animating { animation: work-fade 0.35s ease-out forwards; }
@keyframes work-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.work-card-big::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.5), transparent);
}
@media (max-width: 900px) { .work-card-big { padding: 28px 24px; } }

.work-card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.work-card-head-left {
  display: flex; align-items: center; gap: 16px;
}
.work-logo-real.big {
  width: 120px; height: 72px;
  margin-bottom: 0;
  background: rgba(7, 8, 35, 0.5);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: center;
}
.work-logo-real.big img {
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
  object-fit: contain;
}
.work-card-clinic {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.app[dir="rtl"] .work-card-clinic { font-family: var(--font-ar); font-weight: 600; font-size: 21px; }
.work-card-meta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); letter-spacing: 0.04em;
}
.app[dir="rtl"] .work-card-meta { font-family: var(--font-ar); letter-spacing: 0; font-size: 13px; }
.work-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--purple-200);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  background: rgba(107, 63, 255, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 100px;
}
.app[dir="rtl"] .work-card-tag { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 12px; }

.work-card-headline { margin-bottom: 28px; }
.work-card-headline-n {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-bottom: 8px;
}
.work-card-headline-l {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lilac);
  letter-spacing: 0.04em;
}
.app[dir="rtl"] .work-card-headline-l { font-family: var(--font-ar); letter-spacing: 0; font-size: 15px; }

.work-card-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
@media (max-width: 700px) { .work-card-kpis { grid-template-columns: 1fr; } }
.work-card-kpi {
  padding: 18px 20px;
  background: rgba(7, 8, 35, 0.5);
}
.work-card-kpi-n {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text);
}
.app[dir="rtl"] .work-card-kpi-n { font-family: var(--font-display); }
.work-card-kpi-l {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.35;
}

.work-card-note {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.app[dir="rtl"] .work-card-note { font-size: 16px; line-height: 1.75; }

/* ========================================================= */
/* =================  TESTIMONIALS v2  ====================== */
/* ========================================================= */
.tm2 {
  max-width: 1100px; margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tm2-player { scroll-margin-top: 80px; }
.tm2-player {
  position: relative;
  grid-row: span 2;
}
.tm2-frame {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy-700);
  border: 1px solid rgba(168, 85, 247, 0.24);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
.tm2-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Real video element — fills the frame */
.tm2-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.tm2-frame { cursor: pointer; }
/* Darken video slightly when not actively playing with sound, so overlay UI is readable */
.tm2-frame .tm2-video { transition: filter 0.3s; }
.tm2-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent 30%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(10,11,46,0.4) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}
.tm2-frame > .tm2-poster-grain,
.tm2-frame > .tm2-poster-quote,
.tm2-frame > .tm2-poster-center,
.tm2-frame > .tm2-poster-foot,
.tm2-frame > .tm2-mute { z-index: 2; }

.tm2-mute {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.tm2-mute:hover { background: rgba(107,63,255,0.4); transform: scale(1.05); }
.app[dir="rtl"] .tm2-mute { right: auto; left: 20px; }

.tm2-poster {
  position: relative;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.tm2-poster-bg {
  position: absolute; inset: 0;
  filter: saturate(1.05);
}
.tm2-poster-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 50%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
}
.tm2-poster-grain {
  position: absolute; inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.tm2-poster-quote {
  position: absolute; top: 28px; left: 28px;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
}
.app[dir="rtl"] .tm2-poster-quote { left: auto; right: 28px; transform: scaleX(-1); }
.tm2-poster-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.tm2-play {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.3) inset;
  transition: transform 0.25s;
  padding-left: 6px;
}
.app[dir="rtl"] .tm2-play { padding-left: 0; padding-right: 6px; transform: scaleX(-1); }
.tm2-poster:hover .tm2-play { transform: scale(1.08); }
.app[dir="rtl"] .tm2-poster:hover .tm2-play { transform: scaleX(-1) scale(1.08); }
.tm2-play-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.app[dir="rtl"] .tm2-play-label { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 12px; }

.tm2-poster-foot {
  position: absolute;
  bottom: 24px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: rgba(255,255,255,0.95);
  gap: 16px;
  pointer-events: none;
}
/* Lift the foot meta above the native video control bar while playing */
.tm2-frame.is-playing .tm2-poster-foot { bottom: 64px; }
.tm2-poster-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.app[dir="rtl"] .tm2-poster-name { font-family: var(--font-ar); font-weight: 600; font-size: 19px; }
.tm2-poster-role {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-top: 3px;
}
.tm2-poster-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
}

.tm2-nav {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10, 11, 46, 0.7);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.25s;
  z-index: 2;
}
.tm2-nav-prev { left: -22px; transform: translateY(-50%) scaleX(-1); }
.tm2-nav-next { right: -22px; }
.app[dir="rtl"] .tm2-nav-prev { left: auto; right: -22px; transform: translateY(-50%) scaleX(1); }
.app[dir="rtl"] .tm2-nav-next { right: auto; left: -22px; transform: translateY(-50%) scaleX(-1); }
.tm2-nav:hover { background: rgba(107,63,255,0.3); border-color: rgba(168,85,247,0.5); }
@media (max-width: 700px) { .tm2-nav-prev { left: 12px; } .tm2-nav-next { right: 12px; } .app[dir="rtl"] .tm2-nav-prev { right: 12px; left: auto; } .app[dir="rtl"] .tm2-nav-next { left: 12px; right: auto; } }

.tm2-quote-block {
  padding: 32px 36px;
  background: rgba(10, 11, 46, 0.5);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex; flex-direction: column;
  position: relative;
}
.tm2-quote-icon { color: var(--purple-300); opacity: 0.7; margin-bottom: 12px; }
.tm2-quote-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 24px;
}
.app[dir="rtl"] .tm2-quote-text { font-family: var(--font-ar); font-weight: 500; line-height: 1.7; font-size: clamp(18px, 1.7vw, 22px); }
.tm2-quote-cap {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tm2-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--purple-400);
  box-shadow: 0 4px 12px rgba(107,63,255,0.25);
  background: var(--navy-800);
}
.tm2-avatar video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tm2-quote-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
}
.app[dir="rtl"] .tm2-quote-name { font-family: var(--font-ar); font-weight: 600; font-size: 16px; }
.tm2-quote-role { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* Thumbnail rail — silent-looping video thumbs, 3-column grid */
.tm2-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 500px) { .tm2-rail { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.tm2-thumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  background: var(--navy-800);
  padding: 0;
  transition: transform 0.25s;
}
.tm2-thumb:hover { transform: translateY(-2px); }
.tm2-thumb-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.75);
  transition: filter 0.25s;
}
.tm2-thumb:hover .tm2-thumb-video,
.tm2-thumb.is-active .tm2-thumb-video { filter: saturate(1.05) brightness(0.95); }
.tm2-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
.tm2-thumb.is-active {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
}
.tm2-thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  padding-left: 2px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.tm2-thumb:hover .tm2-thumb-play { opacity: 1; }
.tm2-thumb.is-active .tm2-thumb-play { opacity: 1; background: var(--purple-500); color: white; }
.app[dir="rtl"] .tm2-thumb-play { padding-left: 0; padding-right: 2px; transform: translate(-50%, -50%) scaleX(-1); }
.tm2-thumb-meta {
  position: absolute;
  bottom: 10px; left: 12px; right: 12px;
  color: white;
  z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px;
}
.tm2-thumb-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.96);
  line-height: 1.2;
}
.app[dir="rtl"] .tm2-thumb-name { font-family: var(--font-ar); font-weight: 600; font-size: 14px; }


/* ====================== Services Flow (new pipeline) ====================== */
.flow {
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 0 24px;
}

/* Phase header */
.flow-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
}
.flow-phases::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.22), rgba(236,72,153,0.22), rgba(16,185,170,0.22), transparent);
  z-index: 0;
}
.flow-phase {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(10,11,46,0.55);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 1;
  backdrop-filter: blur(10px);
}
.flow-phase:hover { transform: translateY(-2px); border-color: rgba(168,85,247,0.35); }
.flow-phase.is-active {
  background: linear-gradient(135deg, rgba(107,63,255,0.18), rgba(236,72,153,0.10));
  border-color: rgba(236,72,153,0.55);
  box-shadow: 0 18px 48px -24px rgba(236,72,153,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
.flow-phase-marker {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lilac);
  transition: all 0.3s;
}
.flow-phase.is-active .flow-phase-marker {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 22px -6px rgba(236,72,153,0.6);
}
.flow-phase-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flow-phase-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.app[dir="rtl"] .flow-phase-label { font-family: var(--font-ar); }
.flow-phase-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.app[dir="rtl"] .flow-phase-sub { font-size: 13.5px; }
.flow-phase-steps {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Stage */
.flow-stage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(26,28,84,0.6), rgba(10,11,46,0.4));
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.flow-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 80% 0%, rgba(236,72,153,0.10), transparent 60%);
  pointer-events: none;
}

.flow-stage-main { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.flow-stage-top { display: flex; justify-content: space-between; align-items: center; }
.flow-stage-phase {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--lilac);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app[dir="rtl"] .flow-stage-phase { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 12px; }
.flow-phase-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EC4899;
  box-shadow: 0 0 12px #EC4899;
  animation: flow-pulse 1.6s infinite;
}
@keyframes flow-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.flow-play {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.flow-play:hover { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(236,72,153,0.4); }

.flow-stage-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.app[dir="rtl"] .flow-stage-title { font-family: var(--font-ar); font-weight: 600; font-size: 34px; }
.flow-stage-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch;
}
.app[dir="rtl"] .flow-stage-body { font-size: 16px; line-height: 1.8; }

.flow-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: auto;
  padding-top: 16px;
}
.flow-col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.app[dir="rtl"] .flow-col-label { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 12px; }

/* RTL fixes for services flow */
/* Keep viz frame as LTR (it's a UI mockup, chrome stays left-aligned) */
.app[dir="rtl"] .flow-viz-frame { direction: ltr; }
/* Rail fill from right in RTL */
.app[dir="rtl"] .flow-rail-line { direction: ltr; }
.app[dir="rtl"] .flow-rail-fill { margin-left: auto; margin-right: 0; float: right; }
/* Phase marker stays visually first (right side in RTL) via row-reverse */
.app[dir="rtl"] .flow-phase { flex-direction: row-reverse; text-align: right; }
/* Stage top (phase tag + play button) — keep them at opposite ends */
.app[dir="rtl"] .flow-stage-top { flex-direction: row-reverse; }
/* Deliverable items: checkmark on right (end) in RTL */
.app[dir="rtl"] .flow-deliv { flex-direction: row-reverse; }
/* Flow stage grid: in RTL, show viz on left, text on right (natural grid reversal is fine) */
/* Step rail: force LTR so 01 is always on left, progress fills left→right */
.app[dir="rtl"] .flow-rail { direction: ltr; }
.app[dir="rtl"] .flow-rail-step { direction: rtl; text-align: right; }

.flow-deliverables { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.flow-deliv {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: var(--text);
  animation: flow-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.app[dir="rtl"] .flow-deliv { font-size: 14.5px; }
.flow-deliv svg { color: #10B9AA; flex-shrink: 0; }
@keyframes flow-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.flow-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-tool {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lilac);
  letter-spacing: 0.02em;
}
.app[dir="rtl"] .flow-tool { font-family: var(--font-ar); font-size: 13px; }

/* Stage right — mock visual */
.flow-stage-viz { position: relative; z-index: 1; min-width: 0; }
.flow-viz-frame {
  height: 100%;
  border-radius: 16px;
  background: rgba(10,11,46,0.7);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.flow-viz-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.flow-viz-dots { display: flex; gap: 5px; }
.flow-viz-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(196,181,253,0.25);
}
.flow-viz-label {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.app[dir="rtl"] .flow-viz-label { margin-left: 0; margin-right: auto; }
.flow-viz-body { flex: 1; padding: 20px; display: grid; place-items: center; min-height: 260px; }
.step-viz { width: 100%; height: 100%; max-height: 340px; }

/* Step rail — 8 steps */
.flow-rail { margin-top: 28px; }
.flow-rail-line {
  position: relative;
  height: 2px;
  background: rgba(168,85,247,0.12);
  border-radius: 100px;
  margin-bottom: 16px;
  overflow: hidden;
}
.flow-rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--grad);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.app[dir="rtl"] .flow-rail-fill { inset: 0 0 0 auto; }
.flow-rail-steps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.flow-rail-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: var(--text-dim);
  transition: all 0.25s;
  min-width: 0;
}
.app[dir="rtl"] .flow-rail-step { text-align: right; }
.flow-rail-step:hover { color: var(--text); border-top-color: rgba(168,85,247,0.4); }
.flow-rail-step.is-done { color: var(--text-muted); border-top-color: rgba(168,85,247,0.35); }
.flow-rail-step.is-active {
  color: #fff;
  border-top: 1px solid transparent;
  background: linear-gradient(180deg, rgba(236,72,153,0.08), transparent);
}
.flow-rail-step.is-active::before {
  content: ""; position: absolute; margin-top: -11px; width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 100px;
}
.flow-rail-step { position: relative; }
.flow-rail-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.flow-rail-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app[dir="rtl"] .flow-rail-title { font-family: var(--font-ar); font-weight: 600; font-size: 13px; }

@media (max-width: 860px) {
  .flow-stage { grid-template-columns: 1fr; }
  .flow-stage-viz { min-height: 280px; }
  .flow-phases { grid-template-columns: 1fr; }
  .flow-phases::before { display: none; }
  .flow-rail-steps { grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
}
@media (max-width: 640px) {
  .flow { padding: 0 16px; }
  .flow-stage { padding: 20px; }
  .flow-stage-title { font-size: 24px; }
  .flow-stage-grid { grid-template-columns: 1fr; }
  .flow-rail-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Specializations section ============ */
.specs-section { padding: 100px 24px; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.spec-card {
  padding: 48px 40px 44px;
  background: rgba(10,11,46,0.6);
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2,0.9,0.3,1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.spec-card:last-child { border-right: none; }
.app[dir="rtl"] .spec-card { border-right: none; border-left: 1px solid var(--line); }
.app[dir="rtl"] .spec-card:last-child { border-left: none; }
.spec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,63,255,0.12), rgba(236,72,153,0.07));
  opacity: 0;
  transition: opacity 0.35s;
}
.spec-card:hover::before,
.spec-card.is-active::before { opacity: 1; }
.spec-card.is-active {
  background: linear-gradient(135deg, rgba(107,63,255,0.18), rgba(236,72,153,0.09));
}
.spec-icon {
  color: var(--lilac);
  transition: color 0.3s;
  flex-shrink: 0;
}
.spec-card.is-active .spec-icon { color: #EC4899; }
.spec-label {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.app[dir="rtl"] .spec-label { font-family: var(--font-ar); letter-spacing: 0; font-size: clamp(24px, 2.8vw, 34px); }
.spec-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  flex-grow: 1;
}
.app[dir="rtl"] .spec-desc { font-family: var(--font-ar); font-size: 16px; }
.spec-subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.spec-subs li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 10px;
  transition: all 0.2s;
}
.app[dir="rtl"] .spec-subs li { font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; }
.spec-card.is-active .spec-subs li {
  background: rgba(107,63,255,0.12);
  border-color: rgba(107,63,255,0.35);
  color: var(--lilac);
}
.spec-card:hover .spec-subs li { border-color: rgba(168,85,247,0.2); }
@media (max-width: 900px) {
  .specs-grid { grid-template-columns: 1fr; }
  .spec-card { border-right: none; border-bottom: 1px solid var(--line); }
  .spec-card:last-child { border-bottom: none; }
}

/* ============ 3-D Globe ============ */
.globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #0A0B2E;
  box-shadow:
    0 0 0 1px rgba(167,139,250,0.3),
    0 0 60px -10px rgba(107,63,255,0.5),
    0 0 120px -20px rgba(107,63,255,0.25);
}
.globe-canvas {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
.globe-legend {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  pointer-events: none;
  white-space: nowrap;
}
.globe-legend-item { display: flex; align-items: center; gap: 6px; }
.globe-legend-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.globe-legend-sep { color: var(--text-dim); opacity: 0.4; }
.globe-legend-dot.dim { background: rgba(255,255,255,0.25); }




/* ============ GCC Region Targeting Map ============ */
.region-stacked {
  display: flex !important;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  grid-template-columns: none !important;
}
.region-head {
  max-width: 720px;
}

.gcc-mapwrap {
  position: relative;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(20,22,68,0.85), rgba(11,13,55,0.92)),
    radial-gradient(circle at 30% 20%, rgba(107,63,255,0.16), transparent 60%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Map chrome strips */
.gcc-mapchrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.gcc-chrome-left, .gcc-chrome-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gcc-chrome-left { color: var(--lilac); }
.gcc-chrome-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18), 0 0 8px #10B981;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.gcc-chrome-sep {
  width: 1px; height: 10px;
  background: var(--line-strong);
  margin: 0 4px;
}

/* Map canvas */
.gcc-mapcanvas {
  position: relative;
  aspect-ratio: 700 / 500;
  width: 100%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(107,63,255,0.14), transparent 70%),
    rgba(7,8,35,0.5);
  overflow: hidden;
}
.gcc-mapcanvas::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.gcc-mapsvg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* Corner brackets */
.gcc-bracket {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid rgba(249,168,212,0.45);
  z-index: 3;
}
.gcc-bracket-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.gcc-bracket-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.gcc-bracket-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.gcc-bracket-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Radar sweep */
.gcc-sweep-big {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 250%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(168,85,247,0.10) 30deg, transparent 70deg);
  animation: gcc-sweep-big 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gcc-sweep-big { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Region shape entrance */
.gcc-region-shape {
  animation: gcc-shape-in 0.9s cubic-bezier(0.2,0.9,0.3,1) both;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes gcc-shape-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Reticles */
.gcc-reticle-big {
  animation: gcc-fade-in 0.5s both;
}
.gcc-ring-outer {
  transform-box: fill-box;
  transform-origin: center;
  animation: gcc-rotate 12s linear infinite;
}
@keyframes gcc-rotate { to { transform: rotate(360deg); } }
.gcc-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: gcc-pulse-ring 2.4s ease-out infinite;
  opacity: 0.7;
}
@keyframes gcc-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}
.gcc-dot-sec {
  animation: gcc-fade-in 0.5s both;
}
@keyframes gcc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Country chips strip */
.gcc-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .gcc-chips { grid-template-columns: repeat(2, 1fr); } }
.gcc-chip {
  padding: 11px 14px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: gcc-card-in 0.6s cubic-bezier(0.2,0.9,0.3,1) both;
}
.gcc-chip:last-child { border-right: none; }
@media (max-width: 700px) {
  .gcc-chip:nth-child(2) { border-right: none; }
  .gcc-chip:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@keyframes gcc-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gcc-chip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gcc-chip-code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--lilac);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.28);
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 600;
}
.gcc-chip-status {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #34D399;
}
.gcc-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18), 0 0 6px #10B981;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.gcc-chip-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.gcc-chip-capital {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.app[dir="rtl"] .gcc-chip-name { font-family: var(--font-ar); font-size: 16px; }

/* ============================================================
   MOBILE POLISH — max-width: 480px
   ============================================================ */
@media (max-width: 480px) {

  /* Nav — pill shrinks, hide nav links, CTA smaller */
  .nav { top: 10px; }
  .nav-inner {
    padding: 10px 12px 10px 16px;
    gap: 12px;
    width: 94%;
  }
  .nav-right { gap: 8px; }
  .btn-sm { padding: 8px 12px; font-size: 12px; }

  /* Hero — less top padding, stats 2-col */
  .hero { padding: 110px 18px 60px; }
  .display { font-size: clamp(44px, 13vw, 72px); letter-spacing: -0.03em; }
  .display-compact { font-size: clamp(36px, 10vw, 56px); }
  .display-huge { font-size: clamp(52px, 15vw, 80px); }
  .hero-sub { font-size: 15px; }
  .hero-ctas { gap: 10px; margin-bottom: 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 28px; }
  .stat-n { font-size: clamp(24px, 7vw, 36px); }
  .stat-l { font-size: 11px; }

  /* Sections — tighter padding */
  .section { padding: 72px 18px; }
  .section-head { margin-bottom: 48px; }
  .section-title { font-size: clamp(32px, 8vw, 48px); }
  .section-sub { font-size: 14px; }

  /* Services — pillar stacks, pipeline 1-col */
  .pillar-inner { padding: 28px 20px; gap: 24px; }
  .pillar-title { font-size: clamp(26px, 7vw, 36px); }
  .pillar-body { font-size: 14px; }
  .pillar-stats { gap: 24px; }
  .pipeline-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-card { padding: 20px 18px; }
  .niches { flex-direction: column; border-radius: 16px; padding: 16px; }

  /* Specs (specializations) */
  .specs-grid { grid-template-columns: 1fr; }
  .spec-card { padding: 28px 22px; }
  .spec-label { font-size: clamp(22px, 6vw, 28px); }

  /* Region */
  .region-inner { gap: 36px; }
  .gcc-mapwrap { border-radius: 14px; }
  .gcc-mapchrome { padding: 8px 12px; }
  .gcc-chips { grid-template-columns: repeat(2, 1fr); }

  /* Work */
  .work-stage { grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
  .work-rail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .work-rail-item { padding: 12px 14px; }
  .work-card-big { padding: 22px 18px; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .work-card-headline-n { font-size: clamp(36px, 9vw, 56px); word-break: break-word; }
  .work-card-headline-l { font-size: 13px; }
  .work-card-kpis { grid-template-columns: 1fr; }
  .work-card-kpi { padding: 14px 16px; min-width: 0; }
  .work-card-kpi-n { font-size: 22px; }
  .work-card-kpi-l { font-size: 12px; }
  .work-card-head { gap: 12px; margin-bottom: 20px; }
  .work-logo-real.big { width: 64px; height: 64px; padding: 8px; flex-shrink: 0; }
  .work-card-head-left { min-width: 0; flex: 1; }
  .work-card-clinic { font-size: 17px; word-break: break-word; }
  .work-card-tag { font-size: 10px; padding: 6px 12px; }
  .work-tabs { padding: 0 18px; }

  /* Testimonials */
  .tm2 { grid-template-columns: 1fr; gap: 20px; }
  .tm2-rail { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tm2-quote-text { font-size: 18px; }
  .tm2-nav-prev { left: 8px; }
  .tm2-nav-next { right: 8px; }

  /* Logos */
  .logos-section { padding: 72px 0; }
  .logos-head { margin-bottom: 36px; }
  .logos-head-right { display: none; }
  .logo-tile { width: 160px; height: 88px; }

  /* CTA */
  .cta-inner { padding: 60px 24px; border-radius: 20px; }
  .cta-title { font-size: clamp(28px, 7vw, 44px); }
  .cta-sub { font-size: 14px; }

  /* Footer */
  .footer { padding: 48px 18px 28px; }
  .footer-top { gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Tweaks panel */
  .tweaks-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
}

/* ---- 360px (small Androids) ---- */
@media (max-width: 360px) {
  .display { font-size: clamp(38px, 11vw, 56px); }
  .section { padding: 60px 14px; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .work-rail { grid-template-columns: 1fr; }
  .tm2-rail { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ============ Flow mobile swipe ============ */
.flow-swipe-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding: 6px 12px;
  background: rgba(168,85,247,0.06);
  border: 1px solid var(--line);
  border-radius: 100px;
  width: fit-content;
  animation: pulse-dot 2s ease-in-out infinite;
}
@media (max-width: 860px) {
  .flow-swipe-hint { display: flex; }
  /* Step rail: horizontal scroll on mobile */
  .flow-rail-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .flow-rail-step {
    scroll-snap-align: start;
    min-width: 100px;
    flex-shrink: 0;
  }
  /* Stage viz hidden on mobile — too small to be useful */
  .flow-stage-viz { display: none; }
  .flow-stage { grid-template-columns: 1fr; }
  /* Phase tabs: horizontal scroll */
  .flow-phases {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .flow-phases::-webkit-scrollbar { display: none; }
  .flow-phase { min-width: 200px; flex-shrink: 0; }
}

/* ============ Work: mobile swipe + tabs ============ */
.work-rail-desktop { display: flex; flex-direction: column; gap: 8px; }
.work-rail-mobile  { display: none; }
.work-tabs {
  display: flex; gap: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.work-tabs::-webkit-scrollbar { display: none; }
.work-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 10px 14px;
  background: rgba(10,11,46,0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
}
.work-tab:hover { border-color: var(--line-strong); color: var(--text); }
.work-tab.is-active {
  background: rgba(107,63,255,0.14);
  border-color: rgba(168,85,247,0.5);
  color: var(--text);
}
.work-tab-idx { font-size: 9px; color: var(--lilac); letter-spacing: 0.1em; }
.work-tab-name { font-size: 13px; font-weight: 500; white-space: nowrap; }
.app[dir="rtl"] .work-tab-name { font-family: var(--font-ar); }

.work-dots {
  display: none;
  justify-content: center; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.work-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-strong);
  border: none; padding: 0; cursor: pointer;
  transition: all 0.25s;
}
.work-dot.is-active {
  background: var(--purple-300);
  box-shadow: 0 0 8px var(--purple-300);
  width: 20px; border-radius: 4px;
}

@media (max-width: 860px) {
  .work-rail-desktop { display: none; }
  .work-rail-mobile  { display: block; margin-bottom: 16px; }
  .work-dots { display: flex; }
  .work-stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ============ Testimonials: thumb rail (desktop + mobile) ============ */
.tm2-rail-desktop { display: grid; }
.tm2-dots-mobile  { display: none; }
@media (max-width: 860px) {
  .tm2-quote-block { order: -1; }
}

/* ============ Flow mobile peek carousel ============ */
.flow-mobile { display: none; flex-direction: column; gap: 20px; }
.flow-rail-desktop-only { display: flex; }

@media (max-width: 860px) {
  /* Hide desktop flow, show mobile carousel */
  .flow-phases         { display: none; }
  .flow-stage          { display: none; }
  .flow-rail-desktop-only { display: none; }
  .flow-mobile         { display: flex; }
  .flow-swipe-hint     { display: none; }

  /* Phase progress bar */
  .flow-mobile-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .fmp-phase {
    display: flex; flex-direction: column; gap: 6px;
    padding: 10px 12px;
    background: rgba(10,11,46,0.5);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
  }
  .fmp-active {
    background: rgba(107,63,255,0.14);
    border-color: rgba(168,85,247,0.5);
  }
  .fmp-done  { border-color: rgba(168,85,247,0.25); opacity: 0.7; }
  .fmp-bar {
    height: 3px; border-radius: 2px;
    background: var(--line);
    transition: all 0.4s;
  }
  .fmp-active .fmp-bar { background: var(--grad); }
  .fmp-done   .fmp-bar { background: rgba(168,85,247,0.5); }
  .fmp-label {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
  }
  .app[dir="rtl"] .fmp-label { font-family: var(--font-ar); }
  .fmp-active .fmp-label, .fmp-done .fmp-label { color: var(--text); }

  /* Peek carousel */
  .flow-carousel {
    overflow: hidden;
    padding: 0 15%;
    margin: 0 -14px;
  }
  .flow-carousel-track {
    display: flex;
    gap: 14px;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform;
    direction: ltr; /* Force LTR so translateX works in both EN and AR */
  }
  .fmc-card {
    flex: 0 0 100%;
    min-width: 0;
    padding: 24px 20px;
    background: rgba(13,15,55,0.82);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform 0.4s, opacity 0.4s, border-color 0.3s;
    cursor: default;
  }
  .fmc-card.is-active {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 20px 50px -20px rgba(107,63,255,0.5);
  }
  .fmc-step {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--lilac);
    letter-spacing: 0.14em;
  }
  .fmc-title {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 600;
    letter-spacing: -0.02em; margin: 0;
  }
  .app[dir="rtl"] .fmc-title { font-family: var(--font-ar); }
  .fmc-body {
    font-size: 14px; line-height: 1.55;
    color: var(--text-muted); margin: 0;
  }
  .app[dir="rtl"] .fmc-body { font-size: 15px; }
  .fmc-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
  }
  .fmc-list li {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted);
  }
  .fmc-list svg { color: #10B9AA; flex-shrink: 0; }
  .fmc-tools {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .fmc-tools span {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    color: var(--text-dim);
  }

  /* Dots */
  .flow-mobile-dots {
    display: flex; justify-content: center; gap: 6px;
  }
  .fmd-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--line-strong);
    border: none; padding: 0; cursor: pointer;
    transition: all 0.25s;
  }
  .fmd-dot.is-active {
    background: var(--purple-300);
    box-shadow: 0 0 8px var(--purple-300);
    width: 18px; border-radius: 3px;
  }

  /* Counter */
  .flow-mobile-counter {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    justify-content: center;
  }
  .fmc-cur-title {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0;
    font-weight: 500;
  }
  .app[dir="rtl"] .fmc-cur-title { font-family: var(--font-ar); }
}

/* ============ Hamburger nav ============ */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 9px;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-cta-desktop { display: inline-flex; }

@media (max-width: 800px) {
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-cta-desktop { display: none !important; }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0;
  z-index: 99;
  background: rgba(7,8,35,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: drawer-bg 0.2s ease;
}
@keyframes drawer-bg { from { opacity: 0; } to { opacity: 1; } }

.nav-drawer-inner {
  position: absolute;
  top: 72px; left: 12px; right: 12px;
  background: rgba(10,11,46,0.97);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  animation: drawer-in 0.25s cubic-bezier(0.2,0.9,0.3,1);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
}
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.nav-drawer-links {
  padding: 8px;
  display: flex; flex-direction: column;
}
.nav-drawer-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.app[dir="rtl"] .nav-drawer-link { font-family: var(--font-ar); font-size: 21px; }
.nav-drawer-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-drawer-foot {
  padding: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.lang-toggle-wide {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 12px 16px;
}

/* ============ Sticky mobile CTA ============ */
.sticky-cta {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 90;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2,0.9,0.3,1), opacity 0.35s;
  display: none;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.btn-sticky {
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: 0 16px 48px -8px rgba(107,63,255,0.6), 0 0 0 1px rgba(255,255,255,0.1) inset;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
}

/* ============ Hero CTAs stacked on mobile ============ */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .app[dir="rtl"] .hero-ctas { align-items: flex-end; }
}

/* ============ Logo marquee pause on tap ============ */
.logo-row-wrap:active .logo-row { animation-play-state: paused; }
.marquee-wrap:active .marquee   { animation-play-state: paused; }

/* Footer socials */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.footer-social:hover {
  color: var(--text);
  border-color: rgba(168,85,247,0.4);
  background: rgba(107,63,255,0.1);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .footer-bottom { flex-wrap: wrap; gap: 12px; justify-content: center; }
}

/* CTA socials */
.cta-socials {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-socials-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.app[dir="rtl"] .cta-socials-label { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 12px; }
.cta-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-social {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
  text-decoration: none;
}
.cta-social:hover { transform: translateY(-2px); }

/* Instagram — big, gradient */
.cta-social-insta {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #fff;
  padding: 13px 26px;
  font-size: 15px;
  box-shadow: 0 10px 36px -8px rgba(220, 39, 67, 0.55);
}
.cta-social-insta:hover { box-shadow: 0 18px 48px -8px rgba(220, 39, 67, 0.75); }

/* LinkedIn — blue */
.cta-social-li {
  background: rgba(10,102,194,0.12);
  border-color: rgba(10,102,194,0.4);
  color: #4c9fd8;
}
.cta-social-li:hover { background: rgba(10,102,194,0.22); border-color: rgba(10,102,194,0.7); box-shadow: 0 12px 32px -8px rgba(10,102,194,0.4); }

/* Facebook — indigo */
.cta-social-fb {
  background: rgba(24,119,242,0.10);
  border-color: rgba(24,119,242,0.35);
  color: #6aabff;
}
.cta-social-fb:hover { background: rgba(24,119,242,0.20); border-color: rgba(24,119,242,0.65); box-shadow: 0 12px 32px -8px rgba(24,119,242,0.35); }

@media (max-width: 480px) {
  .cta-social-links { gap: 10px; }
  .cta-social-insta { padding: 12px 20px; font-size: 14px; }
  .cta-social { padding: 10px 16px; font-size: 13px; }
}

/* Footer social icon colours */
.cta-social-insta-icon {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  border-color: transparent !important;
  color: #fff !important;
}
.footer-social-li { color: #4c9fd8 !important; border-color: rgba(10,102,194,0.3) !important; }
.footer-social-li:hover { background: rgba(10,102,194,0.15) !important; border-color: rgba(10,102,194,0.6) !important; }
.footer-social-fb { color: #6aabff !important; border-color: rgba(24,119,242,0.3) !important; }
.footer-social-fb:hover { background: rgba(24,119,242,0.15) !important; border-color: rgba(24,119,242,0.6) !important; }

/* Footer brand socials — always show under logo */
.footer-brand-socials {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
/* Remove old hide on desktop */
@media (min-width: 601px) {
  .footer-brand-socials { display: flex; }
}

/* ============ Language picker modal ============ */
.langpick-overlay {
  position: fixed; inset: 0;
  z-index: 999;
  background: rgba(7,8,35,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: langpick-bg 0.35s ease;
}
@keyframes langpick-bg { from { opacity: 0; } to { opacity: 1; } }

.langpick-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: linear-gradient(180deg, rgba(22,24,80,0.95), rgba(11,13,55,0.98));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 28px;
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: langpick-card 0.45s cubic-bezier(0.2,0.9,0.3,1);
  overflow: hidden;
}
.langpick-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 0%, rgba(107,63,255,0.22), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(236,72,153,0.14), transparent 55%);
  pointer-events: none;
}
@keyframes langpick-card {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.langpick-logo {
  height: 36px; width: auto;
  position: relative; z-index: 1;
}
.langpick-divider {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.5), transparent);
  margin: 24px 0;
}
.langpick-prompt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.langpick-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  position: relative; z-index: 1;
}
@media (max-width: 440px) { .langpick-btns { grid-template-columns: 1fr; } }

.langpick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border-radius: 18px;
  border: 1.5px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2,0.9,0.3,1);
}
.langpick-btn:hover {
  border-color: rgba(168,85,247,0.65);
  background: rgba(107,63,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -20px rgba(107,63,255,0.5);
}
.langpick-flag { font-size: 36px; line-height: 1; }
.langpick-lang {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.langpick-btn-ar .langpick-lang { font-family: var(--font-ar); font-size: 24px; }
.langpick-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.langpick-btn-ar .langpick-sub { font-family: var(--font-ar); letter-spacing: 0; font-size: 13px; }

/* ============================================================
   HERO MOBILE — comprehensive polish
   ============================================================ */

/* Base hero at ≤860px */
@media (max-width: 860px) {
  .hero {
    min-height: 100svh;
    padding: 96px 20px 48px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
  }

  /* Eyebrow — smaller */
  .hero .eyebrow { font-size: 10px; padding: 5px 12px; }
  .app[dir="rtl"] .hero .eyebrow { font-size: 11px; }

  /* Headline — big but not overwhelming */
  .display {
    font-size: clamp(64px, 19vw, 100px);
    line-height: 0.95;
    margin: 20px 0 24px;
  }
  .app[dir="rtl"] .display { line-height: 1.05; }

  /* Sub — comfortable reading size */
  .hero-sub {
    font-size: 16px;
    line-height: 1.55;
    max-width: 100%;
    margin-bottom: 32px;
  }

  /* CTAs — full width stacked */
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 15px;
  }

  /* Dashboard variant: hide the mock on mobile */
  .hero-dashboard .hero-right { display: none; }
  .hero-dashboard .hero-split { grid-template-columns: 1fr; }

  /* Split variant: hide image on mobile */
  .hero-split-v .hero-right { display: none; }
  .hero-split-v .hero-split { grid-template-columns: 1fr; }

  /* Showreel: tighter type */
  .display-huge { font-size: clamp(56px, 15vw, 100px); }
  .display-huge .block-word:nth-child(2) { padding-left: 0.3em; }
  .app[dir="rtl"] .display-huge .block-word:nth-child(2) { padding-left: 0; padding-right: 0.3em; }
  .showreel-card { max-width: 100%; }
}

/* Tight phones ≤480px */
@media (max-width: 480px) {
  .hero { padding: 88px 18px 48px; } /* unchanged */
  .display { font-size: clamp(40px, 11vw, 64px); }
  .hero-sub { font-size: 15px; }

  /* Aurora orbs — smaller so they don't wash out text */
  .orb-1 { width: 350px; height: 350px; }
  .orb-2 { width: 280px; height: 280px; }
  .orb-3 { width: 400px; height: 400px; }
}

/* RTL hero on mobile */
@media (max-width: 860px) {
  .app[dir="rtl"] .hero-ctas { align-items: stretch; }
}

/* ============ Hero mobile — deep fix from screenshot ============ */
@media (max-width: 860px) {
  /* Tighter display margin */
  .display { margin: 16px 0 18px; }

  /* Sub shorter on mobile */
  .hero-sub { margin-bottom: 28px; }

  /* Eyebrow inline not full width */
  .hero .eyebrow {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin-bottom: 0;
  }

  /* Nav — hide lang toggle text on very small, just show flag */
  .lang-label { display: none; }
  /* Keep just the flag */
  .lang-toggle { gap: 4px; padding: 7px 10px; }
}

@media (max-width: 480px) {
  /* Logo in nav — keep visible */
  .nav-brand img { height: 24px; }
  /* Nav tighter */
  .nav-inner { padding: 9px 12px 9px 14px; gap: 8px; }
}

/* ============ Hero mobile deep fix v2 ============ */
@media (max-width: 860px) {
  /* Remove full-screen height constraint — let content size naturally */
  .hero { min-height: 0 !important; padding: 100px 20px 64px !important; }
  .hero-inner { min-height: 0 !important; }

  /* Eyebrow — much smaller text so it stays one line */
  .hero .eyebrow {
    font-size: 9px !important;
    padding: 5px 10px !important;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* Mobile stat chips below CTAs */
.hero-stats-mobile {
  display: none;
}
@media (max-width: 860px) {
  .hero-stats-mobile {
    display: flex;
    gap: 8px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .hsm-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: 100px;
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  .hsm-n {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .hsm-l {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .app[dir="rtl"] .hsm-l { font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; }
}



/* Arabic hero: words 0+1 inline, word-2 on its own line */
.app[dir="rtl"] .display .word { display: inline !important; }
.app[dir="rtl"] .display .word-2 { display: block !important; }

/* Marquee mobile fix — smaller text, faster speed */
@media (max-width: 860px) {
  .marquee-item {
    font-size: clamp(16px, 4vw, 22px);
    padding: 0 14px;
    gap: 18px;
  }
  .marquee { animation-duration: 20s; }
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 10px;
}
.app[dir="rtl"] .footer-copyright { font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; }
.footer-bottom:empty { display: none; }

/* ============ Story / rebrand section ============ */
.story { padding: 80px 24px; }
.story-body { max-width: 760px; margin: 0 auto; }
.story-narrative {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
}
.story-narrative-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.story-narrative-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 600;
  color: var(--purple-300);
  margin: 0 0 16px;
}
.story-narrative-body {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--text-muted, rgba(255,255,255,0.72));
  margin: 0;
}
.story-rebrand {
  margin: 56px auto 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.story-logo-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.story-logo-frame {
  width: 100%;
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  padding: 28px 36px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(107,63,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(19,20,61,0.55), rgba(10,11,46,0.6));
  transition: border-color 0.3s, transform 0.3s;
}
.story-logo-frame:hover { border-color: rgba(168,85,247,0.4); transform: translateY(-2px); }
.story-logo-frame img {
  max-width: 78%; max-height: 60%;
  object-fit: contain; display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}
.story-logo-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.app[dir="rtl"] .story-logo-cap { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 13px; }
.story-arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple-500), #ec4899);
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(168,85,247,0.55);
}
/* In Arabic mode the row flows RTL: Asnani sits on the right (older), Doktori on the left (newer). Flip the arrow accordingly.
   On mobile the row stacks vertically so the SVG should not be flipped (the wrapper is rotated 90deg to point down). */
@media (min-width: 701px) {
  .app[dir="rtl"] .story-arrow svg { transform: scaleX(-1); }
}

@media (max-width: 700px) {
  .story { padding: 56px 18px; }
  .story-rebrand {
    margin-top: 36px;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .story-arrow { width: 44px; height: 44px; transform: rotate(90deg); justify-self: center; }
  .story-logo-frame { padding: 22px 24px; aspect-ratio: 16/9; }
}

/* Arabic mode: force horizontal sliders/carousels and step indicators to LTR
   so swipe direction and visual order match the testimonials approach.
   Internal Arabic text inside cards keeps natural RTL bidi alignment. */

/* "How we work" — phase strip, step rail fill, mobile carousel */
.app[dir="rtl"] .flow-phases { direction: ltr; }
.app[dir="rtl"] .flow-phase { flex-direction: row !important; text-align: right !important; }
.app[dir="rtl"] .flow-phase-meta { align-items: flex-end; text-align: right; }
.app[dir="rtl"] .flow-phase-steps { direction: ltr; }

.app[dir="rtl"] .flow-stage-top { flex-direction: row !important; }

.app[dir="rtl"] .flow-rail-fill {
  inset: 0 auto 0 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  transform-origin: left center !important;
}

.app[dir="rtl"] .flow-mobile,
.app[dir="rtl"] .flow-carousel,
.app[dir="rtl"] .flow-mobile-phases,
.app[dir="rtl"] .flow-mobile-dots,
.app[dir="rtl"] .flow-mobile-counter { direction: ltr; }
.app[dir="rtl"] .fmc-card,
.app[dir="rtl"] .fmc-cur-title { direction: rtl; text-align: right; }
.app[dir="rtl"] .fmc-list li { flex-direction: row-reverse; }

/* Case studies — desktop rail, mobile tabs/dots, swipeable card */
.app[dir="rtl"] .work-stage,
.app[dir="rtl"] .work-tabs,
.app[dir="rtl"] .work-dots { direction: ltr; }
.app[dir="rtl"] .work-rail-arrow { transform: none; }
.app[dir="rtl"] .work-rail-item.is-active .work-rail-arrow { transform: translateX(3px); }
.app[dir="rtl"] .work-card-big,
.app[dir="rtl"] .work-card-head,
.app[dir="rtl"] .work-card-headline,
.app[dir="rtl"] .work-card-kpis,
.app[dir="rtl"] .work-card-note { direction: rtl; }
.app[dir="rtl"] .work-card-headline-n,
.app[dir="rtl"] .work-card-kpi-n,
.app[dir="rtl"] .work-rail-idx,
.app[dir="rtl"] .work-tab-idx { direction: ltr; display: inline-block; }

/* Testimonials carousel: force LTR layout/swipe even in Arabic mode */
.app[dir="rtl"] .testimonials .tm2 { direction: ltr; }
.app[dir="rtl"] .testimonials .tm2-mute { left: auto; right: 20px; }
.app[dir="rtl"] .testimonials .tm2-poster-quote { left: 28px; right: auto; transform: none; }
.app[dir="rtl"] .testimonials .tm2-play { padding-left: 6px; padding-right: 0; transform: none; }
.app[dir="rtl"] .testimonials .tm2-poster:hover .tm2-play { transform: scale(1.08); }
.app[dir="rtl"] .testimonials .tm2-nav-prev { left: -22px; right: auto; transform: translateY(-50%) scaleX(-1); }
.app[dir="rtl"] .testimonials .tm2-nav-next { left: auto; right: -22px; transform: translateY(-50%); }
.app[dir="rtl"] .testimonials .tm2-thumb-play { padding-left: 2px; padding-right: 0; transform: translate(-50%, -50%); }
@media (max-width: 700px) {
  .app[dir="rtl"] .testimonials .tm2-nav-prev { left: 12px; right: auto; }
  .app[dir="rtl"] .testimonials .tm2-nav-next { left: auto; right: 12px; }
}
/* Keep Arabic text inside bidi-correct */
.app[dir="rtl"] .testimonials .tm2-poster-name,
.app[dir="rtl"] .testimonials .tm2-poster-role,
.app[dir="rtl"] .testimonials .tm2-quote-text,
.app[dir="rtl"] .testimonials .tm2-quote-name,
.app[dir="rtl"] .testimonials .tm2-quote-role,
.app[dir="rtl"] .testimonials .tm2-thumb-idx,
.app[dir="rtl"] .testimonials .tm2-thumb-role { direction: rtl; }

/* ===== FAQ ===== */
.faq .faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: faq;
}

.faq-item {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
/* gradient accent bar down the leading edge — revealed when open */
.faq-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.faq-item:hover {
  border-color: rgba(196, 181, 253, 0.3);
  transform: translateY(-2px);
}
.faq-item.is-open {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(180deg, rgba(107, 63, 255, 0.1), rgba(168, 85, 247, 0.035));
  box-shadow: 0 24px 60px -26px rgba(107, 63, 255, 0.6);
}
.faq-item.is-open::before { transform: scaleY(1); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  cursor: pointer;
}
/* mono numbered index — adds structure + matches the brand's mono labels */
.faq-q::before {
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero);
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--lilac-soft);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.faq-item.is-open .faq-q::before {
  color: var(--purple-300);
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}
.app[dir="rtl"] .faq-q {
  font-family: var(--font-ar);
  text-align: right;
  letter-spacing: 0;
  flex-direction: row-reverse;
}

.faq-q-text { flex: 1; text-wrap: pretty; }

.faq-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--lilac);
  background: rgba(196, 181, 253, 0.07);
  border: 1px solid rgba(196, 181, 253, 0.12);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover .faq-chevron { background: rgba(196, 181, 253, 0.13); }
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: #fff;
  background: var(--grad-soft);
  border-color: transparent;
  box-shadow: 0 6px 18px -3px rgba(168, 85, 247, 0.65);
}

/* All answers stay in the DOM; collapsed via max-height so crawlers can read them */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.is-open .faq-a {
  max-height: 640px;
  opacity: 1;
}
.faq-a-inner { padding: 0 26px 26px 52px; }
.faq-a-inner::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.22), rgba(196, 181, 253, 0));
  margin-bottom: 16px;
}
.faq-a-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  text-wrap: pretty;
}
.app[dir="rtl"] .faq-a-inner p { line-height: 1.85; }

/* RTL: flip answer indent + accent side + text alignment */
.app[dir="rtl"] .faq-a-inner { padding: 0 52px 26px 26px; text-align: right; }
.app[dir="rtl"] .faq-a-inner::before { background: linear-gradient(270deg, rgba(196, 181, 253, 0.22), rgba(196, 181, 253, 0)); }

@media (max-width: 560px) {
  .faq-q { padding: 18px 18px; gap: 12px; }
  .faq-a-inner { padding: 0 18px 22px 18px; }
  .app[dir="rtl"] .faq-a-inner { padding: 0 18px 22px 18px; }
}
