/* Purple Mile landing page — Ivory & Royal Purple */

:root {
  --p: #5A2D91;
  --p-deep: #3A1D5E;
  --night: #170B27;
  --night-2: #24123C;
  --night-3: #30184E;
  --glow: #7B57A7;
  --lilac: #F3F0F7;
  --lilac-soft: #E1D9EB;
  --lilac-mid: #D4C8E2;
  --lilac-line: rgba(255, 255, 255, 0.22);
  --soft: rgba(90, 45, 145, 0.09);
  --faint: rgba(90, 45, 145, 0.28);
  --track: rgba(90, 45, 145, 0.08);
  --bar-before: rgba(20, 16, 42, 0.22);
  --gold: #D4AF6A;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --text: #16122A;
  --muted: #55516A;
  --line: rgba(22, 18, 42, 0.11);

  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-num: 'IBM Plex Serif', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[lang="ar"] {
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-display: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

:root[lang="ar"] body { font-size: 17px; line-height: 1.8; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: .88; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 10;
  background: #FFFFFF;
  color: var(--p-deep);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* Arrows and other directional icons point the other way in RTL. */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Shared pieces ---------- */

.eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p);
}
:root[lang="ar"] .eyebrow { font-size: 15px; letter-spacing: 0; }

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
:root[lang="ar"] .h2 { font-weight: 600; line-height: 1.35; letter-spacing: 0; }

.lead-muted { color: var(--muted); max-width: 420px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}

.num { font-family: var(--font-num); font-weight: 600; color: var(--p); line-height: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 16px 28px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(20, 10, 40, .22); opacity: 1; }
.btn svg { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn-light { background: #FFFFFF; color: var(--p-deep); border: 0; }
.btn-ghost { border: 1px solid var(--lilac-line); color: #FFFFFF; }
.btn-primary { background: var(--p); color: #FFFFFF; border: 0; }
.btn-sm { padding: 12px 20px; font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.card.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card.lift:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(30, 15, 60, .12); }

.ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--soft);
  transition: transform .3s ease;
}
.card:hover .ico { transform: rotate(-6deg) scale(1.08); }

.grid { display: grid; gap: 20px; }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-250 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-500 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--night); color: #FFFFFF; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
[dir="rtl"] .hero-bg { transform: scaleX(-1); }

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: 'IBM Plex Serif', Georgia, serif; font-weight: 600; font-size: 24px; }
.brand-name span { color: var(--lilac-mid); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--lilac-mid);
}
.nav-links a { position: relative; padding-block: 4px; }
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 6px;
  font-size: 15px;
  font-weight: 600;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 150px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 1px solid var(--lilac-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac-mid);
}
:root[lang="ar"] .badge { font-size: 14px; letter-spacing: 0; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: livedot 1.8s ease-out infinite; }

.hero h1 {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
:root[lang="ar"] .hero h1 { font-weight: 700; line-height: 1.3; letter-spacing: 0; font-size: clamp(38px, 5vw, 62px); }
.underline { position: relative; white-space: nowrap; font-style: italic; color: var(--lilac-soft); }
:root[lang="ar"] .underline { font-style: normal; }
.underline svg { position: absolute; inset-inline-start: 0; bottom: -10px; width: 100%; height: 14px; }
.underline path { stroke-dasharray: 320; stroke-dashoffset: 320; }
.is-loaded .underline path { animation: draw 1.8s .9s ease-out forwards; }

.hero-sub { margin-bottom: 36px; max-width: 560px; font-size: 19px; color: var(--lilac-mid); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--lilac-mid); }
.trust li { display: flex; align-items: center; gap: 8px; }

