/* ==========================================================================
   Aro Horizon: site stylesheet
   1. Design tokens      4. Header            7. Inner pages
   2. Base               5. Home sections     8. Footer
   3. Shared components  6. Contact panel     9. Motion and breakpoints
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  /* Brand (same in both themes) */
  --ink: #0b0b0b;
  --pink: #ff2da8;
  --lime: #d4ff3f;
  --pink-soft: #ffb3de;
  --on-dark: #d2d2cc;
  --on-dark-muted: #b5b5af;

  /* Light theme */
  --bg: #fff;
  --bg-alt: #f6f6f2;
  --text: #0b0b0b;
  --muted: #5c5c58;
  --border: #e6e6e0;
  --primary: #d90e86;
  --primary-tint: #ffe4f4;
  --badge-bg: #0b0b0b;
  --badge-text: #d4ff3f;
  --shadow: 0 1px 2px #0b0b0b0a, 0 14px 36px #0b0b0b14;
  --grid-line: #ff2da814;

  /* Chat mock-up */
  --chat-bg: #efeae2;
  --chat-out: #d9fdd3;
  --chat-in: #fff;
  --chat-text: #111b21;
  --chat-head: #008069;
  --chat-pattern: url("../assets/images/chat-pattern-light.svg");

  /* Typography */
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", "IBM Plex Sans Arabic", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-logo: "Urbanist", system-ui, sans-serif;

  /* Spacing and shape */
  --gutter: 24px;
  --section-space: 60px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --header-height: 66px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0b;
  --bg-alt: #131313;
  --text: #f4f4f0;
  --muted: #a3a39e;
  --border: #242424;
  --primary: #ff2da8;
  --primary-tint: #2a0d1f;
  --badge-bg: #d4ff3f;
  --badge-text: #0b0b0b;
  --shadow: 0 14px 36px #0009;
  --grid-line: #ff5cbc1a;
  --chat-bg: #0b141a;
  --chat-out: #005c4b;
  --chat-in: #202c33;
  --chat-text: #e9edef;
  --chat-head: #1f2c34;
  --chat-pattern: url("../assets/images/chat-pattern-dark.svg");
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.022em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  font-family: var(--font-arabic);
}

/* English legal text inside Arabic pages */
[dir="rtl"] [lang="en"],
[dir="rtl"] [lang="en"] h2 {
  font-family: var(--font-body);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

/* 3. Shared components
   ========================================================================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 900px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.text-muted {
  color: var(--muted);
}

.icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--pink);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #ff52b8;
  box-shadow: 0 10px 26px #ff2da84d;
  transform: translateY(-2px);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: transparent;
  border-color: var(--pink);
  box-shadow: none;
}

.btn-outline-light {
  background: transparent;
  border-color: #ffffff40;
  color: #fff;
}

.btn-outline-light:hover {
  background: #ffffff14;
  border-color: var(--lime);
  box-shadow: none;
  color: var(--lime);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: #e2ff73;
  box-shadow: 0 10px 26px #d4ff3f40;
}

[dir="rtl"] .btn .icon {
  transform: scaleX(-1);
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .eyebrow {
  color: var(--lime);
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.section {
  padding: var(--section-space) 0;
}

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

.section-tight {
  padding-block: 64px;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-tight .section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
}

.section-head h2 em {
  color: var(--primary);
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.section-head-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-row-tight {
  margin-top: 18px;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  transition: 0.3s;
}

.card:hover {
  border-color: #ff2da866;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--primary);
}

/* Reveal on scroll: only hides content when JavaScript is running */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s, transform 0.8s;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-delay {
  transition-delay: 0.1s;
}

/* 4. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: none;
  height: var(--header-height);
  padding-inline: 28px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-family: var(--font-logo);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  direction: ltr;
}

.logo-mark svg {
  width: 0.53em;
  height: 0.53em;
  margin-left: 0.06em;
  overflow: visible;
}

.logo-ring,
.logo-orbit,
.logo-arrow {
  fill: none;
  stroke-linecap: round;
}

.logo-ring {
  stroke: var(--pink);
  stroke-width: 18;
  stroke-linecap: butt;
}

.logo-orbit {
  stroke: currentColor;
  stroke-width: 4;
  opacity: 0.5;
}

.logo-arrow {
  stroke: var(--badge-bg);
  stroke-width: 7;
  stroke-linejoin: round;
}

.logo-sub {
  margin-inline-start: -4px;
  color: var(--text);
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.nav-mobile-only {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.lang-link:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.lang-link .icon {
  width: 17px;
  height: 17px;
}

.lang-link span:lang(ar) {
  font-family: var(--font-arabic);
}

.header-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s;
}

.header-product-link:hover {
  border-color: var(--pink);
}

.header-product-link .icon {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
}

[dir="rtl"] .header-product-link .icon {
  transform: rotate(-135deg);
}

.header-login {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}

.header-login:hover {
  background: var(--bg-alt);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--bg-alt);
}

.theme-toggle {
  margin-inline-start: 2px;
}

.theme-toggle .icon {
  width: 19px;
  height: 19px;
}

/* Show the sun in dark mode and the moon in light mode */
.theme-toggle .icon-moon,
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline-flex;
}

