/* =========================================================
   Enaya landing page
   Brand: navy #0B2C4F + sage #6A988D (from the logo).
   Supporting palette is brightened (fresh teal, mint, sky and a
   warm highlight) to keep the page light and energetic.
   Layout uses CSS logical properties so RTL and LTR share rules.
   ========================================================= */

:root {
  /* Brand */
  --navy: #0B2C4F;
  --navy-700: #12406E;
  --navy-900: #071F39;
  --sage: #6A988D;

  /* Fresh supporting palette */
  --teal: #1F9E86;
  --teal-600: #17836F;
  --teal-300: #7FD3BF;
  --mint: #DDF3EC;
  --mint-50: #F1FAF7;
  --sky: #E3F1FB;
  --sky-400: #5BB3E6;
  --sun: #FFC857;
  --sun-50: #FFF1CF;
  --sun-700: #9A6A00;
  --sky-700: #23709C;
  --blob-2: #9FD3F2;
  --warm: #FF9F6B;
  --white: #FFFFFF;

  /* RGB triplets for translucent overlays */
  --teal-rgb: 31, 158, 134;
  --teal-300-rgb: 127, 211, 191;
  --blue-rgb: 42, 143, 184;

  /* Text */
  --ink: #0B2C4F;
  --ink-muted: #52677C;
  --line: #D3E9E2;

  /* Gradients */
  --grad-mid: #2A8FB8;
  --grad-brand: linear-gradient(120deg, var(--teal) 0%, var(--grad-mid) 55%, var(--navy-700) 100%);
  --grad-text: linear-gradient(100deg, var(--teal) 0%, var(--sky-400) 100%);
  --grad-soft: linear-gradient(160deg, var(--mint-50) 0%, var(--sky) 60%, var(--white) 100%);

  /* UI */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 44, 79, 0.08);
  --shadow-lg: 0 30px 70px rgba(11, 44, 79, 0.16);
  --shadow-teal: 0 12px 30px rgba(var(--teal-rgb), 0.3);
  --header-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; } /* contain the tilted marquee and decorative layers */
