/* ============================================
   ESQUIRETEC — Agency Site Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }

[dir="rtl"] body { font-family: 'Cairo', 'Inter', sans-serif; }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-dark: #0a0b14;
  --bg-darker: #06070d;
  --ink: #0b1020;
  --ink-2: #1a2240;
  --muted: #6b7280;
  --muted-2: #9aa3b2;
  --line: #e6e8ef;
  --line-dark: rgba(255,255,255,0.08);

  --brand: #B8141F;
  --brand-2: #8B0F17;
  --brand-3: #E63946;
  --grad: linear-gradient(135deg, #8B0F17 0%, #B8141F 50%, #E63946 100%);
  --grad-2: linear-gradient(135deg, #8B0F17 0%, #B8141F 100%);

  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 60px -10px rgba(15, 23, 42, 0.18);
  --shadow-brand: 0 18px 40px -12px rgba(184, 20, 31, 0.45);

  --container: 1200px;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  top: -40px; left: 8px;
  z-index: 999;
  background: var(--brand-2);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

.btn-primary {
  background: var(--grad-2);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 22px 50px -12px rgba(184, 20, 31, 0.6); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-color: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }

.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover { background: #f6f7fb; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header.on-light {
  background: rgba(255,255,255,0.85);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(184, 20, 31, 0.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.logo:hover .logo-mark {
  transform: translateY(-1px) rotate(-2deg);
  box-shadow: 0 10px 22px -6px rgba(184, 20, 31, 0.7);
}
/* `.logo-dark` is used on the footer (dark bg) — keep wordmark legible. */
.footer .logo { color: #fff; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.primary-nav a:hover { color: #fff; }

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

.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all .2s;
}
.lang-btn.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: var(--bg-darker);
  border-top: 1px solid var(--line-dark);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 14px 4px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a.btn { margin-top: 12px; justify-content: center; border: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .55;
}
.hero-glow-1 {
  width: 480px; height: 480px;
  top: -100px; left: -120px;
  background: #8B0F17;
}
.hero-glow-2 {
  width: 520px; height: 520px;
  top: 30%; right: -160px;
  background: #B8141F;
  opacity: .35;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 24px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-regions {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}
.hero-regions span { margin: 0 6px; opacity: .5; }

/* ---------- Hero Visual Cards ---------- */
.hero-visuals {
  position: relative;
  height: 480px;
}
.vcard {
  position: absolute;
  background: rgba(20, 22, 38, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55);
}
.vcard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.vcard-label { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500; }
.vcard-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.vcard-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}
.vcard-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f87171;
  background: rgba(239, 68, 68, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.85); }
}
.vcard-big {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 14px;
}

.vcard-conv {
  top: 0;
  right: 0;
  width: 240px;
  z-index: 3;
}
.vcard-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
}
.vcard-bars span {
  flex: 1;
  height: var(--h);
  background: var(--grad);
  border-radius: 4px;
  opacity: .85;
}
.vcard-bars span:last-child { opacity: 1; }

.vcard-erp {
  top: 110px;
  left: 0;
  width: 280px;
  z-index: 4;
}
.vcard-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin: 12px 0 6px;
}
.vcard-row .num { color: #fff; font-weight: 700; }
.bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 6px;
}

.vcard-traffic {
  bottom: 0;
  right: 20px;
  width: 290px;
  z-index: 2;
}
.spark {
  width: 100%;
  height: 60px;
  display: block;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-alt);
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.stat-num span { font-size: 32px; }
.stat-num .star { font-size: 36px; }
.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-top: 12px;
}
.stat-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Section common ---------- */
section { padding: 100px 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brand-2);
  margin-bottom: 18px;
}
.eyebrow .dash {
  width: 28px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.eyebrow.light { color: var(--brand-3); }
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-title.light { color: #fff; }
.section-title .muted { color: var(--muted-2); font-weight: 800; }
.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-sub.light { color: rgba(255,255,255,0.7); }

/* ---------- Services ---------- */
.services { background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 20, 31, 0.25);
}
.svc-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.svc-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(184,20,31,0.12), rgba(230,57,70,0.06));
  color: var(--brand-2);
  border-radius: 12px;
  margin-bottom: 18px;
}
.svc-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.svc-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 600;
  transition: gap .2s;
}
.learn:hover { gap: 10px; }
.learn span { transition: transform .2s; }

