/* ============================================================
   CircuitComputer — Modern Design System
   ============================================================ */

:root {
  /* Brand — Circuit Computer deep navy, accent blue (no red) */
  --brand-900: #0c0d3a;
  --brand-800: #11124a;
  --brand-700: #1a1c6b;
  --brand-600: #2d2e83;   /* logo navy */
  --brand-500: #3b3eaa;
  --brand-400: #6b6ecf;
  --accent-500: #2563eb;  /* royal blue accent */
  --accent-400: #3b82f6;
  --accent-600: #1d4ed8;
  --accent-700: #1e40af;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Surfaces (Light) */
  --bg: #ffffff;
  --bg-elev: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Text */
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #94a3b8;
  --text-invert: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, .04), 0 1px 3px 0 rgba(15, 23, 42, .06);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 2px 4px -2px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .05);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, .22);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0c0d3a 0%, #11124a 50%, #2d2e83 100%);
  --grad-accent: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-hero: radial-gradient(ellipse at top left, rgba(59, 130, 246, .22) 0%, transparent 50%),
               radial-gradient(ellipse at bottom right, rgba(107, 110, 207, .22) 0%, transparent 50%),
               linear-gradient(135deg, #0c0d3a 0%, #1a1c6b 100%);
  --grad-card: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(248,250,252,.95) 100%);

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Type */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 180ms;
  --dur: 280ms;
  --dur-slow: 480ms;

  --nav-h: 84px;
}

::selection { background: var(--accent-500); color: #fff; }

/* Dark mode */
[data-theme="dark"] {
  --bg: #0c0d3a;
  --bg-elev: #11124a;
  --bg-soft: #1a1c6b;
  --surface: #11124a;
  --surface-alt: #1a1c6b;
  --border: #23258a;
  --border-strong: #2d2e83;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-mute: #94a3b8;
  --grad-card: linear-gradient(135deg, rgba(15,31,58,.95) 0%, rgba(21,41,79,.95) 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, .3), 0 2px 4px -2px rgba(0, 0, 0, .2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, .4), 0 4px 6px -4px rgba(0, 0, 0, .3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, .5), 0 8px 10px -6px rgba(0, 0, 0, .3);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-600); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent-500); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }   /* matches the "One platform" panel-heading size site-wide */
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p  { margin: 0 0 1em; color: var(--text-soft); }

/* (selection rule moved into :root block to inherit brand color) */

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

/* Section vertical padding — 70% reduced site-wide for a tighter scroll rhythm */
.section { padding: clamp(18px, 2.7vw, 36px) 0; position: relative; }
.section-sm { padding: clamp(12px, 1.8vw, 24px) 0; }
.section-tight { padding: clamp(10px, 1.2vw, 17px) 0; }

.section-alt { background: var(--bg-elev); }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-600);
  background: color-mix(in srgb, var(--accent-500) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-500) 25%, transparent);
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .lead { font-size: 1.125rem; color: var(--text-soft); }

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--brand-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 0;
}
.brand:hover { color: var(--text); }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: filter var(--dur-fast);
}
[data-theme="dark"] .brand-logo {
  filter: brightness(1.15) drop-shadow(0 0 0 #fff);
  /* Logo PNG has white background — inverse for dark mode using soft white wash */
  background: rgba(255,255,255,.95);
  border-radius: 6px;
  padding: 4px 8px;
}
.brand-logo-short { display: none; }
@media (max-width: 540px) {
  .brand-logo-full { display: none; }
  .brand-logo-short { display: block; height: 38px; width: auto; }
}
/* Compact footer variant */
.footer-brand .brand-logo {
  height: 52px;
  background: rgba(255,255,255,.96);
  border-radius: 6px;
  padding: 4px 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: .82rem;            /* ~2 pt smaller than the previous .94rem */
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link .nav-icon {
  width: 15px;
  height: 15px;
  color: var(--text-mute);      /* grey by default */
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-soft);
}
.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  color: var(--accent-500);      /* icon highlights on hover */
  transform: translateY(-1px);
}
.has-dropdown { position: relative; }
.has-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-fast);
}
.has-dropdown:hover > .nav-link::after,
.has-dropdown.open > .nav-link::after { transform: rotate(225deg) translateY(2px); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 10px;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease-out);
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: .92rem;
  color: var(--text-soft);
  border-radius: 8px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.dropdown a:hover { background: var(--bg-soft); color: var(--text); }

/* ---- Megamenu (wide, 2-column dropdown with icons) ---- */
.has-megamenu { position: relative; }
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 520px;
  max-width: 560px;
  padding: 12px;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease-out);
}
.has-megamenu:hover .megamenu,
.has-megamenu.open .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: .78rem;            /* 2 pt smaller than the .92rem dropdown default */
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.mm-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}
.mm-sub {
  font-size: .66rem;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-item:hover .mm-sub { color: var(--text-soft); }
.mm-item:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.mm-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent-500) 12%, transparent);
  color: var(--accent-600);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.mm-icon svg { width: 14px; height: 14px; }
.mm-item:hover .mm-icon {
  background: var(--grad-accent);
  color: #fff;
}
.mm-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[dir="rtl"] .megamenu { left: auto; right: 0; }
@media (max-width: 768px) {
  /* Mobile: megamenu becomes a stacked flow inside the drawer, like a regular dropdown */
  .megamenu {
    position: static;
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: none;
    padding: 0 0 0 16px;
    margin: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .has-megamenu.open .megamenu { display: grid; }
  .mm-item { padding: 10px 8px; }
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle,
.lang-toggle {
  height: 40px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  transition: all var(--dur-fast);
}
.theme-toggle { width: 40px; }
.lang-toggle {
  min-width: 56px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
}
[lang="ar"] .lang-toggle { font-family: 'Cairo', var(--font-sans); }
.theme-toggle:hover,
.lang-toggle:hover {
  color: var(--accent-500);
  border-color: var(--accent-500);
  background: color-mix(in srgb, var(--accent-500) 8%, transparent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, .42);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
}
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

.btn-arrow svg { transition: transform var(--dur-fast); }
.btn:hover .btn-arrow svg { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */
/* Hero is now a full-width image slideshow */
.hero {
  position: relative;
  padding: var(--nav-h) 0 0;
  background: var(--brand-900);
  color: #fff;
  overflow: hidden;
}
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 72vh;
  min-height: 320px;
  overflow: hidden;
  background: var(--grad-hero);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroFade 20s ease-in-out infinite;
  will-change: opacity;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide:nth-child(1) { animation-delay: -1s; }
.hero-slide:nth-child(2) { animation-delay:  4s; }
.hero-slide:nth-child(3) { animation-delay:  9s; }
.hero-slide:nth-child(4) { animation-delay: 14s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }     /* fade in over ~1s */
  22%  { opacity: 1; }     /* hold visible for ~3.4s */
  27%  { opacity: 0; }     /* fade out over ~1s (cross-fades with next) */
  100% { opacity: 0; }
}

/* ---- Tech / AI overlay on the slider ---- */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* subtle wireframe grid, brightens the image via screen blend */
.hero-fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, .16) 1px, transparent 1px);
  background-size: 56px 56px;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 25%, black 92%);
  mask-image: radial-gradient(ellipse at center, transparent 25%, black 92%);
  opacity: .8;
}

/* slow vertical scanning glow */
.hero-fx-scan {
  position: absolute;
  left: 0; right: 0;
  top: -20%;
  height: 28%;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(59, 130, 246, .12) 40%,
      rgba(147, 197, 253, .35) 50%,
      rgba(59, 130, 246, .12) 60%,
      transparent 100%);
  mix-blend-mode: screen;
  animation: heroFxScan 7s linear infinite;
  filter: blur(2px);
}
@keyframes heroFxScan {
  0%   { transform: translateY(0); }
  100% { transform: translateY(450%); }
}

/* HUD corner brackets */
.hero-fx-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(59, 130, 246, .65);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, .45));
}
.hero-fx-corner.tl { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.hero-fx-corner.tr { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.hero-fx-corner.bl { bottom: 110px; left: 24px; border-right: 0; border-top: 0; }
.hero-fx-corner.br { bottom: 110px; right: 24px; border-left: 0; border-top: 0; }

/* Floating monospace HUD chips */
.hero-fx-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .92);
  background: rgba(11, 18, 40, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 130, 246, .42);
  border-radius: 99px;
  box-shadow: 0 0 14px rgba(59, 130, 246, .22), inset 0 0 0 1px rgba(255,255,255,.05);
  white-space: nowrap;
  animation: heroFxChipFloat 5s ease-in-out infinite;
}
.hero-fx-chip[data-pos="tl"] { top: 78px;  left: 70px; }
.hero-fx-chip[data-pos="tr"] { top: 78px;  right: 70px; animation-delay: -1.6s; }
.hero-fx-chip[data-pos="bl"] { bottom: 160px; left: 70px; animation-delay: -3.2s; }
.hero-fx-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 6px var(--accent-400);
  animation: heroFxDotBlink 1.5s ease-in-out infinite;
}
@keyframes heroFxChipFloat {
  0%, 100% { transform: translateY(0); opacity: .88; }
  50%      { transform: translateY(-3px); opacity: 1; }
}
@keyframes heroFxDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.85); }
}

@media (max-width: 720px) {
  .hero-fx-grid { background-size: 36px 36px; }
  .hero-fx-corner { width: 24px; height: 24px; }
  .hero-fx-corner.tl, .hero-fx-corner.tr { top: 14px; }
  .hero-fx-corner.tl, .hero-fx-corner.bl { left: 14px; }
  .hero-fx-corner.tr, .hero-fx-corner.br { right: 14px; }
  .hero-fx-corner.bl, .hero-fx-corner.br { bottom: 80px; }
  .hero-fx-chip { font-size: .58rem; padding: 4px 10px; }
  .hero-fx-chip[data-pos="tl"], .hero-fx-chip[data-pos="bl"] { left: 18px; }
  .hero-fx-chip[data-pos="tr"] { right: 18px; }
  .hero-fx-chip[data-pos="bl"] { bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fx-scan, .hero-fx-chip, .hero-fx-dot { animation: none !important; }
}

/* Pagination dots */
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 32px; height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.3);
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.hero-dots button::after {
  content: '';
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  animation: heroDot 20s linear infinite;
}
.hero-dots button:nth-child(1)::after { animation-delay: -1s; }
.hero-dots button:nth-child(2)::after { animation-delay:  4s; }
.hero-dots button:nth-child(3)::after { animation-delay:  9s; }
.hero-dots button:nth-child(4)::after { animation-delay: 14s; }
@keyframes heroDot {
  0%, 100% { transform: scaleX(0); }
  5%, 27%  { transform: scaleX(1); }
  28%      { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-dots button::after { animation: none !important; }
  .hero-slide:nth-child(1) { opacity: 1; }
}

/* Scrolling ticker pinned to the bottom of the slider — Oswald display font */
.hero-ticker {
  position: absolute;
  left: 50%;
  bottom: 44px;                /* sits above the .hero-dots indicators */
  transform: translateX(-50%);
  z-index: 2;
  width: min(880px, calc(100% - 48px));
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-full);
  padding: 12px 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.hero-ticker-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: heroTickerScroll 28s linear infinite;
  font-family: 'Oswald', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-ticker:hover .hero-ticker-track { animation-play-state: paused; }
.hero-ticker-track li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .82);
  /* override the inherited .hero-stack li animation/color pulses */
  animation: none;
  transform: none;
}
.hero-ticker-track li em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent-400);
  margin-left: 4px;
}
.hero-ticker-track .hero-stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,.16), 0 0 10px rgba(59,130,246,.55);
  flex-shrink: 0;
  /* disable the dot pulse keyframe from .hero-stack */
  animation: none;
}
@keyframes heroTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* duplicated list = -50% loops seamlessly */
}
@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track { animation: none; }
}
@media (max-width: 720px) {
  .hero-ticker {
    left: 12px;
    right: 12px;
    transform: none;
    bottom: 36px;
    width: auto;
    padding: 9px 0;
  }
  .hero-ticker-track {
    gap: 32px;
    font-size: 1rem;
  }
}

