/* NovaLexi — Brand Stylesheet (aligned to novalexi.com) */

:root {
  /* Palette — NovaLexi brand */
  --bg:           #FFFFFF;     /* main background */
  --bg-alt:       #F4F6F8;     /* supporting light gray */
  --bg-soft:      #F3EFFF;     /* pale lavender wash */
  --bg-deep:      #101828;     /* deep navy — dark sections */
  --bg-deep-2:    #1E1E1E;     /* charcoal accent for gradients */

  --ink:          #101828;     /* primary text / deep navy */
  --ink-soft:     #1E1E1E;     /* charcoal */
  --muted:        #5B6677;
  --line:         #E4E7EC;
  --line-soft:    #F0F2F5;

  --brand:        #2563EB;     /* electric blue (primary) */
  --brand-deep:   #1D4ED8;     /* hover / press */
  --brand-soft:   #F3EFFF;     /* pale lavender backing for chips */
  --accent:       #20C7B5;     /* aqua / teal (secondary brand) */
  --accent-soft:  #E0F8F4;
  --cyan:         #38D9FF;     /* gradient highlight */
  --purple:       #7C3AED;     /* accent purple */

  --paper:        #FFFFFF;
  --shadow:       0 20px 60px rgba(16, 24, 40, 0.08);
  --shadow-sm:    0 6px 20px rgba(16, 24, 40, 0.06);
  --radius:       14px;
  --radius-lg:    22px;
  --maxw:         1200px;

  --font-en: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: 'Almarai', 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }
html[dir="rtl"] { text-align: right; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--maxw); margin: 0 auto;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 20px;
  color: var(--ink); letter-spacing: -0.01em;
}

.brand-mark { width: 32px; height: 32px; display: inline-block; }

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* Footer logo: invert if needed for dark background — the official logo
   reads well on both light and dark, so we leave it as-is by default. */
.brand-logo-dark { height: 34px; }

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
/* Animated underline (gradient) on hover and active */
.nav-links > a::after,
.nav-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.nav-links > a:hover::after,
.nav-dropdown:hover > a::after,
.nav-links > a.active::after,
.nav-dropdown > a.active::after { transform: scaleX(1); }

.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); }

/* ====== Nav dropdown ====== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown > a .caret {
  font-size: 10px;
  transition: transform 0.2s;
  opacity: 0.7;
}
.nav-dropdown:hover > a .caret,
.nav-dropdown:focus-within > a .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
  padding: 10px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html[dir="rtl"] .dropdown-menu { transform: translateX(50%) translateY(-6px); }

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
html[dir="rtl"] .nav-dropdown:hover .dropdown-menu,
html[dir="rtl"] .nav-dropdown:focus-within .dropdown-menu {
  transform: translateX(50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink) !important;
  transition: background 0.15s;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--brand) !important;
}

/* Bridge area so the dropdown stays open as the cursor moves to it */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 14px;
}

/* ====== Carousel (rotating mockups) ====== */
.carousel {
  max-width: 640px;
  margin: 24px auto 0;
  position: relative;
}

.carousel-track {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.10);
  overflow: hidden;
}

/* Pure-CSS auto-rotate: 3 slides × 5s each = 15s cycle.
   JS (when present) flips .active and overrides the animation. */
.carousel-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  animation: nl-carousel 15s infinite;
}

.carousel-slide:first-child {
  position: relative; /* sets track height from first slide */
}

.carousel-slide:nth-child(1) { animation-delay: 0s; }
.carousel-slide:nth-child(2) { animation-delay: 5s; }
.carousel-slide:nth-child(3) { animation-delay: 10s; }

@keyframes nl-carousel {
  0%        { opacity: 0; z-index: 0; }
  2%, 30%   { opacity: 1; z-index: 1; }
  33%, 100% { opacity: 0; z-index: 0; }
}

/* When JS adds .active to a slide, it takes over and freezes auto-rotation */
.carousel-track.js-on .carousel-slide {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
  z-index: 0;
}
.carousel-track.js-on .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
/* Even with JS off, hovering pauses the rotation */
.carousel:hover .carousel-slide { animation-play-state: paused; }

.carousel-slide .mockup-frame {
  border: 0;
  border-radius: 0;
  flex: 1;
  background: var(--paper);
}

.carousel-slide .mockup-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-slide .mockup-caption {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.carousel-slide .mockup-caption h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}

.carousel-slide .mockup-caption p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}

.carousel-dots .dot:hover { background: var(--muted); }

.carousel-dots .dot.active {
  background: var(--brand);
  width: 28px;
}

@media (max-width: 600px) {
  .carousel-slide .mockup-caption { padding: 14px 18px 18px; }
  .carousel-slide .mockup-caption h4 { font-size: 15px; }
  .carousel-slide .mockup-caption p { font-size: 13px; }
}

/* ====== Mockup frames (product screenshots) ====== */
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.mockup {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.10);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.14);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.mockup-chrome .dots {
  display: flex;
  gap: 6px;
}
.mockup-chrome .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.mockup-chrome .dots span:nth-child(1) { background: #FF6058; }
.mockup-chrome .dots span:nth-child(2) { background: #FFC130; }
.mockup-chrome .dots span:nth-child(3) { background: #30D158; }
.mockup-chrome .url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.mockup-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-caption {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mockup-caption h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mockup-caption p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.lang-toggle::before {
  content: "🌐";
  font-size: 12px;
  filter: grayscale(1);
  opacity: 0.7;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 60%, var(--purple) 130%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--paper);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.32);
  transition: background-position 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.btn-primary:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.40);
}
.btn-primary:hover::after { left: 130%; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.25s;
}
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}
.btn-secondary:hover::before { opacity: 1; }

.mobile-toggle {
  display: none;
  background: transparent; border: 0;
  font-size: 22px; color: var(--ink); cursor: pointer;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 100px 0 90px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(32, 199, 181, 0.08), transparent 50%),
    var(--bg);
  border-bottom: 0;
}
/* Homepage hero only (the legal-page masthead reuses .hero on a plain div,
   so this is scoped to the <section class="hero"> element to avoid touching it). */
section.hero {
  padding-bottom: 40px;
}
/* Soft white veil at the bottom of the hero — fades the background gradients
   into the trust strip without touching the hero text/buttons sitting above it. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #FFFFFF 100%);
  pointer-events: none;
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--accent-soft) 100%);
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  margin: 0 0 24px;
  font-weight: 700;
}

html[lang="ar"] h1 { line-height: 1.3; letter-spacing: 0; }
html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.4; }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 560px;
}

html[lang="ar"] .hero-sub { font-size: 17px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.hero-visual svg { width: 100%; height: 100%; }

.hero-visual video {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  background: transparent;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 75% at center, #000 55%, transparent 100%);
}

/* ============ Section ============ */
section.section {
  padding: 64px 0;
  border-bottom: 0;
}

section.section.alt {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(124, 58, 237, 0.16), transparent 55%),
    radial-gradient(ellipse at 100% 50%, rgba(32, 199, 181, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-alt) 0%, #F8F6FF 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* "dark" section: soft tinted gradient masked with a top-and-bottom fade to transparent
   so it dissolves cleanly into adjacent white sections. */
section.section.dark {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(32, 199, 181, 0.22), transparent 55%),
    linear-gradient(180deg, #F8F4FF 0%, #F3EFFF 50%, #EDFDF9 100%);
  color: var(--ink);
  border-bottom: 0;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

section.section.dark::before {
  content: "";
  position: absolute;
  top: -150px;
  inset-inline-end: -150px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  animation: hero-orb-1 18s ease-in-out infinite;
}

section.section.dark::after {
  content: "";
  position: absolute;
  bottom: -120px;
  inset-inline-start: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(32, 199, 181, 0.14), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  animation: hero-orb-2 22s ease-in-out infinite;
}

section.section.dark h1, section.section.dark h2, section.section.dark h3 { color: var(--ink); }
section.section.dark .section-sub { color: var(--muted); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: start; }

/* ============ Section header row with a trailing "View all" link
   (Resources hub: Updates / Blogs / Research & Publications). Title and
   link sit at opposite ends via justify-content: space-between — flexbox's
   main axis already follows the page's dir="ltr"/"rtl", so which side each
   one lands on switches automatically with no extra RTL override needed. */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}
/* .section-head.left (further down this file) caps these at max-width:820px
   — narrower than the .container (1200px) the section content sits in, so
   "View all" fell short of the true right/left edge. This compound selector
   (all 3 classes the header row actually carries) outranks that rule on
   specificity alone — no !important needed — and only touches these three
   headers, not other .section-head.left usage elsewhere on the site. */
.section-head.left.section-header {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
.section-header .view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.section-header .view-all-link:hover {
  text-decoration: underline;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 12px 0 16px;
  font-weight: 600;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

/* ============ Feature Grid ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  gap: 24px;
}

.feat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s,
    border-color 0.3s,
    background 0.4s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(37, 99, 235, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feat-card:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 26px 56px rgba(16, 24, 40, 0.10);
}
.feat-card:hover::before { opacity: 1; }
.feat-card > * { position: relative; z-index: 1; }

section.section.dark .feat-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--paper);
}

section.section.dark .feat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(37, 99, 235, 0.5);
}

.feat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
  color: var(--paper);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
}

/* Outside flip cards, restore standard spacing under the icon */
.feat-card > .feat-icon { margin-bottom: 18px; }

.feat-icon svg {
  width: 26px; height: 26px;
  color: var(--paper);
}

/* ============ Flip cards (Solution section) ============ */
.flip-grid {
  perspective: 1500px;
}

.flip-card {
  min-height: 190px;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 190px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

html[dir="rtl"] .flip-card:hover .flip-card-inner,
html[dir="rtl"] .flip-card:focus-within .flip-card-inner {
  transform: rotateY(-180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: box-shadow 0.25s;
}

.flip-card-front {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.flip-card-front h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 50%, var(--cyan) 130%);
  color: var(--paper);
  justify-content: center;
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.32);
  overflow: hidden;
}

.flip-card-back::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
  pointer-events: none;
}

.flip-card-back h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--paper);
  font-weight: 600;
  opacity: 0.92;
  position: relative;
}