img { max-width: 100%; height: auto; display: block; } /* width/height attrs reserve space; CSS sizes win */
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 8px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 60;
  background: linear-gradient(90deg, var(--teal), var(--sky-400), var(--sun));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* ---------- Logo (always LTR) ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; direction: ltr;
  font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; letter-spacing: .04em;
}
.logo-e {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--navy); color: var(--white); font-size: 1.5rem; line-height: 1;
}
.logo-naya { color: var(--sage); font-size: 1.6rem; line-height: 1; }
.logo-sm .logo-e { width: 30px; height: 30px; font-size: 1.15rem; }
.logo-sm .logo-naya { font-size: 1.25rem; }
.logo-light .logo-e { background: var(--white); color: var(--navy); }
.logo-light .logo-naya { color: var(--teal-300); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary {
  /* No border (it exposed a repeated gradient tile as a dark edge); padding +2px keeps the size. */
  border: 0; padding: 16px 32px;
  background: var(--grad-brand) 0 0 / 160% 100% no-repeat border-box;
  color: var(--white); box-shadow: var(--shadow-teal);
}
.btn-primary.btn-sm { padding: 10px 20px; }
.btn-primary.btn-block { padding-inline: 0; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 36px rgba(var(--teal-rgb),.38); }
.btn-outline { border-color: var(--teal); color: var(--teal-600); background: rgba(255,255,255,.6); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-whatsapp { background: #25D366; color: #06371C; margin-top: 8px; }
.btn-whatsapp:hover { background: #1fbe5b; }

/* Shine sweep */
.btn-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
  transform: skewX(-20deg);
  animation: shine 3.6s var(--ease) infinite;
}
@keyframes shine { 0%, 60% { inset-inline-start: -60%; } 100% { inset-inline-start: 130%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.92); box-shadow: 0 6px 24px rgba(11,44,79,.08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { position: relative; text-decoration: none; font-weight: 500; color: var(--ink-muted); transition: color .2s; }
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad-text); transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-current { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font: inherit; font-weight: 600; font-size: .9rem; min-width: 44px; height: 36px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.lang-toggle:hover { border-color: var(--teal); transform: rotate(-6deg); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  padding: 10px; flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  background: var(--grad-soft);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: var(--teal-300); top: -120px; inset-inline-end: -80px; }
.blob-2 { width: 420px; height: 420px; background: var(--blob-2); bottom: -140px; inset-inline-start: 20%; animation-duration: 22s; }
.blob-3 { width: 260px; height: 260px; background: var(--sun); opacity: .35; top: 30%; inset-inline-start: -80px; animation-duration: 15s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(.95); }
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11,44,79,.12) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}

.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding-block: 64px 96px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--teal-600);
  box-shadow: var(--shadow);
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 22px;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy) 45%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.13rem; max-width: 54ch; color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-tagline {
  margin-top: 36px; font-size: 1.05rem; font-weight: 600; color: var(--teal-600);
  display: flex; align-items: center; gap: 12px;
}
.hero-tagline::before { content: ""; width: 40px; height: 3px; border-radius: 3px; background: var(--grad-text); }

/* Intro animation for hero copy */
.hero-content > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero-content > :nth-child(1) { animation-delay: .1s; }
.hero-content > :nth-child(2) { animation-delay: .22s; }
.hero-content > :nth-child(3) { animation-delay: .36s; }
.hero-content > :nth-child(4) { animation-delay: .5s; }
.hero-content > :nth-child(5) { animation-delay: .64s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Layered visual */
.hero-visual { position: relative; aspect-ratio: 1 / .95; }
.hv-layer { position: absolute; will-change: transform; transition: transform .25s ease-out; }
.hv-frame { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.hv-frame img { width: 100%; height: 100%; object-fit: cover; }
.hv-main { inset-inline-end: 0; top: 4%; width: 86%; aspect-ratio: 4 / 3.3; animation: popIn 1s var(--ease) .2s both; }
.hv-main .hv-frame { height: 100%; }
.hv-sub { inset-inline-start: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1; animation: popIn 1s var(--ease) .45s both; }
.hv-sub .hv-frame { height: 100%; }
.hv-chip-a { inset-inline-end: -10px; bottom: 14%; animation: popIn .9s var(--ease) .7s both; }
.hv-chip-b { inset-inline-start: 6%; top: 0; animation: popIn .9s var(--ease) .85s both; }
.chip-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 16px; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.chip-card b { display: block; font-size: 1.2rem; line-height: 1.2; color: var(--navy); }
.chip-card small { display: block; font-size: .8rem; color: var(--ink-muted); }
.chip-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); flex: none; }
.chip-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-icon-sun { background: var(--sun-50); }
.chip-icon-sun svg { stroke: var(--sun-700); }
.hv-ring { position: absolute; width: 38%; inset-inline-end: -8%; top: -10%; z-index: -1; animation: spin 40s linear infinite; }
.hv-ring circle { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 10; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Uses individual translate/scale so JS parallax on `transform` still applies. */
@keyframes popIn { from { opacity: 0; translate: 0 30px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
.float { animation: float 5s ease-in-out infinite; }
.float-delay { animation: float 6s ease-in-out 1s infinite; }
.float-slow { animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(11,44,79,.35); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--teal); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  background: var(--white); border-radius: var(--radius); padding: 26px 16px; text-align: center;
  box-shadow: var(--shadow-lg); border-bottom: 4px solid transparent;
  border-image: var(--grad-text) 1; border-image-slice: 0 0 1 0;
  transition: transform .3s var(--ease);
}
.stat:hover { transform: translateY(-6px); }
.stat-num {
  display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.1; direction: ltr;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--ink-muted); font-size: .98rem; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 56px; padding-block: 18px; overflow: hidden;
  background: var(--grad-brand); color: var(--white);
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 1.15rem; font-weight: 600; white-space: nowrap; padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--sun); font-size: .9rem; margin-inline-start: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 104px; }
.section-mint { background: linear-gradient(180deg, var(--mint-50) 0%, var(--white) 100%); }
.section-soft { background: linear-gradient(180deg, var(--white) 0%, var(--sky) 100%); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-lead { font-size: 1.1rem; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.fine { font-size: .92rem; color: var(--ink-muted); margin-top: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--grad-text); }
.eyebrow-light { color: var(--teal-300); }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-reverse .split-media { order: -1; }
.split-media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.split-media img { position: absolute; inset-inline: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.split-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(var(--teal-rgb),.18), transparent 50%);
}

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.feature-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm);
  transition: background .3s, transform .3s var(--ease);
}
.feature-list li:hover { background: var(--mint-50); transform: translateX(-6px); }
[dir="ltr"] .feature-list li:hover { transform: translateX(6px); }
.feature-list h3 { margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--ink-muted); }
.feature-icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: var(--shadow-teal);
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .feature-icon svg { transform: scaleX(-1); }