.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
}

/* 5. Home sections
   ========================================================================== */

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background: radial-gradient(900px 440px at 90% -10%, #ff2da814, transparent), var(--bg);
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 440px at 85% 10%, #ff2da81c, transparent), radial-gradient(700px 400px at 0 100%, #d4ff3f12, transparent);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 28px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px #d4ff3f33;
  animation: pulse-dot 1.8s infinite;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
}

.hero h1 em {
  color: var(--primary);
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.hero-points > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

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

.orbit {
  width: 100%;
  max-width: 540px;
  height: auto;
  max-height: calc(100vh - 130px);
  overflow: visible;
  direction: ltr;
}

.orbit-ring {
  transform-origin: 300px 240px;
  animation: spin 70s linear infinite;
}

.orbit-ring-slow {
  animation-duration: 110s;
  animation-direction: reverse;
}

.orbit-spoke {
  stroke: var(--primary);
  stroke-opacity: 0.4;
  stroke-width: 1.6;
  stroke-dasharray: 3 7;
  animation: dash-flow 2.5s linear infinite;
}

.orbit-halo {
  transform-origin: 300px 240px;
  animation: halo 3.2s ease-in-out infinite;
}

.orbit-node {
  fill: var(--bg);
  stroke: var(--border);
  stroke-width: 2;
}

.orbit-node-main {
  fill: var(--primary-tint);
  stroke: var(--primary);
}

.orbit-icon {
  color: var(--primary);
}

.orbit-label {
  fill: var(--text);
  font: 600 12.5px "Plus Jakarta Sans", Inter, sans-serif;
}

.orbit-label-main {
  fill: var(--primary);
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.float-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px #d4ff3f33;
}

.float-chip-1 {
  top: 4%;
  inset-inline-end: 0;
}

.float-chip-2 {
  bottom: 6%;
  inset-inline-start: 0;
  animation-delay: -2s;
}

.float-chip-3 {
  top: 44%;
  inset-inline-start: -4%;
  animation-delay: -4s;
}

/* Countries marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid #161616;
  background: var(--ink);
}

.marquee .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 58px;
}

.marquee-label {
  flex-shrink: 0;
  color: var(--on-dark-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

[dir="rtl"] .marquee-label {
  letter-spacing: 0;
}

.marquee-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-items {
  display: flex;
  gap: 46px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 36s linear infinite;
}

.marquee-track:hover .marquee-items {
  animation-play-state: paused;
}

.marquee-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.marquee-items b {
  padding: 2px 8px;
  border-radius: 6px;
  background: #ffffff1f;
  color: var(--pink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* What we do */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.9fr);
  gap: 16px;
  align-items: stretch;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background-color: var(--ink);
  background-image: radial-gradient(420px 260px at 100% 0, #ff2da840, transparent), radial-gradient(320px 200px at 0 100%, #d4ff3f1f, transparent);
  color: #fff;
  transition: 0.3s;
}

.feature-card:hover {
  border-color: #ff2da855;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-card h3 {
  color: #fff;
  font-size: 25px;
}

.feature-card p {
  color: #e2e2dc;
  font-size: 15.5px;
  line-height: 1.6;
}