.flip-card-back p {
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  position: relative;
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back {
  box-shadow: var(--shadow);
}

/* Mobile / touch fallback — tap to flip via focus, plus reduced motion */
@media (hover: none) {
  .flip-card-inner { transition: transform 0.5s; }
  .flip-card:active .flip-card-inner,
  .flip-card:focus-within .flip-card-inner { transform: rotateY(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
}

.feat-card h3 { font-size: 18px; margin: 0 0 10px; font-weight: 600; }
.feat-card p { margin: 0; color: var(--muted); font-size: 15px; }
section.section.dark .feat-card p { color: rgba(255, 255, 255, 0.7); }

/* ============ Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 36px 26px;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  position: absolute;
  top: 24px;
  inset-inline-end: 26px;
  font-size: 14px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.05em;
}

section.section.dark .step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

section.section.dark .step::before { color: #A8C3FF; }

.step h3 { font-size: 20px; margin: 40px 0 12px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
section.section.dark .step p { color: rgba(255, 255, 255, 0.7); }

/* ============ Challenge section (text + visual) ============ */
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.challenge-copy h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 16px 0 22px;
  line-height: 1.2;
}

.challenge-copy .lead {
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 20px;
  line-height: 1.45;
}

.challenge-copy p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.challenge-visual {
  position: relative;
}

.challenge-visual svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(16, 24, 40, 0.08));
}

.challenge-visual video {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  background: transparent;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 75% at center, #000 55%, transparent 100%);
}

@media (max-width: 900px) {
  .challenge-grid { grid-template-columns: 1fr; gap: 36px; }
  .challenge-visual { max-width: 520px; }
}

/* ============ CTA strip (soft light, Softec-style) ============ */
.cta-strip {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(ellipse at 100% 50%, rgba(32, 199, 181, 0.14), transparent 60%),
    linear-gradient(135deg, #FAFBFF 0%, #F3EFFF 60%, #EDFDF9 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center; justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  top: -60%;
  inset-inline-end: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(56, 217, 255, 0.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-strip::after {
  content: "";
  position: absolute;
  bottom: -60%;
  inset-inline-start: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-strip h2 { color: var(--ink); font-size: 28px; margin: 0 0 8px; font-weight: 600; position: relative; z-index: 1; }
.cta-strip p { margin: 0; color: var(--muted); position: relative; z-index: 1; }
.cta-strip .cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============ Resources cards ============ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  gap: 24px;
}

.resource-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
}

.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, 0.3); }

.resource-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-deep), var(--brand-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

.resource-body { padding: 26px; }

.resource-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

html[lang="ar"] .resource-tag { letter-spacing: 0; text-transform: none; }

.resource-body h3 { font-size: 18px; margin: 8px 0 10px; }
.resource-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.pillar {
  border-inline-start: 3px solid var(--brand);
  padding-inline-start: 24px;
  margin-bottom: 32px;
}

.pillar h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
  font-weight: 600;
}

html[lang="ar"] .pillar h3 { letter-spacing: 0; text-transform: none; font-size: 15px; }

.pillar p { margin: 0; font-size: 18px; color: var(--ink); line-height: 1.5; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: all 0.2s;
}

.contact-card:hover { border-color: var(--brand); }

.contact-card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}

.contact-card h3 { margin: 0 0 6px; font-size: 17px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; }

form { display: flex; flex-direction: column; gap: 16px; }

label {
  font-size: 13px; color: var(--ink); font-weight: 500;
  margin-bottom: -8px;
}

input, textarea, select {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

textarea { min-height: 130px; resize: vertical; }

/* ============ Capabilities ============ */
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 56px;
}

.cap h3 {
  font-size: 19px;
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 12px;
}

.cap h3::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.cap p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============ Footer (soft light, masked fade from transparent at top) ============ */
.site-footer {
  background:
    radial-gradient(ellipse at 0% 60%, rgba(124, 58, 237, 0.10), transparent 50%),
    radial-gradient(ellipse at 100% 70%, rgba(32, 199, 181, 0.12), transparent 50%),
    linear-gradient(180deg, #FAFBFF 0%, #F3EFFF 100%);
  color: var(--ink);
  padding: 96px 0 36px;
  position: relative;
  overflow: hidden;
  border-top: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
}

/* Soft brand-gradient hairline at the very top */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 30%, var(--accent) 50%, var(--purple) 70%, transparent 100%);
  opacity: 0.7;
}

/* Decorative orb in a corner */
.site-footer::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.08;
  filter: blur(60px);
  top: -120px;
  inset-inline-end: -100px;
  pointer-events: none;
}

.site-footer > .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.footer-grid h4 {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}
.footer-grid h4::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

html[lang="ar"] .footer-grid h4 { letter-spacing: 0; text-transform: none; }

.footer-grid > div > a {
  display: block;
  width: 100%;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.25s, transform 0.25s;
  color: var(--muted);
  text-decoration: none;
}

.footer-grid > div > a:hover {
  color: var(--brand);
  transform: translateX(2px);
}
html[dir="rtl"] .footer-grid > div > a:hover { transform: translateX(-2px); }

/* "Cookie Preferences" trigger — render it identically to the footer text links.
   !important overrides the element's legacy inline styles on every page. */
.footer-grid > div > button[data-cookie-preferences] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 0 !important;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: inherit !important;
  text-decoration: none;
  color: var(--muted) !important;
  cursor: pointer;
  transition: color 0.25s, transform 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.footer-grid > div > button[data-cookie-preferences]:hover {
  color: var(--brand) !important;
  transform: translateX(2px);
}
html[dir="rtl"] .footer-grid > div > button[data-cookie-preferences]:hover { transform: translateX(-2px); }

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap; gap: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover {
  color: var(--brand);
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-2px);
}

/* Footer logo: the dark variant is no longer needed — use the standard logo */
.brand-logo-dark { filter: none; }

/* ============ Page Hero (interior pages) — soft light, masked fade at the bottom ============ */
.page-hero {
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(32, 199, 181, 0.08), transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
}

.page-hero .eyebrow { display: inline-block; margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 18px; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0; line-height: 1.6; }

/* ============ Region (About — From Riyadh, outward) ============ */
.region-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.region-copy h2 { margin: 12px 0 18px; }
.region-copy p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }

.pin-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  list-style: none; padding: 0; margin: 18px 0 0;
}
.pin-row li {
  background: rgba(56, 217, 255, 0.10);
  border: 1px solid rgba(32, 199, 181, 0.25);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  padding-inline-start: 28px;
}
.pin-row li::before {
  content: ""; position: absolute; inset-inline-start: 12px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%)
;
}

.region-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.region-visual video {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  background: transparent;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 75% at center, #000 55%, transparent 100%);
}

@media (max-width: 900px) {
  .region-split { grid-template-columns: 1fr; gap: 36px; }
  .region-visual { max-width: 460px; margin: 0 auto; }
}

/* ============ Hero shapes / dots (decorative) ============ */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.hero-shape.s1 {
  top: -120px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(37,99,235,0.7), transparent 70%);
}
.hero-shape.s2 {
  top: 30%; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(32,199,181,0.55), transparent 70%);
}
.hero-shape.s3 {
  bottom: -120px; left: 30%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(124,58,237,0.4), transparent 70%);
}
.hero-dots {
  position: absolute;
  width: 240px; height: 240px;
  top: 80px; right: 60px;
  background-image: radial-gradient(circle, rgba(37,99,235,0.18) 1.4px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.hero-dots.dr { top: auto; right: auto; bottom: 60px; left: 60px; opacity: 0.5; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero { position: relative; }

/* ============ Section heads ============ */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin: 0 0 48px; max-width: 820px; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.15; margin: 14px 0 14px; }
.section-head .eyebrow { display: inline-block; margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; max-width: 680px; }
.section-head.left .section-sub { margin-inline-start: 0; }

/* ============ Spotlight grid / cards (values, etc.) ============ */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.spotlight-card {
  position: relative;
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(37,99,235,0.05), transparent 50%);
  pointer-events: none;
}
.spotlight-card:hover {
  box-shadow: 0 18px 40px rgba(16,24,40,0.08);
  transform: translateY(-2px);
}
.sp-num {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 38px;
  font-weight: 700;
  color: rgba(37,99,235,0.10);
  letter-spacing: -1px;
}
.sp-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #FFF;
  margin: 0 0 22px;
  box-shadow: 0 8px 16px rgba(37,99,235,0.20);
}
.sp-icon svg { width: 22px; height: 22px; }
.spotlight-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 600;
}
.spotlight-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ============ Feature explorer (homepage browser-frame demo) ============ */
.feature-explorer {
  --tab-duration: 6s;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: stretch;
}
.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-tab {
  position: relative;
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px 18px 60px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  font-family: inherit;
  color: var(--ink);
  overflow: hidden;
}
html[dir="rtl"] .feature-tab { padding: 18px 60px 18px 20px; text-align: right; }
.feature-tab::before {
  content: attr(data-tab);
  position: absolute;
  top: 18px;
  inset-inline-start: 20px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.feature-tab.active {
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(37,99,235,0.10);
}
.feature-tab.active::before {
  background: var(--brand);
  color: #FFF;
}
.feature-tab[data-tab="0"]::before { content: "1"; }
.feature-tab[data-tab="1"]::before { content: "2"; }
.feature-tab[data-tab="2"]::before { content: "3"; }
.tab-title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.tab-desc, .tab-body {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.tab-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .3s ease;
}
.feature-tab.active .tab-progress { width: 100%; transition: width var(--tab-duration) linear; }

.feature-stage {
  background: linear-gradient(180deg, #F7F9FC, #EEF2F8);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 380px;
  position: relative;
}
.feature-stage-frame {
  width: 100%;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(16,24,40,0.10);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.frame-chrome, .frame-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #F4F6F8;
  border-bottom: 1px solid var(--line);
}
.frame-dots {
  display: inline-flex;
  gap: 6px;
}
.frame-dots::before, .frame-dots::after, .frame-dot {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #E4E7EC;
}
.frame-dots::before { background: #FF5F57; }
.frame-dots::after { background: #FEBC2E; }
.frame-dot { background: #28C840; display: inline-block; }
.frame-url {
  margin-inline-start: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--muted);
}
.frame-screen {
  position: relative;
  flex: 1;
  min-height: 340px;
  background: #FFFFFF;
  overflow: hidden;
}
.feature-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.feature-slide.active { opacity: 1; pointer-events: auto; }
.feature-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.feature-caption { display: none; }
@media (max-width: 960px) {
  .feature-explorer { grid-template-columns: 1fr; }
  .feature-stage { min-height: 320px; }
}

/* ============ Article pages ============ */
.article-hero {
  position: relative;
  padding: 100px 0 60px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(32, 199, 181, 0.08), transparent 50%),
    var(--bg);
}
.article-hero .container { max-width: 900px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  margin-bottom: 22px;
}
.article-back::before { content: "←"; font-size: 16px; line-height: 1; }
html[dir="rtl"] .article-back::before { content: "→"; }
.article-back:hover { text-decoration: underline; }

/* ============ Label + link group — eyebrow pill stacked directly above
   its "back" link (article hero, and the Blogs/Whitepapers/Updates page
   heroes). A shared wrapper keeps this stacking independent of whatever
   layout the surrounding container uses, and needs no changes to
   .eyebrow or .article-back themselves — colors, pill styling, and hover
   are untouched. ============ */
.label-link-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* = inline-start, which is already the RIGHT
                               edge under dir="rtl" — no separate RTL rule
                               needed. (align-items: flex-end here would be
                               the classic column-flex/RTL mix-up: flex-end
                               in a column container follows the cross axis,
                               i.e. inline-end, which is LEFT in RTL — the
                               opposite of what's wanted.) */
  gap: 8px;
  margin-bottom: 22px; /* replaces the trailing space .eyebrow/.article-back
                          used to provide on their own, now that they sit
                          inside this wrapper — keeps the same distance to
                          the heading that follows */
}
.label-link-group .eyebrow,
.label-link-group .article-back {
  margin-bottom: 0; /* gap above handles the spacing between them instead */
}
.article-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.18;
  margin: 12px 0 18px;
}
.article-hero p.lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 720px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.article-meta .author { color: var(--ink); font-weight: 500; }

.article-cover {
  max-width: var(--maxw, 1200px);
  margin: 0 auto 56px;
  padding: 0 var(--gutter, 24px);
}
.article-cover img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: 0 24px 60px rgba(16,24,40,0.10);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  max-width: var(--maxw, 1200px);
  margin: 0 auto;
  padding: 0 var(--gutter, 24px) 80px;
}
.article-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 22px;
}