.snapshot {
  background: #FFFFFF;
  color: var(--text);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out 2s infinite;
}
.snapshot-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.snapshot h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.snapshot h2 .ico { width: 34px; height: 34px; border-radius: 9px; }
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--p);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.snapshot-note { margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.metrics { display: flex; flex-direction: column; gap: 22px; }
.metric-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.metric-row > span:first-child { display: flex; align-items: center; gap: 8px; }
.metric-row b { font-weight: 600; white-space: nowrap; }
.metric-row b span { color: var(--p); }
.track { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: var(--track); }
.track i {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 8px;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s var(--ease);
}
[dir="rtl"] .track i { transform-origin: right center; }
.track .before { background: var(--bar-before); }
.track .after { background: var(--p); }
.is-loaded .track i { transform: scaleX(1); }
.legend { display: flex; gap: 20px; margin-top: 26px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.kpi { padding: 12px 10px; border-radius: 12px; background: var(--soft); text-align: center; }
.kpi-val { font-family: var(--font-num); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--p); }
.kpi p { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }

/* ---------- Sections ---------- */

.stats { padding-top: 48px; padding-bottom: 8px; }
/* One card split into cells; the 1px gap over a line-coloured background draws the dividers. */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  box-shadow: 0 18px 40px rgba(30, 15, 60, .06);
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  transition: background-color .25s ease;
}
.stat:hover { background: var(--lilac); }
.stat .ico { width: 40px; height: 40px; border-radius: 10px; }
.stat:hover .ico { transform: rotate(-6deg) scale(1.08); }
.stat .num { display: flex; align-items: center; font-size: 30px; white-space: nowrap; }
[dir="rtl"] .stat .num { justify-content: flex-end; }
.stat p { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.footnote { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }

.pains { padding-top: 72px; padding-bottom: 40px; }
.pains .h2 { margin-bottom: 44px; max-width: 720px; }
.industries { padding-top: 64px; }
.pain .ico { position: relative; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px; }
/* A soft ring keeps pulsing behind each pain-point icon. */
.pain .ico::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--p);
  opacity: 0;
  animation: ring 2.8s ease-out infinite;
}
.pain:nth-child(2) .ico::after { animation-delay: .7s; }
.pain:nth-child(3) .ico::after { animation-delay: 1.4s; }
.pain:nth-child(4) .ico::after { animation-delay: 2.1s; }
.anim-bounce { animation: bounce 1.8s ease-in-out infinite; }
.anim-sway { transform-origin: 50% 90%; animation: sway 2.4s ease-in-out infinite; }
.anim-pulse { animation: pulse 1.6s ease-in-out infinite; }
.anim-flip { animation: flip 3.2s ease-in-out infinite; }
.anim-drive { animation: drive 2.6s ease-in-out infinite; }
[dir="rtl"] .anim-drive { animation-name: drive-rtl; }
.pain h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.pain p { font-size: 15px; color: var(--muted); }

.services { padding-top: 80px; padding-bottom: 80px; }
.service { border-radius: 20px; padding: 36px; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.service .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--p); }
.service-index { font-family: var(--font-num); font-size: 28px; color: var(--faint); }
.service h3 { margin-bottom: 10px; font-size: 22px; font-weight: 600; }
.service > p { margin-bottom: 20px; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { flex: none; }

.services-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 20px;
  padding: 22px 28px;
  border-radius: 18px;
  background: var(--p);
  color: #FFFFFF;
}
.services-note .ico { width: 48px; height: 48px; background: rgba(255, 255, 255, .14); animation: pulse 2.4s ease-in-out infinite; }
.services-note p { flex: 1 1 320px; color: var(--lilac-soft); }
.services-note strong { color: #FFFFFF; font-weight: 600; }

.approach { background: var(--lilac); border-block: 1px solid var(--line); }
.approach .container { padding-top: 96px; padding-bottom: 96px; }
.approach .h2 { margin-bottom: 56px; max-width: 720px; }

/* Timeline: a line draws across the nodes, then a dot keeps travelling along it. */
.timeline {
  --node: 56px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.tl-line {
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  inset-inline: 12.5%;
  height: 2px;
  background: var(--faint);
  opacity: .5;
}
.tl-line i {
  position: absolute;
  inset: 0;
  background: var(--p);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s var(--ease) .2s;
}
[dir="rtl"] .tl-line i { transform-origin: right center; }
.timeline.is-visible .tl-line i { transform: scaleX(1); }
.tl-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 106, .25);
  opacity: 0;
}
.timeline.is-visible .tl-line::after { animation: travel-x 4.5s 2s ease-in-out infinite; }
[dir="rtl"] .timeline.is-visible .tl-line::after { animation-name: travel-x-rtl; }