.feature-tag {
  align-self: flex-start;
  padding: 3px 12px;
  border: 1px solid #ffffff33;
  border-radius: 20px;
  background: #ffffff1a;
  color: var(--lime);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[dir="rtl"] .feature-tag {
  letter-spacing: 0;
}

.feature-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.feature-metrics div {
  padding-top: 12px;
  border-top: 1px solid #ffffff2a;
}

.feature-metrics b {
  display: block;
  color: var(--lime);
  font: 800 22px var(--font-heading);
}

.feature-metrics small {
  color: #bdbdb7;
}

.feature-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--lime);
  font-weight: 700;
}

.feature-link .icon {
  width: 18px;
  height: 18px;
  transition: 0.2s;
}

.feature-card:hover .feature-link .icon {
  transform: translateX(4px);
}

[dir="rtl"] .feature-link .icon {
  transform: scaleX(-1);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  transition: border-color 0.25s, transform 0.25s;
}

.capability:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.capability h3 {
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability h3 a:hover {
  color: var(--primary);
}

.capability p {
  flex: 1;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.72;
}

.capability-art {
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.capability-art svg {
  display: block;
  width: 100%;
  height: 46px;
  overflow: visible;
}

/* Shared parts of the small illustrations */
.art-node {
  fill: var(--bg);
  stroke: var(--border);
  stroke-width: 1.5;
}

.art-accent {
  fill: var(--primary);
}

.art-lime {
  fill: var(--lime);
}

.art-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.5;
}

.art-pulse {
  animation: pulse-travel 2.6s linear infinite;
}

.art-outline {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  opacity: 0.6;
}

.art-calendar rect:not(.art-accent):not(.art-lime) {
  fill: var(--bg);
  stroke: var(--border);
}

.art-bars rect:not(.art-accent) {
  fill: var(--border);
}

.art-trend {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-dasharray: 3 4;
  opacity: 0.55;
}

.art-heart {
  fill: #fff;
}

.art-rank {
  fill: #fff;
  font: 800 7px Inter, sans-serif;
}

.art-spark {
  fill: var(--lime);
  stroke: var(--text);
  stroke-width: 0.6;
}

.art-skeleton {
  fill: var(--border);
}

.art-ring {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.35;
}

.art-stars path {
  fill: var(--lime);
  stroke: var(--text);
  stroke-width: 0.8;
}

.art-grid {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

.art-growth {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Patient growth pipeline */
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.pipeline-track {
  position: absolute;
  top: 74px;
  right: 6%;
  left: 6%;
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--lime));
  opacity: 0.5;
}

/* The full-width wrapper lets the dot travel with transform only, no layout work */
.pipeline-track i {
  position: absolute;
  top: -5px;
  left: 0;
  width: calc(100% - 12px);
  height: 12px;
  animation: travel 6s linear infinite;
}

.pipeline-track i::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.stage:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.stage-art {
  width: 100%;
  padding: 8px;
  border-radius: 14px;
  background: var(--bg-alt);
}

.stage-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.stage-number {
  margin-top: 8px;
  color: var(--primary);
  font: 800 12.5px var(--font-heading);
  letter-spacing: 0.1em;
}

.stage h3 {
  margin-top: 2px;
  font-size: 19px;
}

.stage p {
  min-height: 3em;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.75;
}

.stage-kpi {
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12.5px;
  font-weight: 700;
}

/* Product band */
.product-band {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--ink);
  background-image: radial-gradient(700px 360px at 85% 20%, #ff2da82e, transparent), radial-gradient(500px 300px at 0 100%, #d4ff3f14, transparent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.product-band .eyebrow {
  color: var(--lime);
}

.product-band h2 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
}

.product-band h2 em {
  color: var(--lime);
}

.product-band p {
  max-width: 560px;
  color: var(--on-dark);
  font-size: 17px;
}

.product-band .check-list .icon {
  color: var(--lime);
}

.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
  margin: 0;
}

.phone-card {
  overflow: hidden;
  border: 6px solid #1c1c1c;
  border-radius: 26px;
  background: var(--chat-bg);
  box-shadow: 0 30px 60px #0008;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--chat-head);
  color: #fff;
}

.phone-head small {
  display: block;
  color: #d6efe9;
  font-size: 12px;
}

.phone-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #075e54;
  font-size: 14px;
  font-weight: 700;
}

.phone-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 12px 20px;
  background: var(--chat-bg) var(--chat-pattern);
  background-size: 224px;
}