/* Cards with tilt + spotlight */
.card-grid { display: grid; gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out, box-shadow .3s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--teal-300-rgb),.28), transparent 60%);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--teal-300); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card p { margin: 0; color: var(--ink-muted); font-size: .97rem; }
.card-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  font-weight: 700; color: var(--white); background: var(--grad-brand); box-shadow: var(--shadow-teal);
}
.card-plain h4 { font-size: 1.05rem; margin-bottom: 8px; }
.card-plain { border-top: 4px solid var(--teal); }

/* ---------- Workflow ---------- */
.wf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wf-tab {
  font: inherit; font-weight: 600; font-size: .98rem; padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-muted); cursor: pointer;
  transition: all .3s var(--ease);
}
.wf-tab:hover { border-color: var(--teal); color: var(--navy); }
.wf-tab.is-active { background: var(--grad-brand); border-color: transparent; color: var(--white); box-shadow: var(--shadow-teal); }
.wf-timer { height: 3px; border-radius: 3px; background: var(--mint); margin-bottom: 24px; overflow: hidden; }
.wf-timer span { display: block; height: 100%; width: 100%; background: var(--grad-text); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .wf-timer span { transform-origin: right; }
.wf-timer.is-running span { animation: timer var(--wf-dur, 6s) linear forwards; }
.wf-timer.is-stopped { opacity: 0; transition: opacity .4s; }
@keyframes timer { to { transform: scaleX(1); } }

.wf-steps {
  list-style: none; padding: 0; margin: 0 0 44px;
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px;
}
.wf-steps li {
  background: var(--mint-50); color: #7C8C9B; border-radius: 12px; padding: 12px 6px; text-align: center;
  font-size: .82rem; line-height: 1.35; border: 1px solid transparent;
  transition: background .35s, color .35s, transform .35s var(--ease), box-shadow .35s;
}
.wf-steps li:hover { border-color: var(--teal-300); }
.wf-steps b { display: block; font-size: 1rem; }
.wf-steps li.is-on { background: var(--navy); color: var(--white); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(11,44,79,.2); }

.wf-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.wf-panel.is-active .wf-panel-text > * { animation: rise .6s var(--ease) both; }
.wf-panel.is-active .wf-panel-text > :nth-child(2) { animation-delay: .08s; }
.wf-panel.is-active .wf-panel-text > :nth-child(3) { animation-delay: .16s; }
.wf-panel.is-active .wf-panel-media { animation: imgIn .8s var(--ease) both; }
@keyframes imgIn { from { opacity: 0; clip-path: inset(0 0 0 100% round 18px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 18px); } }
.wf-panel-media { margin: 0; }
.wf-panel-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.wf-panel h3 { font-size: 1.6rem; }

.num-list { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: n; display: grid; gap: 18px; }
.num-list li { counter-increment: n; position: relative; padding-inline-start: 52px; }
.num-list li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--teal-600); font-weight: 700;
}
.num-list strong { display: block; font-size: 1.05rem; }
.num-list span { color: var(--ink-muted); font-size: .97rem; }

