/* ============================================================
   Nusware — landing page
   The structural language of the nusuq site (Effra, centered nav,
   soft cards, one inverted block per screenful) rendered LIGHT and in
   Nusware's own brand: navy #061d47 + gold #eab749, tight corners, and
   the logo's rounded diamond as the decorative shape throughout.
   The layouts are Nusware's own — a centered hero with a capability
   rail, and an editorial service list rather than a bento.
   ============================================================ */

@font-face {
  /* Titles. The file holds the Bold weight only — declaring the full range
     makes it match every requested weight, so the browser never synthesises a
     faux-bold on top of an already-bold face. It carries Arabic too, so the
     headings keep this face in both languages. */
  font-family: "DIN Next LT";
  src: url("fonts/DINNextLT.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Effra";
  src: url("fonts/Effra.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- brand ----
     Two colours carry the whole page: the navy of the logo, and the gold.
     --gold-ink is the same gold pushed dark enough to read as text on white
     (the raw #eab749 is far too light for that); --gold stays for fills and
     for type on the navy blocks, where it is the one that reads. */
  --navy: #061d47; /* primary — logo, ink, inverted blocks */
  --navy-2: #04122c; /* deeper, for gradient ends            */
  --navy-3: #0a2a63; /* lighter, for gradient starts         */
  --gold: #eab749; /* secondary                            */
  --gold-soft: #f5dda6;
  --gold-deep: #c9902a;
  --gold-ink: #8a6212; /* gold that survives on white          */
  --white: #ffffff;

  /* ---- surfaces (light) ---- */
  --paper: #ffffff; /* page background            */
  --paper-2: #f4f6fa; /* tinted section background  */
  --paper-3: #fbfcfe; /* card background            */

  /* ---- type + lines ---- */
  --text: #061d47; /* the brand navy doubles as the ink */
  --text-dim: #4a5b76;
  --text-mute: #7d8ba3;
  --line: rgba(6, 29, 71, 0.13);
  --line-soft: rgba(6, 29, 71, 0.08);

  /* corner radii — kept tight to match the angular logo */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-btn: 10px; /* buttons, nav pill, chips */

  --shell: 1240px;
  --font: "Effra", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title:
    "DIN Next LT", "Effra", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* spacing scale — one rhythm across the page */
  --sp-section: clamp(60px, 8vw, 116px);
  --sp-gutter: clamp(18px, 4vw, 24px);
  --sp-card: clamp(22px, 3vw, 32px);
  --sp-stack: clamp(14px, 2vw, 18px);

  /* soft elevation — light themes lean on shadow where dark leaned on borders */
  --shadow-sm: 0 2px 8px -4px rgba(6, 29, 71, 0.1), 0 10px 30px -22px rgba(6, 29, 71, 0.18);
  --shadow-md: 0 4px 14px -6px rgba(6, 29, 71, 0.1), 0 24px 60px -34px rgba(6, 29, 71, 0.28);
  --shadow-lg: 0 10px 30px -12px rgba(6, 29, 71, 0.12), 0 50px 110px -50px rgba(6, 29, 71, 0.4);

  /* the logo's rounded diamond, reused as a mask wherever the page needs a
     decorative brand shape (the old starburst is gone) */
  --diamond-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='11' y='11' width='78' height='78' rx='11' transform='rotate(45 50 50)' fill='%23000'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--navy);
  color: var(--gold-soft);
}
::-moz-selection {
  background: var(--navy);
  color: var(--gold-soft);
}
html {
  scrollbar-width: auto;
  scrollbar-color: var(--navy) var(--paper-2);
}
html::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
html::-webkit-scrollbar-track {
  background: var(--paper-2);
}
html::-webkit-scrollbar-thumb {
  background: var(--navy);
  border: 4px solid var(--paper-2);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--navy-3);
}
@media (max-width: 700px) {
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}
[hidden] {
  display: none !important;
}

/* clip (not hidden) so the root doesn't become a scroll container — that would
   break the sticky header — while still trimming any RTL horizontal overflow. */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.shell {
  width: min(100% - (var(--sp-gutter) * 2), var(--shell));
  margin-inline: auto;
}
section {
  position: relative;
}

/* ---------- titles ----------
   One rule so the display face is applied in exactly one place. Weight is 700
   because that is the only weight the file actually contains. */
.display,
.h2,
.rail-card h3,
.service-body h3,
.pb-head h3,
.product-head h3,
.product-next h4,
.step-card h4,
.qa button {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.01em; /* DIN is tighter than Effra — ease off the tracking */
}

/* ---------- reusable ---------- */
.eyebrow {
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}

.display {
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
}

.h2 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.8vw, 2.95rem);
}

