/* ==========================================================================
   ABBJAD — Design System
   Brand: Abbjad Tech (أبجد للتقنيات), Muscat, Oman
   Type:  IBM Plex Sans Arabic / IBM Plex Sans / IBM Plex Mono
   Signature: the arch — taken from the Abbjad "أ / A" logomark
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ink & brand */
  --ink-900: #03101f;
  --ink-800: #072347;
  --ink-700: #0b3a6b;
  --brand:   #1366b4;
  --brand-600: #0b63a8;
  --brand-400: #3d93de;
  --brand-200: #a9d0f2;
  --sky:     #eaf3fb;

  /* Neutrals */
  --paper:   #ffffff;
  --surface: #f5f8fc;
  --line:    #dfe8f2;
  --line-soft: #edf2f8;
  --text:    #0a1c33;
  --muted:   #5a7391;

  /* Accent — reserved, used sparingly */
  --amber:   #f2b01e;
  --amber-soft: #fff4d9;
  --green:   #16a37b;

  /* Type */
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-en: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Space */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gap: 24px;
  --section-y: clamp(72px, 9vw, 140px);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(7, 35, 71, .06), 0 4px 14px rgba(7, 35, 71, .05);
  --sh-2: 0 2px 6px rgba(7, 35, 71, .07), 0 18px 44px rgba(7, 35, 71, .09);
  --sh-3: 0 30px 80px rgba(3, 16, 31, .28);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-ar);
  background: var(--paper);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 44px, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--surface); }
.section--sky { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.section--dark {
  background: var(--ink-800);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset-inline-start: -12%;
  top: -30%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(19, 102, 180, .55), transparent 62%);
  pointer-events: none;
}
.section--flush-top { padding-top: 0; }

.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--wide-start { grid-template-columns: 1.05fr .95fr; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { font-family: var(--font-ar); letter-spacing: 0; font-size: .82rem; font-weight: 600; }
.eyebrow::before {
  content: "";
  width: 12px; height: 16px;
  background: currentColor;
  border-radius: 6px 6px 1px 1px;
  flex: none;
  opacity: .9;
}
.section--dark .eyebrow { color: var(--brand-200); }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.18; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.32; }