/* ---------- Parallax band ---------- */
.pband { position: relative; min-height: 440px; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; color: var(--white); }
.pband-media { position: absolute; inset: 0; z-index: -1; }
/* Overscan is relative to the band height (top/height %), not width. */
.pband-media img { position: absolute; inset-inline: 0; top: -25%; width: 100%; height: 150%; object-fit: cover; will-change: transform; }
.pband-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(var(--teal-rgb),.85) 0%, rgba(var(--blue-rgb),.7) 50%, rgba(11,44,79,.75) 100%);
}
.pband-quote { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; margin: 0 0 8px; }
.pband-values { font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: .08em; color: var(--sun-50); margin: 0; }

/* ---------- Responsibilities ---------- */
.resp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.resp-col {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.resp-col::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--grad-brand); }
.resp-col:nth-child(2)::before { background: linear-gradient(90deg, var(--sun), var(--warm)); }
.resp-head { font-size: 1.5rem; margin-bottom: 20px; min-height: 38px; display: flex; align-items: center; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-inline-start: 32px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list-light li { color: rgba(255,255,255,.92); }
.check-list-light li::before { background-color: var(--teal-300); }

/* ---------- Coverage ---------- */
.road { position: relative; height: 70px; margin-bottom: 18px; }
.road::before {
  content: ""; position: absolute; inset-inline: 4%; top: 50%; height: 10px; margin-top: -5px; border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 18px, transparent 18px 36px) center / 100% 2px no-repeat,
    linear-gradient(90deg, var(--navy) 0 50%, var(--teal-300) 50% 100%);
  animation: roadMove 1s linear infinite;
}
[dir="rtl"] .road::before { background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 18px, transparent 18px 36px) center / 100% 2px no-repeat,
    linear-gradient(270deg, var(--navy) 0 50%, var(--teal-300) 50% 100%); }
.road-pin { position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 5px solid var(--white); box-shadow: var(--shadow); }
.road-pin-start { inset-inline-start: 4%; background: var(--navy); }
.road-pin-end { inset-inline-end: 4%; background: var(--teal); }
.road-pin-end::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--teal); animation: pulse 2s ease-out infinite; }
.road-truck {
  position: absolute; top: 50%; inset-inline-start: 4%; width: 64px; margin-top: -30px;
  animation: drive 9s var(--ease) infinite;
}
[dir="rtl"] .road-truck svg { transform: scaleX(-1); }
.road-truck svg { width: 64px; height: 36px; filter: drop-shadow(0 6px 8px rgba(11,44,79,.25)); }
.t-box { fill: var(--white); stroke: var(--navy); stroke-width: 2; }
.t-cab { fill: var(--teal); }
.t-logo { fill: var(--navy); }
.t-wheel { fill: var(--navy); stroke: var(--white); stroke-width: 2; }
@keyframes drive {
  0% { inset-inline-start: 4%; opacity: 0; }
  8% { opacity: 1; }
  45%, 55% { inset-inline-start: calc(50% - 32px); }
  92% { opacity: 1; }
  100% { inset-inline-start: calc(96% - 64px); opacity: 0; }
}

.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phase {
  position: relative; overflow: hidden; padding: 36px 32px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.phase:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.phase-active { background: var(--grad-brand); color: var(--white); border-color: transparent; }
.phase-active::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  inset-inline-end: -80px; bottom: -110px; background: rgba(255,255,255,.12);
}
.phase-date { display: block; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.phase-active .phase-date { color: var(--white); }
.phase p { color: var(--ink-muted); }
.phase-active p { color: rgba(255,255,255,.88); }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; background: var(--mint-50); color: var(--teal-600); border: 1px solid var(--line); }
.phase-active .chips li { background: rgba(255,255,255,.16); color: var(--white); border-color: rgba(255,255,255,.3); }