.lead {
  color: var(--text-dim);
  font-size: 1.06rem;
  max-width: 46ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-btn);
  font-weight: 700;
  font-size: 0.98rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}
/* the primary action is the inverted one on a light page */
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  box-shadow: 0 16px 40px -14px rgba(6, 29, 71, 0.55);
}
.btn-accent {
  background: var(--navy);
  color: var(--white);
}
.btn-accent:hover {
  box-shadow: 0 16px 40px -14px rgba(6, 29, 71, 0.7);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--white);
}
.btn-ghost:hover {
  border-color: rgba(6, 29, 71, 0.3);
  background: #f1f4f9;
}
.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn svg {
  width: 20px;
  height: 20px;
}

.disabled {
  cursor: not-allowed;
}

/* compact buttons inside the header */
.nav-cta .btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  line-height: normal;
}
.nav-cta .nav-action {
  border: 1px solid transparent;
}

/* ---------- icon tints ----------
   Two only: navy on a navy wash, gold on a gold wash. `.tint-gold-ink`
   is the on-dark variant, where the raw gold is what reads. */
.tint-navy {
  background: rgba(6, 29, 71, 0.07);
  color: var(--navy);
}
.tint-gold {
  background: rgba(6, 29, 71, 0.08);
  color: var(--navy);
}
.tint-ink {
  background: rgba(234, 183, 73, 0.16);
  color: var(--gold);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(234, 183, 73, 0.8);
}

/* ============================================================
   PAGE LOADER
   Only ever shown when JS is present to take it away again — without JS the
   element stays display:none and the page renders straight away.
   ============================================================ */
.loader {
  display: none;
}
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}
/* `.done` is set by main.js when the page is ready, and by the backstop timer
   in <head> if main.js ever fails — a script error must never be able to leave
   the page covered. */
.js .loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* freeze the page behind the overlay while it is up */
html.loading,
html.loading body {
  overflow: hidden;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 24px;
}
.loader-mark {
  height: 52px;
  width: auto;
  animation: loaderPulse 1.7s ease-in-out infinite;
}
.loader-bar {
  width: 132px;
  height: 3px;
  border-radius: 2px;
  background: rgba(6, 29, 71, 0.1);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  animation: loaderSlide 1.15s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.55;
    transform: translateY(-5px);
  }
}
@keyframes loaderSlide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* ============================================================
   NAV
   ============================================================ */
header.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 9px 0;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 34px -26px rgba(6, 29, 71, 0.5);
}
/* While the mobile menu is open the header must be `fixed`, not `sticky`:
   opening sets body{overflow:hidden}, removing the scroll container a sticky
   header relies on — it would jump to document-top and vanish mid-page. */
header.nav.menu-open {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 65;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
/* the mark alone — no wordmark, so the link is sized by the logo itself */
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}
.brand .logo {
  display: block;
  flex: none;
}
.brand .logo img {
  height: 22px;
  width: auto;
  display: block;
}
.foot-brand .brand .logo img {
  height: 26px;
}

/* centered pill navigation */
.nav-links {
  justify-self: center;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-md);
  background: rgba(6, 29, 71, 0.04);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}