.h-display { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 600; }
.h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.h4 { font-size: 1.08rem; font-weight: 600; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 62ch;
}
.section--dark .lead { color: rgba(255, 255, 255, .74); }
.muted { color: var(--muted); }
.section--dark .muted { color: rgba(255, 255, 255, .68); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .h2 + .lead, .section-head .h1 + .lead { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(19, 102, 180, .3);
}
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 14px 32px rgba(19, 102, 180, .38); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); background: #fff; }
.btn--light { background: #fff; color: var(--ink-800); }
.btn--light:hover { background: var(--sky); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.arrow { transition: transform .3s var(--ease); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-600);
  font-size: .96rem;
}
.link-arrow:hover { color: var(--ink-800); }
.section--dark .link-arrow { color: var(--brand-200); }
.section--dark .link-arrow:hover { color: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 30px rgba(7, 35, 71, .06); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__link:hover { background: var(--sky); color: var(--brand-600); }
.nav__link.is-active { color: var(--brand-600); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.nav__cta { display: none; }
.nav__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand-600); background: #fff; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  inset-inline: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(92vw, 640px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility .22s;
}
html[dir="rtl"] .mega { transform: translateX(50%) translateY(8px); }
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
html[dir="rtl"] .has-mega:hover .mega,
html[dir="rtl"] .has-mega:focus-within .mega { transform: translateX(50%) translateY(0); }
.mega__item { display: flex; gap: 14px; padding: 14px; border-radius: var(--r-md); transition: background .2s; }
.mega__item:hover { background: var(--sky); }
.mega__ico {
  width: 38px; height: 44px; flex: none;
  border-radius: 19px 19px 5px 5px;
  background: linear-gradient(160deg, var(--brand-400), var(--brand-600));
  display: grid; place-items: center;
  color: #fff; font-size: 1.05rem;
}
.mega__t { font-weight: 600; font-size: .95rem; display: block; }
.mega__d { font-size: .82rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 1080px) {
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 22px 28px;
    gap: 2px;
    margin: 0;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { padding: 14px 12px; font-size: 1rem; border-radius: 12px; }
  .nav__link.is-active::after { display: none; }
  .mega { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: inline-flex; margin-top: 14px; }
  .nav__actions .btn--primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(19, 102, 180, .1), transparent 58%),
    linear-gradient(180deg, #fff 0%, var(--sky) 100%);
}
html[dir="ltr"] .hero { background: radial-gradient(120% 90% at 15% 0%, rgba(19, 102, 180, .1), transparent 58%), linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero__title { font-size: clamp(2.35rem, 4.6vw, 3.7rem); font-weight: 600; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__lead { margin-top: 22px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); }

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--sh-1);
  margin-bottom: 26px;
}
html[dir="rtl"] .hero__pill { padding: 7px 16px 7px 8px; }
.hero__pill b {
  background: var(--ink-800);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
html[lang="ar"] .hero__pill b { font-family: var(--font-ar); }

.hero__trust {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
[data-count] { display: inline-block; direction: ltr; unicode-bidi: isolate;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.hero__trust div strong { display: block; font-size: 1.5rem; font-weight: 600; color: var(--ink-800); line-height: 1.2; }
.hero__trust div > span { font-size: .84rem; color: var(--muted); }

/* Arch aperture + dashboard */
.hero__stage { position: relative; }
.arch-glow {
  position: absolute;
  inset-inline: 8%;
  top: -6%;
  bottom: 12%;
  border-radius: 999px 999px 40px 40px;
  background: linear-gradient(165deg, var(--brand-400), var(--ink-700) 70%);
  opacity: .13;
}

.ui {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.ui__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfdff;
}
.ui__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ui__dot:nth-child(1) { background: #ffbdb1; }
.ui__dot:nth-child(2) { background: #ffe0a3; }
.ui__dot:nth-child(3) { background: #b8e6d2; }
.ui__url {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 4px 12px;
  border-radius: 999px;
  direction: ltr;
}
.ui__body { padding: 20px; display: grid; gap: 14px; }
.ui__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ui__stat {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 14px;
  background: #fff;
}
.ui__stat i { font-style: normal; font-size: .74rem; color: var(--muted); display: block; }
.ui__stat b { font-size: 1.4rem; font-weight: 600; color: var(--ink-800); line-height: 1.3; display: block; }
.ui__stat u { text-decoration: none; font-size: .7rem; font-weight: 600; color: var(--green); }
.ui__panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px;
  background: #fff;
}
.ui__panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ui__panel-h span { font-size: .82rem; font-weight: 600; }
.ui__panel-h em { font-style: normal; font-size: .68rem; color: var(--muted); font-family: var(--font-mono); }
.chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.chart i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand));
  opacity: .85;
  animation: grow 1s var(--ease) backwards;
}
.chart i:last-child { background: linear-gradient(180deg, var(--amber), #e09b00); opacity: 1; }
@keyframes grow { from { transform: scaleY(.05); transform-origin: bottom; opacity: 0; } }

.ui__list { display: grid; gap: 9px; }
.ui__item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: .82rem;
}
.ui__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky); color: var(--brand-600);
  display: grid; place-items: center; font-size: .72rem; font-weight: 600; flex: none;
}
.ui__item small { margin-inline-start: auto; font-size: .68rem; color: var(--muted); font-family: var(--font-mono); }
.tag {
  font-size: .66rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--sky); color: var(--brand-600);
}
.tag--ok { background: #e6f7f1; color: var(--green); }
.tag--warn { background: var(--amber-soft); color: #a97400; }

/* Floating cards */
.float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  animation: bob 6s ease-in-out infinite;
  z-index: 3;
}
.float b { display: block; font-size: .84rem; font-weight: 600; }
.float span { color: var(--muted); font-size: .72rem; }
.float__ico {
  width: 34px; height: 40px; flex: none;
  border-radius: 17px 17px 5px 5px;
  display: grid; place-items: center; font-size: 1rem;
  background: var(--sky);
}
.float--a { inset-inline-start: -12px; top: -50px; animation-delay: -1s; }
.float--b { inset-inline-end: -34px; bottom: -14px; animation-delay: -3.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: 2; }
  .float--a { inset-inline-start: 4px; top: -34px; }
  .float--b { inset-inline-end: -6px; }
}
@media (max-width: 560px) {
  .float { display: none; }
}