.article-related { margin-top: 24px; }
.article-related .section-head { margin-bottom: 32px; }

/* ============ Resource cards (used inside related strip + resources pages) ============ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  gap: 22px;
}
.resource-card {
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.resource-card:hover {
  box-shadow: 0 18px 40px rgba(16,24,40,0.10);
  transform: translateY(-2px);
}
.resource-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.resource-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.resource-body { padding: 18px 20px 20px; }
.resource-body h3 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.resource-body p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ============ Demo / contact form ============ */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
  margin-bottom: 4px;
}
.demo-form input,
.demo-form select,
.demo-form textarea {
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.demo-form textarea { min-height: 140px; resize: vertical; }
.demo-form button { margin-top: 22px; }
.form-status { color: var(--brand); }

/* ============ Misc helpers ============ */
.lede { font-size: 19px; color: var(--muted); line-height: 1.55; }
.policy-body { max-width: 880px; margin: 0 auto; }
.policy-meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.policy-callout { background: rgba(37,99,235,0.04); border-left: 3px solid var(--brand); padding: 16px 20px; border-radius: 6px; margin: 24px 0; }
html[dir="rtl"] .policy-callout { border-left: 0; border-right: 3px solid var(--brand); }

/* ============ Responsive spotlight ============ */
@media (max-width: 1000px) {
  .spotlight-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Explicit row/column placement (used on the About page's 4-card AI-native
     grid) only makes sense at the 3-column desktop width — reset it here so
     cards fall back to natural source-order stacking. */
  .spotlight-card { grid-row: auto !important; grid-column: auto !important; }
}
@media (max-width: 600px) {
  .spotlight-grid { grid-template-columns: 1fr !important; }
}

/* ============ Trust strip (auto-scrolling marquee) ============ */
.trust-strip {
  position: relative;
  background: transparent;
  padding: 56px 0;
  overflow: hidden;
  /* Soft horizontal fade so the marquee dissolves at both ends */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.trust-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: trust-scroll 38s linear infinite;
}
.trust-track ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
}
.trust-track li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.04);
}
.trust-track li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.trust-strip:hover .trust-track { animation-play-state: paused; }
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-shift, 33.333%))); }
}

/* ============ Solution grid (challenge solution cards) ============ */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.solution-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  overflow: hidden;
}
.solution-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity .25s ease;
}
.solution-card:hover {
  box-shadow: 0 20px 50px rgba(16,24,40,0.08);
  transform: translateY(-3px);
  border-color: var(--line-soft);
}
.solution-card:hover::before { opacity: 1; }
.sol-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(32,199,181,0.12));
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sol-icon svg { width: 26px; height: 26px; }
.solution-card h3 {
  font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 8px;
}
.solution-card p {
  font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0;
}

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

/* ============ Lifecycle stages (capture, govern, protect, ...) ============ */
.lifecycle {
  position: relative;
  margin-top: 32px;
}
.lifecycle-connector {
  position: absolute;
  top: 36px;
  left: 5%; right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--purple));
  opacity: 0.25;
  z-index: 0;
}
.lifecycle-stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.lifecycle-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 18px 22px;
  text-align: center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.lifecycle-step:hover {
  box-shadow: 0 16px 36px rgba(16,24,40,0.08);
  transform: translateY(-3px);
}
.ls-badge {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #FFF;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 18px rgba(37,99,235,0.20);
}
.ls-badge svg { width: 24px; height: 24px; }
.ls-num {
  display: inline-block;
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.lifecycle-step h3 {
  font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--ink);
}
.lifecycle-step p {
  font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0;
}
@media (max-width: 1100px) {
  .lifecycle-stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .lifecycle-stages { grid-template-columns: repeat(2, 1fr); }
  .lifecycle-connector { display: none; }
}

/* ============ Vault grid (security/compliance cards) ============ */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.vault-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.vault-card:hover {
  box-shadow: 0 18px 40px rgba(16,24,40,0.08);
  transform: translateY(-3px);
}
.v-badge {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(37,99,235,0.08);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.v-badge svg { width: 22px; height: 22px; }
.vault-card h3 {
  font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 8px;
}
.vault-card p {
  font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0;
}
.vault-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 14px;
}
.vault-tags span {
  background: rgba(32,199,181,0.10);
  color: var(--ink);
  border: 1px solid rgba(32,199,181,0.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
@media (max-width: 900px) {
  .vault-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .vault-grid { grid-template-columns: 1fr; }
}

/* ============ Stage live indicator ============ */
.stage-live {
  position: absolute;
  top: 16px;
  inset-inline-end: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(32,199,181,0.12);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.stage-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: stage-pulse 1.6s infinite;
}
@keyframes stage-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

/* ============ CTA strip ============ */
.cta-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(16,24,40,0.06);
}
.cta-strip h2 {
  font-size: 26px; line-height: 1.25; margin: 0 0 6px; color: var(--ink);
}
.cta-strip p { color: var(--muted); margin: 0; font-size: 15px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .cta-strip { flex-direction: column; align-items: stretch; padding: 28px; }
}

/* ============ Contact cards (used in contact page) ============ */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  transition: box-shadow .25s ease;
}
.contact-card:hover { box-shadow: 0 12px 30px rgba(16,24,40,0.06); }
.contact-card .ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(37,99,235,0.08);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============ Trust strip duplicate hides bullets ============ */
.trust-track ul { list-style: none; }

/* ============ Italic emphasis in headings (per-word brand colors) ============ */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 700;
  color: var(--brand);
}
.hero h1 em:nth-of-type(1) { color: var(--purple); }
.hero h1 em:nth-of-type(2) { color: var(--brand); }
.hero h1 em:nth-of-type(3) { color: var(--accent); }
.hero h1 em:nth-of-type(4) { color: var(--cyan); }
.section-head h2 em:nth-of-type(1) { color: var(--brand); }
.section-head h2 em:nth-of-type(2) { color: var(--accent); }
.section-head h2 em:nth-of-type(3) { color: var(--purple); }
.region-copy h2 em { color: var(--brand); }
.cta-strip h2 em { color: var(--brand); }

/* ============ Solution cards — scroll reveal + dynamic hover ============ */
.solution-card {
  /* initial offscreen state for reveal */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .65s cubic-bezier(.21,.55,.30,1),
    transform .65s cubic-bezier(.21,.55,.30,1),
    box-shadow .35s ease,
    border-color .35s ease;
}
.solution-card.is-in {
  opacity: 1;
  transform: translateY(0);
}
.solution-card:nth-child(1) { transition-delay: .00s, .00s, 0s, 0s; }
.solution-card:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
.solution-card:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.solution-card:nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; }
.solution-card:nth-child(5) { transition-delay: .32s, .32s, 0s, 0s; }
.solution-card:nth-child(6) { transition-delay: .40s, .40s, 0s, 0s; }

/* Animated gradient border + glow on hover */
.solution-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--brand), var(--accent), var(--purple), var(--cyan));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.solution-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.14), 0 4px 12px rgba(16,24,40,0.06);
  border-color: transparent;
}
.solution-card:hover::before { opacity: 1; height: 4px; }
.solution-card:hover::after { opacity: 1; }
.solution-card:hover .sol-icon {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #FFFFFF;
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}
.sol-icon { transition: background .35s ease, color .35s ease, transform .45s cubic-bezier(.21,.55,.30,1), box-shadow .35s ease; }

@media (prefers-reduced-motion: reduce) {
  .solution-card { opacity: 1; transform: none; transition: none; }
  .solution-card:hover { transform: none !important; }
  .solution-card:hover .sol-icon { transform: none; }
}

/* ============ Feature explorer — enhanced display + navigation ============ */
/* Refined tab cards */
.feature-tabs { gap: 14px; }
.feature-tab {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 22px 64px;
  cursor: pointer;
  transition:
    border-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease,
    background .35s ease;
  position: relative;
  overflow: hidden;
}
html[dir="rtl"] .feature-tab { padding: 20px 64px 22px 22px; }

/* Inactive tab hover */
.feature-tab:not(.active):hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 16px 30px rgba(16,24,40,0.05);
  transform: translateY(-2px);
}

/* Number circle: gradient & ripple on active */
.feature-tab::before {
  width: 32px; height: 32px;
  top: 22px;
  inset-inline-start: 22px;
  background: var(--bg-alt);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  transition: background .35s ease, color .35s ease, transform .35s ease, box-shadow .45s ease;
}
.feature-tab.active::before {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.30);
  transform: scale(1.06);
}
.feature-tab:not(.active):hover::before {
  background: rgba(37, 99, 235, 0.10);
  color: var(--brand);
}