.nav-links a {
  padding: 0.42rem 0.95rem;
  border-radius: var(--r-xs);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.lang-btn svg {
  width: 15px;
  height: 15px;
}
.lang-btn:hover {
  color: var(--text);
  border-color: rgba(6, 29, 71, 0.3);
  background: #f1f4f9;
}
.nav-toggle {
  display: none;
  color: var(--text);
  position: relative;
  z-index: 2;
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}
.nav-toggle .ico-x {
  display: none;
}
header.nav.menu-open .nav-toggle .ico-bars {
  display: none;
}
header.nav.menu-open .nav-toggle .ico-x {
  display: block;
}

/* full-screen mobile menu overlay */
body.no-scroll {
  overflow: hidden;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 100px var(--sp-gutter) calc(var(--sp-gutter) + 12px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(26px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mm-links {
  display: flex;
  flex-direction: column;
  margin-top: 6vh;
}
.mm-links a {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s;
}
.mm-links a:hover,
.mm-links a:active {
  color: var(--gold-ink);
}
.mm-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}
.mm-cta .btn {
  padding: 1.05rem 1.5rem;
  font-size: 1.05rem;
}

/* ============================================================
   HERO — centered stage over a rotating starburst, with a
   three-panel capability rail instead of a device mock.
   ============================================================ */
.hero {
  padding: clamp(56px, 9vw, 112px) 0 0;
  position: relative;
  overflow: hidden; /* clip the decorative star/grid so RTL doesn't overflow */
}
.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: min(100% - (var(--sp-gutter) * 2), 1000px);
  padding-bottom: 40px;
}
.hero h1 {
  margin: 22px 0 20px;
  max-width: 17ch;
}
.hero h1 .grad {
  color: var(--navy-3);
}
.hero .lead {
  max-width: 60ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.hero-product-proof {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 14px;
  text-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.hero-product-proof:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 29, 71, 0.28);
  box-shadow: var(--shadow-md);
}
.hero-product-proof img {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
}
.hero-product-proof small {
  display: block;
  color: var(--navy-3);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-product-proof b {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
}
.proof-arrow {
  width: 21px;
  height: 21px;
  color: var(--navy);
  transition: transform 0.2s ease;
}
.hero-product-proof:hover .proof-arrow {
  transform: translateX(3px);
}
html[dir="rtl"] .proof-arrow {
  transform: scaleX(-1);
}
html[dir="rtl"] .hero-product-proof:hover .proof-arrow {
  transform: scaleX(-1) translateX(3px);
}

/* The logo's shape — a rounded square turned 45° — scattered around the hero.
   Same identity as the mark, without repeating the mark itself. Each one is
   placed with inset-inline-start/end so the arrangement mirrors in RTL, and the
   container stops above the rail so nothing gets clipped by a card. */
.hero-shapes {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 0;
  height: clamp(430px, 46vw, 620px);
  pointer-events: none;
  overflow: hidden;
}
.hs {
  position: absolute;
  border-radius: 18%;
  transform: rotate(45deg);
  animation: hsfloat 11s ease-in-out infinite;
}
/* soft navy wash, upper start side */
.hs-a {
  width: clamp(120px, 13vw, 190px);
  aspect-ratio: 1;
  top: 6%;
  inset-inline-start: 5%;
  background: linear-gradient(150deg, rgba(6, 29, 71, 0.18), rgba(6, 29, 71, 0.025));
}
/* outlined navy, upper end side */
.hs-b {
  width: clamp(100px, 11vw, 160px);
  aspect-ratio: 1;
  top: 12%;
  inset-inline-end: 7%;
  border: 1.5px solid rgba(6, 29, 71, 0.13);
  animation-delay: -3s;
}
/* small solid gold, lower end side */
.hs-c {
  width: clamp(30px, 3.2vw, 46px);
  aspect-ratio: 1;
  top: 58%;
  inset-inline-end: 13%;
  background: var(--navy);
  opacity: 0.16;
  animation-delay: -6s;
}
/* outlined gold, lower start side */
.hs-d {
  width: clamp(56px, 6vw, 88px);
  aspect-ratio: 1;
  top: 66%;
  inset-inline-start: 10%;
  border: 1.5px solid rgba(6, 29, 71, 0.2);
  animation-delay: -1.5s;
}
/* tiny solid navy, upper middle */
.hs-e {
  width: clamp(18px, 2vw, 26px);
  aspect-ratio: 1;
  top: 20%;
  inset-inline-start: 24%;
  background: var(--navy);
  opacity: 0.1;
  animation-delay: -8s;
}
@keyframes hsfloat {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(-14px);
  }
}

/* capability rail */
.rail {
  position: relative;
  z-index: 2;
  text-align: start;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  margin-top: clamp(46px, 6vw, 76px);
}
.rail-card {
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper-3);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.rail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.rail-ic {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.rail-ic svg {
  width: 25px;
  height: 25px;
}
.rail-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.rail-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.rail-meta {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}

/* one inverted panel keeps the light page anchored */
.rail-card.ink {
  background: var(--navy);
  border-color: transparent;
  color: #eef2f9;
}
.rail-card.ink p {
  color: #a9b6cd;
}
.rail-card.ink .rail-meta {
  color: var(--gold);
  border-top-color: rgba(255, 255, 255, 0.14);
}

/* ============================================================
   WHAT WE DO — sticky intro beside an editorial service list
   ============================================================ */
.services {
  padding: var(--sp-section) 0;
}
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.services-intro {
  position: sticky;
  top: 104px;
}
.services-intro .h2 {
  max-width: 15ch;
}
.services-intro .lead {
  max-width: 38ch;
}
.services-intro .btn {
  margin-top: 26px;
}

.service-list {
  list-style: none;
  display: grid;
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.8vw, 22px);
  padding: clamp(22px, 2.6vw, 30px) clamp(16px, 2vw, 24px);
  border-radius: var(--r-md);
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease;
}
/* hairline between rows only — the hover fill has to sit above it */
.service + .service::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: clamp(16px, 2vw, 24px);
  height: 1px;
  background: var(--line-soft);
}
.service:hover {
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}
.service:hover + .service::before,
.service:hover::before {
  opacity: 0;
}

.service-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service-body p {
  color: var(--text-dim);
  font-size: 0.96rem;
  max-width: 52ch;
}
.service-body .chip-row {
  margin: 14px 0 0;
}
.service-n {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  opacity: 0.7;
  align-self: start;
  padding-top: 4px;
  text-align: end;
}

/* ============================================================
   PRINCIPLES BAND — the inverted beat between the light sections
   ============================================================ */
.principles {
  padding: 0 0 var(--sp-section);
}
.principles-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(34px, 4.6vw, 60px);
  background:
    radial-gradient(circle at 2% 0%, rgba(234, 183, 73, 0.2), transparent 55%),
    linear-gradient(30deg, var(--navy-3), var(--navy-2));  color: #eef2f9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.pb-star {
  fill: var(--gold);
  position: absolute;
  z-index: 0;
  bottom: -46px;
  inset-inline-end: -30px;
  width: 210px;
  opacity: 0.2;
}
.pb-head,
.pb-metrics {
  position: relative;
  z-index: 1;
}
.pb-head .eyebrow {
  color: var(--gold);
}
.pb-head h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: var(--sp-stack) 0 14px;
}
.pb-head p {
  color: #a9b6cd;
  max-width: 44ch;
  font-size: 1rem;
}
.pb-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
}
.pb-metrics div {
  padding: clamp(16px, 2vw, 22px);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.pb-metrics b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}