/* ---- Hero services overlay (4 services, animated highlight + pulse) ---- */
.hero-services-overlay {
  --hs-cycle: 8s;
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 22px;
  background: rgba(15, 23, 42, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  max-width: calc(100% - 32px);
}
.hero-service {
  flex: 0 0 auto;
  padding: 6px 14px;
  text-align: center;
  border-radius: var(--radius);
  animation: heroServicePulse var(--hs-cycle) ease-in-out infinite;
}
/* All .hero-service are divs sitting between span arrows, so nth-of-type counts divs only — 4 sequential indices */
.hero-service:nth-of-type(1) { animation-delay: 0s; }
.hero-service:nth-of-type(2) { animation-delay: calc(var(--hs-cycle) * .25); }
.hero-service:nth-of-type(3) { animation-delay: calc(var(--hs-cycle) * .50); }
.hero-service:nth-of-type(4) { animation-delay: calc(var(--hs-cycle) * .75); }

.hero-service-icon {
  width: 30px; height: 30px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .55);
  transition: color .4s var(--ease-out), transform .4s var(--ease-out);
}
.hero-service-icon svg { width: 18px; height: 18px; }
.hero-service-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.78rem, 1.1vw, .92rem);
  color: rgba(255, 255, 255, .58);
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .4s var(--ease-out);
}
@keyframes heroServicePulse {
  0%, 12%, 100% { transform: translateY(0); }
  3%, 9%        { transform: translateY(-2px); }
}
.hero-service:nth-of-type(1) { animation-name: heroServiceColor1; }
.hero-service:nth-of-type(2) { animation-name: heroServiceColor1; }
.hero-service:nth-of-type(3) { animation-name: heroServiceColor1; }
.hero-service:nth-of-type(4) { animation-name: heroServiceColor1; }
/* Use one animation that also drives child colour via currentColor */
@keyframes heroServiceColor1 {
  0%, 12%, 100% {
    transform: translateY(0);
    color: rgba(255, 255, 255, .58);
  }
  3%, 9% {
    transform: translateY(-2px);
    color: #fff;
  }
}
.hero-service-icon { color: inherit; }
.hero-service-label { color: inherit; }
/* When a service is "active" (animation peak), highlight icon background */
.hero-service { color: rgba(255,255,255,.58); }

/* Thin connecting arrow between services */
.hero-service-arrow {
  flex: 0 0 32px;
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, .16);
  border-radius: 99px;
  margin: 0 4px;
}
.hero-service-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(255, 255, 255, .28);
}
.hero-service-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px; height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  background: var(--accent-400);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, .22),
    0 0 10px rgba(59, 130, 246, .65);
  opacity: 0;
  animation: heroServicePulseMove var(--hs-cycle) ease-in-out infinite;
}
/* Arrows are spans, services are divs — different types, so nth-of-type counts spans only for arrows */
.hero-service-arrow:nth-of-type(2) .hero-service-pulse { animation-delay: calc(var(--hs-cycle) * .25); }
.hero-service-arrow:nth-of-type(3) .hero-service-pulse { animation-delay: calc(var(--hs-cycle) * .50); }
@keyframes heroServicePulseMove {
  0%   { left: 0;    opacity: 0; transform: scale(.6); }
  3%   { opacity: 1; transform: scale(1); }
  22%  { left: 100%; opacity: 1; transform: scale(1); }
  26%  { left: 100%; opacity: 0; transform: scale(.6); }
  100% { left: 100%; opacity: 0; }
}

/* RTL — reverse pulse direction so it still flows toward the leading edge */
[dir="rtl"] .hero-services-overlay { flex-direction: row-reverse; }
[dir="rtl"] .hero-service-arrow::after { transform: translateY(-50%) scaleX(-1); right: auto; left: -2px; }
[dir="rtl"] .hero-service-pulse { animation-direction: reverse; }

@media (max-width: 720px) {
  .hero-services-overlay {
    left: 12px;
    right: 12px;
    transform: none;
    bottom: 36px;
    max-width: none;
    padding: 8px 14px;
  }
  .hero-service { padding: 4px 8px; }
  .hero-service-icon { width: 24px; height: 24px; margin-bottom: 2px; }
  .hero-service-icon svg { width: 14px; height: 14px; }
  .hero-service-label { font-size: .68rem; }
  .hero-service-arrow { flex-basis: 16px; margin: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-service, .hero-service-pulse { animation: none !important; }
  .hero-service { color: #fff !important; }
}
@media (max-width: 720px) {
  .hero-stack-overlay {
    left: 12px;
    top: 12px;
    font-size: .8rem;
    padding: 10px 14px;
  }
}
/* (legacy .hero::before grid overlay and .hero-grid two-column layout removed —
   the hero is now a full-width slideshow followed by .hero-intro text) */

/* Stacked-services headline with rotating spotlight */
.hero-stack {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
}
.hero-stack li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1px 0;
  color: rgba(255,255,255,.55);
  transition: color .6s var(--ease-out), transform .6s var(--ease-out);
  animation: heroStackPulse 9s var(--ease-in-out) infinite;
}
.hero-stack li em {
  font-style: normal;
  font-weight: 600;
  color: rgba(255,255,255,.5);
}
.hero-stack-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
  transition: background .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.hero-stack li:nth-child(1) { animation-delay: 0s; }
.hero-stack li:nth-child(2) { animation-delay: 1.8s; }
.hero-stack li:nth-child(3) { animation-delay: 3.6s; }
.hero-stack li:nth-child(4) { animation-delay: 5.4s; }
.hero-stack li:nth-child(5) { animation-delay: 7.2s; }

@keyframes heroStackPulse {
  0%, 80%, 100% {
    color: rgba(255,255,255,.55);
    transform: translateX(0);
  }
  10%, 22% {
    color: #fff;
    transform: translateX(4px);
  }
}
.hero-stack li:nth-child(1) .hero-stack-dot { animation: heroStackDot 9s var(--ease-in-out) infinite; animation-delay: 0s; }
.hero-stack li:nth-child(2) .hero-stack-dot { animation: heroStackDot 9s var(--ease-in-out) infinite; animation-delay: 1.8s; }
.hero-stack li:nth-child(3) .hero-stack-dot { animation: heroStackDot 9s var(--ease-in-out) infinite; animation-delay: 3.6s; }
.hero-stack li:nth-child(4) .hero-stack-dot { animation: heroStackDot 9s var(--ease-in-out) infinite; animation-delay: 5.4s; }
.hero-stack li:nth-child(5) .hero-stack-dot { animation: heroStackDot 9s var(--ease-in-out) infinite; animation-delay: 7.2s; }

@keyframes heroStackDot {
  0%, 80%, 100% {
    background: rgba(255,255,255,.18);
    box-shadow: none;
  }
  10%, 22% {
    background: var(--accent-400);
    box-shadow: 0 0 0 4px rgba(59,130,246,.18), 0 0 16px rgba(59,130,246,.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stack li, .hero-stack-dot { animation: none !important; }
  .hero-stack li { color: #fff; }
  .hero-stack-dot { background: var(--accent-400); }
}
/* .hero-actions kept (used by .hero-intro) */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { padding: 9px 18px; font-size: .88rem; }

.page-hero {
  position: relative;
  /* ~30% smaller than the original 60/60 padding */
  padding: calc(var(--nav-h) + 24px) 0 28px;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}
.page-hero .lead {
  font-size: 1rem;
  line-height: 1.55;
  max-width: min(700px, 70%);
}
.page-hero .eyebrow {
  font-size: .72rem;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.page-hero h1,
.page-hero .eyebrow,
.page-hero .lead { max-width: min(720px, 68%); }

/* ---- Animated topical graphic on the right of each interior hero ---- */
.hero-graphic {
  position: absolute;
  right: clamp(20px, 5vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}
.hero-graphic svg { width: 100%; height: 100%; overflow: visible; }
.page-hero .container { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .hero-graphic { display: none; }
  .page-hero h1, .page-hero .eyebrow, .page-hero .lead { max-width: 100%; }
}

/* Shield — compliance, trust, security */
.hg-shield .hg-ring { animation: hgRingExpand 3s ease-out infinite; opacity: 0; }
.hg-shield .hg-ring.r2 { animation-delay: 1s; }
.hg-shield .hg-ring.r3 { animation-delay: 2s; }
@keyframes hgRingExpand {
  0%   { r: 22; opacity: .85; }
  100% { r: 92; opacity: 0; }
}

/* Wave — monitoring, data, throughput */
.hg-wave .hg-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: hgBarPulse 1.8s ease-in-out infinite;
}
.hg-wave .hg-bar.b2 { animation-delay: -.15s; }
.hg-wave .hg-bar.b3 { animation-delay: -.30s; }
.hg-wave .hg-bar.b4 { animation-delay: -.45s; }
.hg-wave .hg-bar.b5 { animation-delay: -.60s; }
.hg-wave .hg-bar.b6 { animation-delay: -.75s; }
@keyframes hgBarPulse {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1); }
}

/* Gauge — risk, assessment */
.hg-gauge .hg-needle-grp {
  transform-box: view-box;
  transform-origin: 100px 130px;
  animation: hgNeedleSweep 4s ease-in-out infinite;
}
@keyframes hgNeedleSweep {
  0%, 100% { transform: rotate(-65deg); }
  50%      { transform: rotate(65deg); }
}

/* Network — clients, partners, ecosystem */
.hg-network .hg-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: hgNodePulse 2.5s ease-in-out infinite;
}
.hg-network .hg-node.n2 { animation-delay: -.4s; }
.hg-network .hg-node.n3 { animation-delay: -.8s; }
.hg-network .hg-node.n4 { animation-delay: -1.2s; }
.hg-network .hg-node.n5 { animation-delay: -1.6s; }
.hg-network .hg-node.n6 { animation-delay: -2.0s; }
@keyframes hgNodePulse {
  0%, 100% { transform: scale(1);    fill: rgba(147, 197, 253, .75); }
  50%      { transform: scale(1.35); fill: rgba(255, 255, 255, .95); }
}
.hg-network .hg-link {
  stroke-dasharray: 6 4;
  animation: hgLinkFlow 3s linear infinite;
}
@keyframes hgLinkFlow {
  to { stroke-dashoffset: -20; }
}

/* Docs — media, brochures, legal */
.hg-docs .hg-doc-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: hgDocFloat 4s ease-in-out infinite;
}
.hg-docs .hg-doc-anim.f2 { animation-delay: -1.3s; }
.hg-docs .hg-doc-anim.f3 { animation-delay: -2.6s; }
@keyframes hgDocFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Message — contact, communication */
.hg-message .hg-msg-ring { animation: hgRingExpand 2.5s ease-out infinite; opacity: 0; }
.hg-message .hg-msg-ring.w2 { animation-delay: .8s; }
.hg-message .hg-msg-ring.w3 { animation-delay: 1.6s; }

/* PEPPOL — e-invoicing 4-corner network with central FTA hub */
.hg-peppol .hg-peppol-line {
  stroke-dasharray: 5 8;
  animation: hgPeppolFlow 2.5s linear infinite;
}
@keyframes hgPeppolFlow {
  to { stroke-dashoffset: -26; }
}
.hg-peppol-node circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: hgPeppolNodePulse 3s ease-in-out infinite;
}
.hg-peppol-node.n2 circle { animation-delay: -.6s; }
.hg-peppol-node.n3 circle { animation-delay: -1.2s; }
.hg-peppol-node.n4 circle { animation-delay: -1.8s; }
@keyframes hgPeppolNodePulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(59,130,246,0)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(59,130,246,.6)); }
}
.hg-peppol-fta circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: hgPeppolFtaPulse 2.4s ease-in-out infinite;
}
@keyframes hgPeppolFtaPulse {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 0 rgba(245,158,11,0)); }
  50%      { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(245,158,11,.7)); }
}
@media (prefers-reduced-motion: reduce) {
  .hg-peppol-line, .hg-peppol-node circle, .hg-peppol-fta circle { animation: none !important; }
}

/* Radar — transaction monitoring, suspicious-activity detection */
.hg-radar .hg-radar-sweep {
  transform-box: view-box;
  transform-origin: 100px 100px;
  animation: hgRadarSweep 4s linear infinite;
}
@keyframes hgRadarSweep {
  to { transform: rotate(360deg); }
}
.hg-radar .hg-blip {
  transform-box: fill-box;
  transform-origin: center;
  animation: hgBlipPulse 1.6s ease-in-out infinite;
}
.hg-radar .hg-blip.b2 { animation-delay: -.45s; }
.hg-radar .hg-blip.b3 { animation-delay: -.9s; }
@keyframes hgBlipPulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .35; transform: scale(1.7); }
}

@media (prefers-reduced-motion: reduce) {
  .hg-ring, .hg-bar, .hg-needle-grp, .hg-node, .hg-doc-anim, .hg-msg-ring, .hg-link { animation: none !important; }
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 720px; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  color: rgba(255,255,255,.6); font-size: .88rem;
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--accent-400); }
.breadcrumb-sep { opacity: .5; }