.bubble {
  position: relative;
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 10px;
  box-shadow: 0 1px 1px #0b141a22;
  color: var(--chat-text);
  font-size: 14px;
  line-height: 1.55;
}

.bubble-out {
  align-self: flex-end;
  border-end-end-radius: 2px;
  background: var(--chat-out);
}

.bubble-in {
  border-end-start-radius: 2px;
  background: var(--chat-in);
}

.phone-stat {
  position: absolute;
  top: 22%;
  inset-inline-start: -34px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
  animation: float 6s ease-in-out infinite;
}

.phone-stat b {
  display: block;
  color: var(--primary);
  font: 800 20px var(--font-heading);
}

.phone-stat small {
  color: var(--muted);
}

.phone-stat-alt {
  top: auto;
  bottom: 16%;
  inset-inline: auto -30px;
  animation-delay: -3s;
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.industry-grid > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: 0.25s;
}

.industry-grid > div:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.industry-grid .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary);
}

.industry-grid b {
  font-size: 15px;
}

/* How we work */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.steps-grid > div {
  padding: 26px;
  border-inline-start: 1px solid var(--border);
}

.steps-grid > div:first-child {
  border: 0;
}

.steps-grid span {
  display: block;
  margin-bottom: 16px;
  color: transparent;
  font: 800 42px/1 var(--font-heading);
  -webkit-text-stroke: 1.5px var(--primary);
}

.steps-grid h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.steps-grid p {
  color: var(--muted);
  font-size: 14px;
}

/* Security summary */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.trust-grid h2 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 3vw, 36px);
}

.trust-grid p {
  margin-bottom: 20px;
  color: var(--muted);
}

.region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.region-grid > div {
  position: relative;
  padding: 16px;
  padding-inline-start: 20px;
  overflow: hidden;
  border: 1px solid #ff2da838;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff2da816, transparent 60%), var(--bg);
  transition: transform 0.25s, border-color 0.25s;
}

.region-grid > div:nth-child(4n + 2),
.region-grid > div:nth-child(4n + 3) {
  border-color: #d4ff3f33;
  background: linear-gradient(135deg, #d4ff3f12, transparent 60%), var(--bg);
}

.region-grid > div::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pink);
}

.region-grid > div:nth-child(4n + 2)::before,
.region-grid > div:nth-child(4n + 3)::before {
  background: var(--lime);
}

.region-grid > div:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.region-grid b {
  display: block;
  margin-bottom: 3px;
  font-size: 15.5px;
}

.region-grid small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* FAQ */
.faq {
  padding: 44px 0 36px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 20px;
}

.faq-columns {
  column-gap: 48px;
  columns: 3 280px;
}

.faq h2 {
  margin: 0 0 22px;
  column-span: all;
  font: 600 21px/1.3 var(--font-heading);
  letter-spacing: -0.01em;
}

.faq-group {
  padding: 0 0 6px;
}

.faq-group h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font: 700 12px/1.4 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  break-after: avoid;
}

[dir="rtl"] .faq h2,
[dir="rtl"] .faq-group h3 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

.faq-item {
  margin: 0 0 16px;
  break-inside: avoid;
}

.faq-item h4 {
  margin: 0 0 3px;
  color: var(--text);
  font: 700 12.5px/1.45 var(--font-body);
}

.faq-item p {
  color: var(--muted);
  font: 400 12px/1.6 var(--font-body);
}

.faq-more {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  column-span: all;
  color: var(--muted);
  font-size: 12px;
}

/* 6. Contact panel
   ========================================================================== */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 56px;
  border-radius: 26px;
  background-color: var(--ink);
  background-image: radial-gradient(600px 300px at 100% 0, #ff2da830, transparent), radial-gradient(400px 260px at 0 100%, #d4ff3f14, transparent);
  color: #fff;
}

.contact-panel .eyebrow {
  color: var(--lime);
}

.contact-panel h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.contact-panel p {
  margin-top: 12px;
  color: var(--on-dark);
}

.contact-panel .cta-row {
  margin-top: 0;
}