/* ---------- Marquee / trust strip ---------- */
.strip { border-block: 1px solid var(--line); background: #fff; padding-block: 22px; overflow: hidden; }
.strip__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 34s linear infinite;
}
html[dir="rtl"] .strip__track { animation-direction: reverse; }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.strip__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.strip__item b { color: var(--ink-800); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--brand-200); }
.card__ico {
  width: 46px; height: 54px;
  border-radius: 23px 23px 6px 6px;
  background: var(--sky);
  color: var(--brand-600);
  display: grid; place-items: center;
  font-size: 1.35rem;
  margin-bottom: 22px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.card:hover .card__ico { background: var(--brand); color: #fff; }
.card__t { font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; }
.card__d { font-size: .93rem; color: var(--muted); line-height: 1.72; }
.card__n {
  position: absolute;
  inset-inline-end: 22px; top: 20px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--line);
  font-weight: 500;
}

.card--dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #fff; }
.card--dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); }
.card--dark .card__d { color: rgba(255, 255, 255, .68); }
.card--dark .card__ico { background: rgba(255, 255, 255, .1); color: var(--brand-200); }
.card--dark:hover .card__ico { background: var(--brand); color: #fff; }
.card--dark .card__n { color: rgba(255, 255, 255, .2); }

/* ---------- Arch media frame (signature) ---------- */
.arch-frame {
  position: relative;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--ink-800);
  box-shadow: var(--sh-3);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame--soft { border-radius: 260px 260px var(--r-lg) var(--r-lg); }
.media-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--surface);
}
.media-frame img { width: 100%; }

.arch-bg {
  position: absolute;
  inset-inline-end: -6%;
  bottom: -18%;
  width: 46%;
  aspect-ratio: 3/4;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 0;
  pointer-events: none;
}

/* ---------- Checklist ---------- */
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; font-size: .96rem; }
.checks li::before {
  content: "✓";
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--brand-600);
  display: grid; place-items: center;
  font-size: .74rem; font-weight: 700;
  margin-top: 3px;
}
.section--dark .checks li::before { background: rgba(255, 255, 255, .12); color: var(--brand-200); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255, 255, 255, .12); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--ink-800); padding: 38px 26px; text-align: center; }
.stat b { display: block; font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; line-height: 1.1; color: #fff; }
.stat > span { font-size: .88rem; color: rgba(255, 255, 255, .66); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: s; position: relative; }
.step { position: relative; padding-top: 34px; }
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--brand);
  position: absolute;
  top: 0; inset-inline-start: 0;
}
.step::after {
  content: "";
  position: absolute;
  top: 9px; inset-inline-start: 34px; inset-inline-end: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-200), transparent);
}
.step:last-child::after { background: linear-gradient(90deg, var(--brand-200), transparent); }
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: .93rem; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs__nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 34px;
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tab {
  padding: 11px 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.tab:hover { border-color: var(--brand-200); color: var(--brand-600); }
.tab.is-active { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.tabs__panel { display: none; animation: fade .45s var(--ease); }
.tabs__panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: start;
  padding: 24px 0;
  font-size: 1.03rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: color .2s;
}
.acc__q:hover { color: var(--brand-600); }
.acc__q i {
  margin-inline-start: auto;
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 1rem; color: var(--muted);
  transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s;
}
.acc__item.is-open .acc__q i { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); color: #fff; }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding-bottom: 26px; color: var(--muted); font-size: .96rem; max-width: 70ch; }

/* ---------- Quotes ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote p { font-size: 1.06rem; line-height: 1.8; }
.quote footer { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 14px; }
.quote__av {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-400), var(--brand-600));
  color: #fff; display: grid; place-items: center; font-weight: 600; flex: none;
}
.quote__n { font-weight: 600; font-size: .95rem; display: block; }
.quote__r { font-size: .82rem; color: var(--muted); }
.quote__mark { font-size: 2.4rem; color: var(--brand-200); line-height: 1; margin-bottom: 12px; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--sh-1);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfeff;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19, 102, 180, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #9db0c6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkgrid label {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  transition: border-color .2s, background .2s;
}
.checkgrid label:hover { border-color: var(--brand-200); background: #fbfdff; }
.checkgrid input { width: auto; accent-color: var(--brand); }
.phone-group { display: flex; gap: 10px; }
.phone-group .cc {
  flex: none;
  display: grid; place-items: center;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--muted);
  direction: ltr;
}
.info-tile--feature b { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-ok {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #e6f7f1;
  color: #0d7355;
  font-size: .9rem;
  font-weight: 500;
}
.form-ok.is-visible { display: block; animation: fade .4s var(--ease); }
.form-err {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fdecec;
  color: var(--danger, #b4283a);
  font-size: .9rem;
  font-weight: 500;
}
.form-err.is-visible { display: block; animation: fade .4s var(--ease); }
.form-card .is-invalid { border-color: var(--danger, #b4283a) !important; }
/* honeypot — must stay visually gone but focusable-by-bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; pointer-events: none; }

/* ---------- Info tiles ---------- */
.info-tile {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color .25s, transform .25s var(--ease);
}
.info-tile:hover { border-color: var(--brand-200); transform: translateY(-3px); }
.info-tile__ico {
  width: 40px; height: 46px; flex: none;
  border-radius: 20px 20px 5px 5px;
  background: var(--sky); color: var(--brand-600);
  display: grid; place-items: center; font-size: 1.05rem;
}
.info-tile b { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }
.info-tile a, .info-tile p { font-size: 1rem; font-weight: 600; color: var(--text); direction: ltr; text-align: start; }
html[dir="rtl"] .info-tile .rtl-text { direction: rtl; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--ink-800), var(--ink-700) 52%, var(--brand-600));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: -55%;
  transform: translateX(-50%);
  width: 74%;
  aspect-ratio: 1/1.2;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, .05);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255, 255, 255, .68); padding-block: 72px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; }
