:root {
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-dark: #0a1628;
    --bg-darker: #050d18;
    --ink: #0a1628;
    --ink-soft: #455066;
    --muted: #8893a8;
    --line: #e3e8ef;
    --line-dark: rgba(255,255,255,0.1);
    --primary: #2563b8;
    --primary-dark: #1e4d8c;
    --primary-light: #4a82d4;
    --accent-soft: #b8d0ec;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
  }

  body[dir="rtl"] {
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  }

  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  /* ============ NAV ============ */
  nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    box-shadow: 0 0 0 rgba(10, 22, 40, 0);
    z-index: 100;
    padding: 0.9rem 0;
    transition:
      background 0.25s cubic-bezier(.2,.8,.2,1),
      border-color 0.25s cubic-bezier(.2,.8,.2,1),
      box-shadow 0.25s cubic-bezier(.2,.8,.2,1),
      padding 0.25s cubic-bezier(.2,.8,.2,1);
  }
  nav.scrolled {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(214, 220, 229, 0.6);
    box-shadow:
      0 1px 0 rgba(10, 22, 40, 0.03),
      0 8px 24px -12px rgba(10, 22, 40, 0.12);
    padding: 0.7rem 0;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2.5rem;
  }

  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-self: start;
  }
  .logo img {
    height: 42px;
    width: auto;
    display: block;
  }

  .nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
    justify-self: center;
  }

  .nav-links li { display: flex; }

  .nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.003em;
    transition: color 0.22s cubic-bezier(.2,.8,.2,1);
    padding: 0.5rem 0.95rem;
    border-radius: 6px;
  }
  .nav-links a:hover {
    color: var(--ink);
  }

  /* Active state — single highlight controlled by JS scroll-spy.
     No underline: distinguished purely by color shift to brand primary.
     This is the Stripe/Vercel pattern: color carries the active signal,
     no weight change so no layout shift. */
  .nav-links a.active {
    color: var(--primary);
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
  }

  .lang-toggle {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.003em;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(.2,.8,.2,1);
    font-family: inherit;
  }
  .lang-toggle:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg-alt);
  }
  .lang-toggle:active {
    transform: scale(0.97);
    transition-duration: 0.08s;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition:
      background 0.22s cubic-bezier(.2,.8,.2,1),
      transform 0.22s cubic-bezier(.2,.8,.2,1),
      box-shadow 0.22s cubic-bezier(.2,.8,.2,1);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.15) inset,
      0 4px 14px -6px rgba(37, 99, 184, 0.5);
    /* Native <button> resets */
    border: 0;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }
  .nav-cta:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
  }
  .nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.22) inset,
      0 10px 28px -8px rgba(37, 99, 184, 0.8),
      0 0 0 4px rgba(74, 130, 212, 0.12);
  }
  .nav-cta:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
  }
  .nav-cta svg {
    transition: transform 0.22s cubic-bezier(.2,.8,.2,1);
  }
  .nav-cta:hover svg {
    transform: translateX(3px);
  }
  body[dir="rtl"] .nav-cta svg { transform: scaleX(-1); }
  body[dir="rtl"] .nav-cta:hover svg { transform: scaleX(-1) translateX(3px); }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-dark);
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* SVG-based hero background — abstract data/tech imagery */
  .hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 40%, rgba(37, 99, 184, 0.4) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 60%, rgba(74, 130, 212, 0.3) 0%, transparent 50%),
      linear-gradient(135deg, #0a1628 0%, #1a3358 50%, #0a1628 100%);
  }

  .hero-bg::after {
    content: '';
    position: absolute;
    inset: -60px; /* extend so grid can drift without exposing edges */
    background-image:
      linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(135deg, transparent 30%, black 70%);
    -webkit-mask-image: linear-gradient(135deg, transparent 30%, black 70%);
    animation: gridDrift 18s linear infinite;
    will-change: transform;
  }
  @keyframes gridDrift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(60px, 60px, 0); }
  }

  /* ======= Hero SVG layered motion ======= */

  /* (a) Floating nodes — gentle vertical drift, each with its own rhythm */
  .hero-node {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform, opacity;
  }
  .hero-node-1 { animation: nodeFloat 5.5s ease-in-out 0s     infinite, nodePulse 3.0s ease-in-out 0s    infinite; }
  .hero-node-2 { animation: nodeFloat 6.2s ease-in-out 1.0s   infinite, nodePulse 3.4s ease-in-out 0.6s  infinite; }
  .hero-node-3 { animation: nodeFloat 7.0s ease-in-out 0.4s   infinite, nodePulse 3.8s ease-in-out 1.2s  infinite; }
  .hero-node-4 { animation: nodeFloat 5.2s ease-in-out 1.6s   infinite, nodePulse 3.2s ease-in-out 1.8s  infinite; }
  .hero-node-5 { animation: nodeFloat 5.8s ease-in-out 0.8s   infinite, nodePulse 3.6s ease-in-out 2.2s  infinite; }

  @keyframes nodeFloat {
    0%, 100% { transform: translate3d(0,  0px, 0); }
    50%      { transform: translate3d(0, -9px, 0); }
  }
  @keyframes nodePulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
  }

  /* (b) Connection lines — flowing dashes simulate data moving toward the hub */
  .flow-line {
    stroke-dasharray: 8 14;
    will-change: stroke-dashoffset;
    animation: dataFlow 3.2s linear infinite;
  }
  .flow-line-1 { animation-duration: 3.0s; animation-delay:  0s; }
  .flow-line-2 { animation-duration: 3.6s; animation-delay: -1.0s; }
  .flow-line-3 { animation-duration: 3.2s; animation-delay: -1.8s; }
  .flow-line-4 { animation-duration: 3.8s; animation-delay: -0.5s; }
  .flow-line-5 { animation-duration: 2.8s; animation-delay: -2.4s; }
  .flow-line-6 { animation-duration: 4.0s; animation-delay: -1.4s; opacity: 0.7; }
  .flow-line-7 { animation-duration: 3.4s; animation-delay: -2.6s; opacity: 0.7; }

  @keyframes dataFlow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -44; } /* two full dash cycles (8+14) × 2 */
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-bg::after,
    .hero-node,
    .flow-line { animation: none; }
  }

  .hero-svg-overlay {
    position: absolute;
    right: 0; top: 0;
    width: 60%; height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
  }

  /* Floating ambient particles (low-opacity, GPU-accelerated) */
  .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
  }
  .hero-particles span {
    position: absolute;
    display: block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0;
    will-change: transform, opacity;
    box-shadow: 0 0 8px rgba(74, 130, 212, 0.6);
  }
  .hero-particles span:nth-child(1) { left: 8%;  top: 78%; animation: floatUp 14s linear 0s    infinite; }
  .hero-particles span:nth-child(2) { left: 22%; top: 92%; animation: floatUp 18s linear 2.1s  infinite; }
  .hero-particles span:nth-child(3) { left: 38%; top: 85%; animation: floatUp 16s linear 4.6s  infinite; width: 3px; height: 3px; }
  .hero-particles span:nth-child(4) { left: 54%; top: 95%; animation: floatUp 20s linear 1.2s  infinite; }
  .hero-particles span:nth-child(5) { left: 68%; top: 80%; animation: floatUp 15s linear 6.3s  infinite; width: 3px; height: 3px; }
  .hero-particles span:nth-child(6) { left: 82%; top: 90%; animation: floatUp 19s linear 3.8s  infinite; }
  .hero-particles span:nth-child(7) { left: 92%; top: 75%; animation: floatUp 17s linear 7.5s  infinite; width: 2px; height: 2px; }
  .hero-particles span:nth-child(8) { left: 14%; top: 88%; animation: floatUp 22s linear 9.2s  infinite; width: 2px; height: 2px; }
  @keyframes floatUp {
    0%   { transform: translate3d(0, 0, 0) scale(0.6);   opacity: 0; }
    10%  { opacity: 0.6; }
    50%  { transform: translate3d(20px, -180px, 0) scale(1); opacity: 0.9; }
    90%  { opacity: 0.4; }
    100% { transform: translate3d(40px, -360px, 0) scale(0.4); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-particles { display: none; }
  }

  body[dir="rtl"] .hero-svg-overlay {
    right: auto;
    left: 0;
    transform: scaleX(-1);
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 13, 24, 0.92) 0%, rgba(10, 22, 40, 0.55) 55%, transparent 100%);
    z-index: 3;
  }
  body[dir="rtl"] .hero-overlay {
    background: linear-gradient(270deg, rgba(5, 13, 24, 0.92) 0%, rgba(10, 22, 40, 0.55) 55%, transparent 100%);
  }

  .hero-content {
    position: relative;
    z-index: 4;
    color: #fff;
    max-width: 720px;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.8rem;
    animation: heroRise 0.7s cubic-bezier(.2,.8,.2,1) 0s forwards;
    opacity: 0;
  }
  .hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 12px rgba(74, 130, 212, 0.8);
    flex-shrink: 0;
    animation: dotPulse 2.4s ease-in-out infinite;
  }
  @keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(74, 130, 212, 0.5); opacity: 0.85; }
    50%      { box-shadow: 0 0 16px rgba(74, 130, 212, 1);   opacity: 1; }
  }

  .hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    animation: heroRise 0.85s cubic-bezier(.2,.8,.2,1) 0.12s forwards;
    opacity: 0;
  }

  .hero h1 .accent {
    color: var(--primary-light);
    background: linear-gradient(180deg, var(--primary-light) 0%, #6fa3e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
  }

  .hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.8rem;
    max-width: 580px;
    line-height: 1.6;
    font-weight: 400;
    animation: heroRise 0.85s cubic-bezier(.2,.8,.2,1) 0.24s forwards;
    opacity: 0;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: heroRise 0.85s cubic-bezier(.2,.8,.2,1) 0.36s forwards;
    opacity: 0;
  }

  @keyframes heroRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .btn {
    padding: 0.95rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: all 0.25s cubic-bezier(.2,.8,.2,1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    margin: 0;
    /* Native <button> resets — make button-element <button class="btn"> render identically to <a class="btn"> */
    background: transparent;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
  }
  .btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
  }

  .btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 20px -8px rgba(37, 99, 184, 0.6);
    position: relative;
  }
  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 14px 32px -10px rgba(74, 130, 212, 0.85);
  }
  .btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.08s;
  }
  /* Subtle arrow nudge on primary button hover */
  .btn-primary svg {
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
  }
  .btn-primary:hover svg {
    transform: translateX(3px);
  }

  .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
  }
  .btn-outline:hover {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
  }
  .btn-outline:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.08s;
  }

  .btn-light {
    background: #fff;
    color: var(--primary-dark);
    border-color: var(--line);
  }
  .btn-light:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  /* ============ SECTIONS ============ */
  section {
    padding: 6rem 0;
  }

  .section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
  }

  .section-header.left {
    text-align: left;
    margin-left: 0;
  }
  body[dir="rtl"] .section-header.left { text-align: right; }

  .section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.2rem;
  }
  .section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 1.6rem; height: 2px;
    background: var(--primary);
  }
  body[dir="rtl"] .section-eyebrow {
    padding-left: 0;
    padding-right: 2.2rem;
  }
  body[dir="rtl"] .section-eyebrow::before {
    left: auto;
    right: 0;
  }

  .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .section-title span {
    color: var(--primary);
  }

  .section-intro {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
  }

  /* ============ SOLUTIONS GRID (image tiles) ============ */
  .solutions {
    background: var(--bg-alt);
  }

  .solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .solution-tile {
    position: relative;
    aspect-ratio: 4 / 3.2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-dark);
    text-decoration: none;
    color: #fff;
    display: block;
    box-shadow: 0 1px 3px rgba(10, 22, 40, 0.06);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
    --mx: 50%;
    --my: 50%;
  }

  /* Cursor-tracked spotlight glow — sits above the bg, below the overlay */
  .solution-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
      420px circle at var(--mx) var(--my),
      rgba(120, 170, 235, 0.22),
      transparent 45%
    );
    opacity: 0;
    transition: opacity 0.24s cubic-bezier(.2,.8,.2,1);
  }
  .solution-tile:hover::after {
    opacity: 1;
  }
  @media (hover: none), (prefers-reduced-motion: reduce) {
    .solution-tile::after { display: none; }
  }

  .solution-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -12px rgba(10, 22, 40, 0.25);
  }

  .solution-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
  }

  .solution-bg svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  }
  .solution-tile:hover .solution-bg svg {
    transform: scale(1.08);
  }

  .solution-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.3) 0%, rgba(10, 22, 40, 0.85) 100%);
    transition: background 0.3s;
  }
  .solution-tile:hover .solution-overlay {
    background: linear-gradient(180deg, rgba(37, 99, 184, 0.5) 0%, rgba(10, 22, 40, 0.92) 100%);
  }

  .solution-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .solution-icon {
    width: 50px; height: 50px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    transition: all 0.3s;
  }
  .solution-tile:hover .solution-icon {
    background: var(--primary);
    border-color: var(--primary);
  }

  .solution-icon svg {
    width: 24px; height: 24px;
    color: #fff;
  }

  .solution-tile h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
  }

  .solution-tile p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    transition: gap 0.2s;
  }
  .solution-tile:hover .solution-link {
    gap: 0.9rem;
  }

  body[dir="rtl"] .solution-link svg {
    transform: scaleX(-1);
  }

  @media (max-width: 968px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .solutions-grid { grid-template-columns: 1fr; }
  }

  /* ============ HOW IT WORKS ============ */
  .how {
    background: #fff;
  }

  .how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .how-visual {
    position: relative;
    width: 100%;
    max-width: 500px;     /* never grow beyond a reasonable square size */
    aspect-ratio: 1 / 1;  /* always perfectly square */
    margin: 0 auto;       /* center it in the grid cell so it doesn't sit on the left */
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-dark);
    box-shadow: 0 20px 60px -20px rgba(10, 22, 40, 0.3);
  }

  .how-visual svg {
    width: 100%; height: 100%;
    display: block;
  }

  /* ===== HOW VISUAL ANIMATIONS ===== */

  /* Slow-rotating orbit rings */
  @keyframes orbitSpinCW {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  @keyframes orbitSpinCCW {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
  }
  .how-visual .orbit-spin-cw  { animation: orbitSpinCW  60s linear infinite; transform-box: fill-box; transform-origin: center; }
  .how-visual .orbit-spin-ccw { animation: orbitSpinCCW 45s linear infinite; transform-box: fill-box; transform-origin: center; }

  /* Soft breathing glow on the center hub */
  @keyframes hubBreathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.75; transform: scale(1.08); }
  }
  .how-visual .hub-breathe {
    transform-box: fill-box;
    transform-origin: center;
    animation: hubBreathe 4s ease-in-out infinite;
  }

  /* Pulsing halo rings around each phase circle (radius grows + fades) */
  @keyframes pulseRing {
    0%   { stroke-opacity: 0.7; stroke-width: 2; transform: scale(1); }
    70%  { stroke-opacity: 0;   stroke-width: 0.5; transform: scale(1.6); }
    100% { stroke-opacity: 0;   stroke-width: 0.5; transform: scale(1.6); }
  }
  .how-visual .pulse-ring-1,
  .how-visual .pulse-ring-2,
  .how-visual .pulse-ring-3 {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulseRing 3.6s ease-out infinite;
  }
  .how-visual .pulse-ring-1 { animation-delay: 0s; }
  .how-visual .pulse-ring-2 { animation-delay: 1.2s; }
  .how-visual .pulse-ring-3 { animation-delay: 2.4s; }

  /* Flowing dashes along the connecting paths */
  @keyframes dashFlow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -22; }
  }
  .how-visual .flow-path-1,
  .how-visual .flow-path-2 {
    animation: dashFlow 1.4s linear infinite;
  }

  /* Twinkling background data points */
  @keyframes twinkle {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
  }
  .how-visual .twinkle-1 { animation: twinkle 2.4s ease-in-out infinite; }
  .how-visual .twinkle-2 { animation: twinkle 2.4s ease-in-out 0.6s infinite; }
  .how-visual .twinkle-3 { animation: twinkle 2.4s ease-in-out 1.2s infinite; }
  .how-visual .twinkle-4 { animation: twinkle 2.4s ease-in-out 1.8s infinite; }

  /* Fading in/out for the traveling pulse dots so they don't pop in/out */
  @keyframes travelDotFade {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; }
  }
  .how-visual .travel-dot-1 { animation: travelDotFade 2.6s linear infinite; }
  .how-visual .travel-dot-2 { animation: travelDotFade 2.6s linear 1.3s infinite; }

  /* Respect users who prefer reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .how-visual .orbit-spin-cw,
    .how-visual .orbit-spin-ccw,
    .how-visual .hub-breathe,
    .how-visual .pulse-ring-1,
    .how-visual .pulse-ring-2,
    .how-visual .pulse-ring-3,
    .how-visual .flow-path-1,
    .how-visual .flow-path-2,
    .how-visual .twinkle-1,
    .how-visual .twinkle-2,
    .how-visual .twinkle-3,
    .how-visual .twinkle-4,
    .how-visual .travel-dot-1,
    .how-visual .travel-dot-2 {
      animation: none;
    }
  }

  .how-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .how-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
  }
  .how-step:last-child { border-bottom: none; padding-bottom: 0; }

  .how-step-num {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 184, 0.5);
  }

  .how-step h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
  }

  .how-step p {
    color: var(--ink-soft);
    font-size: 0.96rem;
  }

  @media (max-width: 968px) {
    .how-grid { grid-template-columns: 1fr; gap: 3rem; }
  }

  /* ============ CLIENTS / PARTNERS LOGO STRIPS ============ */
  .clients {
    background: var(--bg-alt);
    padding: 5rem 0;
  }

  .logo-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .logo-placeholder {
    aspect-ratio: 16 / 9;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }

  .logo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(37, 99, 184, 0.04) 12px,
      rgba(37, 99, 184, 0.04) 24px
    );
  }

  .logo-placeholder span {
    position: relative;
    z-index: 1;
  }

  .logo-placeholder:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -10px rgba(37, 99, 184, 0.3);
  }

  .clients-cta {
    text-align: center;
    margin-top: 3rem;
  }

  @media (max-width: 968px) {
    .logo-strip { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 500px) {
    .logo-strip { grid-template-columns: repeat(2, 1fr); }
  }

  /* ============ TESTIMONIALS ============ */
  .testimonials {
    background: #fff;
  }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .testimonial-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
  }
  .testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px -16px rgba(37, 99, 184, 0.25);
  }

  .testimonial-quote-mark {
    width: 36px; height: 36px;
    color: var(--primary);
    margin-bottom: 1.2rem;
  }

  .testimonial-text {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ink);
    flex-grow: 1;
    margin-bottom: 1.8rem;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }

  .author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.92rem;
  }

  .author-info strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 600;
  }
  .author-info span {
    font-size: 0.84rem;
    color: var(--muted);
  }

  @media (max-width: 968px) {
    .testimonials-grid { grid-template-columns: 1fr; }
  }

  /* ============ CTA BANNER ============ */
  .cta-banner {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    overflow: hidden;
  }

  .cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1), transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08), transparent 50%);
  }

  .cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  }

  .cta-banner-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .cta-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
  }

  /* Word-by-word reveal on entry — JS injects .word spans */
  .cta-banner h2 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(.2,.8,.2,1),
                transform 0.6s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
  }
  .cta-banner h2.reveal-words-on .word {
    opacity: 1;
    transform: translateY(0);
  }
  /* Stagger — 60ms between words, supports up to 14 words per language */
  .cta-banner h2.reveal-words-on .word:nth-child(1)  { transition-delay: 0ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(2)  { transition-delay: 60ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(3)  { transition-delay: 120ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(4)  { transition-delay: 180ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(5)  { transition-delay: 240ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(6)  { transition-delay: 300ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(7)  { transition-delay: 360ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(8)  { transition-delay: 420ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(9)  { transition-delay: 480ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(10) { transition-delay: 540ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(11) { transition-delay: 600ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(12) { transition-delay: 660ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(13) { transition-delay: 720ms; }
  .cta-banner h2.reveal-words-on .word:nth-child(14) { transition-delay: 780ms; }

  @media (prefers-reduced-motion: reduce) {
    .cta-banner h2 .word {
      opacity: 1; transform: none; transition: none;
    }
  }

  .cta-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
  }

  .cta-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  @media (max-width: 768px) {
    .cta-banner-inner { grid-template-columns: 1fr; text-align: center; }
    .cta-banner-actions { align-items: center; }
  }

  /* ============ FOOTER ============ */
  footer {
    background: var(--bg-darker);
    color: rgba(255,255,255,0.55);
    padding: 6rem 0 0;
    position: relative;
  }

  /* Subtle top hairline accent like Stripe */
  footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,130,212,0.3), transparent);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    padding-bottom: 4rem;
  }

  .footer-brand img {
    height: 42px;
    margin-bottom: 1.5rem;
    opacity: 0.95;
  }

  .footer-brand p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 340px;
    color: rgba(255,255,255,0.6);
  }

  .footer-col h4 {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: #fff; }

  .footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-bottom .legal-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
  }
  .footer-bottom .legal-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-bottom .legal-links a:hover { color: #fff; }

  @media (max-width: 968px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 3rem 4rem;
    }
    .footer-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 580px) {
    footer { padding-top: 4rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
  }

  /* ============ ANIMATIONS ============ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered children inside grids for premium reveal cadence */
  .reveal.stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1);
  }
  .reveal.stagger.in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
  .reveal.stagger.in > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
  .reveal.stagger.in > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
  .reveal.stagger.in > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
  .reveal.stagger.in > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
  .reveal.stagger.in > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.stagger > * { transition: none; opacity: 1; transform: none; }
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-inner { grid-template-columns: 1fr auto; }
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }
    section { padding: 4rem 0; }
    .hero { height: 540px; }
  }

  @media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
  }

  /* ============ AR specific ============ */
  body[dir="rtl"] .how-step { grid-template-columns: 60px 1fr; }
  body[dir="rtl"] .btn svg { transform: scaleX(-1); }

  [data-en], [data-ar] { display: inline; }
  body[dir="ltr"] [data-ar] { display: none; }
  body[dir="rtl"] [data-en] { display: none; }

  /* ========================================================================
     PAGE HERO — used on inner pages (not the home hero)
     Smaller, simpler, no animated network background.
     ======================================================================== */
  .page-hero {
    position: relative;
    padding: 9rem 0 5rem;
    background: var(--bg-dark);
    color: #fff;
    overflow: hidden;
  }
  .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 40%, rgba(37, 99, 184, 0.35) 0%, transparent 55%),
      radial-gradient(ellipse at 80% 70%, rgba(74, 130, 212, 0.25) 0%, transparent 55%),
      linear-gradient(135deg, #050d18 0%, #0f2240 50%, #050d18 100%);
  }
  .page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(180deg, transparent 0%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 60%, transparent 100%);
    pointer-events: none;
  }
  .page-hero .container { position: relative; z-index: 2; }
  .page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.4rem;
  }
  .page-hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 12px rgba(74, 130, 212, 0.8);
  }
  .page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.022em;
    margin-bottom: 1.3rem;
    max-width: 780px;
  }
  .page-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    max-width: 620px;
  }

  /* ========================================================================
     USE-CASE LIST CARDS
     ======================================================================== */
  .usecase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .usecase-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2.2rem;
    transition: border-color 0.25s cubic-bezier(.2,.8,.2,1), transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s cubic-bezier(.2,.8,.2,1);
  }
  .usecase-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -16px rgba(37, 99, 184, 0.25);
  }
  .usecase-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(37, 99, 184, 0.1);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 1.4rem;
  }
  .usecase-icon svg { width: 22px; height: 22px; }
  .usecase-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.012em;
  }
  .usecase-card p {
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }
  .usecase-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .usecase-card ul li {
    color: var(--ink-soft);
    font-size: 0.92rem;
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
  }
  .usecase-card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 8px; height: 8px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-70%) rotate(-45deg);
  }
  body[dir="rtl"] .usecase-card ul li {
    padding: 0.4rem 1.4rem 0.4rem 0;
  }
  body[dir="rtl"] .usecase-card ul li::before {
    left: auto; right: 0;
    transform: translateY(-70%) rotate(135deg);
  }
  @media (max-width: 720px) {
    .usecase-grid { grid-template-columns: 1fr; }
  }

  /* ========================================================================
     SIMPLE 3-STEP HOW-IT-WORKS LIST (inner page version)
     ======================================================================== */
  .process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .process-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.25s cubic-bezier(.2,.8,.2,1), transform 0.25s cubic-bezier(.2,.8,.2,1);
  }
  .process-step:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
  }
  .process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 6px 16px -8px rgba(37, 99, 184, 0.5);
  }
  .process-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.012em;
  }
  .process-step p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
  }
  @media (max-width: 768px) {
    .process-list { grid-template-columns: 1fr; }
  }

  /* ========================================================================
     INNER-PAGE SECTION HEADER (used on use-cases.html and other inner pages)
     ======================================================================== */
  .inner-section {
    padding: 6rem 0;
  }
  .inner-section.alt {
    background: var(--bg-alt);
  }
  .inner-section-header {
    max-width: 720px;
    margin: 0 auto 4rem;
    text-align: center;
  }
  .inner-section-header .section-eyebrow {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: inline-block;
    margin-bottom: 1rem;
  }
  .inner-section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
  }
  .inner-section-header h2 em {
    color: var(--primary);
    font-style: normal;
    font-weight: 700;
  }
  .inner-section-header p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.6;
  }

  /* ========================================================================
     ENHANCED USE CASE CARD (with metric pill, outcome list)
     Replaces the simpler .usecase-card pattern when richer content is shown.
     ======================================================================== */
  .uc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .uc-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2.4rem;
    transition:
      border-color 0.28s cubic-bezier(.2,.8,.2,1),
      transform 0.28s cubic-bezier(.2,.8,.2,1),
      box-shadow 0.28s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
  }
  .uc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
      560px circle at var(--mx, 50%) var(--my, 0%),
      rgba(37, 99, 184, 0.06),
      transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
  }
  .uc-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(37, 99, 184, 0.28);
  }
  .uc-card:hover::before { opacity: 1; }
  @media (hover: none), (prefers-reduced-motion: reduce) {
    .uc-card::before { display: none; }
  }
  .uc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
  }
  .uc-icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(37, 99, 184, 0.12), rgba(37, 99, 184, 0.05));
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .uc-icon svg { width: 22px; height: 22px; }
  .uc-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    background: rgba(37, 99, 184, 0.08);
    border: 1px solid rgba(37, 99, 184, 0.18);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
  }
  .uc-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.014em;
    line-height: 1.25;
    margin-bottom: 0.7rem;
  }
  .uc-card .uc-lede {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
  }
  .uc-card .uc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
  }
  .uc-card .uc-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 0.4rem 0;
  }
  .uc-card .uc-list li svg {
    flex-shrink: 0;
    width: 16px; height: 16px;
    color: var(--primary);
    margin-top: 3px;
  }
  .uc-card .uc-foot {
    display: flex;
    align-items: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
  .uc-card .uc-foot strong {
    color: var(--ink);
    font-weight: 600;
    margin-right: 0.4rem;
  }
  body[dir="rtl"] .uc-card .uc-foot strong { margin-right: 0; margin-left: 0.4rem; }
  @media (max-width: 800px) {
    .uc-grid { grid-template-columns: 1fr; }
    .uc-card { padding: 2rem; }
  }

  /* ========================================================================
     BUSINESS IMPACT STAT BAND
     ======================================================================== */
  .impact-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }
  .impact-stat {
    padding: 2.4rem 1.6rem;
    text-align: center;
    border-right: 1px solid var(--line);
  }
  .impact-stat:last-child { border-right: none; }
  body[dir="rtl"] .impact-stat { border-right: none; border-left: 1px solid var(--line); }
  body[dir="rtl"] .impact-stat:last-child { border-left: none; }

  .impact-stat .stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.6rem;
  }
  .impact-stat .stat-label {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.45;
  }
  @media (max-width: 800px) {
    .impact-band { grid-template-columns: repeat(2, 1fr); }
    .impact-stat { border-bottom: 1px solid var(--line); }
    .impact-stat:nth-child(2n) { border-right: none; }
    .impact-stat:nth-last-child(-n+2) { border-bottom: none; }
    body[dir="rtl"] .impact-stat:nth-child(2n) { border-left: none; }
  }
  @media (max-width: 480px) {
    .impact-band { grid-template-columns: 1fr; }
    .impact-stat { border-right: none !important; border-left: none !important; border-bottom: 1px solid var(--line); }
    .impact-stat:last-child { border-bottom: none; }
  }

  /* Disclaimer line under impact band — secondary, minimal hierarchy */
  .impact-disclaimer {
    margin-top: 1.4rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ========================================================================
     BOOKING MODAL — opens inline when "Book a demo" is clicked.
     The Cal.com embed is loaded on demand (lazy) so the script never
     touches the page weight until the user actually opens the modal.
     ======================================================================== */
  .booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(5, 13, 24, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.24s cubic-bezier(.2,.8,.2,1);
  }
  .booking-modal.open {
    display: flex;
    opacity: 1;
  }
  .booking-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: min(100%, 980px);
    max-height: min(92vh, 800px);
    overflow: hidden;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.1) inset,
      0 30px 80px -20px rgba(5, 13, 24, 0.6);
    transform: translateY(16px) scale(0.985);
    transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
    display: flex;
    flex-direction: column;
  }
  .booking-modal.open .booking-modal-card {
    transform: translateY(0) scale(1);
  }

  .booking-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .booking-modal-head .booking-modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
  }
  .booking-modal-head .booking-modal-title::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  }
  .booking-modal-close {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    width: 34px; height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(.2,.8,.2,1);
    font-family: inherit;
  }
  .booking-modal-close:hover {
    background: var(--bg-alt);
    color: var(--ink);
    border-color: var(--ink);
  }
  .booking-modal-close:active { transform: scale(0.95); }

  .booking-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-alt);
  }

  /* Loading state shown while Cal.com is initialising */
  .booking-modal-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(.2,.8,.2,1);
  }
  .booking-modal-loading.hidden { opacity: 0; }
  .booking-modal-loading-spinner {
    width: 28px; height: 28px;
    border: 2.5px solid rgba(37, 99, 184, 0.18);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: bookingSpin 0.85s linear infinite;
  }
  @keyframes bookingSpin {
    to { transform: rotate(360deg); }
  }

  /* The Cal.com iframe is injected here */
  .booking-modal-embed {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: 0;
    display: block;
    background: var(--bg-alt);
  }

  /* Trust strip at the bottom of the modal */
  .booking-modal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--line);
    background: #fff;
    font-size: 0.82rem;
    color: var(--muted);
    flex-shrink: 0;
    flex-wrap: wrap;
  }
  .booking-modal-foot-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  .booking-modal-foot-trust svg {
    width: 14px; height: 14px;
    color: #16a34a;
  }

  @media (max-width: 720px) {
    .booking-modal { padding: 0; align-items: stretch; }
    .booking-modal-card {
      border-radius: 0;
      max-height: 100vh;
      height: 100vh;
      width: 100%;
    }
    .booking-modal-foot { font-size: 0.78rem; }
  }

  body.booking-modal-open {
    overflow: hidden;
  }

  /* Hero trust microcopy under CTA buttons */
  .hero-microtrust {
    margin-top: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: -0.005em;
    animation: heroRise 0.85s cubic-bezier(.2,.8,.2,1) 0.48s forwards;
    opacity: 0;
  }
  .hero-microtrust svg {
    color: var(--primary-light);
    flex-shrink: 0;
  }

  /* Tiny trust strip below the CTA-banner button */
  .cta-banner-trust {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: -0.005em;
  }
  .cta-banner-trust svg {
    color: var(--accent-soft);
    flex-shrink: 0;
  }