.pb-metrics span {
  display: block;
  margin-top: 8px;
  color: #93a2bb;
  font-size: 0.84rem;
}
html[lang="ar"] .pb-head h3 {
  letter-spacing: 0;
  line-height: 1.25;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  padding: var(--sp-section) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}
.suite-head {
  text-align: center;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.suite-head .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.suite-head .lead {
  margin: 18px auto 0;
  text-align: center;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: none;
}
.product-copy {
  position: relative;
  z-index: 1;
}
.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.product-logo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  overflow: hidden;
  flex: none;
  box-shadow: var(--shadow-md);
}
.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-head h3 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.product-head h3 b {
  color: var(--navy-3);
}
.product-kicker {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--navy-3);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.product-status i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--navy);
}
.product-copy p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 46ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}
.chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0.38rem 0.8rem;
  border-radius: var(--r-xs);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.product-visual {
  position: relative;
  z-index: 1;
}

.product-next {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: clamp(18px, 2.4vw, 26px);
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.6);
}
.product-next .pn-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(6, 29, 71, 0.07);
  color: var(--navy);
}
.product-next .pn-ic svg {
  width: 24px;
  height: 24px;
}
.product-next h4 {
  font-size: 1.08rem;
  font-weight: 700;
}
.product-next p {
  color: var(--text-mute);
  font-size: 0.92rem;
  margin-top: 3px;
  max-width: 52ch;
}
.product-next .btn {
  margin-inline-start: auto;
}