.contact-info {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-info small {
  display: block;
  color: #a3a39e;
  font-size: 12px;
}

.contact-info b {
  font-size: 15px;
}

.contact-info a:hover {
  color: var(--lime);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-wrap {
  min-width: 0;
}

.field {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ffffff2e;
  border-radius: var(--radius-sm);
  background: #ffffff12;
  color: #fff;
  font: inherit;
}

.field::placeholder {
  color: #a3a39e;
}

.field:focus {
  outline: 2px solid #ff5cbc;
}

.field[aria-invalid="true"] {
  border-color: #ff5cbc;
}

select.field option {
  background: #fff;
  color: #111;
}

.field-error {
  display: block;
  margin-top: 5px;
  color: var(--pink-soft);
  font-size: 13px;
}

.field-trap {
  position: absolute;
  inset-inline-start: -9999px;
}

.form-status {
  padding: 14px;
  border: 1px solid #15803d;
  border-radius: var(--radius-sm);
  background: #15803d33;
  color: #bbf7d0;
}

.form-status.is-error {
  border-color: #dc2626;
  background: #dc262633;
  color: #fecaca;
}

.contact-form .form-note {
  margin: 0;
  color: #a3a39e;
  font-size: 12.5px;
}

.form-note a {
  color: #fff;
  text-decoration: underline;
}

/* 7. Inner pages
   ========================================================================== */
.page-section {
  padding: 70px 0 var(--section-space);
}

.page-title {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4.2vw, 46px);
}

.page-title em {
  color: var(--primary);
}

.page-lead {
  color: var(--muted);
  font-size: 18px;
}

.page-intro {
  max-width: 900px;
}

.heading-left {
  margin: 0 0 10px;
  font-size: 26px;
}

.heading-small {
  margin: 34px 0 28px;
  font-size: 18.72px;
}

.spaced {
  margin-block: 18px 44px;
}

.spaced-top {
  margin-top: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin: 44px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.stat-grid div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.stat-grid b {
  display: block;
  color: var(--primary);
  font: 800 30px var(--font-heading);
}

.stat-grid small {
  color: var(--muted);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.office-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 2px solid var(--text);
}

.office-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.office-grid b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Services page */
.page-section-short {
  padding-bottom: 34px;
}

.page-section:has(+ .services-list) {
  padding-bottom: 34px;
}

.spaced-section {
  margin-top: var(--section-space);
}

.service-feature {
  margin-bottom: 18px;
  padding: 32px;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.service-feature-title {
  display: block;
  margin-bottom: 10px;
  font: 800 28px/1.2 var(--font-heading);
}

.service-feature-text {
  display: block;
  color: #e2e2dc;
}

.service-feature-points {
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.service-feature-point {
  display: flex;
  gap: 10px;
}

.service-feature-point .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--lime);
}

.inline-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-grid .card {
  padding: 32px;
  scroll-margin-top: 90px;
}

.service-grid .check-list {
  margin-top: 18px;
  font-size: 15px;
}

.card-title-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary);
}

.stage-rows {
  display: grid;
  gap: 12px;
}

.stage-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
}

.stage-row .stage-number {
  display: block;
  margin: 0 0 6px;
}

.stage-row h3 {
  font-size: 20px;
}

.stage-row p {
  color: var(--muted);
  font-size: 15px;
}

.stage-row small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.stage-row small b {
  display: block;
  color: var(--text);
}

.stage-row .check-list {
  align-content: start;
  margin: 0;
  font-size: 14.5px;
}

.card .text-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
}

.cta-panel {
  align-items: center;
}

.cta-panel .cta-row {
  justify-content: flex-end;
}

/* Legal pages */
.legal h2 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.legal p {
  margin: 0 0 10px;
  color: var(--muted);
}

.legal-note {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 600;
}

.legal .legal-note {
  color: var(--primary);
}