/* ---------- Exclusivity ---------- */
.def-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; }
.def-grid div {
  background: var(--white); border-radius: var(--radius-sm); padding: 18px 20px;
  border-inline-start: 4px solid var(--teal); box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.def-grid div:hover { transform: translateY(-4px); }
.def-grid dt { font-weight: 700; margin-bottom: 4px; }
.def-grid dd { margin: 0; color: var(--ink-muted); font-size: .95rem; }

/* ---------- Visibility ---------- */
.touchpoints { display: grid; gap: 14px; margin-top: 28px; }
.touchpoints article {
  display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: start;
  padding: 18px 20px; border-radius: var(--radius-sm); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s;
}
.touchpoints article:hover { transform: scale(1.02); border-color: var(--teal-300); }
.touchpoints h3 { margin: 0; font-size: 1.05rem; }
.touchpoints p { grid-column: 2; margin: 2px 0 0; color: var(--ink-muted); font-size: .95rem; }
.tp-tag {
  grid-row: span 2; align-self: center; text-align: center; font-size: .8rem; font-weight: 700;
  padding: 6px 8px; border-radius: 999px; background: var(--mint); color: var(--teal-600);
}
.touchpoints article:nth-child(2) .tp-tag { background: var(--sky); color: var(--sky-700); }
.touchpoints article:nth-child(3) .tp-tag { background: var(--sun-50); color: var(--sun-700); }

/* ---------- Onboarding roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.roadmap::before {
  content: ""; position: absolute; top: 25px; inset-inline: 10%; height: 3px; border-radius: 3px;
  background: var(--grad-text); transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease);
}
[dir="rtl"] .roadmap::before { transform-origin: right; }
.roadmap.is-drawn::before { transform: scaleX(1); }
.roadmap li { position: relative; text-align: center; }
.rm-num {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--white); color: var(--teal-600); font-weight: 700;
  border: 3px solid var(--teal); box-shadow: 0 0 0 6px var(--mint-50);
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.roadmap li:hover .rm-num { background: var(--teal); color: var(--white); transform: scale(1.12) rotate(-8deg); }
.roadmap h3 { font-size: 1.1rem; margin-bottom: 6px; }
.roadmap p { font-size: .93rem; color: var(--ink-muted); margin: 0; }
.criteria { margin-top: 84px; }
.criteria > h3 { font-size: 1.5rem; margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact { position: relative; color: var(--white); isolation: isolate; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(var(--teal-rgb),.92) 0%, rgba(var(--blue-rgb),.86) 50%, rgba(11,44,79,.9) 100%);
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-text p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.contact-text .check-list { margin: 24px 0; }
.contact-mail { font-size: 1rem !important; margin-bottom: 12px; }
.contact-mail a { color: var(--sun); font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }
.contact-mail a:hover { color: var(--white); }
.contact .eyebrow-light { color: var(--sun-50); }
.contact .eyebrow-light::before { background: var(--sun); }
.contact-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--mint-50); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb),.15); }
.field.has-error input { border-color: #D64545; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.form-status { margin: 12px 0 0; font-size: .95rem; min-height: 1.5em; }
.form-status.is-error { color: #D64545; }
.form-status.is-ok { color: var(--teal-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-tag { margin: 10px 0 0; color: var(--teal-300); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--teal-300); }
.footer-mail { color: var(--teal-300); font-weight: 600; text-decoration: none; }
.footer-mail:hover { color: var(--white); }
.copyright { margin: 0; font-size: .9rem; width: 100%; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease), clip-path 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal[data-reveal="up"] { transform: translateY(40px); }
.reveal[data-reveal="start"] { transform: translateX(-60px); }
.reveal[data-reveal="end"] { transform: translateX(60px); }
[dir="rtl"] .reveal[data-reveal="start"] { transform: translateX(60px); }
[dir="rtl"] .reveal[data-reveal="end"] { transform: translateX(-60px); }
.reveal[data-reveal="zoom"] { transform: scale(.9); }
.reveal[data-reveal="wipe"] { clip-path: inset(0 0 100% 0 round 18px); }
/* [dir] matches the specificity of the RTL start/end rules above */
[dir] .reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px); }
.reveal.card.is-visible { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.reveal.card.is-settled { transition: transform .2s ease-out, box-shadow .3s, border-color .3s; transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wf-steps { grid-template-columns: repeat(5, 1fr); }
  .roadmap { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .roadmap::before { display: none; }
  .split, .wf-panel, .contact-inner, .hero-inner { gap: 40px; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--white); padding: 8px 24px 20px; box-shadow: 0 12px 30px rgba(11,44,79,.12);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--mint-50); }
  .main-nav a::after { display: none; }
  .header-actions .btn { display: none; }

  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 40px 100px; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .scroll-cue { display: none; }
  .section { padding-block: 76px; }
  .split, .wf-panel, .contact-inner, .resp-grid, .timeline { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .card-grid-4, .def-grid, .field-row { grid-template-columns: 1fr; }
  .wf-steps { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; text-align: start; }
  .rm-num { grid-row: span 2; margin: 0; }
  .contact-form { padding: 24px 20px; }
  .resp-col { padding: 28px 20px; }
  .touchpoints article { grid-template-columns: 1fr; }
  .tp-tag { grid-row: auto; justify-self: start; margin-bottom: 8px; }
  .touchpoints p { grid-column: 1; }
  .hero-actions .btn { width: 100%; }
  .chip-card { padding: 8px 12px 8px 10px; gap: 8px; }
  .chip-card b { font-size: 1rem; }
  .chip-icon { width: 34px; height: 34px; }
  .hv-chip-a { inset-inline-end: 0; }
  .pband { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-content > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .roadmap::before { transform: scaleX(1); }
}

/* =========================================================
   Hero: live delivery-network canvas
   ========================================================= */
.hero-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 45%, #000 10%, transparent 75%);
  opacity: .9;
}

/* =========================================================
   Product journey: scroll-driven truck along a route
   ========================================================= */
.journey { position: relative; height: 460vh; background: linear-gradient(180deg, var(--white) 0%, var(--mint-50) 50%, var(--white) 100%); }
.journey-sticky {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  padding-block: 28px 20px;
}
.journey-head { text-align: center; }
.journey-head h2 { margin-bottom: .2em; }
.journey-head .section-lead { margin: 0; }
.journey-head .eyebrow { justify-content: center; }

.journey-stage { position: relative; min-height: 0; display: grid; place-items: center; padding-inline: 24px; }
.journey-map { position: relative; width: min(100%, 1200px, calc((100vh - 470px) * 1200 / 520)); aspect-ratio: 1200 / 520; }
.journey-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .journey-svg { transform: scaleX(-1); }

.j-track { fill: none; stroke: var(--mint); stroke-width: 26; stroke-linecap: round; }
.j-track-dash { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-dasharray: 14 16; stroke-linecap: round; animation: dashFlow 1.4s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -30; } }
.j-progress { fill: none; stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 4px 10px rgba(var(--teal-rgb), .35)); }