/* ============================================================
   PARTNERS — same tinted-band treatment as the products section
   ============================================================ */
.partners {
  padding: var(--sp-section) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}
/* A logo strip that never stops. The sliding is driven by main.js — it clones
   the row until it overflows, then recycles each logo from the leading edge to
   the tail — so there is no duplicated markup and no seam to line up. */
.logo-marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 46px);
  /* soften both ends so logos fade in and out instead of clipping */
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(30px, 3.6vw, 60px);
  will-change: transform;
}
.plogo {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(112px, 12vw, 138px);
  height: 58px;
  opacity: 0.62;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.plogo:hover {
  opacity: 1;
  transform: translateY(-2px);
}
/* a landscape logo slot — no plate, no border, just the mark contained in a
   fixed box so logos of different proportions still line up */
.plogo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   VISION — copy beside an abstracted version of the mark
   ============================================================ */
.vision {
  padding: var(--sp-section) 0;
}
.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.vision-copy .lead {
  max-width: 46ch;
}

.vision-points {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: clamp(26px, 3vw, 36px);
}
.vision-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.vision-points b {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.vision-points span {
  color: var(--text-mute);
  font-size: 0.93rem;
}
/* the identity shape, small enough to work as a bullet */
.vp-mark {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  flex: none;
  border-radius: 22%;
  transform: rotate(45deg);
  background: linear-gradient(150deg, var(--navy-3), var(--navy));
}

/* the composition: one whole diamond above two others, echoing the logo */
.vision-visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  min-height: 320px;
}
.vd {
  position: absolute;
  border-radius: 16%;
  transform: rotate(45deg);
}
.vd-ring {
  width: 76%;
  aspect-ratio: 1;
  top: 6%;
  left: 12%;
  border: 1.5px solid var(--line);
}
.vd-main {
  width: 42%;
  aspect-ratio: 1;
  top: 4%;
  left: 29%;
  background: linear-gradient(150deg, var(--navy-3), var(--navy));
  box-shadow: var(--shadow-md);
}
.vd-left {
  width: 30%;
  aspect-ratio: 1;
  bottom: 8%;
  left: 8%;
  border: 1.5px solid rgba(6, 29, 71, 0.32);
}
.vd-right {
  width: 30%;
  aspect-ratio: 1;
  bottom: 8%;
  right: 8%;
  background: linear-gradient(150deg, rgba(10, 42, 99, 0.88), rgba(6, 29, 71, 0.48));
  box-shadow: var(--shadow-sm);
}
.vd-dot {
  width: 7%;
  aspect-ratio: 1;
  top: 15%;
  left: 9%;
  background: var(--gold);
  opacity: 0.85;
}
/* the same slow drift as the hero shapes, offset per element */
.vd-main {
  animation: hsfloat 12s ease-in-out infinite;
}
.vd-left {
  animation: hsfloat 12s ease-in-out infinite -4s;
}
.vd-right {
  animation: hsfloat 12s ease-in-out infinite -8s;
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach {
  padding: var(--sp-section) 0;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.step-card {
  position: relative;
  border: 1px solid var(--line-soft);
  background: var(--paper-3);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: rgba(6, 29, 71, 0.09);
  color: var(--navy);
}
.step-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-card p {
  color: var(--text-mute);
  font-size: 0.9rem;
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta {
  padding-bottom: var(--sp-section);
}
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 76px);
  background:
    radial-gradient(circle at 20% -10%, rgba(6, 29, 71, 0.15), transparent 55%),
    radial-gradient(circle at 92% 108%, rgba(6, 29, 71, 0.12), transparent 52%),
    linear-gradient(180deg, #ffffff, #f1f4fa);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
}
.cta-star {
  position: absolute;
  z-index: 0;
  opacity: 0.5;
}
.cta-star.a {
  fill: var(--gold);
}
.cta-star.b {
  fill: var(--navy);
}
.cta-star.a {
  top: 10%;
  left: 6%;
  width: 66px;
}
.cta-star.b {
  bottom: 8%;
  right: 8%;
  width: 104px;
}

.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.cta-copy .h2 {
  margin: var(--sp-stack) 0 18px;
  max-width: 15ch;
}
.cta-copy p {
  color: var(--text-dim);
  max-width: 42ch;
  font-size: 1.05rem;
}

.contact-panel {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
  display: grid;
  gap: 12px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: var(--white);
  transition:
    transform 0.18s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-line:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-line .cl-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(6, 29, 71, 0.07);
  color: var(--navy);
}
.contact-line .cl-ic svg {
  width: 20px;
  height: 20px;
}
.contact-line b {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
}
.contact-line small {
  color: var(--text-mute);
  font-size: 0.84rem;
}
.contact-panel .btn {
  margin-top: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: var(--sp-section) 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.qa {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}
.qa {
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.qa:hover {
  border-color: var(--line);
  background: var(--white);
}
.qa.open {
  border-color: rgba(6, 29, 71, 0.28);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.qa button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  text-align: left;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.qa .plus {
  width: 26px;
  height: 26px;
  flex: none;
  position: relative;
  transition: transform 0.3s ease;
}
.qa .plus::before,
.qa .plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--text-dim);
}
.qa .plus::before {
  width: 14px;
  height: 2px;
}
.qa .plus::after {
  width: 2px;
  height: 14px;
  transition: transform 0.3s ease;
}
.qa .ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.qa .ans p {
  padding: 0 22px 22px;
  color: var(--text-dim);
  font-size: 0.96rem;
}
.qa.open .plus {
  transform: rotate(180deg);
}
.qa.open .plus::after {
  transform: scaleY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  padding: 70px 0 40px;
  background: var(--paper-2);
}
footer .shell {
  position: relative;
  z-index: 1;
}

footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset-inline-end: clamp(-120px, -6vw, -56px);
  bottom: -170px;
  width: clamp(400px, 40vw, 620px);
  aspect-ratio: 1;
  background: url("/assets/identity/footer-shapes.svg") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}
footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -150px;
  inset-inline-end: -105px;
  width: clamp(320px, 32vw, 500px);
  aspect-ratio: 1;
  background: url("/assets/identity/footer-shapes.svg") center / contain no-repeat;
  opacity: 0.3;
  transform: rotate(180deg);
  pointer-events: none;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: clamp(38px, 5vw, 54px);
}
.foot-brand p {
  color: var(--text-dim);
  max-width: 34ch;
  margin: 18px 0 14px;
  font-size: 0.95rem;
}
.foot-mail {
  display: inline-block;
  color: var(--gold-ink);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.foot-mail:hover {
  color: var(--text);
}
.foot-col h5 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  width: fit-content;
  color: var(--text-dim);
  padding: 6px 0;
  font-size: 0.95rem;
  transition:
    color 0.2s,
    transform 0.2s;
}
.foot-col a:hover {
  color: var(--gold-ink);
}
.foot-registrations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.foot-registration {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--white);
}
.foot-registration img {
  width: clamp(112px, 13vw, 158px);
  height: 46px;
  object-fit: contain;
  flex: none;
}
.foot-registration div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.foot-registration span {
  color: var(--text-mute);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-registration strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: var(--text-mute);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 16px;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.socials a:hover {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}
.socials a svg {
  width: 17px;
  height: 17px;
}

/* ============================================================
   MOCKUP FRAMES
   ============================================================ */
.mock-desktop-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.mock-desktop {
  width: 100%;
  height: auto;
  display: block;
}
.product-visual .mock-desktop-frame {
  max-width: none;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Only hide reveals when JS is present to bring them back — no flash of empty
   page if the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hs,
  .vd,
  .loader-mark,
  .loader-bar i {
    animation: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet / small laptop ---- */
@media (max-width: 1000px) {
  .rail {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: clamp(26px, 5vw, 40px);
  }
  /* Below this width there is no room to keep the shapes out at the margins,
     so they move under the copy instead — faint enough to read straight
     through, and always beneath it (.hero-stage / .vision-copy carry the
     higher z-index). */
  .hero-shapes {
    opacity: 0.42;
    height: 100%;
  }
  .hs-a {
    top: 2%;
    inset-inline-start: -6%;
  }
  .hs-b {
    top: 8%;
    inset-inline-end: -8%;
  }
  .hs-d {
    top: 58%;
    inset-inline-start: -4%;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: clamp(30px, 6vw, 48px);
    position: relative;
  }
  .vision-copy {
    position: relative;
    z-index: 1;
  }
  .vision-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: auto;
    min-height: 0;
    max-width: none;
    margin: 0;
    pointer-events: none;
  }
  /* fade the shapes, not the wrapper — the wrapper is a .reveal, and
     `.reveal.in { opacity: 1 }` outranks anything set on it here */
  .vision-visual .vd {
    opacity: 0.14;
  }
  .vision-visual .vd-main {
    box-shadow: none;
  }
  .services-intro {
    position: static;
  }
  .services-intro .h2,
  .services-intro .lead {
    max-width: none;
  }
  .service {
    padding-inline: 0;
  }
  .service + .service::before {
    inset-inline: 0;
  }
  .principles-band {
    grid-template-columns: 1fr;
  }
  .product-card {
    grid-template-columns: 1fr;
  }
  .product-visual {
    order: 2;
  }
  .product-copy {
    order: 1;
  }
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 40px);
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 32px);
  }
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }

  /* nav → hamburger (links + CTA move into the full-screen overlay).
     Scope the hide to the header bar so the overlay's own CTA stays visible. */
  .nav-links,
  .nav-cta .nav-action {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-cta {
    gap: 6px;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none;
  }
}