/* ============================================================
   Stats / Counter
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.02em;
}
.stat-num .text-gradient {
  background: linear-gradient(135deg, var(--accent-500), var(--brand-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 2px; color: var(--text-soft); font-size: .62rem; line-height: 1.2; }

.stats-overlap {
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   Product Cards
   ============================================================ */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-500);
  box-shadow: var(--shadow-lg);
}
.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover .card-image img { transform: scale(1.04); }
[data-theme="dark"] .card-image { background: rgba(255,255,255,.96); }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 8px;
}
.card-title { font-size: 1.2rem; margin-bottom: 8px; }
.card-text { color: var(--text-soft); font-size: .94rem; margin-bottom: 16px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent-600);
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.card-link:hover svg { transform: translateX(4px); }

/* Compact product cards (replaces the image-heavy .card grid for the home Products section) */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.prod-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.prod-card:hover {
  border-color: var(--accent-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .16);
}
.prod-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-500) 12%, transparent);
  color: var(--accent-600);
  border-radius: 10px;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.prod-icon svg { width: 18px; height: 18px; }
.prod-card:hover .prod-icon {
  background: var(--grad-accent);
  color: #fff;
}
.prod-meta {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.prod-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.prod-tag {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prod-arrow {
  flex: 0 0 auto;
  color: var(--text-mute);
  display: grid;
  place-items: center;
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.prod-arrow svg { width: 16px; height: 16px; }
.prod-card:hover .prod-arrow {
  color: var(--accent-500);
  transform: translateX(4px);
}
[dir="rtl"] .prod-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .prod-card:hover .prod-arrow { transform: translateX(-4px); }

@media (max-width: 820px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: 1fr; }
}

/* Feature card */
.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-500);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent-500) 12%, transparent);
  color: var(--accent-600);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h4 { margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p { font-size: .94rem; margin: 0; }

/* Number card */
.num-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease-out);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.num-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-500);
}
.num-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}
.num-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.num-card p { font-size: .9rem; margin: 0; }

/* ============================================================
   Two-column content
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: var(--bg-soft);
  padding: 18px;
}
.split-image img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  max-height: 460px;
}
.split-image::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  pointer-events: none;
}
[data-theme="dark"] .split-image { background: rgba(255,255,255,.96); }
/* Alias kept for any pages still using the modifier */
.split-image.is-infographic { background: var(--bg-soft); padding: 18px; }
.split-image.is-infographic img { aspect-ratio: auto; object-fit: contain; }

.feature-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-soft);
  font-size: .98rem;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-500) 15%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   Prose article (long content)
   ============================================================ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.5em; }
.prose h3 { margin-top: 2em; font-size: 1.4rem; }
.prose h4 { margin-top: 1.5em; font-size: 1.15rem; color: var(--accent-600); }
.prose p, .prose li { color: var(--text-soft); font-size: 1.02rem; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 1em 0; }
.prose li { margin: .4em 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-500);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.prose .callout p:last-child { margin: 0; }

/* ============================================================
   Banner / CTA
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 60px;
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-banner > * { position: relative; z-index: 1; }

/* ============================================================
   Partner / Brochure
   ============================================================ */
.partner-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease-out);
}
.partner-card + .partner-card { margin-top: 24px; }
.partner-card.reverse { grid-template-columns: 1fr 320px; }
.partner-card.reverse > :first-child { order: 2; }
.partner-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-500); }
.partner-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.partner-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
[data-theme="dark"] .partner-img { background: rgba(255,255,255,.96); }

.brochure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.brochure-card:hover { transform: translateY(-4px); border-color: var(--accent-500); box-shadow: var(--shadow-md); }
.brochure-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.brochure-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--dur-slow);
}
.brochure-card:hover .brochure-thumb img { transform: scale(1.04); }
[data-theme="dark"] .brochure-thumb { background: rgba(255,255,255,.96); }
.brochure-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.brochure-body h4 { margin-bottom: 6px; }
.brochure-body p { font-size: .92rem; flex: 1; }
.brochure-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent-600);
  font-size: .9rem;
}
.brochure-cta svg { width: 16px; height: 16px; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info h3 { margin-bottom: 18px; }
.contact-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: 0; }
.contact-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent-500) 12%, transparent);
  color: var(--accent-600);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-item h5 { margin: 0 0 4px; font-size: .85rem; color: var(--text-mute); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.contact-item p { margin: 0; color: var(--text); font-weight: 500; }
.contact-item a { color: var(--text); font-weight: 500; }
.contact-item a:hover { color: var(--accent-600); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: .98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: all var(--dur-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-500) 15%, transparent);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-msg.success { display: block; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.form-msg.error { display: block; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--brand-900);
  color: rgba(255,255,255,.7);
  padding: 80px 0 30px;
  position: relative;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -.005em;
}
.footer h6 { font-family: 'Inter', system-ui, sans-serif; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h6 {
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer p { color: rgba(255,255,255,.65); font-size: .81rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.7); font-size: .81rem; }
.footer a:hover { color: var(--accent-400); }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: rgba(255,255,255,.8);
  transition: all var(--dur-fast);
}
.social a:hover {
  background: var(--accent-500);
  color: var(--brand-900);
  border-color: var(--accent-500);
  transform: translateY(-2px);
}
.social svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom-links { display: flex; gap: 24px; }

/* ---- Certifications row (ISO + standards) ---- */
.cc-certs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed rgba(255,255,255,.12);
}
.cc-certs-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.45);
  margin-right: 8px;
}
.cc-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  transition: transform var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.cc-cert:hover {
  background: rgba(59,130,246,.18);
  border-color: var(--accent-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(59,130,246,.22);
}
.cc-cert-prefix {
  font-weight: 700;
  font-size: .72rem;
  color: var(--accent-400);
  letter-spacing: .06em;
}
.cc-cert-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .68rem;
  color: rgba(255,255,255,.92);
  letter-spacing: .02em;
}
.cc-cert.cc-cert-gdpr { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.32); }
.cc-cert.cc-cert-gdpr .cc-cert-prefix { color: #6ee7b7; }
.cc-cert.cc-cert-gdpr:hover { background: rgba(16,185,129,.18); border-color: #10b981; box-shadow: 0 4px 10px rgba(16,185,129,.22); }
.cc-cert.cc-cert-peppol { background: rgba(176,38,255,.10); border-color: rgba(176,38,255,.34); }
.cc-cert.cc-cert-peppol .cc-cert-prefix { color: #c595ff; }
.cc-cert.cc-cert-peppol:hover { background: rgba(176,38,255,.22); border-color: #b026ff; box-shadow: 0 4px 10px rgba(176,38,255,.28); }
@media (max-width: 540px) {
  .cc-cert { padding: 4px 10px; }
  .cc-cert-prefix, .cc-cert-num { font-size: .64rem; }
  .cc-certs-label { width: 100%; margin-bottom: 4px; }
}

/* ============================================================
   Back to top
   ============================================================ */
/* Floating "e-Invoice Registration" CTA — appears site-wide, sits just above the back-to-top button */
.fab-register {
  position: fixed;
  bottom: 82px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--grad-accent);
  color: #fff;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  animation: fabRegisterPulse 2.6s ease-in-out infinite;
}
.fab-register:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .55);
  animation-play-state: paused;
}
.fab-register svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes fabRegisterPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(37, 99, 235, .35), 0 0 0 0 rgba(59, 130, 246, .45); }
  50%      { box-shadow: 0 10px 24px rgba(37, 99, 235, .35), 0 0 0 12px rgba(59, 130, 246, 0); }
}
[dir="rtl"] .fab-register { right: auto; left: 24px; }
@media (max-width: 540px) {
  .fab-register { bottom: 78px; padding: 10px 14px; font-size: .78rem; gap: 6px; }
  .fab-register svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-register { animation: none; }
}

.to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--dur) var(--ease-out);
  z-index: 999;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Animations / Reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Marquee (clients/partners scroll)
   ============================================================ */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.marquee-item {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 60px;
  padding: 0 20px;
  font-weight: 700;
  color: var(--text-mute);
  font-size: 1.1rem;
  letter-spacing: -.01em;
}
@keyframes scroll {
  to { transform: translateX(calc(-50% - 30px)); }
}

/* ============================================================
   Integrations marquee — auto-scrolling logo cards
   ============================================================ */
.integrations {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.integrations-track {
  display: flex;
  gap: 22px;
  animation: integScroll 32s linear infinite;
  width: max-content;
}
.integrations:hover .integrations-track { animation-play-state: paused; }
.integration-card {
  flex-shrink: 0;
  width: 220px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.integration-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-500);
  box-shadow: var(--shadow-md);
}
.integration-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: .85;
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.integration-card:hover img { filter: grayscale(0); opacity: 1; }
@keyframes integScroll {
  to { transform: translateX(calc(-50% - 11px)); }
}
@media (prefers-reduced-motion: reduce) {
  .integrations-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* Static variant — no scroll, edge-to-edge grid of cards */
.integrations.integrations-static {
  overflow: visible;
  padding: 4px 0;
  -webkit-mask-image: none;
  mask-image: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.integrations.integrations-static .integration-card {
  width: auto;
}

/* ============================================================
   Integrations — bento mosaic (mixed-size tiles, network backdrop)
   ============================================================ */
.integrations-bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 88px;
  grid-auto-flow: dense;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-lg);
  /* subtle network-dot backdrop instead of a flat panel */
  background:
    radial-gradient(circle, rgba(59,130,246,.22) 1px, transparent 1.5px) 0 0/22px 22px,
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(45,46,131,.08) 0%, transparent 50%),
    var(--bg-soft);
  background-size: 22px 22px, auto, auto, auto;
  border: 1px solid var(--border);
}
[data-theme="dark"] .integrations-bento {
  background:
    radial-gradient(circle, rgba(59,130,246,.18) 1px, transparent 1.5px) 0 0/22px 22px,
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.14) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(107,110,207,.14) 0%, transparent 50%),
    var(--brand-900);
  background-size: 22px 22px, auto, auto, auto;
}
.bento-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
/* Subtle inner gradient so tiles don't read as flat white */
.bento-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(248,250,252,.85));
  z-index: 0;
}
.bento-tile img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: .82;
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.bento-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-500);
  box-shadow: 0 10px 26px rgba(37, 99, 235, .18);
}
.bento-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}
/* Diagonal sheen on hover for a polished feel */
.bento-tile::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  transform: skewX(-22deg);
  transition: left .6s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.bento-tile:hover::after { left: 130%; }

/* Wide tiles span 2 columns for visual rhythm */
.bento-tile.wide { grid-column: span 2; }
/* Tall tile variant available if needed: .bento-tile.tall { grid-row: span 2; } */

/* Responsive — collapse columns as viewport narrows */
@media (max-width: 980px) {
  .integrations-bento { grid-template-columns: repeat(4, 1fr); padding: 18px; }
}
@media (max-width: 640px) {
  .integrations-bento { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; grid-auto-rows: 72px; }
  .bento-tile.wide { grid-column: span 2; }
}
@media (max-width: 420px) {
  .integrations-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tile.wide { grid-column: span 2; }
}

/* ============================================================
   Integrations — hexagonal honeycomb (uniform cell size)
   ============================================================ */
.integrations-honeycomb {
  --hc-w: 130px;                /* hex width */
  --hc-h: 150px;                /* hex height (W × 2/√3 ≈ 1.155) */
  --hc-gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 12px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle, rgba(59,130,246,.22) 1px, transparent 1.5px) 0 0/22px 22px,
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(45,46,131,.08) 0%, transparent 50%),
    var(--bg-soft);
  background-size: 22px 22px, auto, auto, auto;
}
[data-theme="dark"] .integrations-honeycomb {
  background:
    radial-gradient(circle, rgba(59,130,246,.18) 1px, transparent 1.5px) 0 0/22px 22px,
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.14) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(107,110,207,.14) 0%, transparent 50%),
    var(--brand-900);
  background-size: 22px 22px, auto, auto, auto;
}

.hc-row {
  display: flex;
  gap: var(--hc-gap);
  justify-content: center;
}
/* Each subsequent row tucks up into the previous row's bottom notches */
.hc-row + .hc-row {
  margin-top: calc(var(--hc-h) * -0.25);
}
/* Even rows shift right by half-hex + half-gap to interlock */
.hc-row:nth-child(even) {
  margin-left: calc((var(--hc-w) + var(--hc-gap)) * 0.5);
}