.footer img { height: 34px; margin-bottom: 20px; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; margin-bottom: 20px; }
html[lang="ar"] .footer h4 { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: .92rem; font-weight: 600; }
.footer ul { display: grid; gap: 12px; }
.footer a { font-size: .92rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer p { font-size: .92rem; line-height: 1.8; max-width: 34ch; }
.footer__bottom {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .84rem;
}
.footer__made { display: inline-flex; align-items: center; gap: 8px; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.footer__social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }

/* ---------- Page header ---------- */
.page-head {
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(19, 102, 180, .12), transparent 60%),
    linear-gradient(180deg, #fff, var(--sky));
  padding-block: clamp(52px, 6vw, 84px) clamp(52px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex; gap: 8px; align-items: center;
}
html[lang="ar"] .crumb { font-family: var(--font-ar); font-size: .84rem; }
.crumb a:hover { color: var(--brand-600); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 48px; }
.divider { height: 1px; background: var(--line); border: 0; }
.pill-note {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--amber-soft); color: #8a6100;
  border-radius: 999px; padding: 7px 16px; font-size: .84rem; font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-start { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .field-row, .checkgrid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .btn-row .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 22px 28px; }
  .ui__row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- English typography ---------- */
html[lang="en"] h1, html[lang="en"] h2,
html[lang="en"] .h-display, html[lang="en"] .h1, html[lang="en"] .h2 {
  letter-spacing: -.032em;
  font-weight: 700;
}
html[lang="en"] h3, html[lang="en"] .h3, html[lang="en"] h4, html[lang="en"] .h4 { letter-spacing: -.018em; }
html[lang="en"] .btn, html[lang="en"] .nav__link { letter-spacing: -.008em; }
html[lang="en"] body { font-size: 16.5px; }

/* ---------- Icons ---------- */
.card__ico svg { width: 23px; height: 23px; }
.mega__ico svg { width: 19px; height: 19px; }
.float__ico svg { width: 18px; height: 18px; }
.info-tile__ico svg { width: 19px; height: 19px; }
.ui__avatar svg { width: 15px; height: 15px; }
.card__ico, .mega__ico, .float__ico, .info-tile__ico { line-height: 0; }

/* ---------- Team gallery (About) ---------- */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.gallery-nav { display: flex; gap: 8px; flex: none; }
.gallery-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease);
}
.gallery-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.gallery-btn svg { width: 17px; height: 17px; }
html[dir="rtl"] .gallery-btn svg { transform: scaleX(-1); }