/* ---------- Stories ---------- */
.stories { background: var(--bg-alt); }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.story-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 6px;
}
.tag-purple { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.tag-blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.tag-green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.tag-region {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.story-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.story-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.metric-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.metric-num.up { color: var(--green); }
.metric-num.down { color: var(--red); }
.metric-label {
  font-size: 12px;
  color: var(--muted);
}
.story-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ---------- Why ---------- */
.why { background: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.pill-green { color: #047857; background: rgba(16, 185, 129, 0.08); border-color: rgba(16,185,129,0.2); }
.pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
  animation: pulse 1.8s infinite;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.why-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 20, 31, 0.25);
}
.why-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(184,20,31,0.12), rgba(230,57,70,0.06));
  color: var(--brand-2);
  border-radius: 12px;
}
.why-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Process ---------- */
.process { background: var(--bg-alt); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-2);
}
.step-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--brand-2);
  border-radius: 12px;
  margin-bottom: 18px;
}
.step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.step-time {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  background: var(--bg-alt);
  border-radius: 999px;
}
.step-active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.step-active .step-num { color: rgba(255,255,255,0.7); }
.step-active .step-icon { background: rgba(255,255,255,0.18); color: #fff; }
.step-active h4 { color: #fff; }
.step-active p { color: rgba(255,255,255,0.85); }
.step-active .step-time { background: rgba(255,255,255,0.16); color: #fff; }

/* ---------- Reach ---------- */
.reach {
  background: var(--bg-darker);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.reach::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(circle, rgba(184,20,31,0.25), transparent 60%);
  pointer-events: none;
}
.reach .container { position: relative; }
.reach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.reach-card {
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.reach-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
}
.reach-card-feature {
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.reach-card-feature:hover { background: var(--grad); }
.reach-flag {
  font-size: 28px;
  margin-bottom: 14px;
}
.reach-card h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.reach-cities {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.reach-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin-bottom: 18px;
}
.reach-card-feature p { color: rgba(255,255,255,0.85); }
.reach-card-feature .reach-cities { color: rgba(255,255,255,0.75); }
.reach-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.reach-card-feature .reach-meta { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.92); }

/* ---------- FAQ ---------- */
.faq { background: #fff; padding: 100px 0; }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: rgba(184, 20, 31, 0.3); }
.faq-item[open] {
  border-color: rgba(184, 20, 31, 0.4);
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; line-height: 1.4; }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  position: relative;
  transition: background .2s ease, transform .25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--brand-2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; }
.faq-item[open] .faq-icon {
  background: var(--brand);
  transform: rotate(180deg);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-a {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  animation: fade-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .faq-item summary { text-align: right; }

/* ---------- CTA ---------- */
.cta-band { padding: 100px 0; background: #fff; }
.cta-card {
  position: relative;
  background: var(--grad-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-brand);
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 60%);
}
.cta-bg::before {
  content:'';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px;
  color: #fff;
}
.cta-copy h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.cta-copy h2 .grad-text {
  background: linear-gradient(135deg, #fff 0%, #FCA5A5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-copy p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 540px;
}
.cta-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-actions .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0;
  max-width: 360px;
}
.foot-social {
  display: flex;
  gap: 10px;
}
.foot-social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  transition: all .2s;
}
.foot-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}
.foot-h {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.foot-list { display: flex; flex-direction: column; gap: 12px; }
.foot-list a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color .2s;
}
.foot-list a:hover { color: #fff; }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.foot-legal { display: flex; gap: 24px; }
.foot-legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visuals { height: 420px; width: 100%; max-width: 520px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .services-grid, .stories-grid, .process-grid, .reach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-brand { grid-column: 1 / -1; }
  .cta-inner { grid-template-columns: 1fr; padding: 48px; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .header-inner { height: 64px; }
  .primary-nav { display: none; }
  .lang-toggle { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: 48px 0 64px; }
  .hero-title { font-size: clamp(36px, 9vw, 48px); }
  .hero-cta .btn { flex: 1; justify-content: center; }

  /* On mobile, drop absolute floating layout and stack cards vertically */
  .hero-visuals {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
  }
  .vcard,
  .vcard-conv,
  .vcard-erp,
  .vcard-traffic {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
  }

  .services-grid, .stories-grid, .process-grid, .reach-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-num { font-size: 36px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .cta-inner { padding: 36px 24px; }
  .cta-actions .btn { font-size: 13px; padding: 13px 18px; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .eyebrow .dash { transform: scaleX(-1); }
[dir="rtl"] .learn span { transform: scaleX(-1); }
[dir="rtl"] .vcard-conv { right: auto; left: 0; }
[dir="rtl"] .vcard-erp { left: auto; right: 0; }
[dir="rtl"] .vcard-traffic { right: auto; left: 30px; }
[dir="rtl"] .step-num { right: auto; left: 22px; }

/* ============================================
   ANIMATIONS
   ============================================ */

/* ---------- Keyframes ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.08); }
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes bar-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes spark-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes wiggle {
  0%, 100%   { transform: rotate(0); }
  25%        { transform: rotate(-10deg) scale(1.08); }
  75%        { transform: rotate(10deg) scale(1.08); }
}
@keyframes button-shine {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes border-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 20, 31, 0.45); }
  50%      { box-shadow: 0 0 0 12px rgba(184, 20, 31, 0); }
}

/* ---------- Hero entrance (runs immediately on load) ---------- */
.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-cta,
.hero-regions {
  animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero-title   { animation-delay: 0.15s; }
.hero-sub     { animation-delay: 0.30s; }
.hero-cta     { animation-delay: 0.45s; }
.hero-regions { animation-delay: 0.60s; }

/* ---------- Floating dashboard cards (desktop only — mobile is stacked) ---------- */
@media (min-width: 721px) {
  .vcard {
    animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .vcard-conv    { animation-delay: 0.65s; }
  .vcard-erp     { animation-delay: 0.80s; }
  .vcard-traffic { animation-delay: 0.95s; }

  /* gentle float once entrance is done */
  .vcard-conv, .vcard-erp, .vcard-traffic {
    animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) backwards,
               float-y 6s ease-in-out infinite;
  }
  .vcard-conv    { animation-delay: 0.65s, 1.65s; }
  .vcard-erp     { animation-delay: 0.80s, 2.80s; animation-duration: 1s, 7s; }
  .vcard-traffic { animation-delay: 0.95s, 1.95s; animation-duration: 1s, 6.5s; }
}

/* ---------- Hero glow pulse ---------- */
.hero-glow-1 { animation: glow-pulse 9s ease-in-out infinite; }
.hero-glow-2 { animation: glow-pulse 11s ease-in-out infinite reverse; }

/* ---------- Animated gradient on .grad-text ---------- */
.grad-text {
  background-size: 220% 220%;
  animation: grad-shift 5s ease-in-out infinite;
}

/* ---------- Bar chart growth (vcard-conv) ---------- */
.vcard-bars span {
  transform-origin: bottom;
  animation: bar-grow 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.vcard-bars span:nth-child(1) { animation-delay: 1.4s; }
.vcard-bars span:nth-child(2) { animation-delay: 1.5s; }
.vcard-bars span:nth-child(3) { animation-delay: 1.6s; }
.vcard-bars span:nth-child(4) { animation-delay: 1.7s; }
.vcard-bars span:nth-child(5) { animation-delay: 1.8s; }
.vcard-bars span:nth-child(6) { animation-delay: 1.9s; }
.vcard-bars span:nth-child(7) { animation-delay: 2.0s; }

/* ---------- ERP progress bars fill ---------- */
.bar-fill {
  transform-origin: left;
  animation: bar-fill 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.4s backwards;
}
[dir="rtl"] .bar-fill { transform-origin: right; }
.vcard-erp .vcard-row + .bar .bar-fill { animation-delay: 1.4s; }
.vcard-erp .bar:nth-of-type(2) .bar-fill { animation-delay: 1.6s; }
.vcard-erp .bar:nth-of-type(3) .bar-fill { animation-delay: 1.8s; }

/* ---------- Sparkline draw ---------- */
.spark path:first-of-type { /* gradient fill */
  opacity: 0;
  animation: fade-in 1s ease 2.6s forwards;
}
.spark path:last-of-type { /* line stroke */
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: spark-draw 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

/* ---------- Service icon wiggle on hover ---------- */
.svc-card:hover .svc-icon {
  animation: wiggle 0.6s ease;
}

/* ---------- Reach card flag bobble on hover ---------- */
.reach-card:hover .reach-flag {
  animation: float-y 1s ease-in-out;
}

/* ---------- Button shine effect ---------- */
.btn-primary,
.btn-white {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before,
.btn-white::before {
  content: '';
  position: absolute;
  top: -50%; bottom: -50%;
  left: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
  z-index: 0;
}
.btn-primary:hover::before,
.btn-white:hover::before {
  animation: button-shine 0.9s ease;
}
.btn-primary > *,
.btn-white > * { position: relative; z-index: 1; }

/* ---------- CTA card shimmer ---------- */
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
              transparent 30%,
              rgba(255, 255, 255, 0.10) 50%,
              transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.cta-card .cta-inner { position: relative; z-index: 1; }

/* ---------- Step-active badge pulse ---------- */
.step-active {
  animation: border-pulse 2.4s ease-in-out infinite;
}

/* ---------- Reveal-on-scroll: pure-CSS via .in-view class set by JS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1),
              transform .7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Logo idle: subtle drift on the highlight dot ---------- */
.logo-mark circle {
  animation: glow-pulse 3.5s ease-in-out infinite;
  transform-origin: 27px 20px;
}

/* ---------- Live dot is already pulsing — slow it down a touch via override ---------- */

/* ---------- Reduced motion: respect user preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