.hc-cell {
  position: relative;
  width: var(--hc-w);
  height: var(--hc-h);
  flex: 0 0 var(--hc-w);
  /* Pointy-top hexagon shape */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  /* drop-shadow respects clip-path, box-shadow doesn't */
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, .08));
  transition: transform .35s var(--ease-out), filter .35s var(--ease-out);
  cursor: default;
}
.hc-cell:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 10px 22px rgba(37, 99, 235, .32));
  z-index: 2;
}
.hc-cell img {
  max-width: 80%;
  max-height: 60%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(45%);
  opacity: .82;
  transition: filter .35s var(--ease-out), opacity .35s var(--ease-out);
  pointer-events: none;
}
.hc-cell:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Subtle inner accent rim — implemented as a second clip-path layer behind the cell */
.hc-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(45, 46, 131, .15));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
  margin: -1.5px;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.hc-cell:hover::before { opacity: 1; }

/* Tablet — shrink the cells */
@media (max-width: 920px) {
  .integrations-honeycomb { --hc-w: 110px; --hc-h: 127px; --hc-gap: 8px; padding: 24px 10px 18px; }
  .hc-cell { padding: 22px 12px; }
}

/* Mobile — honeycomb breaks down at narrow widths; fall back to a clean uniform 3-col grid that keeps the hex shape */
@media (max-width: 600px) {
  .integrations-honeycomb {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 12px;
  }
  .hc-row {
    display: contents;             /* let cells flow as grid items */
  }
  .hc-row + .hc-row,
  .hc-row:nth-child(even) {
    margin: 0;
  }
  .hc-cell {
    width: 100%; height: 100px;
    flex: none;
    padding: 16px 10px;
  }
}
@media (max-width: 380px) {
  .integrations-honeycomb { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Integrations — Glassmorphic floating cards over colour gradient
   ============================================================ */
.integrations-glass {
  position: relative;
  /* generous horizontal padding so the first and last cards stay clear of the
     rounded corners (the panel uses overflow: hidden to keep the dot grid
     inside the rounded shape, so any card touching the corner gets clipped). */
  padding: 32px 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 26%, rgba(59,130,246,.55) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(139,92,246,.55) 0%, transparent 45%),
    linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  overflow: hidden;
}
.integrations-glass::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.glass-card {
  position: relative;
  height: 88px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 14px;
  animation: glassBob 5s ease-in-out infinite;
  transition: transform .3s, background .3s, border-color .3s, box-shadow .3s;
  z-index: 1;
}
.glass-card:nth-child(6n+1) { animation-delay: 0s; }
.glass-card:nth-child(6n+2) { animation-delay: .6s; }
.glass-card:nth-child(6n+3) { animation-delay: 1.2s; }
.glass-card:nth-child(6n+4) { animation-delay: 1.8s; }
.glass-card:nth-child(6n+5) { animation-delay: 2.4s; }
.glass-card:nth-child(6n+6) { animation-delay: 3.0s; }
@keyframes glassBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.glass-card:hover {
  background: #fff;
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transform: translateY(-6px) scale(1.03);
  z-index: 5;
}
.glass-card img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
}
@media (max-width: 760px) { .integrations-glass { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .integrations-glass { grid-template-columns: repeat(3, 1fr); padding: 24px 16px; } }

@media (prefers-reduced-motion: reduce) {
  .glass-card { animation: none !important; }
}

/* ============================================================
   Clients & Integration — 4 rows, alternating auto-scroll
   ============================================================ */
.clients-wall {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
}
.clients-row {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.clients-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: clientsScroll 55s linear infinite;
}
/* Odd rows scroll left → right disappear off the left.
   Even rows reverse so they scroll right → left disappear off the right. */
.clients-row:nth-child(even) .clients-track { animation-direction: reverse; }
/* Vary speeds per row so they don't sync up */
.clients-row:nth-child(1) .clients-track { animation-duration: 55s; }
.clients-row:nth-child(2) .clients-track { animation-duration: 72s; }
.clients-row:nth-child(3) .clients-track { animation-duration: 62s; }
.clients-row:nth-child(4) .clients-track { animation-duration: 68s; }
.clients-row:nth-child(5) .clients-track { animation-duration: 58s; }
.clients-row:hover .clients-track { animation-play-state: paused; }
@keyframes clientsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.clients-card {
  flex-shrink: 0;
  width: 150px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.clients-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-500);
  box-shadow: var(--shadow);
}
.clients-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(45%);
  opacity: .82;
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.clients-card:hover img { filter: grayscale(0); opacity: 1; }

/* RTL — reverse direction stays consistent visually (track moves toward leading edge) */
[dir="rtl"] .clients-row:nth-child(odd) .clients-track  { animation-direction: reverse; }
[dir="rtl"] .clients-row:nth-child(even) .clients-track { animation-direction: normal; }

@media (max-width: 640px) {
  .clients-card { width: 120px; height: 64px; padding: 8px 12px; }
  .clients-track { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ============================================================
   Flow pipeline — animated Screening → TMS → e-Invoice → Forex ERP
   ============================================================ */
.flow-pipeline {
  --flow-cycle: 8s;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 36px 8px;
  position: relative;
}
.flow-node {
  flex: 0 0 auto;
  width: 178px;
  text-align: center;
  padding: 22px 14px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  animation: flowNodePulse var(--flow-cycle) ease-in-out infinite;
  box-shadow: var(--shadow-sm);
}
/* Nodes and arrows share the div type counter — nodes sit at odd positions */
.flow-node:nth-of-type(1) { animation-delay: 0s; }
.flow-node:nth-of-type(3) { animation-delay: calc(var(--flow-cycle) * .25); }
.flow-node:nth-of-type(5) { animation-delay: calc(var(--flow-cycle) * .50); }
.flow-node:nth-of-type(7) { animation-delay: calc(var(--flow-cycle) * .75); }

.flow-node-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-500) 10%, transparent);
  display: grid;
  place-items: center;
  color: var(--accent-600);
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.flow-node-icon svg { width: 26px; height: 26px; }
.flow-node-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.15;
}
.flow-node-sub {
  font-size: .68rem;
  color: var(--text-mute);
  margin-top: 4px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes flowNodePulse {
  0%, 12%, 100% {
    border-color: var(--border);
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
  }
  3%, 9% {
    border-color: var(--accent-500);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, .25);
  }
}
.flow-node.is-active .flow-node-icon,
.flow-node:hover .flow-node-icon {
  background: var(--grad-accent);
  color: #fff;
  transform: scale(1.06);
}

/* Connecting arrow with the travelling pulse */
.flow-arrow {
  flex: 1 1 auto;
  position: relative;
  min-width: 50px;
  display: flex;
  align-items: center;
  margin: 0 -1px;          /* tuck the arrow ends behind the node borders */
}
.flow-arrow::before {
  content: '';
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  background-image: linear-gradient(90deg, var(--border) 0 50%, transparent 0);
  background-size: 8px 100%;   /* dashed track */
  background-repeat: repeat-x;
}
.flow-arrow::after {
  content: '';
  flex: 0 0 0;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--border-strong);
  margin-left: 2px;
}
.flow-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px; height: 14px;
  margin-top: -7px;
  margin-left: -7px;
  background: var(--accent-500);
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(37, 99, 235, .18),
    0 0 14px rgba(37, 99, 235, .65);
  opacity: 0;
  animation: flowPulseMove var(--flow-cycle) ease-in-out infinite;
}
/* Arrows sit at even positions in the div sibling counter (2, 4, 6).
   Arrow 1's pulse fires at 0 (default), arrow 2 at 25 %, arrow 3 at 50 %. */
.flow-arrow:nth-of-type(4) .flow-pulse { animation-delay: calc(var(--flow-cycle) * .25); }
.flow-arrow:nth-of-type(6) .flow-pulse { animation-delay: calc(var(--flow-cycle) * .50); }

@keyframes flowPulseMove {
  0%   { left: 0;    opacity: 0; transform: scale(.6); }
  3%   { opacity: 1; transform: scale(1); }
  22%  { left: 100%; opacity: 1; transform: scale(1); }
  26%  { left: 100%; opacity: 0; transform: scale(.6); }
  100% { left: 100%; opacity: 0; }
}

/* RTL — flip the arrow direction */
[dir="rtl"] .flow-pipeline { flex-direction: row-reverse; }
[dir="rtl"] .flow-arrow::after { transform: scaleX(-1); }
[dir="rtl"] .flow-pulse { animation-direction: reverse; }

@media (max-width: 820px) {
  .flow-pipeline { flex-direction: column; gap: 0; padding: 24px 0; }
  .flow-node { width: 100%; max-width: 320px; margin: 0 auto; }
  .flow-arrow {
    width: 3px;
    min-height: 56px;
    min-width: 0;
    flex-direction: column;
    margin: -1px auto;
  }
  .flow-arrow::before {
    width: 3px; height: auto; flex: 1;
    background-image: linear-gradient(180deg, var(--border) 0 50%, transparent 0);
    background-size: 100% 8px;
  }
  .flow-arrow::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--border-strong);
    border-bottom: 0;
    margin: 2px 0 0 0;
  }
  .flow-pulse {
    top: 0; left: 50%;
    margin-left: -7px; margin-top: -7px;
    animation-name: flowPulseMoveV;
  }
  [dir="rtl"] .flow-pipeline { flex-direction: column; }
}
@keyframes flowPulseMoveV {
  0%   { top: 0;    opacity: 0; transform: scale(.6); }
  3%   { opacity: 1; transform: scale(1); }
  22%  { top: 100%; opacity: 1; transform: scale(1); }
  26%  { top: 100%; opacity: 0; transform: scale(.6); }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-node, .flow-pulse { animation: none !important; }
  .flow-pulse { display: none; }
}

/* ============================================================
   Offices grid + embedded map / satellite panels
   ============================================================ */
.office-card {
  position: relative;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease-out);
}
.office-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-500);
  box-shadow: var(--shadow-md);
}
.office-card .office-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 8px;
}
.office-card .office-flag .badge {
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--grad-accent);
  color: #fff;
  letter-spacing: .08em;
}
.office-card .office-flag .badge.assoc {
  background: transparent;
  color: var(--text-mute);
  border: 1px solid var(--border-strong);
}
.office-card h4 { margin: 0 0 6px; font-size: 1.1rem; }
.office-card .office-addr { color: var(--text-soft); font-size: .92rem; margin: 0 0 10px; line-height: 1.55; }
.office-card .office-tel { font-size: .9rem; margin: 0; }
.office-card .office-tel a { color: var(--text); font-weight: 600; }
.office-card .office-tel a:hover { color: var(--accent-600); }

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.map-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  box-shadow: var(--shadow);
}
.map-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-panel-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-500);
  padding: 5px 12px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-panel-label svg { width: 12px; height: 12px; }