.j-node .ring { fill: var(--white); stroke: var(--line); stroke-width: 3; transition: stroke .4s, fill .4s; }
.j-node .halo { fill: rgba(var(--teal-rgb), .18); transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease); }
.j-node .icon { fill: none; stroke: #9AAABB; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.j-node.is-reached .ring { stroke: var(--teal); }
.j-node.is-reached .icon { stroke: var(--teal-600); }
.j-node.is-active .ring { fill: var(--teal); stroke: var(--white); }
.j-node.is-active .icon { stroke: var(--white); }
.j-node.is-active .halo { transform: scale(1); animation: halo 1.8s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .4; } }
[dir="rtl"] .j-node .icon { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }

.j-shadow { fill: rgba(11,44,79,.15); }
.j-truck .t-box { fill: var(--white); stroke: var(--navy); stroke-width: 2.5; }
.j-truck .t-cab { fill: var(--teal); }
.j-truck .t-window { fill: var(--sky); }
.j-truck .t-logo { fill: var(--navy); }
.j-truck .t-wheel { fill: var(--navy); stroke: var(--white); stroke-width: 2.5; }
.j-truck-body { animation: bump .35s ease-in-out infinite alternate; }
.journey.is-idle .j-truck-body { animation: none; }
@keyframes bump { to { transform: translateY(-1.5px); } }