.tl-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tl-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--node);
  height: var(--node);
  border: 2px solid var(--p);
  border-radius: 50%;
  background: var(--surface);
  transform: scale(.4);
  transition: transform .6s var(--ease) calc(var(--d, 0s) + .3s), background-color .3s ease;
}
.tl-step.is-visible .tl-node { transform: scale(1); }
.tl-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--p);
  opacity: 0;
  animation: ring 3s ease-out infinite;
}
.tl-step:nth-child(3) .tl-node::after { animation-delay: .75s; }
.tl-step:nth-child(4) .tl-node::after { animation-delay: 1.5s; }
.tl-step:nth-child(5) .tl-node::after { animation-delay: 2.25s; }
.tl-step:hover .tl-node { background: var(--p); }
.tl-step:hover .tl-node svg { stroke: #FFFFFF; }
.tl-card { flex: 1; align-self: stretch; text-align: center; }
.step-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--p); }
:root[lang="ar"] .step-label { letter-spacing: 0; }
.tl-card h3 { margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.tl-card p { font-size: 15px; color: var(--muted); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .tl-line {
    top: calc(var(--node) / 2);
    bottom: calc(var(--node) / 2);
    inset-inline: calc(var(--node) / 2 - 1px) auto;
    width: 2px;
    height: auto;
  }
  .tl-line i { transform: scaleY(0); transform-origin: center top; }
  [dir="rtl"] .tl-line i { transform-origin: center top; }
  .timeline.is-visible .tl-line i { transform: scaleY(1); }
  .tl-line::after { top: 0; left: 50%; margin: 0 0 0 -5px; }
  .timeline.is-visible .tl-line::after,
  [dir="rtl"] .timeline.is-visible .tl-line::after { animation-name: travel-y; }
  .tl-step { flex-direction: row; align-items: flex-start; gap: 18px; }
  .tl-card { flex: 1; text-align: start; }
}

.results { padding-top: 104px; padding-bottom: 80px; }
.result { display: flex; flex-direction: column; gap: 16px; border-radius: 20px; padding: 32px; }
.result-tag { display: flex; align-items: center; gap: 12px; }
.result-tag .ico { width: 40px; height: 40px; border-radius: 10px; }
.result-tag span:last-child { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
:root[lang="ar"] .result-tag span:last-child { font-size: 14px; letter-spacing: 0; }
.result strong { font-weight: 600; }
.result .m { color: var(--muted); }
.outcome { display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 20px; border-radius: 14px; background: var(--soft); }
.outcome .num { font-size: 32px; line-height: 1.1; }
.outcome p { margin-top: 2px; font-size: 14px; color: var(--muted); }

.why { padding-top: 40px; padding-bottom: 96px; }
.why-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.why-box .h2 { margin-bottom: 20px; font-size: clamp(30px, 3.6vw, 42px); }
.why-box > div > p:last-child { color: var(--muted); }
.why-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.why-points .ico { width: 44px; height: 44px; margin-bottom: 14px; }
.why-points > div:hover .ico { transform: rotate(-6deg) scale(1.08); }
.why-points h3 { margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.why-points p { font-size: 15px; color: var(--muted); }

.cta { padding-bottom: 104px; }
.cta-box {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 24px;
  background: var(--p);
  color: #FFFFFF;
}
.cta-box > svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
[dir="rtl"] .cta-box > svg { transform: scaleX(-1); }
.cta-box > div, .cta-box > a { position: relative; }
.cta-box > div { max-width: 640px; }
.cta-box h2 { margin-bottom: 10px; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
:root[lang="ar"] .cta-box h2 { font-weight: 600; line-height: 1.4; }
.cta-box p { color: var(--lilac-soft); }

.faq { max-width: 880px; padding-bottom: 104px; }
.faq .h2 { margin-bottom: 32px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding-inline: 22px; transition: box-shadow .25s ease, border-color .25s ease; }
.faq details:hover { border-color: var(--faint); }
.faq details[open] { box-shadow: 0 16px 32px rgba(30, 15, 60, .08); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding-block: 20px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span:nth-child(2) { flex: 1; }
.faq-plus { color: var(--p); font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding-inline-start: 34px; padding-bottom: 20px; color: var(--muted); }

.contact { background: var(--lilac); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.contact .h2 { margin-bottom: 20px; }
.contact-intro { margin-bottom: 36px; max-width: 460px; color: var(--muted); }
.contact-list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .ico { width: 44px; height: 44px; background: #FFFFFF; border: 1px solid var(--line); }
.contact-list li:hover .ico { transform: rotate(-6deg) scale(1.08); }
.contact-list small { display: block; font-size: 13px; color: var(--muted); }

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 60px rgba(30, 15, 60, 0.08);
}
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.form[hidden] { display: none; }
.form h3 { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 20px; font-weight: 600; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
:root[lang="ar"] .form label { font-size: 15px; }
.form .full { grid-column: 1 / -1; }
.form .honeypot { display: none; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form input:not([type="checkbox"]):focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--p);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--soft);
}
.form textarea { resize: vertical; }
[dir="rtl"] .form input[dir="ltr"] { text-align: right; }
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.form .consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--p); }
.form button[type="submit"] { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
.form button[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.form button.is-sending { opacity: .7; cursor: progress; }
.form-error { grid-column: 1 / -1; color: #A3262A; font-size: 14px; }
.form-error:empty { display: none; }

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 40px; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 24px; font-weight: 600; }
.form-success p { color: var(--muted); }
.form-success .check { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--p); animation: pop .6s var(--ease) both; }
.form-success .check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-check .5s .35s ease-out forwards; }
.form-success > :not(.check) { animation: rise-in .6s var(--ease) both; }
.form-success > :nth-child(2) { animation-delay: .15s; }
.form-success > :nth-child(3) { animation-delay: .25s; }
.form-success > :nth-child(4) { animation-delay: .35s; }
.btn-outline { margin-top: 8px; padding: 12px 20px; border: 1px solid var(--line); background: transparent; color: var(--text); }

.footer { background: var(--night); color: var(--lilac-mid); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 48px; padding-bottom: 48px; font-size: 14px; }
.footer .brand-name { font-size: 20px; color: #FFFFFF; }

/* ---------- Motion ---------- */

@keyframes tw { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes win { 0%, 100% { opacity: .9; } 40% { opacity: .2; } }
@keyframes trail { to { stroke-dashoffset: -900; } }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-60px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes livedot { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 106, .7); } 100% { box-shadow: 0 0 0 10px rgba(212, 175, 106, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes drive { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes drive-rtl { 0%, 100% { transform: translateX(3px) scaleX(-1); } 50% { transform: translateX(-3px) scaleX(-1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes flip { 0%, 60%, 100% { transform: rotateY(0); } 80% { transform: rotateY(180deg); } }
@keyframes travel-x { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes travel-x-rtl { 0% { left: calc(100% - 10px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes travel-y { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.tw { animation: tw 3.6s ease-in-out infinite; }
.win { animation: win 5.5s ease-in-out infinite; }
.trail { animation: trail 4.2s linear infinite; }
.trail-slow { animation: trail 6.5s linear infinite; }
.trail-r { animation: trail 5.2s linear infinite reverse; }
.flow { animation: flow 2.2s linear infinite; }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.drift { animation: drift 20s ease-in-out infinite; }

/*
 * Entrance animations. Content stays visible without JS; main.js adds
 * .js to <html>, then .is-visible to each [data-reveal] element as it
 * scrolls into view. --d is the stagger delay set per element.
 */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity .8s var(--ease) var(--d, 0s),
    transform .8s var(--ease) var(--d, 0s);
}
.js [data-reveal="up"] { transform: translateY(32px); }
.js [data-reveal="down"] { transform: translateY(-20px); }
.js [data-reveal="start"] { transform: translateX(-40px); }
.js [data-reveal="end"] { transform: translateX(40px); }
.js[dir="rtl"] [data-reveal="start"] { transform: translateX(40px); }
.js[dir="rtl"] [data-reveal="end"] { transform: translateX(-40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Once in, drop the stagger so hover effects respond immediately. */
.js [data-reveal].is-done { transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.js .lift.is-done:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .underline path { stroke-dashoffset: 0; }
  .track i { transform: scaleX(1); }
  .tl-node { transform: none; }
  .tl-line i { transform: none !important; }
}

@media (max-width: 640px) {
  .nav-links { order: 3; flex-basis: 100%; gap: 6px 20px; font-size: 14px; }
  .hero-grid { padding-top: 40px; padding-bottom: 110px; }
  .snapshot { padding: 24px; }
  .metric-row { flex-wrap: wrap; }
  .kpi-val { font-size: 20px; }
}