.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: 0 0 clamp(250px, 30vw, 400px);
  scroll-snap-align: start;
  margin: 0;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery__item figcaption {
  font-size: .88rem;
  color: var(--muted);
  padding-top: 12px;
}
@media (prefers-reduced-motion: reduce) { .gallery { scroll-behavior: auto; } }

/* ---------- Leadership card ---------- */
.person-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--sky);
  border-radius: 999px;
  padding: 7px 16px;
  margin-top: 22px;
}
html[lang="ar"] .person-tag { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: .85rem; font-weight: 600; }


/* ---------- Expanding module cards ---------- */
.card--expand {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.card--expand .card__d { margin-bottom: 0; }

.card__panel {
  position: absolute;
  inset: 0;
  padding: 28px 30px;
  background: #fff;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .38s var(--ease), visibility .3s;
  overflow-y: auto;
}
.card--expand:hover .card__panel,
.card--expand:focus-visible .card__panel,
.card--expand:focus-within .card__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.card__panel-t {
  font-size: .96rem;
  font-weight: 600;
  color: var(--brand-600);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.card__feats { display: grid; gap: 11px; }
.card__feats li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text);
}
.card__feats li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 8px;
}

/* dark variant */
.card--dark .card__panel { background: #0b2b52; }
.card--dark .card__panel-t { color: var(--brand-200); border-bottom-color: rgba(255,255,255,.14); }
.card--dark .card__feats li { color: rgba(255,255,255,.86); }
.card--dark .card__feats li::before { background: var(--brand-200); }

/* touch devices: no hover, so the list simply lives in the card */
@media (hover: none) {
  .card--expand { min-height: 0; }
  .card__panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    margin-top: 18px;
    background: none;
    overflow: visible;
  }
  .card__panel-t { display: none; }
  .card--expand .card__panel { border-top: 1px solid var(--line-soft); padding-top: 16px; }
  .card--dark .card__panel { border-top-color: rgba(255,255,255,.14); }
}

@media (prefers-reduced-motion: reduce) {
  .card__panel { transition: opacity .01ms; transform: none; }
}


/* ---------- Card hint line ---------- */
.card__hint {
  margin-top: auto;
  padding-top: 20px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color .25s var(--ease);
}
.card__hint::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--brand-200);
  flex: none;
}
.card--expand:hover .card__hint { color: var(--brand-600); }
.card--dark .card__hint { color: rgba(255, 255, 255, .5); }
.card--dark .card__hint::before { background: rgba(255, 255, 255, .28); }
@media (hover: none) { .card__hint { display: none; } }


/* ---------- Video embeds ---------- */
.video { margin: 0 auto; max-width: 940px; }
.video + .video { margin-top: clamp(30px, 4vw, 48px); }
.video--sm { max-width: 660px; }

.video__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;              /* letterbox, never crop */
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  cursor: pointer;
}
.video__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;           /* show the whole frame, never crop */
}
.video__play {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 34px rgba(3, 16, 31, .34);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
html[dir="rtl"] .video__play { transform: translate(50%, -50%); }
.video__play svg { width: 26px; height: 26px; margin-inline-start: 3px; }
.video__frame:hover .video__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; color: var(--brand); }
html[dir="rtl"] .video__frame:hover .video__play { transform: translate(50%, -50%) scale(1.08); }
.video__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,16,31,.06), rgba(3,16,31,.24));
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.video__frame:hover::after { opacity: 1; }
.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video__cap {
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  padding-top: 14px;
}

.video__frame.is-playing { cursor: default; }
.video__frame.is-playing::after { display: none; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }


/* ---------- Portrait (9:16) film ---------- */
.video--portrait { max-width: 404px; }
.video--portrait .video__frame {
  aspect-ratio: 9 / 16;
  cursor: default;
}
.video__frame--native video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* whole frame, never cropped */
  display: block;
  background: #000;
}
.video__frame--native::after { display: none; }

@media (max-width: 620px) {
  .video--portrait { max-width: 320px; }
}