/* Active tab: gradient border + side-bar indicator */
.feature-tab.active {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(32, 199, 181, 0.03)),
    #FFFFFF;
  border-color: transparent;
  box-shadow:
    0 24px 50px rgba(37, 99, 235, 0.12),
    0 0 0 1px rgba(37, 99, 235, 0.20);
}
.feature-tab.active::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 16px; bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
html[dir="rtl"] .feature-tab.active::after {
  inset-inline-start: auto; inset-inline-end: 0;
  border-radius: 3px 0 0 3px;
}

.tab-title { font-weight: 600; font-size: 15.5px; color: var(--ink); margin-bottom: 6px; transition: color .35s ease; }
.feature-tab.active .tab-title { color: var(--brand); }
.tab-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Improved progress bar */
.tab-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--cyan));
  border-radius: 0 3px 0 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.feature-tab.active .tab-progress { opacity: 1; }
.feature-tab.active .tab-progress.run {
  width: 100%;
  transition: width var(--tab-duration, 6s) linear;
}

/* Enhanced stage frame */
.feature-stage {
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.08), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(56, 217, 255, 0.10), transparent 50%),
    linear-gradient(180deg, #F4F7FB, #ECF1F7);
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.10);
}

/* Floating accent shapes inside stage */
.feature-stage::before, .feature-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.feature-stage::before {
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.20), transparent 70%);
}
.feature-stage::after {
  bottom: -60px; left: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(32, 199, 181, 0.18), transparent 70%);
}
.feature-stage-frame { position: relative; z-index: 1; }

/* Smoother slide cross-fade with slight slide-in */
.feature-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px) scale(0.99);
  transition:
    opacity .55s cubic-bezier(.21,.55,.30,1),
    transform .55s cubic-bezier(.21,.55,.30,1);
  pointer-events: none;
}
html[dir="rtl"] .feature-slide { transform: translateX(-20px) scale(0.99); }
.feature-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
/* html[dir="rtl"] .feature-slide (0,2,1) otherwise beats .feature-slide.active (0,2,0)
   and its transform never resets — the active AR slide sat permanently shifted
   ~20px left and scaled to 0.99. Higher-specificity reset fixes it. */
html[dir="rtl"] .feature-slide.active {
  transform: translateX(0) scale(1);
}

/* Subtle parallax on hover of the stage */
.feature-stage-frame { transition: transform .45s ease; }
.feature-stage:hover .feature-stage-frame { transform: translateY(-2px); }

/* Live preview pill — already styled but bump it forward */
.stage-live { z-index: 3; backdrop-filter: blur(4px); }

/* Pagination dots — placed below stage */
.feature-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.feature-pagination button {
  appearance: none;
  border: 0;
  background: rgba(16, 24, 40, 0.15);
  width: 28px; height: 6px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, width .3s ease;
}
.feature-pagination button:hover { background: rgba(37, 99, 235, 0.45); }
.feature-pagination button.active {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  width: 56px;
}

@media (max-width: 960px) {
  .feature-stage { min-height: 320px; }
  .feature-tab { padding: 16px 18px 18px 56px; }
  html[dir="rtl"] .feature-tab { padding: 16px 56px 18px 18px; }
  .feature-tab::before { top: 18px; inset-inline-start: 18px; }
}

/* ============ Feature explorer — compact tabs + caption under screenshot ============ */
/* Narrower tab column, more room for the dashboard image */
.feature-explorer {
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

/* Compact tab card: just number + title, no description inside */
.feature-tab {
  padding: 14px 18px 14px 56px !important;
}
html[dir="rtl"] .feature-tab {
  padding: 14px 56px 14px 18px !important;
}
.feature-tab .tab-desc { display: none; }
.feature-tab .tab-title { font-size: 14.5px; margin-bottom: 0; }
.feature-tab::before {
  width: 26px; height: 26px;
  top: 14px;
  inset-inline-start: 18px;
  font-size: 12px;
}
.feature-tab.active::after {
  top: 10px; bottom: 10px;
}

/* Caption block beneath the active screenshot */
.stage-caption {
  margin-top: 18px;
  padding: 18px 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
  min-height: 78px;
  position: relative;
  overflow: hidden;
}
.stage-caption::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: 4px 0 0 4px;
}
html[dir="rtl"] .stage-caption::before { border-radius: 0 4px 4px 0; }
.stage-caption-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.stage-caption-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
/* Smooth fade between captions */
.stage-caption.changing .stage-caption-title,
.stage-caption.changing .stage-caption-desc {
  opacity: 0;
}
.stage-caption-title,
.stage-caption-desc {
  transition: opacity .25s ease;
}

@media (max-width: 960px) {
  .feature-explorer { grid-template-columns: 1fr; }
  .feature-tab { padding: 14px 16px 14px 50px !important; }
  html[dir="rtl"] .feature-tab { padding: 14px 50px 14px 16px !important; }
  .feature-tab::before { top: 14px; inset-inline-start: 16px; }
}

/* ============ Feature explorer — modern stacked layout (override) ============ */
/* Stack vertically: tab bar on top, full-width stage, caption below */
.feature-explorer {
  display: block !important;
  grid-template-columns: none !important;
  position: relative;
}

/* Horizontal pill tab bar */
.feature-tabs {
  display: inline-flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  padding: 6px !important;
  background: rgba(16, 24, 40, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto 28px !important;
  width: auto;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.feature-tabs::-webkit-scrollbar { display: none; }

/* Wrap the tabs row in a centered container */
.feature-explorer > .feature-tabs {
  display: flex !important;
}
.feature-explorer {
  text-align: center;
}
.feature-explorer .feature-stage,
.feature-explorer .stage-caption,
.feature-explorer .feature-pagination {
  text-align: left;
}
html[dir="rtl"] .feature-explorer .feature-stage,
html[dir="rtl"] .feature-explorer .stage-caption {
  text-align: right;
}

/* Pill tabs */
.feature-tab {
  all: unset;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition:
    color .35s ease,
    background .35s ease,
    transform .35s ease;
  position: relative;
}
.feature-tab::before {
  /* Show only when active — a small dot to the left of the title */
  content: "" !important;
  width: 8px !important; height: 8px !important;
  background: linear-gradient(135deg, var(--brand), var(--accent)) !important;
  border-radius: 50% !important;
  position: static !important;
  top: auto !important; inset-inline-start: auto !important;
  margin: 0 !important;
  display: inline-block !important;
  flex-shrink: 0;
  transform: scale(0) !important;
  transition: transform .35s cubic-bezier(.21,.55,.30,1) !important;
  box-shadow: none !important;
  color: transparent !important;
}
.feature-tab .tab-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  margin: 0 !important;
}
.feature-tab .tab-desc { display: none !important; }
.feature-tab .tab-progress { display: none !important; }
.feature-tab::after { display: none !important; }

/* Hover: subtle */
.feature-tab:not(.active):hover {
  color: var(--ink);
  background: rgba(37, 99, 235, 0.06) !important;
  transform: none !important;
}

/* Active: gradient pill, white text, dot visible */
.feature-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--accent)) !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25) !important;
  transform: none !important;
}
.feature-tab.active::before {
  transform: scale(1) !important;
  background: #FFFFFF !important;
}
.feature-tab.active .tab-title { color: #FFFFFF; }

/* Wide stage — fills the container */
.feature-stage {
  display: block;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.10), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(56, 217, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #F4F7FB, #ECF1F7);
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 22px;
  padding: 26px;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(37, 99, 235, 0.12);
}

/* Caption below: centered, generous */
.stage-caption {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 26px;
  padding: 0 8px;
  text-align: center;
  min-height: 60px;
}
.stage-caption::before { display: none; }
.stage-caption-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 600;
}
.stage-caption-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pagination dots row */
.feature-pagination { margin-top: 22px; }
.feature-pagination button { background: rgba(16, 24, 40, 0.18); width: 8px; height: 8px; border-radius: 50%; }
.feature-pagination button:hover { background: rgba(37, 99, 235, 0.45); }
.feature-pagination button.active { background: linear-gradient(135deg, var(--brand), var(--accent)); width: 32px; border-radius: 999px; }

/* RTL: dot flips position */
html[dir="rtl"] .feature-tabs { direction: rtl; }

@media (max-width: 600px) {
  .feature-tabs { padding: 4px !important; }
  .feature-tab { padding: 8px 16px !important; font-size: 13px; }
  .feature-stage { min-height: 360px; padding: 16px; }
}

/* ============ Feature explorer — center tabs + uncropped image ============ */
/* Center the pill tab bar by wrapping it in a flex container at the explorer level */
.feature-explorer {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}
.feature-explorer > .feature-stage,
.feature-explorer > .stage-caption,
.feature-explorer > .feature-pagination {
  width: 100%;
  align-self: stretch;
}
.feature-explorer > .feature-tabs {
  align-self: center;
  display: inline-flex !important;
  width: max-content;
  max-width: 100%;
}

/* Show the full screenshot — no cropping */
.feature-stage {
  min-height: 0;            /* let aspect ratio drive height */
  padding: 18px;
}
.feature-stage-frame {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}
.frame-screen {
  position: relative;
  aspect-ratio: 1672 / 941; /* matches the screenshot's native ratio */
  min-height: 0 !important;
  height: auto;
  background: #FFFFFF;
}
.feature-slide {
  position: absolute;
  inset: 0;
}
.feature-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;  /* show the whole image */
  object-position: center;
  background: #FFFFFF;
}

@media (max-width: 600px) {
  .frame-screen { aspect-ratio: 1672 / 1100; }   /* a touch more vertical room on phone */
}

/* ============ Stage caption — left-align title + description together ============ */
.feature-explorer .stage-caption {
  text-align: left !important;
  padding: 0 26px !important;  /* line up with stage's inner padding */
  max-width: 100%;
}
html[dir="rtl"] .feature-explorer .stage-caption { text-align: right !important; }
.feature-explorer .stage-caption-title {
  text-align: left;
  margin: 0 0 6px;
}
.feature-explorer .stage-caption-desc {
  text-align: left;
  max-width: 720px !important;
  margin: 0 !important;   /* drop auto-centering so it lines up with the title */
}
html[dir="rtl"] .feature-explorer .stage-caption-title,
html[dir="rtl"] .feature-explorer .stage-caption-desc { text-align: right; }