/* ---- Large phone ---- */
@media (max-width: 720px) {
  .pb-metrics {
    grid-template-columns: 1fr;
  }
  .product-next .btn {
    margin-inline-start: 0;
    width: 100%;
    justify-content: center;
  }
  .foot-registrations {
    grid-template-columns: 1fr;
  }
}

/* ---- Phone ---- */
@media (max-width: 560px) {
  :root {
    --sp-section: clamp(52px, 13vw, 72px);
  }
  .lang-btn span {
    display: none;
  } /* icon-only to save room */
  .lang-btn {
    padding: 0.55rem;
  }
  .nav-cta {
    gap: 8px;
  }
  .display {
    font-size: clamp(2.5rem, 11vw, 3.2rem);
  }
  .h2 {
    font-size: clamp(1.9rem, 8.4vw, 2.5rem);
  }
  .lead {
    font-size: 1rem;
  }

  .hero {
    padding-top: clamp(28px, 8vw, 44px);
  }
  .hero h1 {
    margin: 16px 0 18px;
  }
  .hero .lead {
    margin-bottom: 26px;
  }
  .service {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .service-n {
    display: none;
  } /* decorative — drop it before it wraps */

  /* full-width buttons for a solid thumb target */
  .hero-actions .btn,
  .cta-box .btn,
  .product-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* stats stack cleanly */
  .step-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  footer::before {
    width: 470px;
    bottom: -145px;
    opacity: 0.07;
  }
  footer::after {
    top: -125px;
    inset-inline-end: -105px;
    width: 410px;
    opacity: 0.045;
  }
  .foot-registration {
    align-items: flex-start;
    flex-direction: column;
  }
  .foot-registration img {
    width: min(158px, 58%);
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box {
    padding: clamp(40px, 11vw, 60px) 22px;
  }
  .cta-star {
    display: none;
  } /* avoid overlapping copy on narrow boxes */
  .qa button {
    padding: 17px 18px;
    font-size: 1rem;
  }
  .product-head h3 {
    font-size: 1.45rem;
  }
}

/* ---- Small phone ---- */
@media (max-width: 380px) {
  .brand .logo img {
    height: 20px;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-stack {
  margin-top: var(--sp-stack);
}
.mt-md {
  margin-top: 20px;
}
.link-accent {
  color: var(--gold-ink);
  font-weight: 600;
}
.link-accent:hover {
  text-decoration: underline;
}

/* ============================================================
   DESIGN POLISH
   ============================================================ */

/* hero backdrop — soft glows + a fading top grid */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(62% 52% at 80% 8%, rgba(234, 183, 73, 0.16), transparent 70%),
    radial-gradient(52% 42% at 8% 0%, rgba(6, 29, 71, 0.09), transparent 70%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask: radial-gradient(72% 62% at 50% -4%, #000, transparent 76%);
  mask: radial-gradient(72% 62% at 50% -4%, #000, transparent 76%);
  opacity: 0.9;
}
.hero-stage,
.rail {
  position: relative;
  z-index: 2;
}

/* rail panels — a soft top highlight ring that lights up on hover */
.rail-card {
  position: relative;
  overflow: hidden;
}
.rail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 29, 71, 0.14), rgba(6, 29, 71, 0) 46%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.rail-card:hover::after {
  opacity: 1;
}
.rail-card.ink::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 46%);
  opacity: 1;
}

/* section hairline dividers */
.approach::before,
.faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - (var(--sp-gutter) * 2), var(--shell));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-soft) 20%, var(--line-soft) 80%, transparent);
}