.legal-note:empty {
  display: none;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.security-grid div {
  padding: 16px;
  border: 1px solid #ff2da830;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ff2da812, transparent 60%), var(--bg-alt);
}

.security-grid div:nth-child(even) {
  border-color: #d4ff3f2e;
  background: linear-gradient(135deg, #d4ff3f10, transparent 60%), var(--bg-alt);
}

.security-grid b {
  display: block;
  margin-bottom: 4px;
}

.security-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  margin: 6px 0 14px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.data-table thead th {
  background: var(--bg-alt);
  font-size: 12.5px;
}

.data-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.not-found {
  padding: 110px 0 60px;
  text-align: center;
}

.not-found .cta-row {
  justify-content: center;
}

/* 8. Footer
   ========================================================================== */
.site-footer {
  margin-top: 80px;
  padding: 52px 0 30px;
  background: var(--ink);
  color: var(--on-dark-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.site-footer b {
  color: #fff;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .logo-mark {
  color: #fff;
  font-size: 44px;
}

.site-footer .logo-arrow {
  stroke: var(--lime);
}

.site-footer .logo-sub {
  color: #fff;
}

.footer-about {
  max-width: 340px;
  margin-top: 14px;
}

.footer-email {
  margin-top: 10px;
}

.footer-heading-next {
  display: block;
  margin-top: 16px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer small {
  display: block;
  margin-top: 30px;
  color: #9c8293;
}

.footer-offices {
  display: block;
  margin-top: 6px;
}

/* 9. Motion and breakpoints
   ========================================================================== */
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 #d4ff3f99; }
  70% { box-shadow: 0 0 0 7px #d4ff3f00; }
  100% { box-shadow: 0 0 0 0 #d4ff3f00; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}

@keyframes halo {
  50% { opacity: 0.35; transform: scale(1.14); }
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes travel {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes pulse-travel {
  from { transform: translate(28px, 28px); }
  to { transform: translate(132px, 28px); }
}

/* Looping decoration waits for the page to settle and stops when off screen */
.js .motion-zone:not(.in-view),
.js .motion-zone:not(.in-view) * {
  animation-play-state: paused;
}

@media (max-width: 1240px) {
  .phone-stat {
    inset-inline-start: -10px;
  }

  .phone-stat-alt {
    inset-inline: auto -10px;
  }
}

@media (max-width: 1180px) {
  .header-product-link {
    display: none;
  }
}

@media (max-width: 1080px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipeline-track {
    display: none;
  }

  .stage-row {
    grid-template-columns: 1fr 1fr;
  }

  .stage-row > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root {
    --section-space: 68px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    font-size: 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-mobile-only {
    display: block;
  }

  .header-login {
    display: none;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 48px 0 80px;
  }

  .hero-grid,
  .two-col,
  .contact-panel,
  .product-grid,
  .trust-grid,
  .service-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 0;
  }

  .float-chip,
  .phone-stat {
    display: none;
  }

  .marquee .container {
    gap: 14px;
  }

  .marquee-label {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-grid,
  .trust-grid {
    gap: 32px;
  }

  .contact-panel {
    padding: 30px;
  }

  .contact-panel .btn-lime {
    margin-top: 16px;
  }

  .cta-panel .cta-row {
    justify-content: flex-start;
  }

  .industry-grid,
  .card-grid,
  .card-grid-3,
  .security-grid,
  .stat-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid > div {
    border-top: 1px solid var(--border);
  }

  .steps-grid > div:nth-child(3) {
    border-inline-start: 0;
  }

  .steps-grid > div:first-child,
  .steps-grid > div:nth-child(2) {
    border-top: 0;
  }

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

@media (max-width: 900px) {
  .lang-link span {
    display: none;
  }
}

@media (max-width: 640px) {
  .industry-grid,
  .card-grid,
  .card-grid-3,
  .security-grid,
  .steps-grid,
  .region-grid,
  .field-row,
  .office-grid,
  .capability-grid,
  .service-grid,
  .stage-row {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid > div {
    border-inline-start: 0;
  }

  .steps-grid > div:nth-child(2) {
    border-top: 1px solid var(--border);
  }

  .capability h3 {
    white-space: normal;
  }

  .lead {
    font-size: 18px;
  }

  /* Keep the orbit labels readable once the graphic scales down */
  .orbit-label {
    font-size: 19px;
  }

  [dir="rtl"] .orbit-label {
    font-size: 15px;
  }

  .faq-columns {
    columns: 1;
  }

  .faq h2 {
    font-size: 24px;
  }

  .faq-item h4 {
    font-size: 15px;
  }

  .faq-item p,
  .faq-more {
    font-size: 14.5px;
  }

  .service-grid .card {
    padding: 24px;
  }

  .contact-panel {
    padding: 26px 20px;
  }

  .contact-form .btn {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .logo-mark {
    font-size: 32px;
  }

  .site-footer .logo-sub {
    display: none;
  }

  .site-header .container {
    padding-inline: 16px 10px;
  }

  .cta-row .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .stat-grid b {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