/* ============ IP Lifecycle — linear process display (override) ============ */
.lifecycle {
  position: relative;
  margin-top: 48px;
  padding: 0 20px;
}

/* Continuous gradient timeline running through all the badges */
.lifecycle-connector {
  position: absolute;
  top: 38px;                  /* aligned to badge vertical center */
  left: 7%;
  right: 7%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--brand), var(--accent), var(--cyan));
  opacity: 1;
  border-radius: 3px;
  z-index: 0;
}
html[dir="rtl"] .lifecycle-connector {
  background: linear-gradient(270deg, var(--purple), var(--brand), var(--accent), var(--cyan));
}
/* Soft moving glow on the timeline */
.lifecycle-connector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lifecycle-flow 6s linear infinite;
  border-radius: inherit;
}
@keyframes lifecycle-flow {
  from { background-position: -100% 0; }
  to   { background-position: 100% 0; }
}

.lifecycle-stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Remove the boxed look — make each step a flat, centered column */
.lifecycle-step {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 12px !important;
  text-align: center;
  position: relative;
  box-shadow: none !important;
  transition: transform .35s ease;
}
.lifecycle-step:hover {
  transform: translateY(-4px) !important;
  box-shadow: none !important;
}

/* Badge sits on the timeline — solid white core + colored ring */
.ls-badge {
  width: 76px !important; height: 76px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--brand) !important;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px !important;
  position: relative;
  box-shadow:
    0 0 0 3px #FFFFFF,                       /* white halo to "punch through" the line */
    0 0 0 6px rgba(37, 99, 235, 0.15),
    0 14px 28px rgba(37, 99, 235, 0.18) !important;
  transition: transform .35s ease, box-shadow .35s ease, color .35s ease;
}
.ls-badge svg { width: 30px !important; height: 30px !important; }

.lifecycle-step:nth-child(1) .ls-badge { color: var(--purple); }
.lifecycle-step:nth-child(2) .ls-badge { color: var(--brand); }
.lifecycle-step:nth-child(3) .ls-badge { color: var(--brand); }
.lifecycle-step:nth-child(4) .ls-badge { color: var(--accent); }
.lifecycle-step:nth-child(5) .ls-badge { color: var(--accent); }
.lifecycle-step:nth-child(6) .ls-badge { color: var(--cyan); }

.lifecycle-step:hover .ls-badge {
  transform: scale(1.08);
  box-shadow:
    0 0 0 3px #FFFFFF,
    0 0 0 8px rgba(37, 99, 235, 0.25),
    0 18px 36px rgba(37, 99, 235, 0.28) !important;
}

/* Arrow chevron between badges */
.lifecycle-step::after {
  content: "›";
  position: absolute;
  top: 38px;
  inset-inline-end: -7px;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--brand);
  font-weight: 700;
  background: #FFFFFF;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #FFFFFF;
  z-index: 2;
  opacity: 0.85;
}
html[dir="rtl"] .lifecycle-step::after { content: "›" !important; }
.lifecycle-step:last-child::after { display: none; }

/* Number above the title */
.ls-num {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  letter-spacing: 0.18em !important;
  margin-bottom: 6px !important;
}
.lifecycle-step h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  color: var(--ink) !important;
}
.lifecycle-step p {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: var(--muted) !important;
  margin: 0 !important;
  max-width: 180px;
  margin-inline: auto !important;
}

@media (max-width: 1100px) {
  .lifecycle-stages { grid-template-columns: repeat(3, 1fr); gap: 36px 8px; }
  .lifecycle-connector { display: none; }
  .lifecycle-step:nth-child(3n)::after { display: none; }
}
@media (max-width: 640px) {
  .lifecycle-stages { grid-template-columns: repeat(2, 1fr); }
  .lifecycle-step::after { display: none; }
}

/* ============ Lifecycle badges — hover fills circle with stage color ============ */
.ls-badge {
  position: relative;
  overflow: hidden;
}
.ls-badge svg {
  position: relative;
  z-index: 2;
  transition: color .35s ease, transform .45s cubic-bezier(.21,.55,.30,1);
}
.ls-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .35s ease, transform .45s cubic-bezier(.21,.55,.30,1);
  z-index: 1;
}