.j-label {
  position: absolute; transform: translate(-50%, 0); margin-top: 42px;
  font-weight: 700; font-size: .95rem; color: var(--ink-muted); white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.85);
  transition: color .3s, background .3s, transform .4s var(--ease);
}
.j-label.is-active { color: var(--white); background: var(--navy); transform: translate(-50%, 0) scale(1.08); }
.j-label.is-reached:not(.is-active) { color: var(--teal-600); }

.journey-caps { position: relative; display: grid; justify-items: center; min-height: 150px; }
.j-cap {
  grid-area: 1 / 1; width: min(560px, 100%); text-align: center;
  background: var(--white); border-radius: var(--radius); padding: 18px 26px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; transform: translateY(20px) scale(.97); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.j-cap.is-active { opacity: 1; transform: none; pointer-events: auto; }
.j-cap h3 { font-size: 1.35rem; margin-bottom: 4px; }
.j-cap p { margin: 0; color: var(--ink-muted); }
.j-cap-meta { display: flex; justify-content: center; gap: 10px; margin-bottom: 6px; font-size: .82rem; font-weight: 700; }
.j-cap-num { color: var(--white); background: var(--grad-brand); padding: 2px 10px; border-radius: 999px; }
.j-cap-steps { color: var(--teal-600); background: var(--mint); padding: 2px 10px; border-radius: 999px; }

.journey-bar { position: absolute; bottom: 0; inset-inline: 0; height: 4px; background: var(--mint); }
.journey-bar span { display: block; height: 100%; background: var(--grad-text); transform: scaleX(var(--jp, 0)); transform-origin: left; }
[dir="rtl"] .journey-bar span { transform-origin: right; }

/* Mobile: vertical route */
@media (max-width: 760px) {
  .journey { height: 520vh; }
  .journey-sticky { padding-block: 16px 12px; }
  .journey-head h2 { font-size: 1.45rem; }
  .journey-head .section-lead { font-size: .95rem; }
  .journey-map { width: min(100%, calc((100vh - 420px) * 400 / 620)); aspect-ratio: 400 / 620; }
  /* Labels sit beside the node, on the inner side of the route */
  .j-label { margin-top: 0; font-size: .85rem; --lx: 34px; transform: translate(var(--lx), -50%); }
  .j-label.is-left { --lx: calc(-100% - 34px); }
  .j-label.is-active { transform: translate(var(--lx), -50%) scale(1.05); }
  .j-cap { padding: 14px 18px; }
  .j-cap h3 { font-size: 1.1rem; }
  .j-cap p { font-size: .92rem; }
}

/* Static fallback (reduced motion / no JS-driven scroll) */
.journey.is-static { height: auto; }
.journey.is-static .journey-sticky { position: relative; top: 0; height: auto; overflow: visible; padding-block: 96px; }
.journey.is-static .journey-map { width: min(100%, 1200px); }
.journey.is-static .journey-caps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.journey.is-static .j-cap { grid-area: auto; width: auto; opacity: 1; transform: none; }
.journey.is-static .journey-bar { display: none; }