/* focus-visible for keyboard users */
a:focus-visible,
button:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: var(--r-xs);
  box-shadow: 0 0 0 5px rgba(234, 183, 73, 0.18);
}

.nav-links a.is-active {
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.mm-links a.is-active {
  color: var(--gold-ink);
}

/* ============================================================
   ARABIC TYPOGRAPHY  (Effra everywhere — only spacing/rhythm tweaks)
   ============================================================ */
/* Effra drives Arabic too; browser per-glyph fallback fills any glyph Effra
   lacks. Negative tracking and uppercasing are Latin concepts, so relax them
   and give Arabic a little more line-height for its taller diacritics. */
html[lang="ar"] .display,
html[lang="ar"] .h2 {
  letter-spacing: 0;
  line-height: 1.2;
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0.03em;
  text-transform: none;
}
html[lang="ar"] .foot-col h5 {
  letter-spacing: 0.03em;
  text-transform: none;
}
html[lang="ar"] .lead,
html[lang="ar"] .rail-card p,
html[lang="ar"] .service-body p,
html[lang="ar"] .pb-head p,
html[lang="ar"] .product-copy p,
html[lang="ar"] .qa .ans p {
  line-height: 1.85;
}
html[lang="ar"] .rail-meta {
  letter-spacing: 0.03em;
  text-transform: none;
}

/* ============================================================
   RTL LAYOUT MIRRORING
   ============================================================ */
/* mirror the hero glow so it balances the same way in RTL */
html[dir="rtl"] .hero-bg {
  background:
    radial-gradient(62% 52% at 20% 8%, rgba(234, 183, 73, 0.16), transparent 70%),
    radial-gradient(52% 42% at 92% 0%, rgba(6, 29, 71, 0.09), transparent 70%);
}

/* mirror + flip the decorative accents */
html[dir="rtl"] .cta-star.a {
  left: auto;
  right: 8%;
}
html[dir="rtl"] .cta-star.b {
  right: auto;
  left: 10%;
}
html[dir="rtl"] .product-card::before {
  background: radial-gradient(70% 90% at 0% 0%, rgba(234, 183, 73, 0.16), transparent 60%);
}
html[dir="rtl"] .principles-band {
  background:
    radial-gradient(circle at 92% 0%, rgba(234, 183, 73, 0.2), transparent 55%),
    linear-gradient(210deg, var(--navy-3), var(--navy-2));
}

/* keep numeric tokens (1.2M, −72%, 100%) reading left-to-right inside Arabic */
html[dir="rtl"] .pb-metrics b,
html[dir="rtl"] .service-n,
html[dir="rtl"] .step-n {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