/* Per-stage gradient fill behind the icon when hovering */
.lifecycle-step:nth-child(1) .ls-badge::before { background: linear-gradient(135deg, var(--purple), var(--brand)); }
.lifecycle-step:nth-child(2) .ls-badge::before { background: linear-gradient(135deg, var(--brand), #5B82F0); }
.lifecycle-step:nth-child(3) .ls-badge::before { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.lifecycle-step:nth-child(4) .ls-badge::before { background: linear-gradient(135deg, var(--accent), #4AD0C0); }
.lifecycle-step:nth-child(5) .ls-badge::before { background: linear-gradient(135deg, var(--accent), var(--cyan)); }
.lifecycle-step:nth-child(6) .ls-badge::before { background: linear-gradient(135deg, var(--cyan), #7AE2FF); }

.lifecycle-step:hover .ls-badge::before {
  opacity: 1;
  transform: scale(1);
}
.lifecycle-step:hover .ls-badge {
  color: #FFFFFF !important;
}
.lifecycle-step:hover .ls-badge svg {
  color: #FFFFFF;
  stroke: #FFFFFF;
  transform: scale(1.10) rotate(-4deg);
}

/* Title gently picks up the stage's hue on hover */
.lifecycle-step:nth-child(1):hover h3 { color: var(--purple) !important; }
.lifecycle-step:nth-child(2):hover h3,
.lifecycle-step:nth-child(3):hover h3 { color: var(--brand) !important; }
.lifecycle-step:nth-child(4):hover h3,
.lifecycle-step:nth-child(5):hover h3 { color: var(--accent) !important; }
.lifecycle-step:nth-child(6):hover h3 { color: var(--cyan) !important; }
.lifecycle-step h3 { transition: color .35s ease; }

@media (prefers-reduced-motion: reduce) {
  .ls-badge::before,
  .ls-badge svg { transition: none; }
  .lifecycle-step:hover .ls-badge svg { transform: none; }
}

/* ============ Region (From Riyadh) — align typography with rest of site ============ */
.region-copy h2 {
  font-size: clamp(28px, 3.8vw, 42px) !important;
  line-height: 1.15 !important;
  margin: 16px 0 18px !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.region-copy p {
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--muted);
  margin: 0 0 18px !important;
  max-width: 560px;
}
.region-copy .eyebrow { margin-bottom: 14px; }

/* AR fallback */
html[lang="ar"] .region-copy h2 { line-height: 1.3 !important; letter-spacing: 0 !important; }
html[lang="ar"] .region-copy p { font-size: 16.5px !important; line-height: 1.85 !important; }

/* ============ Eyebrow — restore dot-text spacing on interior pages ============ */
.page-hero .eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  margin-bottom: 18px;
}
.eyebrow { gap: 10px !important; }

/* Slightly bigger dot + breathing room on either side */
.eyebrow::before {
  margin-inline-end: 2px;
}

/* ============ Eyebrow dot spacing — universal fix ============ */
/* Multiple earlier overrides set display: inline-block on the eyebrow, which kills flex `gap`. 
   The most reliable fix is to give the ::before dot a real margin instead of relying on flex gap. */
.eyebrow::before {
  margin-inline-end: 10px !important;
}
/* And keep eyebrow alignment middle-of-line wherever it lives */
.eyebrow,
.page-hero .eyebrow,
.section-head .eyebrow,
.region-copy .eyebrow {
  vertical-align: middle;
}

/* ============ Section heads — guarantee centering when not .left ============ */
.section-head:not(.left) {
  max-width: 760px !important;
  margin-inline: auto !important;
  margin-block: 0 56px !important;
  text-align: center !important;
}
.section-head:not(.left) > * {
  margin-inline-start: auto;
  margin-inline-end: auto;
}
.section-head:not(.left) h2,
.section-head:not(.left) .section-sub {
  text-align: center !important;
  max-width: 720px;
  margin-inline: auto !important;
  text-wrap: balance;          /* balance multi-line headings cleanly */
}
.section-head:not(.left) .eyebrow {
  margin-inline: auto !important;
  margin-bottom: 14px !important;
}

/* ============ Solution cards — harmonize with lifecycle aesthetic ============ */
/* Wider H2 so it doesn't break oddly */
.section-head:not(.left) h2 { max-width: 820px; }

/* Solution grid — softer card, no rigid border */
.solution-grid { counter-reset: sol; gap: 26px !important; }

.solution-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.045) 0%, rgba(37, 99, 235, 0.03) 55%, rgba(255, 255, 255, 0.6) 100%) !important;
  border: 1px solid rgba(124, 58, 237, 0.10) !important;
  border-radius: 20px !important;
  padding: 32px 26px !important;
  counter-increment: sol;
  position: relative;
  text-align: left;
}

/* Round colored icon badge — matches lifecycle visual language */
.sol-icon {
  width: 64px !important; height: 64px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--brand) !important;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 22px !important;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(37, 99, 235, 0.10),
    0 12px 24px rgba(37, 99, 235, 0.14) !important;
  transition: color .35s ease, transform .45s cubic-bezier(.21,.55,.30,1), box-shadow .35s ease !important;
}
.sol-icon svg { width: 28px !important; height: 28px !important; position: relative; z-index: 2; transition: transform .45s cubic-bezier(.21,.55,.30,1); }

/* Per-card icon colors echo the lifecycle gradient progression */
.solution-card:nth-child(1) .sol-icon { color: var(--purple) !important; box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.10), 0 12px 24px rgba(124, 58, 237, 0.14) !important; }
.solution-card:nth-child(2) .sol-icon { color: var(--brand) !important; }
.solution-card:nth-child(3) .sol-icon { color: var(--brand) !important; }
.solution-card:nth-child(4) .sol-icon { color: var(--accent) !important; box-shadow: 0 0 0 6px rgba(32, 199, 181, 0.10), 0 12px 24px rgba(32, 199, 181, 0.14) !important; }
.solution-card:nth-child(5) .sol-icon { color: var(--accent) !important; box-shadow: 0 0 0 6px rgba(32, 199, 181, 0.10), 0 12px 24px rgba(32, 199, 181, 0.14) !important; }
.solution-card:nth-child(6) .sol-icon { color: var(--cyan) !important; box-shadow: 0 0 0 6px rgba(56, 217, 255, 0.12), 0 12px 24px rgba(56, 217, 255, 0.18) !important; }

/* Gradient fill background that grows from center on hover */
.sol-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity .35s ease, transform .45s cubic-bezier(.21,.55,.30,1);
  z-index: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.solution-card:nth-child(1) .sol-icon::before { background: linear-gradient(135deg, var(--purple), var(--brand)); }
.solution-card:nth-child(4) .sol-icon::before { background: linear-gradient(135deg, var(--accent), #4AD0C0); }
.solution-card:nth-child(5) .sol-icon::before { background: linear-gradient(135deg, var(--accent), var(--cyan)); }
.solution-card:nth-child(6) .sol-icon::before { background: linear-gradient(135deg, var(--cyan), #7AE2FF); }

.solution-card:hover .sol-icon::before { opacity: 1; transform: scale(1); }
.solution-card:hover .sol-icon {
  color: #FFFFFF !important;
  transform: scale(1.06);
}
.solution-card:hover .sol-icon svg { color: #FFFFFF; stroke: #FFFFFF; transform: rotate(-4deg) scale(1.10); }

/* Step number (01–06) opposite side from the icon so they don't overlap.
   - EN (LTR): number top-RIGHT (icon stays top-left)
   - AR (RTL): number top-LEFT  (icon stays top-right)
   The leftover `left: 0; right: 0` from the earlier .solution-card::before
   (gradient bar rule) are explicitly reset here so the counter sits in the
   correct corner instead of stretching across the card. */
.solution-card::before {
  content: counter(sol, decimal-leading-zero) !important;
  position: absolute;
  top: 22px !important;
  left: auto !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 26px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  opacity: 0.7;
  background: none !important;
  height: auto !important;
  width: auto !important;
  border-radius: 0 !important;
  z-index: 3;
}
.solution-card:hover::before { color: var(--brand); opacity: 1; }

/* Title tinted by the same family colour on hover */
.solution-card h3 {
  font-size: 19px !important;
  margin: 0 0 10px !important;
  transition: color .35s ease;
}
.solution-card p {
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: var(--muted);
  margin: 0;
}
.solution-card:nth-child(1):hover h3 { color: var(--purple) !important; }
.solution-card:nth-child(2):hover h3,
.solution-card:nth-child(3):hover h3 { color: var(--brand) !important; }
.solution-card:nth-child(4):hover h3,
.solution-card:nth-child(5):hover h3 { color: var(--accent) !important; }
.solution-card:nth-child(6):hover h3 { color: var(--cyan) !important; }

/* Last card in a 2-column solution grid spans full width and lays out
   horizontally (icon beside the text) instead of stacked — closes the grid
   cleanly when the card count is odd. */
.solution-grid .solution-card:last-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
}
.solution-grid .solution-card:last-child .sol-icon { margin: 0 !important; flex-shrink: 0; }
.solution-grid .solution-card:last-child .sol-text { flex: 1; }
.solution-grid .solution-card:last-child h3 { margin: 0 0 4px !important; }
.solution-grid .solution-card:last-child p { margin: 0; }
@media (max-width: 600px) {
  .solution-grid .solution-card:last-child {
    flex-direction: column;
    align-items: flex-start;
  }
  .solution-grid .solution-card:last-child .sol-icon { margin: 0 0 18px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-icon, .sol-icon::before, .sol-icon svg { transition: none !important; }
}

/* ============ Solution cards — AR (RTL): swap icon/number corners,
   right-align heading + description, keep the "opposite corner" design
   intent so the icon and the step number never overlap. ============ */
html[dir="rtl"] .solution-card {
  text-align: right;
}
html[dir="rtl"] .solution-card::before {
  inset-inline-start: 26px !important;
  inset-inline-end: auto !important;
}
html[dir="rtl"] .solution-card .sol-icon {
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
}
/* Last (full-width) card: icon + text sit in a flex row — reverse it so the
   icon moves to the opposite side from the (now right-aligned) number, and
   the text block sits toward the right per RTL reading order. */
html[dir="rtl"] .solution-grid .solution-card:last-child {
  flex-direction: row-reverse;
}
@media (max-width: 600px) {
  html[dir="rtl"] .solution-grid .solution-card:last-child {
    flex-direction: column;
    align-items: flex-end;
  }
}
/* Last card, RTL: the step number sits top-right (see ::before rule above)
   independent of this flex row, so give the text block its own top offset
   — a column flex container, matching the number-to-heading rhythm of the
   stacked cards above — instead of leaving it flush with the icon. */
html[dir="rtl"] .solution-grid .solution-card:last-child .sol-text {
  display: flex;
  flex-direction: column;
  direction: rtl;
  margin-top: 20px;
}

/* ============ Section head — wider headline ============ */
.section-head:not(.left) {
  max-width: 980px !important;
}
.section-head:not(.left) h2 {
  max-width: 100% !important;
  text-wrap: balance;
}
.section-head:not(.left) .section-sub {
  max-width: 720px !important;
  margin-inline: auto !important;
}

/* ============ Lifecycle — 7 stages (was 6) ============ */
.lifecycle-stages { grid-template-columns: repeat(7, 1fr) !important; }
.lifecycle-step:nth-child(7) .ls-badge { color: var(--cyan) !important; }
.lifecycle-step:nth-child(7) .ls-badge::before { background: linear-gradient(135deg, var(--cyan), #7AE2FF); }
.lifecycle-step:nth-child(7):hover h3 { color: var(--cyan) !important; }

@media (max-width: 1200px) {
  .lifecycle-stages { grid-template-columns: repeat(4, 1fr) !important; gap: 36px 8px; row-gap: 36px; }
  .lifecycle-connector { display: none; }
}
@media (max-width: 700px) {
  .lifecycle-stages { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============ Lifecycle — richer, less bland ============ */
/* Give the section itself an ambient backdrop */
.section .lifecycle {
  position: relative;
  padding: 60px 30px 50px !important;
  background:
    radial-gradient(circle at 0% 50%, rgba(124, 58, 237, 0.05), transparent 40%),
    radial-gradient(circle at 100% 50%, rgba(56, 217, 255, 0.06), transparent 40%),
    linear-gradient(180deg, #FFFFFF, #F7F9FC) !important;
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  margin-top: 32px;
}

/* Decorative floating shapes inside the section */
.section .lifecycle::before,
.section .lifecycle::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.section .lifecycle::before {
  top: -60px; left: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
}
.section .lifecycle::after {
  bottom: -60px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(32, 199, 181, 0.15), transparent 70%);
}

/* Make the timeline thicker, more brand */
.lifecycle-connector {
  top: 42px !important;
  height: 4px !important;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
}

/* A traveling pulse dot that runs along the timeline */
.lifecycle-connector::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow:
    0 0 0 3px var(--brand),
    0 0 20px 4px rgba(37, 99, 235, 0.55);
  transform: translateY(-50%);
  animation: lifecycle-travel 7s ease-in-out infinite;
}
@keyframes lifecycle-travel {
  0%   { left: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
html[dir="rtl"] .lifecycle-connector::before { animation-direction: reverse; }

/* Lifecycle step — keep flat layout but add subtle hover platform */
.lifecycle-step {
  padding: 12px 8px 14px !important;
  border-radius: 16px;
  transition: background .35s ease, transform .35s ease !important;
  position: relative;
  z-index: 1;
}
.lifecycle-step:hover {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
}

/* Bigger, more dramatic badges */
.ls-badge {
  width: 84px !important; height: 84px !important;
  box-shadow:
    0 0 0 4px #FFFFFF,
    0 0 0 8px rgba(37, 99, 235, 0.12),
    0 18px 36px rgba(37, 99, 235, 0.20) !important;
}
.ls-badge svg { width: 32px !important; height: 32px !important; }

/* Number with brand chip background */
.ls-num {
  display: inline-block !important;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(32, 199, 181, 0.08));
  color: var(--brand) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  border-radius: 999px;
  margin-bottom: 8px !important;
}

.lifecycle-step h3 {
  font-size: 16.5px !important;
  letter-spacing: -0.01em;
}
.lifecycle-step p {
  font-size: 13px !important;
  color: var(--muted) !important;
  max-width: 170px;
  margin: 0 auto !important;
}

/* Section head — tighten spacing above the lifecycle */
.section:has(.lifecycle) .section-head { margin-bottom: 24px; }

/* ============ Remove the traveling pulse dot on the timeline ============ */
.lifecycle-connector::before,
.lifecycle-connector::after {
  display: none !important;
  animation: none !important;
}

/* ============ Lifecycle icons — uniform brand color ============ */
.lifecycle-step .ls-badge,
.lifecycle-step:nth-child(1) .ls-badge,
.lifecycle-step:nth-child(2) .ls-badge,
.lifecycle-step:nth-child(3) .ls-badge,
.lifecycle-step:nth-child(4) .ls-badge,
.lifecycle-step:nth-child(5) .ls-badge,
.lifecycle-step:nth-child(6) .ls-badge,
.lifecycle-step:nth-child(7) .ls-badge {
  color: var(--brand) !important;
  box-shadow:
    0 0 0 4px #FFFFFF,
    0 0 0 8px rgba(37, 99, 235, 0.12),
    0 18px 36px rgba(37, 99, 235, 0.20) !important;
}

/* Keep the hover gradient fill consistent — all blue→teal */
.lifecycle-step:nth-child(1) .ls-badge::before,
.lifecycle-step:nth-child(2) .ls-badge::before,
.lifecycle-step:nth-child(3) .ls-badge::before,
.lifecycle-step:nth-child(4) .ls-badge::before,
.lifecycle-step:nth-child(5) .ls-badge::before,
.lifecycle-step:nth-child(6) .ls-badge::before,
.lifecycle-step:nth-child(7) .ls-badge::before {
  background: linear-gradient(135deg, var(--brand), var(--accent)) !important;
}

/* Title hover color uniform too */
.lifecycle-step:nth-child(1):hover h3,
.lifecycle-step:nth-child(2):hover h3,
.lifecycle-step:nth-child(3):hover h3,
.lifecycle-step:nth-child(4):hover h3,
.lifecycle-step:nth-child(5):hover h3,
.lifecycle-step:nth-child(6):hover h3,
.lifecycle-step:nth-child(7):hover h3 {
  color: var(--brand) !important;
}

/* ============ Lifecycle — remove timeline, sequential blink ============ */
.lifecycle-connector { display: none !important; }

/* Sequential pulse: each badge brightens in turn, completing a left→right cycle */
.ls-badge {
  animation: ls-pulse 7s ease-in-out infinite;
}
.lifecycle-step:nth-child(1) .ls-badge { animation-delay: 0s; }
.lifecycle-step:nth-child(2) .ls-badge { animation-delay: 1s; }
.lifecycle-step:nth-child(3) .ls-badge { animation-delay: 2s; }
.lifecycle-step:nth-child(4) .ls-badge { animation-delay: 3s; }
.lifecycle-step:nth-child(5) .ls-badge { animation-delay: 4s; }
.lifecycle-step:nth-child(6) .ls-badge { animation-delay: 5s; }
.lifecycle-step:nth-child(7) .ls-badge { animation-delay: 6s; }

@keyframes ls-pulse {
  0%, 14%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 4px #FFFFFF,
      0 0 0 8px rgba(37, 99, 235, 0.12),
      0 18px 36px rgba(37, 99, 235, 0.20);
  }
  6% {
    transform: scale(1.10);
    box-shadow:
      0 0 0 4px #FFFFFF,
      0 0 0 14px rgba(37, 99, 235, 0.30),
      0 0 28px 4px rgba(37, 99, 235, 0.40),
      0 18px 36px rgba(37, 99, 235, 0.25);
  }
}

/* RTL: reverse the sequence so it pulses right→left */
html[dir="rtl"] .lifecycle-step:nth-child(1) .ls-badge { animation-delay: 0s; }
html[dir="rtl"] .lifecycle-step:nth-child(2) .ls-badge { animation-delay: 1s; }
html[dir="rtl"] .lifecycle-step:nth-child(3) .ls-badge { animation-delay: 2s; }
html[dir="rtl"] .lifecycle-step:nth-child(4) .ls-badge { animation-delay: 3s; }
html[dir="rtl"] .lifecycle-step:nth-child(5) .ls-badge { animation-delay: 4s; }
html[dir="rtl"] .lifecycle-step:nth-child(6) .ls-badge { animation-delay: 5s; }
html[dir="rtl"] .lifecycle-step:nth-child(7) .ls-badge { animation-delay: 6s; }

/* Pause animation on hover so user can inspect a specific badge */
.lifecycle-step:hover .ls-badge { animation-play-state: paused; }

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

/* ============ Lifecycle — sequential "hover" effect (gradient fill + white icon) ============ */
/* Override the simple scale pulse with the same look as the manual hover state */
.ls-badge {
  animation: ls-fill 7s ease-in-out infinite !important;
}
.ls-badge::before {
  animation: ls-fill-bg 7s ease-in-out infinite !important;
}
.ls-badge svg {
  animation: ls-fill-icon 7s ease-in-out infinite !important;
}

/* Per-stage delay — left→right cycle */
.lifecycle-step:nth-child(1) .ls-badge,
.lifecycle-step:nth-child(1) .ls-badge::before,
.lifecycle-step:nth-child(1) .ls-badge svg { animation-delay: 0s !important; }
.lifecycle-step:nth-child(2) .ls-badge,
.lifecycle-step:nth-child(2) .ls-badge::before,
.lifecycle-step:nth-child(2) .ls-badge svg { animation-delay: 1s !important; }
.lifecycle-step:nth-child(3) .ls-badge,
.lifecycle-step:nth-child(3) .ls-badge::before,
.lifecycle-step:nth-child(3) .ls-badge svg { animation-delay: 2s !important; }
.lifecycle-step:nth-child(4) .ls-badge,
.lifecycle-step:nth-child(4) .ls-badge::before,
.lifecycle-step:nth-child(4) .ls-badge svg { animation-delay: 3s !important; }
.lifecycle-step:nth-child(5) .ls-badge,
.lifecycle-step:nth-child(5) .ls-badge::before,
.lifecycle-step:nth-child(5) .ls-badge svg { animation-delay: 4s !important; }
.lifecycle-step:nth-child(6) .ls-badge,
.lifecycle-step:nth-child(6) .ls-badge::before,
.lifecycle-step:nth-child(6) .ls-badge svg { animation-delay: 5s !important; }
.lifecycle-step:nth-child(7) .ls-badge,
.lifecycle-step:nth-child(7) .ls-badge::before,
.lifecycle-step:nth-child(7) .ls-badge svg { animation-delay: 6s !important; }

@keyframes ls-fill {
  0%, 14%, 100% {
    transform: scale(1);
    color: var(--brand);
  }
  6% {
    transform: scale(1.06);
    color: #FFFFFF;
  }
}
@keyframes ls-fill-bg {
  0%, 14%, 100% {
    opacity: 0;
    transform: scale(0.55);
  }
  6% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes ls-fill-icon {
  0%, 14%, 100% {
    transform: scale(1) rotate(0deg);
    color: var(--brand);
    stroke: currentColor;
  }
  6% {
    transform: scale(1.10) rotate(-4deg);
    color: #FFFFFF;
    stroke: #FFFFFF;
  }
}

/* RTL: reverse the sequence so the pulse moves right→left */
html[dir="rtl"] .lifecycle-step:nth-child(1) .ls-badge,
html[dir="rtl"] .lifecycle-step:nth-child(1) .ls-badge::before,
html[dir="rtl"] .lifecycle-step:nth-child(1) .ls-badge svg { animation-delay: 0s !important; }
html[dir="rtl"] .lifecycle-step:nth-child(2) .ls-badge,
html[dir="rtl"] .lifecycle-step:nth-child(2) .ls-badge::before,
html[dir="rtl"] .lifecycle-step:nth-child(2) .ls-badge svg { animation-delay: 1s !important; }
html[dir="rtl"] .lifecycle-step:nth-child(3) .ls-badge,
html[dir="rtl"] .lifecycle-step:nth-child(3) .ls-badge::before,
html[dir="rtl"] .lifecycle-step:nth-child(3) .ls-badge svg { animation-delay: 2s !important; }
html[dir="rtl"] .lifecycle-step:nth-child(4) .ls-badge,
html[dir="rtl"] .lifecycle-step:nth-child(4) .ls-badge::before,
html[dir="rtl"] .lifecycle-step:nth-child(4) .ls-badge svg { animation-delay: 3s !important; }
html[dir="rtl"] .lifecycle-step:nth-child(5) .ls-badge,
html[dir="rtl"] .lifecycle-step:nth-child(5) .ls-badge::before,
html[dir="rtl"] .lifecycle-step:nth-child(5) .ls-badge svg { animation-delay: 4s !important; }
html[dir="rtl"] .lifecycle-step:nth-child(6) .ls-badge,
html[dir="rtl"] .lifecycle-step:nth-child(6) .ls-badge::before,
html[dir="rtl"] .lifecycle-step:nth-child(6) .ls-badge svg { animation-delay: 5s !important; }
html[dir="rtl"] .lifecycle-step:nth-child(7) .ls-badge,
html[dir="rtl"] .lifecycle-step:nth-child(7) .ls-badge::before,
html[dir="rtl"] .lifecycle-step:nth-child(7) .ls-badge svg { animation-delay: 6s !important; }

/* Hovering a step pauses the whole sequence so the user can inspect it */
.lifecycle:hover .ls-badge,
.lifecycle:hover .ls-badge::before,
.lifecycle:hover .ls-badge svg {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ls-badge, .ls-badge::before, .ls-badge svg { animation: none !important; }
}

/* ============ Coming Soon (resources placeholder) ============ */
.coming-soon-grid {
  display: flex !important;
  justify-content: center;
  align-items: stretch;
}
.coming-soon-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 56px 48px;
  text-align: center;
  max-width: 620px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.06);
  position: relative;
  overflow: hidden;
}
.coming-soon-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--purple), var(--cyan));
}
.coming-soon-card .cs-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(32,199,181,0.12));
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.coming-soon-card .cs-icon svg { width: 32px; height: 32px; }
.coming-soon-card h3 {
  font-size: 26px; font-weight: 700; color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.coming-soon-card p {
  font-size: 16px; line-height: 1.65; color: var(--muted);
  margin: 0; max-width: 480px; margin-inline: auto;
}

/* ============ Contact page — design polish ============ */
/* Ambient decorative orbs behind the contact section */
.section #demo, .section[id="demo"] {
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-grid::before,
.contact-grid::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
.contact-grid::before {
  top: -40px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 70%);
}
.contact-grid::after {
  bottom: -60px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(32, 199, 181, 0.16), transparent 70%);
}

/* Refined contact cards */
.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex; gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow .35s ease,
    transform .35s ease,
    border-color .35s ease;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--purple), var(--cyan));
  opacity: 0;
  transition: opacity .35s ease;
}
.contact-card:hover {
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.10);
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.15);
}
.contact-card:hover::before { opacity: 1; }