.map-panel-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .85rem;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.map-panel-caption strong { display: block; margin-bottom: 2px; color: var(--accent-600); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.map-panel-caption span { font-size: .85rem; color: var(--text-soft); }
.map-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.map-actions .btn { gap: 8px; }
.map-actions .btn svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .map-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .partner-card, .partner-card.reverse { grid-template-columns: 1fr; gap: 24px; }
  .partner-card.reverse > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform var(--dur) var(--ease-out);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 12px 14px; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    margin-top: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 16px;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .menu-toggle { display: grid; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .form-row.split-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 40px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ============================================================
   RTL — Arabic layout overrides (activated by <html lang="ar" dir="rtl">)
   ============================================================ */
[lang="ar"] body,
[dir="rtl"] body {
  font-family: 'Cairo', var(--font-sans);
  letter-spacing: 0;            /* Latin letter-spacing rules don't apply to Arabic */
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] h5, [lang="ar"] h6,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: 'Cairo', var(--font-display);
  letter-spacing: 0;
}

/* Navbar dropdown indicator caret flips */
[dir="rtl"] .has-dropdown > .nav-link::after {
  margin-left: 0;
  margin-right: 6px;
}
[dir="rtl"] .dropdown {
  left: auto;
  right: 0;
}

/* Section-head defaults to centred — RTL leaves text-align alone */
[dir="rtl"] .feature-list li::before {
  /* keep the gap reading correctly when flex-direction reverses */
  margin-right: 0;
}

/* Hero ticker scrolls right-to-left (i.e. items flow naturally from right) */
[dir="rtl"] .hero-ticker-track {
  animation-direction: reverse;
}

/* Hero FX HUD chips — swap left/right anchor points */
[dir="rtl"] .hero-fx-chip[data-pos="tl"] { left: auto; right: 70px; }
[dir="rtl"] .hero-fx-chip[data-pos="tr"] { right: auto; left: 70px; }
[dir="rtl"] .hero-fx-chip[data-pos="bl"] { left: auto; right: 70px; }
@media (max-width: 720px) {
  [dir="rtl"] .hero-fx-chip[data-pos="tl"],
  [dir="rtl"] .hero-fx-chip[data-pos="bl"] { left: auto; right: 18px; }
  [dir="rtl"] .hero-fx-chip[data-pos="tr"] { right: auto; left: 18px; }
}

/* HUD corner brackets — mirror so the L-shapes still hug each corner */
[dir="rtl"] .hero-fx-corner.tl,
[dir="rtl"] .hero-fx-corner.tr,
[dir="rtl"] .hero-fx-corner.bl,
[dir="rtl"] .hero-fx-corner.br { transform: scaleX(-1); }

/* Integrations marquee reverses too */
[dir="rtl"] .integrations-track,
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* Cards / numbered cards — gap is from flex so they naturally flip */
[dir="rtl"] .num-card { text-align: right; }

/* Footer columns stay grid-aligned; text just flows RTL */
[dir="rtl"] .footer-bottom-links { flex-direction: row-reverse; }
[dir="rtl"] .social { flex-direction: row-reverse; }

/* Form labels naturally align right thanks to dir=rtl */

/* Eyebrow chip stays inline-flex, no flip needed */

/* Office cards on contact page */
[dir="rtl"] .office-card { text-align: right; }
[dir="rtl"] .office-flag .badge { margin-left: 0; margin-right: 8px; }

/* Brochure card link arrow should follow text direction */
[dir="rtl"] .brochure-cta svg,
[dir="rtl"] .card-link svg { transform: scaleX(-1); }

/* Contact-item icon stays on the right naturally — give it a little air */
[dir="rtl"] .contact-item { text-align: right; }

/* Keep ASCII numbers, addresses, emails LTR even inside RTL paragraphs */
[dir="rtl"] [dir="ltr"],
[dir="rtl"] .office-tel,
[dir="rtl"] .office-addr,
[dir="rtl"] .contact-item a[href^="tel:"],
[dir="rtl"] .contact-item a[href^="mailto:"] {
  unicode-bidi: embed;
}

/* Mobile menu slides from the correct side */
@media (max-width: 768px) {
  [dir="rtl"] .nav-links {
    left: auto;
    right: 0;
  }
}

/* ============================================================
   Associates panel
   ============================================================ */
.associates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.associate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease-out);
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.associate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-500) 4%, transparent), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.associate-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-500);
  box-shadow: var(--shadow-md);
}
.associate-card:hover::before { opacity: 1; }
.associate-logo {
  height: 70px;
  width: 100%;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(35%);
  opacity: .9;
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  position: relative; z-index: 1;
}
.associate-card:hover .associate-logo {
  filter: grayscale(0);
  opacity: 1;
}
.associate-name {
  margin-top: 14px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  position: relative; z-index: 1;
}
.associate-tag {
  margin-top: 2px;
  font-size: .78rem;
  color: var(--text-mute);
  position: relative; z-index: 1;
}

/* Our Products — 5-column × 2-row grid (9 logos = 5 + 4), uniform card size */
.associates-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.associates-strip .associate-strip-item {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.associates-strip .associate-strip-item:hover {
  border-color: var(--accent-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}
.associates-strip img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: .85;
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.associates-strip .associate-strip-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}
[data-theme="dark"] .associate-logo {
  background: rgba(255,255,255,.95);
  padding: 4px 8px;
  border-radius: 6px;
}
[data-theme="dark"] .associates-strip .associate-strip-item {
  background: rgba(255,255,255,.96);
}

/* Responsive — keep 2 rows where possible */
@media (max-width: 820px) {
  .associates-strip { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
  .associates-strip .associate-strip-item { height: 80px; padding: 12px 14px; }
}
@media (max-width: 480px) {
  .associates-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .associates-strip .associate-strip-item { height: 72px; padding: 10px 12px; }
}

/* Hide Google Translate UI chrome (banner, tooltip, body offset, highlights) */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip-popup,
#goog-gt-tt,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
font[style*="background-color"] { background: transparent !important; }
#google_translate_element { position: absolute !important; left: -9999px !important; top: -9999px !important; visibility: hidden !important; }

/* ============================================================
   Trust ticker — auto-scrolling stat bar above navbar
   ============================================================ */
.trust-ticker {
  background: linear-gradient(90deg, #1e1f6b 0%, #2d2e83 50%, #1e1f6b 100%);
  color: #fff;
  overflow: hidden;
  font-size: .78rem;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.trust-ticker-track {
  display: flex;
  gap: 56px;
  padding: 8px 24px;
  white-space: nowrap;
  animation: trustTickerScroll 38s linear infinite;
  width: max-content;
}
.trust-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .92;
}
.trust-ticker-item svg { width: 14px; height: 14px; opacity: .85; flex-shrink: 0; }
@keyframes trustTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-ticker:hover .trust-ticker-track { animation-play-state: paused; }
[dir="rtl"] .trust-ticker-track { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
  .trust-ticker-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}
@media (max-width: 540px) {
  .trust-ticker { font-size: .72rem; }
  .trust-ticker-track { gap: 40px; padding: 6px 16px; }
}

/* ============================================================
   WhatsApp FAB — bottom-left, brand-green
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  z-index: 999;
  animation: fabWhatsappPulse 2.8s ease-in-out infinite;
}
.fab-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 211, 102, .6);
  animation-play-state: paused;
}
.fab-whatsapp svg { width: 28px; height: 28px; }
@keyframes fabWhatsappPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  50%      { box-shadow: 0 10px 24px rgba(37, 211, 102, .45), 0 0 0 14px rgba(37, 211, 102, 0); }
}
[dir="rtl"] .fab-whatsapp { left: auto; right: 24px; }
[dir="rtl"] .fab-register,
[dir="rtl"] .to-top { right: auto; left: 24px; }
@media (max-width: 540px) {
  .fab-whatsapp { width: 48px; height: 48px; bottom: 20px; left: 16px; }
  .fab-whatsapp svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp { animation: none; }
}

/* ============================================================
   Cookie consent modal — centered overlay with AI-animated logo
   ============================================================ */
.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, .55), rgba(15, 23, 42, .82));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  padding: 20px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent.show { opacity: 1; }
.cookie-modal {
  width: min(580px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, .35), 0 6px 18px rgba(15, 23, 42, .12);
  border: 1px solid rgba(255, 255, 255, .8);
  transform: translateY(40px) scale(.96);
  transition: transform .5s var(--ease-out);
  overflow: hidden;
}
[data-theme="dark"] .cookie-modal {
  background: #0f172a;
  border-color: rgba(255, 255, 255, .08);
  color: #e2e8f0;
}
.cookie-consent.show .cookie-modal { transform: translateY(0) scale(1); }

/* AI-animated logo header */
.cookie-modal-hero {
  position: relative;
  padding: 28px 24px 12px;
  background: linear-gradient(135deg, #1e1f6b 0%, #2d2e83 50%, #3b3cab 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cookie-modal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 179, 237, .25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(193, 87, 232, .2), transparent 45%);
  animation: cookieHeroDrift 8s ease-in-out infinite alternate;
}
@keyframes cookieHeroDrift {
  from { transform: translateX(-6px) translateY(-4px); }
  to   { transform: translateX(6px) translateY(4px); }
}
.cookie-ai-logo {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}
.cookie-ai-logo .ai-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35);
  animation: aiRingPulse 2.6s ease-out infinite;
}
.cookie-ai-logo .ai-ring:nth-child(2) { animation-delay: .9s; }
.cookie-ai-logo .ai-ring:nth-child(3) { animation-delay: 1.8s; }
@keyframes aiRingPulse {
  0%   { transform: scale(.6); opacity: 0; border-color: rgba(147, 197, 253, .85); }
  40%  { opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; border-color: rgba(193, 87, 232, .2); }
}
.cookie-ai-logo .ai-orbit {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .25);
  animation: aiOrbitSpin 14s linear infinite;
}
.cookie-ai-logo .ai-orbit::before,
.cookie-ai-logo .ai-orbit::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, #c084fc);
  box-shadow: 0 0 12px rgba(147, 197, 253, .9);
}
.cookie-ai-logo .ai-orbit::before { top: -4px; left: 50%; transform: translateX(-50%); }
.cookie-ai-logo .ai-orbit::after  { bottom: -4px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #c084fc, #ec4899); }
@keyframes aiOrbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.cookie-ai-logo .ai-logo-img {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .35), 0 0 0 4px rgba(255, 255, 255, .15);
  z-index: 2;
}
.cookie-ai-logo .ai-logo-img img { width: 42px; height: 42px; }
.cookie-ai-logo .ai-scan {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.cookie-ai-logo .ai-scan::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #93c5fd, transparent);
  animation: aiScanSweep 2.4s ease-in-out infinite;
  filter: blur(.5px);
}
@keyframes aiScanSweep {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(56px); opacity: 0; }
}
.cookie-modal-hero h3 {
  position: relative;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.cookie-modal-hero p {
  position: relative;
  margin: 0;
  font-size: .82rem;
  opacity: .85;
  line-height: 1.5;
}

/* Body */
.cookie-modal-body { padding: 20px 24px 22px; }
.cookie-categories {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.cookie-cat {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(15, 23, 42, .03);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 12px;
  transition: background var(--dur);
}
[data-theme="dark"] .cookie-cat {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .07);
}
.cookie-cat:hover { background: rgba(37, 99, 235, .06); }
[data-theme="dark"] .cookie-cat:hover { background: rgba(147, 197, 253, .08); }
.cookie-cat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #fff;
  flex-shrink: 0;
}
.cookie-cat-icon svg { width: 18px; height: 18px; }
.cookie-cat-text strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--brand-600);
}
[data-theme="dark"] .cookie-cat-text strong { color: #93c5fd; }
.cookie-cat-text span { font-size: .74rem; opacity: .75; line-height: 1.4; }
.cookie-cat-status {
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(34, 197, 94, .14);
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: .04em;
}
[data-theme="dark"] .cookie-cat-status { background: rgba(34, 197, 94, .2); color: #4ade80; }
.cookie-cat-status.optional { background: rgba(148, 163, 184, .18); color: #475569; }
[data-theme="dark"] .cookie-cat-status.optional { background: rgba(148, 163, 184, .22); color: #cbd5e1; }

.cookie-policy-note {
  font-size: .74rem;
  opacity: .7;
  margin: 0 0 16px;
  line-height: 1.5;
  text-align: center;
}
.cookie-policy-note a { color: var(--accent-500); font-weight: 600; }

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-cookie {
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.btn-cookie-decline {
  background: transparent;
  color: inherit;
  border: 1.5px solid rgba(15, 23, 42, .18);
}
[data-theme="dark"] .btn-cookie-decline { border-color: rgba(255, 255, 255, .22); }
.btn-cookie-decline:hover { background: rgba(15, 23, 42, .05); transform: translateY(-1px); }
[data-theme="dark"] .btn-cookie-decline:hover { background: rgba(255, 255, 255, .06); }
.btn-cookie-accept {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .38);
}
.btn-cookie-accept:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, .55); }

@media (max-width: 540px) {
  .cookie-modal { border-radius: 18px; }
  .cookie-modal-hero { padding: 22px 18px 10px; }
  .cookie-ai-logo { width: 80px; height: 80px; }
  .cookie-ai-logo .ai-logo-img { width: 48px; height: 48px; }
  .cookie-ai-logo .ai-logo-img img { width: 36px; height: 36px; }
  .cookie-ai-logo .ai-scan { inset: 16px; }
  @keyframes aiScanSweep { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }
  .cookie-modal-hero h3 { font-size: 1.1rem; }
  .cookie-modal-body { padding: 16px 16px 18px; }
  .cookie-cat { grid-template-columns: 32px 1fr; padding: 10px 12px; }
  .cookie-cat-status { grid-column: 2; justify-self: start; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-ai-logo .ai-ring,
  .cookie-ai-logo .ai-orbit,
  .cookie-ai-logo .ai-scan::before,
  .cookie-modal-hero::before { animation: none; }
}

/* ============================================================
   Clients page — extended panels (regions, coverage strip,
   testimonials marquee, support split, get-in-touch)
   ============================================================ */

/* ============================================================
   ERP Command Center — animated dashboard mockup (index page)
   ============================================================ */
.erp-cc {
  position: relative;
  background: linear-gradient(160deg, #0F1230 0%, #1B1B7F 60%, #2d2e83 100%);
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 32px 64px rgba(15, 18, 48, .35), 0 0 0 1px rgba(124, 58, 237, .18);
  overflow: hidden;
  padding: 18px;
  min-height: 460px;
}
.erp-cc::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 20% 15%, rgba(124, 58, 237, .25), transparent 55%),
    radial-gradient(520px 280px at 85% 85%, rgba(34, 211, 238, .2), transparent 55%);
  pointer-events: none;
}
.erp-cc::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7c3aed, #22d3ee, #3A3AE6, transparent);
  background-size: 200% 100%;
  animation: erpTopShimmer 5s linear infinite;
}
@keyframes erpTopShimmer { from { background-position: 0 0; } to { background-position: 200% 0; } }

.erp-bar {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .8rem;
}
.erp-bar .erp-orb {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  box-shadow: 0 0 12px rgba(124, 58, 237, .6);
  animation: erpOrbPulse 2.4s ease-in-out infinite;
}
.erp-bar .erp-orb svg { width: 13px; height: 13px; }
@keyframes erpOrbPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(124,58,237,.6); transform: scale(1); }
  50%      { box-shadow: 0 0 20px rgba(34,211,238,.85); transform: scale(1.06); }
}
.erp-bar > span:nth-of-type(1) { flex: 1; }
.erp-bar .pill-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .62rem; letter-spacing: .12em;
  padding: 4px 10px; border-radius: 99px;
  background: rgba(34, 211, 238, .15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, .4);
}
.erp-bar .pill-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: erpLiveDot 1.4s ease-in-out infinite;
}
@keyframes erpLiveDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.erp-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