.contact-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(32,199,181,0.10));
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .35s ease, color .35s ease, transform .45s cubic-bezier(.21,.55,.30,1);
}
.contact-card:hover .ico {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #FFFFFF;
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.contact-card a:hover { color: var(--brand-deep) !important; }

/* Form card — elevated with brand gradient stripe */
.contact-grid > div:last-child > div {
  background: #FFFFFF !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 22px !important;
  padding: 40px 38px !important;
  box-shadow: 0 32px 60px rgba(37, 99, 235, 0.10) !important;
  position: relative;
  overflow: hidden;
}
.contact-grid > div:last-child > div::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--purple), var(--cyan));
}
.contact-grid > div:last-child > div::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10), transparent 70%);
  pointer-events: none;
}
.contact-grid > div:last-child h2 {
  margin-top: 0;
  font-size: 26px !important;
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Improved form inputs */
.demo-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 16px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.demo-form input,
.demo-form select,
.demo-form textarea {
  background: var(--bg-alt);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.demo-form input:hover,
.demo-form select:hover,
.demo-form textarea:hover {
  background: #FFFFFF;
  border-color: var(--line);
}
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}
.demo-form button[type="submit"] {
  margin-top: 28px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid::before,
  .contact-grid::after { display: none; }
  .contact-grid > div:last-child > div { padding: 28px 24px !important; }
}

/* ============ Article body — list styling for blog posts ============ */
.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-inline-start: 26px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body li {
  margin-bottom: 8px;
}
.article-body h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-size: 18px;
  margin: 26px 0 10px;
  color: var(--ink);
  font-weight: 600;
}

/* Inline SVG banner for blog covers — fills the cover slot */
.article-cover .banner-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16,24,40,0.10);
  aspect-ratio: 16/9;
}