/* Counter card */
.erp-counter {
  grid-column: 1;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.erp-counter .lab {
  font-size: .65rem; text-transform: uppercase;
  letter-spacing: .08em; opacity: .65; margin-bottom: 6px;
}
.erp-counter .num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 2rem;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.erp-counter .num .unit { font-size: 1rem; color: #93c5fd; opacity: .75; -webkit-text-fill-color: #93c5fd; }
.erp-counter .delta { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: #6ee7b7; margin-top: 6px; }
.erp-counter .delta svg { width: 11px; height: 11px; }
.erp-counter .spark {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  opacity: .8;
}
.erp-counter .spark path.ln { fill: none; stroke: #22d3ee; stroke-width: 1.6; }
.erp-counter .spark path.fl { fill: rgba(34, 211, 238, .15); }
.erp-counter .spark .pt {
  fill: #22d3ee;
  filter: drop-shadow(0 0 6px #22d3ee);
  animation: erpSparkPt 2.2s ease-in-out infinite;
}
@keyframes erpSparkPt { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* Donut health card */
.erp-donut {
  grid-column: 2; grid-row: 1;
  padding: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
}
.erp-donut svg { width: 80px; height: 80px; }
.erp-donut svg .bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 3; }
.erp-donut svg .fg {
  fill: none;
  stroke: url(#erpDonutGrad);
  stroke-width: 3;
  stroke-dasharray: 95 100;
  stroke-dashoffset: 25;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: erpDonutDraw 1.6s ease-out;
}
@keyframes erpDonutDraw { from { stroke-dasharray: 0 100; } }
.erp-donut .erp-donut-text .lab { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; }
.erp-donut .erp-donut-text .val { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.erp-donut .erp-donut-text .sub { font-size: .68rem; opacity: .7; margin-top: 2px; }

/* Branch map (network of pulsing dots) */
.erp-branches {
  grid-column: 1 / -1;
  position: relative;
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  min-height: 130px;
}
.erp-branches .erp-branches-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: .68rem; opacity: .75; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.erp-branches .erp-branches-head .erp-cnt { color: #22d3ee; font-weight: 800; font-family: var(--font-display); letter-spacing: -.01em; opacity: 1; }
.erp-branches svg { width: 100%; height: 100px; display: block; }
.erp-branches svg .br-line {
  stroke: rgba(124, 58, 237, .35);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  fill: none;
}
.erp-branches svg .br-core {
  fill: #fff;
  stroke: #7c3aed;
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, .9));
}
.erp-branches svg .br-ring {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 1.4;
  opacity: .65;
  animation: erpBranchRing 2.4s ease-out infinite;
}
.erp-branches svg .br-ring.r2 { animation-delay: -1.2s; }
@keyframes erpBranchRing { 0% { r: 6; opacity: .85; } 100% { r: 22; opacity: 0; } }
.erp-branches svg .br-dot {
  fill: #22d3ee;
  filter: drop-shadow(0 0 5px rgba(34, 211, 238, .8));
}
.erp-branches svg .br-pulse {
  fill: none; stroke: #22d3ee; stroke-width: 1; opacity: .55;
  animation: erpBranchSmRing 2.6s ease-out infinite;
}
@keyframes erpBranchSmRing { 0% { r: 4; opacity: .7; } 100% { r: 12; opacity: 0; } }
.erp-branches svg .br-packet {
  fill: #22d3ee;
  filter: drop-shadow(0 0 5px #22d3ee);
}

/* Alert feed */
.erp-feed {
  grid-column: 1 / -1;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}
.erp-feed .erp-feed-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .68rem; opacity: .75;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 6px;
}
.erp-feed-items {
  position: relative;
  overflow: hidden;
  height: 96px;
}
.erp-feed-items ul {
  list-style: none; margin: 0; padding: 0;
  animation: erpFeedScroll 14s linear infinite;
}
.erp-feed-items:hover ul { animation-play-state: paused; }
.erp-feed-items li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  font-size: .72rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .06);
}
.erp-feed-items li:last-child { border-bottom: 0; }
.erp-feed-items .erp-feed-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.erp-feed-items .erp-feed-icon svg { width: 13px; height: 13px; }
.erp-feed-items .erp-feed-icon.ok { background: rgba(34,197,94,.18); color: #6ee7b7; }
.erp-feed-items .erp-feed-icon.warn { background: rgba(245,158,11,.18); color: #fcd34d; }
.erp-feed-items .erp-feed-icon.alert { background: rgba(220,38,38,.18); color: #fca5a5; }
.erp-feed-items .erp-feed-icon.info { background: rgba(34,211,238,.18); color: #67e8f9; }
.erp-feed-items .nm { font-weight: 700; font-family: var(--font-display); letter-spacing: -.005em; }
.erp-feed-items .nm small { opacity: .55; font-weight: 500; }
.erp-feed-items time { font-family: var(--font-mono, monospace); font-size: .68rem; opacity: .6; }
@keyframes erpFeedScroll {
  0%, 14%   { transform: translateY(0); }
  20%, 34%  { transform: translateY(-40px); }
  40%, 54%  { transform: translateY(-80px); }
  60%, 74%  { transform: translateY(-120px); }
  80%, 94%  { transform: translateY(-160px); }
  100%      { transform: translateY(-200px); }
}

/* Floating chip badges over the dashboard */
.erp-cc .erp-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, .96);
  color: var(--brand-600);
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .68rem;
  box-shadow: 0 10px 26px rgba(15, 18, 48, .28);
  z-index: 3;
}
.erp-cc .erp-chip svg { width: 11px; height: 11px; color: var(--accent-500); }
.erp-cc .erp-chip.c1 { top: -12px; left: 24px; animation: erpChipBob 4.4s ease-in-out infinite; }
.erp-cc .erp-chip.c2 { bottom: -12px; right: 24px; animation: erpChipBob 5.2s ease-in-out infinite reverse; }
@keyframes erpChipBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 880px) {
  .erp-grid { grid-template-columns: 1fr; }
  .erp-counter, .erp-donut, .erp-branches, .erp-feed { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .erp-cc::after, .erp-bar .erp-orb, .erp-bar .pill-live::before,
  .erp-counter .spark .pt, .erp-donut svg .fg,
  .erp-branches svg .br-ring, .erp-branches svg .br-pulse,
  .erp-feed-items ul, .erp-cc .erp-chip { animation: none; }
}

/* ============================================================
   Compare panel — "Why we're better" head-to-head chart
   ============================================================ */
.compare-panel {
  background: linear-gradient(135deg, #0F1230 0%, #1B1B7F 60%, #2d2e83 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 18, 48, .32), 0 0 0 1px rgba(124, 58, 237, .15);
}
.compare-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(124, 58, 237, .25), transparent 55%),
    radial-gradient(500px 280px at 90% 90%, rgba(34, 211, 238, .22), transparent 55%);
  pointer-events: none;
}
.compare-panel::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7c3aed, #22d3ee, #3A3AE6, transparent);
  background-size: 200% 100%;
  animation: compareShimmer 5s linear infinite;
}
@keyframes compareShimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.compare-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.compare-head .ttl {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .92rem;
  letter-spacing: -.01em;
}
.compare-head .ttl svg { width: 18px; height: 18px; color: #22d3ee; }
.compare-legend {
  display: flex; gap: 16px;
  font-size: .72rem;
  letter-spacing: .04em;
}
.compare-legend .lg {
  display: inline-flex; align-items: center; gap: 7px;
  opacity: .88;
}
.compare-legend .lg-sw {
  width: 10px; height: 10px; border-radius: 3px;
}
.compare-legend .lg-us .lg-sw { background: linear-gradient(135deg, #22d3ee, #7c3aed); box-shadow: 0 0 8px rgba(124, 58, 237, .6); }
.compare-legend .lg-them .lg-sw { background: rgba(255, 255, 255, .25); }
.compare-rows { position: relative; display: flex; flex-direction: column; gap: 18px; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.compare-row-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.compare-row-head .lab {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .85rem;
  letter-spacing: -.005em;
}
.compare-row-head .lab svg { width: 15px; height: 15px; color: #22d3ee; opacity: .85; }
.compare-row-head .delta {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(34, 197, 94, .18);
  color: #6ee7b7;
  border: 1px solid rgba(34, 197, 94, .35);
}
.compare-pair { display: grid; gap: 5px; }
.compare-bar {
  display: grid;
  grid-template-columns: 64px 1fr 70px;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
}
.compare-bar .who {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .65rem;
}
.compare-bar.us .who { color: #93c5fd; }
.compare-bar.them .who { color: rgba(255, 255, 255, .55); }
.compare-bar .track {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  position: relative;
}
.compare-bar .fill {
  position: absolute;
  inset: 0;
  width: var(--w);
  border-radius: 99px;
  animation: compareBarGrow 1.6s var(--ease-out, cubic-bezier(.22,.61,.36,1));
}
.compare-bar.us .fill {
  background: linear-gradient(90deg, #22d3ee 0%, #7c3aed 100%);
  box-shadow: 0 0 14px rgba(124, 58, 237, .45), inset 0 0 6px rgba(255, 255, 255, .15);
}
.compare-bar.them .fill {
  background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,.18));
}
@keyframes compareBarGrow { from { width: 0; } }
.compare-bar .val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  text-align: right;
  letter-spacing: -.01em;
}
.compare-bar.us .val { color: #fff; }
.compare-bar.them .val { color: rgba(255, 255, 255, .55); }
.compare-foot {
  position: relative;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .76rem;
  opacity: .82;
}
.compare-foot .src { font-family: var(--font-mono, monospace); font-size: .7rem; opacity: .6; }
@media (max-width: 640px) {
  .compare-panel { padding: 22px 18px; }
  .compare-bar { grid-template-columns: 48px 1fr 60px; gap: 8px; }
  .compare-bar .val { font-size: .76rem; }
  .compare-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .compare-panel::after, .compare-bar .fill { animation: none; }
}

/* Differentiator chips (compact strip below the chart) */
.diff-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.diff-chip {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
}
[data-theme="dark"] .diff-chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.diff-chip:hover {
  border-color: rgba(37, 99, 235, .35);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}
.diff-chip .diff-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  color: #fff;
}
.diff-chip .diff-icon svg { width: 16px; height: 16px; }
.diff-chip .diff-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: .82rem;
  letter-spacing: -.01em;
  margin-bottom: 2px;
}
.diff-chip .diff-text span { font-size: .72rem; opacity: .68; line-height: 1.35; display: block; }

/* --- Verticals served (industries grid, 13 cards) --- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.ind-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
[data-theme="dark"] .ind-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.ind-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}
.ind-card .ind-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(45, 46, 131, .08));
  color: var(--accent-500);
  flex-shrink: 0;
}
.ind-card .ind-icon svg { width: 20px; height: 20px; }
.ind-card .nm {
  font-family: var(--font-display);
  font-weight: 700; font-size: .88rem;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.ind-card .tg {
  display: inline-block;
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 5px;
  background: rgba(37, 99, 235, .1);
  color: var(--accent-500);
}
.ind-card .tg.tg-financial   { background: rgba(37, 99, 235, .1);  color: #2563eb; }
.ind-card .tg.tg-insurer     { background: rgba(16, 185, 129, .12); color: #047857; }
[data-theme="dark"] .ind-card .tg.tg-insurer { color: #6ee7b7; }
.ind-card .tg.tg-gaming      { background: rgba(245, 158, 11, .14); color: #b45309; }
[data-theme="dark"] .ind-card .tg.tg-gaming { color: #fcd34d; }
.ind-card .tg.tg-trade       { background: rgba(168, 85, 247, .12); color: #6b21a8; }
[data-theme="dark"] .ind-card .tg.tg-trade { color: #d8b4fe; }
.ind-card .tg.tg-professional{ background: rgba(14, 165, 233, .14); color: #075985; }
[data-theme="dark"] .ind-card .tg.tg-professional { color: #7dd3fc; }
.ind-card .tg.tg-investor    { background: rgba(236, 72, 153, .12); color: #9d174d; }
[data-theme="dark"] .ind-card .tg.tg-investor { color: #f9a8d4; }

/* --- Live network world map (Global Presence hero panel) --- */
.world-wrap {
  position: relative;
  background: linear-gradient(180deg, #0F1230 0%, #1B1B7F 100%);
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(15, 18, 48, .28);
  margin-bottom: 28px;
}
.world-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(197, 197, 240, .18);
  font-size: .78rem;
}
.world-head .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 211, 238, .15);
  color: #22d3ee;
  padding: 5px 11px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .1em;
  font-size: .68rem;
  text-transform: uppercase;
  border: 1px solid rgba(34, 211, 238, .4);
}
.world-head .live-pill .ld {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: worldLivePulse 1.5s ease-in-out infinite;
}
@keyframes worldLivePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: .55; }
}
.world-head .world-stat { color: rgba(255, 255, 255, .75); letter-spacing: .04em; }
.world-head .world-stat strong {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .92rem;
  margin-right: 5px;
}
.world-svg-v2 {
  width: 100%;
  height: auto;
  display: block;
  padding: 14px 16px 0;
}
.world-svg-v2 .ring {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 1.4;
  opacity: .7;
  animation: worldDotPulse 2.4s ease-out infinite;
}
.world-svg-v2 .ring.r2 { animation-delay: -1.2s; }
.world-svg-v2 .ring.sm {
  stroke: #22d3ee;
  stroke-width: 1;
  opacity: .55;
  animation: worldDotPulse 2.6s ease-out infinite;
}
.world-svg-v2 .dot {
  fill: #22d3ee;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, .7));
}
.world-svg-v2 .dot-hq {
  fill: #fff;
  stroke: #7c3aed;
  stroke-width: 2;
  filter: drop-shadow(0 0 14px rgba(124, 58, 237, 1));
}
.world-svg-v2 .city-lbl {
  fill: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  text-anchor: middle;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
@keyframes worldDotPulse {
  0%   { r: 5; opacity: .85; }
  100% { r: 22; opacity: 0; }
}
.world-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 12px 22px 14px;
  border-top: 1px solid rgba(197, 197, 240, .18);
  color: rgba(255, 255, 255, .85);
  font-size: .76rem;
}
.world-legend .lg-item { display: inline-flex; align-items: center; gap: 8px; }
.world-legend .lg-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, .6);
}
.world-legend .lg-dot.hq {
  background: #fff;
  border: 2px solid #7c3aed;
  box-shadow: 0 0 12px rgba(124, 58, 237, .7);
}
.world-legend .lg-icon { color: #22d3ee; display: inline-flex; }
.world-legend .lg-icon svg { width: 14px; height: 14px; }
@media (max-width: 540px) {
  .world-head { padding: 10px 14px; gap: 8px 14px; font-size: .72rem; }
  .world-head .live-pill { font-size: .62rem; padding: 4px 9px; }
  .world-svg-v2 { padding: 10px 8px 0; }
  .world-legend { gap: 6px 14px; padding: 10px 14px 12px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .world-svg-v2 .ring,
  .world-head .live-pill .ld { animation: none; }
  .world-svg-v2 .ring { opacity: .35; }
}

/* --- Regional coverage cards (Global Presence · Local Service) --- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.region-card {
  position: relative;
  padding: 22px 20px 18px;
  background: var(--surface, #fff);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
[data-theme="dark"] .region-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.region-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15, 23, 42, .1); border-color: rgba(37, 99, 235, .35); }
.region-card .rg-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #fff;
  margin-bottom: 12px;
}
.region-card .rg-icon svg { width: 20px; height: 20px; }
.region-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -.01em;
  color: var(--brand-600);
}
[data-theme="dark"] .region-card h3 { color: #93c5fd; }
.region-card .rg-cnt {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .55;
  margin-bottom: 12px;
}
.region-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.region-card li {
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .88;
}
.more-countries {
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(45, 46, 131, .04));
  border: 1px dashed rgba(37, 99, 235, .25);
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 6px;
  align-items: center;
}
.more-countries .num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  align-self: center;
}
.more-countries .lab {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.more-countries .country-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: .75rem;
  opacity: .8;
}
.more-countries .country-tags > span { white-space: nowrap; }
@media (max-width: 540px) {
  .more-countries { grid-template-columns: 1fr; text-align: center; }
  .more-countries .num { grid-row: auto; margin: 0 auto; }
  .more-countries .country-tags { grid-column: 1; justify-content: center; }
}

/* --- Coverage stats strip (5 cells, horizontal) --- */
.coverage-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  padding: 22px;
  background: linear-gradient(135deg, #1e1f6b 0%, #2d2e83 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(30, 31, 107, .25);
}
.coverage-strip .cs-cell {
  text-align: center;
  padding: 10px 6px;
}
.coverage-strip .cs-icon {
  width: 38px; height: 38px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12);
  color: #93c5fd;
}
.coverage-strip .cs-icon svg { width: 18px; height: 18px; }
.coverage-strip .cs-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.coverage-strip .cs-num span {
  font-size: .9rem;
  font-weight: 600;
  opacity: .8;
  margin-left: 2px;
}
.coverage-strip .cs-lbl {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .85;
  margin-top: 4px;
}

/* --- Client experiences (testimonials marquee) --- */
.tst-scroller {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tst-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: tstScroll 46s linear infinite;
}
.tst-scroller:hover .tst-track { animation-play-state: paused; }
@keyframes tstScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
[dir="rtl"] .tst-track { animation-direction: reverse; }
.testimonial {
  flex: 0 0 360px;
  background: var(--surface, #fff);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
}
[data-theme="dark"] .testimonial { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.testimonial .quote-text {
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 16px;
  font-style: italic;
  opacity: .92;
}
.testimonial .quote-text::before {
  content: '"';
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: .8;
  color: var(--accent-500);
  margin-bottom: 2px;
}
.testimonial .quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, .06);
}
[data-theme="dark"] .testimonial .quote-author { border-top-color: rgba(255,255,255,.08); }
.testimonial .quote-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
}
.testimonial .quote-name { font-weight: 700; font-size: .88rem; letter-spacing: -.01em; }
.testimonial .quote-role { font-size: .74rem; opacity: .65; margin-top: 2px; }
.testimonial .quote-rating { font-size: .82rem; color: #f59e0b; letter-spacing: 1px; margin-top: 4px; }
@media (max-width: 540px) {
  .testimonial { flex-basis: 280px; padding: 16px 18px; }
}

/* --- Support channels split (text + bullets) --- */
.support-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: start;
}
.ss-left .ss-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 20px;
  border-radius: 99px;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.ss-left .ss-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37, 99, 235, .5); color: #fff; }