/* ===== Blog pagination controls ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination-btn {
  appearance: none;
  border: 1px solid var(--line, #E4E7EC);
  background: #fff;
  color: var(--ink, #101828);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  line-height: 1;
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--brand, #2563EB);
  color: var(--brand, #2563EB);
  transform: translateY(-1px);
}
.pagination-btn.active {
  background: var(--brand, #2563EB);
  border-color: var(--brand, #2563EB);
  color: #fff;
}
.pagination-btn.active:hover {
  color: #fff;
  transform: none;
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-arrow {
  font-size: 20px;
  font-weight: 600;
  padding: 0 14px;
}
/* RTL pagination order is handled in script.js via DOM order */
@media (max-width: 540px) {
  .pagination { gap: 6px; }
  .pagination-btn { min-width: 36px; height: 36px; font-size: 14px; padding: 0 10px; }
  .pagination-arrow { padding: 0 12px; }
}

/* ====== Defensive guarantees: trust strip MUST render and animate ====== */
.trust-strip {
  min-height: 96px;        /* guarantee height even if children fail */
  display: block;
  visibility: visible;
}
.trust-track {
  display: flex !important;
  flex-wrap: nowrap;
  width: max-content;
  animation: trust-scroll 38s linear infinite !important;
  animation-play-state: running !important;
}
.trust-track ul {
  display: flex !important;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.trust-track li { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  /* Still scroll the marquee — it's a passive, slow horizontal motion, not motion sickness territory. */
  .trust-track { animation: trust-scroll 60s linear infinite !important; }
}

/* ============================================================================
   MOBILE OPTIMIZATION PASS
   Consolidated tablet (≤768px) + phone (≤480px) fixes.
   Kept at the bottom so it wins the cascade against earlier rules.
   ========================================================================== */

/* ---------- Tablet (≤768px) ---------- */
@media (max-width: 768px) {

  /* --- Nav: hamburger appears, links collapse into stacked drawer --- */
  .site-header { position: sticky; }
  .nav-inner { position: relative; padding: 14px 20px; }
  .mobile-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 1px); left: 0; right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--line);
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px !important;
    box-shadow: 0 12px 28px rgba(16,24,40,0.06);
    z-index: 60;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a,
  .nav-links > * { width: 100%; padding: 10px 0; }
  .nav-links .btn-primary { width: 100%; text-align: center; margin-top: 4px; }
  html[dir="rtl"] .nav-links { align-items: flex-end !important; }
  /* Dropdown submenu (Resources) renders inline on mobile, always expanded
     (no hover on touch). Fixes phantom gap: menu was static (in-flow) but
     still opacity:0/visibility:hidden from desktop rules, reserving space. */
  .nav-links .nav-dropdown { width: 100%; position: static; }
  .nav-links .nav-dropdown::after { display: none; }
  .nav-links .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    box-shadow: none; padding: 4px 0 0 16px; background: transparent; border: 0;
  }
  html[dir="rtl"] .nav-links .dropdown-menu { transform: none; padding: 4px 16px 0 0; }
  .nav-links .dropdown-menu a { white-space: normal; padding: 8px 0; }

  /* --- Lang toggle: globe icon only (text overlaps the logo on small screens);
         aria-label keeps it accessible --- */
  .lang-toggle { font-size: 0; gap: 0; padding: 8px 11px; }
  .lang-toggle::before { font-size: 14px; }

  /* --- Brand logo: allow it to shrink instead of overflowing under the
         actions cluster (SVG has fixed intrinsic width otherwise) --- */
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand-logo { height: auto; max-height: 30px; max-width: 100%; }
  .nav-actions { gap: 8px; flex-shrink: 0; }

  /* --- Container gutter tighter --- */
  .container { padding: 0 20px; }

  /* --- Hero: stack, shrink padding, let visual/video use the full width --- */
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr !important; gap: 36px; }
  .hero-visual { width: 100%; max-width: none; margin: 0 auto; }
  .hero-visual video { width: 100%; max-width: none !important; }
  .hero-visual svg { width: 100%; height: auto; }
  .hero p { font-size: 17px; }
  .hero-cta { justify-content: flex-start; }
  html[dir="rtl"] .hero-cta { justify-content: flex-end; }
  html[lang="ar"] .hero-cta { justify-content: flex-end; }
  .hero-cta .btn { flex: 1 1 auto; }

  /* --- Section spacing --- */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(26px, 5vw, 34px); }
  .section-sub { font-size: 16px; }

  /* --- CTA strip stacks on tablet already; tighten padding --- */
  .cta-strip { padding: 36px 28px; }

  /* --- Feature explorer: single column, tabs stack vertically (full-width),
         image contained inside the browser frame so nothing gets cropped --- */
  .feature-explorer { grid-template-columns: 1fr !important; gap: 20px !important; }
  .feature-tabs { flex-direction: column !important; gap: 10px !important; }
  .feature-tab {
    width: 100%;
    padding: 14px 18px 14px 56px !important;
    min-width: 0;
    font-size: 14px;
  }
  html[dir="rtl"] .feature-tab { padding: 14px 56px 14px 18px !important; }
  .feature-tab .tab-title { font-size: 15px; }
  .feature-tab .tab-desc  { font-size: 13px; }
  .feature-stage { min-height: 0 !important; padding: 10px !important; }
  .frame-screen { aspect-ratio: 16 / 10; min-height: 0 !important; }
  .feature-slide img,
  .feature-slide iframe { object-fit: contain !important; background: #FFFFFF; }
  .stage-caption { padding-top: 12px; }
  .stage-caption-title { font-size: 18px !important; }
  .stage-caption-desc  { font-size: 14px !important; }

  /* --- Solution cards: less padding --- */
  .solution-card { padding: 26px 22px !important; }
  .sol-icon { width: 56px !important; height: 56px !important; margin-bottom: 18px !important; }

  /* --- Trust strip: keep it airy but not oversized --- */
  .trust-strip { padding: 40px 0; }
  .trust-track li { font-size: 12.5px; padding: 8px 14px; }

  /* --- Vault (security) cards already collapse @900/600 --- */

  /* --- Footer: 2-column then stack --- */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* --- Article body: comfy on phone --- */
  .article-hero h1 { font-size: clamp(28px, 6vw, 40px); }
  .article-body p, .article-body li { font-size: 17px; line-height: 1.7; }
  .article-body h2 { font-size: 22px; margin-top: 32px; }
  .article-cover { margin-bottom: 36px; }
}

/* ---------- Phone (≤480px) ---------- */
@media (max-width: 480px) {

  /* --- Trust strip: compact marquee --- */
  .trust-strip {
    padding: 28px 0;
    min-height: 64px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
  .trust-track { gap: 10px; }
  .trust-track ul { gap: 10px; }
  .trust-track li { font-size: 12px; padding: 7px 12px; gap: 6px; }

  .container { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .nav-actions .btn-primary { padding: 10px 16px; font-size: 14px; }

  .hero { padding: 44px 0 36px; }
  .hero h1 { line-height: 1.2; }
  .hero p { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .cta-strip { padding: 28px 20px; }
  .cta-strip h2 { font-size: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Solution/spotlight cards: single-column at ≤600 already, tune padding */
  .solution-card { padding: 22px 20px !important; }

  /* Lifecycle: single-column on phones */
  .lifecycle-stages { grid-template-columns: 1fr !important; }
  .lifecycle-connector { display: none !important; }

  /* Blog cards: keep aspect, shrink title */
  .resource-card h3 { font-size: 16px; }
  .resource-card p { font-size: 13.5px; }

  /* Feature explorer: nudge tab pills */
  .feature-tab { padding: 14px 16px 16px 52px !important; font-size: 14.5px; }
  html[dir="rtl"] .feature-tab { padding: 14px 52px 16px 16px !important; }
  .feature-stage { min-height: 220px !important; }

  /* Article body */
  .article-hero { padding: 40px 0 24px; }
  .article-hero h1 { font-size: 26px; }
  .article-body { padding-bottom: 56px; }

  /* Solution card number smaller / closer to the corner */
  .solution-card::before { top: 16px !important; inset-inline-end: 20px !important; font-size: 12px; }
  html[dir="rtl"] .solution-card::before { inset-inline-start: 20px !important; inset-inline-end: auto !important; }
}

/* AR trust-strip — behave exactly like EN: force LTR flow so the marquee
   scrolls right-to-left in a seamless loop with identical edge-fade. */
html[dir="rtl"] .trust-strip { direction: ltr; }
html[dir="rtl"] .trust-track { animation-direction: normal !important; }

/* ============ Cookie Consent ============ */
.cookie-banner-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}

.cookie-banner {
  position: relative;
  width: 100%;
  max-width: 600px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.5s ease-out forwards;
}

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

.cookie-banner-content h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.cookie-banner-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Language switch inside the cookie popup — sits in the top inline-end corner.
   justify-content:flex-end follows text direction (right in LTR, left in RTL). */
.cookie-lang-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
}

/* Honeypot anti-spam field — hidden off-screen from people, still in the DOM
   for bots to fill. Never use display:none (some bots skip hidden fields). */
.nlx-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cookie-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal-overlay.open .cookie-modal {
  transform: scale(1);
}

.cookie-modal h2 {
  padding: 24px 32px 16px;
  margin: 0;
  font-size: 20px;
  border-bottom: 1px solid var(--line);
}

.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

html[dir="rtl"] .cookie-modal-close {
  right: auto;
  left: 24px;
}

.cookie-modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-cat {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.cookie-cat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cookie-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cookie-cat-header strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.cookie-cat-header p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--line);
  transition: .4s;
  border-radius: 24px;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: var(--brand);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}
html[dir="rtl"] .toggle-switch input:checked + .slider:before {
  transform: translateX(-20px);
}

.toggle-switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cookie-banner-overlay { padding: 12px; }
  .cookie-banner { padding: 20px; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions button { width: 100%; text-align: center; }
  .cookie-modal { max-height: 95vh; }
  .cookie-modal h2 { padding: 20px 24px 16px; font-size: 18px; }
  .cookie-modal-body { padding: 20px 24px; }
  .cookie-modal-footer { padding: 16px 24px 20px; }
}


/* ============ Video blending ============
   Brand videos carry a light grey studio background; multiply blending
   melts it into the section background (white or tinted) so the motion
   feels native to the page instead of sitting in a grey box. */
video {
  mix-blend-mode: multiply;
  filter: brightness(1.04) contrast(1.04);
}