.ss-left .ss-cta svg { width: 16px; height: 16px; }
.ss-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.ss-bullet {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface, #fff);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  align-items: start;
  transition: border-color var(--dur), transform var(--dur);
}
[data-theme="dark"] .ss-bullet { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.ss-bullet:hover { border-color: rgba(37, 99, 235, .35); transform: translateX(2px); }
[dir="rtl"] .ss-bullet:hover { transform: translateX(-2px); }
.ss-marker {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(45, 46, 131, .08));
  color: var(--accent-500);
}
.ss-marker svg { width: 18px; height: 18px; }
.ss-bullet strong {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: -.01em;
  margin-bottom: 2px;
}
.ss-bullet span { font-size: .8rem; line-height: 1.5; opacity: .8; display: block; }
.ss-bullet .ss-link {
  display: inline-block;
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-500);
  text-decoration: none;
}
.ss-bullet .ss-link:hover { text-decoration: underline; }
@media (max-width: 840px) {
  .support-split { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Get in Touch CTA (centered, prominent) --- */
.git-cta {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px;
}
.git-cta .git-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.git-cta .btn { display: inline-flex; align-items: center; gap: 8px; }
.git-cta .btn svg { width: 16px; height: 16px; }

/* ============================================================
   Screening page — extended panels imported from KYC source
   AI Impact · Configurable Lists · Pipeline flowchart
   ============================================================ */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-grid.reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split-grid, .split-grid.reverse { grid-template-columns: 1fr; gap: 32px; } .split-grid.reverse > :first-child { order: 0; } }
.pill-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(37, 99, 235, .08);
  color: var(--accent-500);
  border: 1px solid rgba(37, 99, 235, .25);
  font-family: var(--font-display);
  font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.pill-eyebrow svg { width: 14px; height: 14px; }
.feat-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feat-list li { display: flex; gap: 10px; padding: 6px 0; font-size: .88rem; line-height: 1.55; }
.feat-list li svg { width: 16px; height: 16px; flex-shrink: 0; color: #16a34a; margin-top: 3px; }

/* ----- AI Impact: SNAP-AI Live Oversight card ----- */
.hero-art { position: relative; padding: 16px 0; }
.floating-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(15, 23, 42, .1);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
  font-family: var(--font-display);
  font-weight: 700; font-size: .72rem;
  color: var(--brand-600);
  z-index: 3;
}
[data-theme="dark"] .floating-chip { background: rgba(30, 41, 59, .96); color: #e2e8f0; border-color: rgba(255,255,255,.12); }
.floating-chip svg { width: 12px; height: 12px; color: var(--accent-500); }
.floating-chip.fc-1 { top: -6px; left: -6px; animation: chipFloat 4.5s ease-in-out infinite; }
.floating-chip.fc-2 { bottom: -6px; right: -6px; animation: chipFloat 5.2s ease-in-out infinite reverse; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hero-card {
  background: linear-gradient(180deg, #0F1230 0%, #1B1B7F 100%);
  border-radius: 20px;
  padding: 0;
  color: #fff;
  box-shadow: 0 28px 60px rgba(15, 18, 48, .35), 0 0 0 1px rgba(124, 58, 237, .18);
  overflow: hidden;
}
.hc-snapai-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-display);
  font-weight: 700; font-size: .82rem;
}
.hc-snapai-bar > span:nth-of-type(1) { flex: 1; }
.ai-orb {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  color: #fff;
  box-shadow: 0 0 14px rgba(124, 58, 237, .6);
  animation: aiOrbPulse 2.4s ease-in-out infinite;
}
.ai-orb svg { width: 14px; height: 14px; }
@keyframes aiOrbPulse { 0%,100% { box-shadow: 0 0 14px rgba(124,58,237,.6); } 50% { box-shadow: 0 0 22px rgba(34,211,238,.85); } }
.hc-snapai-bar .live {
  font-size: .62rem; letter-spacing: .12em;
  padding: 3px 9px; border-radius: 99px;
  background: rgba(34, 211, 238, .15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, .4);
}
.hc-detail {
  padding: 16px 18px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hc-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hc-flag {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 20px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800; font-size: .65rem;
  padding: 0 6px;
}
.hc-name { flex: 1; font-weight: 700; font-size: .92rem; }
.hc-id { font-family: var(--font-mono, ui-monospace, monospace); font-size: .7rem; opacity: .6; }
.hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.hc-stat .lab { font-size: .68rem; opacity: .7; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.hc-bar {
  position: relative;
  height: 6px; border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.hc-bar::after {
  content: ''; position: absolute; inset: 0;
  width: var(--w, 50%);
  background: linear-gradient(90deg, #22d3ee, #7c3aed);
  border-radius: 99px;
  animation: hcBarGrow 1.4s var(--ease-out, ease-out);
}
.hc-bar.risk::after { background: linear-gradient(90deg, #f97316, #dc2626); }
@keyframes hcBarGrow { from { width: 0; } }
.hc-stat .val { font-family: var(--font-display); font-weight: 800; font-size: .82rem; margin-top: 5px; }
.hc-stat .val.high { color: #fca5a5; }
.hc-pm {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  font-size: .76rem;
}
.hc-pm svg { width: 14px; height: 14px; color: #22d3ee; flex-shrink: 0; }
.hc-decision {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .2), rgba(34, 211, 238, .12));
  border: 1px solid rgba(124, 58, 237, .4);
  border-radius: 10px;
  font-weight: 700; font-size: .82rem;
}
.hc-decision svg { width: 16px; height: 16px; color: #c084fc; flex-shrink: 0; }
.hc-decision > span:nth-of-type(1) { flex: 1; }
.ai-tag {
  font-size: .62rem; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(34, 211, 238, .18);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, .4);
}
.hc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: .8rem;
}
.hc-row .nm { font-weight: 700; }
.hc-row .nm small { opacity: .6; font-weight: 500; }
.hc-row .meta { font-size: .68rem; opacity: .65; margin-top: 2px; }
.hc-row > div:nth-of-type(1) { flex: 1; }
.hc-row .verdict {
  font-family: var(--font-display);
  font-weight: 700; font-size: .62rem;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(34, 197, 94, .15);
  color: #86efac;
  letter-spacing: .06em;
}
.hc-row.warn .verdict { background: rgba(251, 191, 36, .15); color: #fde047; }
.hc-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  font-size: .74rem; opacity: .85;
}
.hc-foot .left { display: flex; align-items: center; gap: 8px; }
.hc-foot svg { width: 13px; height: 13px; color: #22d3ee; }
.live-cnt {
  font-family: var(--font-display);
  font-weight: 800; font-size: .95rem;
  color: #22d3ee;
}

/* ----- Configurable Lists panel ----- */
.cfg-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(15, 18, 48, .14), 0 0 0 1px rgba(15, 23, 42, .04);
  overflow: hidden;
}
[data-theme="dark"] .cfg-panel { background: #0f172a; box-shadow: 0 28px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); color: #e2e8f0; }
.cfg-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1e1f6b, #2d2e83);
  color: #fff;
}
.cfg-head .ttl { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.cfg-head .ttl svg { width: 14px; height: 14px; }
.cfg-head .pill-mini {
  font-size: .62rem; letter-spacing: .12em;
  padding: 3px 9px; border-radius: 99px;
  background: rgba(34, 211, 238, .15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, .4);
  font-weight: 700;
}
.cfg-cols {
  display: grid;
  grid-template-columns: 32px 1.6fr 1.6fr 36px;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, .04);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .65;
}
[data-theme="dark"] .cfg-cols { background: rgba(255,255,255,.04); }
.cfg-section-h {
  padding: 8px 16px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-600);
  background: rgba(37, 99, 235, .04);
}
[data-theme="dark"] .cfg-section-h { color: #93c5fd; background: rgba(147,197,253,.06); }
.cfg-row {
  display: grid;
  grid-template-columns: 32px 1.6fr 1.6fr 36px;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .05);
  transition: background .2s;
}
[data-theme="dark"] .cfg-row { border-bottom-color: rgba(255,255,255,.06); }
.cfg-row:hover { background: rgba(37, 99, 235, .03); }
.cfg-row .flag {
  display: inline-grid; place-items: center;
  width: 28px; height: 20px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800; font-size: .58rem;
  letter-spacing: .04em;
  padding: 0 4px;
}
.cfg-row .info .nm { font-weight: 700; font-size: .84rem; letter-spacing: -.01em; }
.cfg-row .info .cnt { font-size: .68rem; opacity: .6; margin-top: 2px; }
.cfg-reason { font-size: .72rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfg-reason .dash { opacity: .4; }
.cfg-reason .rsn {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: .68rem;
  padding: 3px 9px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: .04em;
}
.cfg-reason .rsn svg { width: 11px; height: 11px; }
.cfg-reason .rsn.ok { background: rgba(34, 197, 94, .15); color: #15803d; }
[data-theme="dark"] .cfg-reason .rsn.ok { color: #86efac; }
.cfg-reason .rsn.embargo { background: rgba(220, 38, 38, .15); color: #b91c1c; }
[data-theme="dark"] .cfg-reason .rsn.embargo { color: #fca5a5; }
.cfg-reason .rsn.review, .cfg-reason .rsn.policy { background: rgba(245, 158, 11, .15); color: #b45309; }
[data-theme="dark"] .cfg-reason .rsn.review, [data-theme="dark"] .cfg-reason .rsn.policy { color: #fde047; }
.cfg-reason .timer { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono, monospace); font-size: .68rem; opacity: .7; }
.cfg-reason .timer svg { width: 11px; height: 11px; }
.cfg-row .sw {
  position: relative;
  width: 32px; height: 18px;
  border-radius: 99px;
  background: rgba(15, 23, 42, .15);
  justify-self: end;
  transition: background .2s;
}
[data-theme="dark"] .cfg-row .sw { background: rgba(255,255,255,.15); }
.cfg-row .sw::after {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: left .2s, background .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cfg-row.on .sw { background: #16a34a; }
.cfg-row.on .sw::after { left: 16px; }
.cfg-row.off { opacity: .55; }
.cfg-row.off .sw { background: rgba(220, 38, 38, .35); }
.cfg-row.paused .sw { background: #f59e0b; }
.cfg-row.paused .sw::after { left: 9px; }
.cfg-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding: 18px 16px;
  background: rgba(15, 23, 42, .03);
}
[data-theme="dark"] .cfg-stats { background: rgba(255,255,255,.03); }
.stat-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
[data-theme="dark"] .stat-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.stat-card .lab { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-bottom: 8px; }
.stat-card .val { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; margin: 6px 0 2px; }
.stat-card .delta { font-size: .65rem; opacity: .7; }
.stat-card .delta.up { color: #16a34a; }
.donut { width: 56px; height: 56px; margin: 0 auto; }
.donut .bg { fill: none; stroke: rgba(15,23,42,.1); stroke-width: 3.6; }
.donut .fg { fill: none; stroke: url(#donutGrad); stroke-width: 3.6; stroke-dasharray: 60 100; stroke-dashoffset: 25; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; animation: donutSpin 1.4s ease-out; }
@keyframes donutSpin { from { stroke-dasharray: 0 100; } }
.spark { width: 100%; height: 32px; }
.spark .fl { fill: rgba(124, 58, 237, .15); }
.spark .ln { fill: none; stroke: #7c3aed; stroke-width: 1.6; }
.spark .pt { fill: #22d3ee; }
.bars { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.bars .b { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 6px; }
.bars .b .lbl { font-size: .62rem; font-weight: 700; opacity: .65; }
.bars .b .tr {
  height: 5px; border-radius: 99px;
  background: rgba(15, 23, 42, .08);
  position: relative;
}
[data-theme="dark"] .bars .b .tr { background: rgba(255,255,255,.08); }
.bars .b .tr::after {
  content: ''; position: absolute; inset: 0;
  width: var(--w);
  background: linear-gradient(90deg, #3A3AE6, #7c3aed);
  border-radius: 99px;
}
.cfg-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid rgba(15, 23, 42, .06);
  font-size: .78rem;
}
[data-theme="dark"] .cfg-foot { border-top-color: rgba(255,255,255,.06); }
.cfg-foot .status b { font-weight: 800; }
.apply-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 0; border-radius: 99px;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: .76rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
  transition: transform .2s, box-shadow .2s;
}
.apply-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 99, 235, .5); }
.apply-btn svg { width: 13px; height: 13px; }

/* ----- Pipeline flowchart ----- */
.fc-wrap {
  background: linear-gradient(180deg, #ffffff 0%, rgba(37, 99, 235, .03) 100%);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  padding: 22px 22px 26px;
  box-shadow: 0 16px 42px rgba(15, 18, 48, .08);
}
[data-theme="dark"] .fc-wrap { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(147,197,253,.04)); border-color: rgba(255,255,255,.08); }
.fc-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 800; font-size: .85rem;
  color: var(--brand-600);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px;
}
[data-theme="dark"] .fc-title { color: #93c5fd; }
.fc-title svg { width: 16px; height: 16px; }
.fc-row {
  display: grid;
  grid-template-columns: repeat(11, auto);
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.fc-row::-webkit-scrollbar { height: 6px; }
.fc-row::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .15); border-radius: 3px; }
.fc-box {
  background: #fff;
  border: 1.5px dashed rgba(37, 99, 235, .35);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 140px;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
[data-theme="dark"] .fc-box { background: rgba(255,255,255,.04); border-color: rgba(147,197,253,.3); }
.fc-box:hover { transform: translateY(-3px); border-color: var(--accent-500); box-shadow: 0 12px 26px rgba(37, 99, 235, .18); border-style: solid; }
.fc-num {
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-500);
  margin-bottom: 6px;
}
.fc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(34, 211, 238, .1));
  color: #7c3aed;
}
.fc-icon svg { width: 16px; height: 16px; }
.fc-name { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: -.01em; margin-bottom: 3px; }
.fc-meta { font-size: .66rem; opacity: .65; line-height: 1.35; }
.fc-arrow {
  width: 36px;
  align-self: center;
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 58, 237, .35), rgba(34, 211, 238, .35));
  margin: 0 4px;
}
.fc-arrow::after {
  content: '';
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(34, 211, 238, .6);
}
.fc-arrow .pulse {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: fcPulse 2.4s linear infinite;
}
@keyframes fcPulse { from { left: 0; opacity: 0; } 10%, 90% { opacity: 1; } to { left: 100%; opacity: 0; } }
.fc-vdown {
  width: 2px; height: 24px;
  background: linear-gradient(180deg, var(--accent-500), transparent);
  margin: 8px auto;
}
.fc-vdown[style*="--down-color"] { background: linear-gradient(180deg, var(--down-color, #16a34a), transparent); }
.fc-detail {
  background: linear-gradient(180deg, rgba(124, 58, 237, .04), rgba(34, 211, 238, .03));
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 4px;
}
[data-theme="dark"] .fc-detail { background: linear-gradient(180deg, rgba(124,58,237,.1), rgba(34,211,238,.06)); }
.fc-detail-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .78rem;
  margin-bottom: 12px;
}
.fc-detail-head svg { width: 14px; height: 14px; color: var(--accent-500); }
.fc-detail-head .badge-live {
  margin-left: auto;
  font-size: .58rem; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(34, 211, 238, .15);
  color: #0e7490;
  border: 1px solid rgba(34, 211, 238, .4);
  font-weight: 800;
}
[data-theme="dark"] .fc-detail-head .badge-live { color: #22d3ee; }
.algo-row {
  display: grid;
  grid-template-columns: 32px 1fr 60px 50px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, .05);
}
.algo-row:last-child { border-bottom: 0; }
[data-theme="dark"] .algo-row { border-bottom-color: rgba(255,255,255,.06); }
.algo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  color: #fff;
}
.algo-icon svg { width: 14px; height: 14px; }
.algo-name { font-weight: 700; font-size: .8rem; }
.algo-desc { font-size: .68rem; opacity: .65; margin-top: 2px; line-height: 1.4; }
.algo-bar {
  height: 5px; border-radius: 99px;
  background: rgba(15, 23, 42, .08);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .algo-bar { background: rgba(255,255,255,.08); }
.algo-bar::after {
  content: '';
  position: absolute; inset: 0;
  width: 100%;
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  border-radius: 99px;
  animation: algoBarGrow 1.4s ease-out;
}
@keyframes algoBarGrow { from { width: 0; } }
.algo-score {
  font-family: var(--font-display);
  font-weight: 800; font-size: .82rem;
  color: var(--brand-600);
  text-align: right;
}
[data-theme="dark"] .algo-score { color: #93c5fd; }
.fc-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.fc-branch {
  text-align: center;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
[data-theme="dark"] .fc-branch { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.fc-branch svg { width: 22px; height: 22px; margin-bottom: 6px; }
.fc-branch .nm { font-family: var(--font-display); font-weight: 700; font-size: .82rem; }
.fc-branch .ds { font-size: .68rem; opacity: .65; margin-top: 3px; }
.fc-branch.cleared svg { color: #16a34a; } .fc-branch.cleared:hover { border-color: #16a34a; box-shadow: 0 10px 22px rgba(22, 163, 74, .2); transform: translateY(-3px); }
.fc-branch.escalated svg { color: #f59e0b; } .fc-branch.escalated:hover { border-color: #f59e0b; box-shadow: 0 10px 22px rgba(245, 158, 11, .2); transform: translateY(-3px); }
.fc-branch.sar svg { color: #dc2626; } .fc-branch.sar:hover { border-color: #dc2626; box-shadow: 0 10px 22px rgba(220, 38, 38, .2); transform: translateY(-3px); }

@media (max-width: 880px) {
  .cfg-stats { grid-template-columns: 1fr; }
  .fc-branches { grid-template-columns: 1fr; }
  .hc-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-chip, .ai-orb, .fc-arrow .pulse, .hc-bar::after, .algo-bar::after, .donut .fg { animation: none; }
}
