/* ============================================================
   NGU SYSTEMS — Landing page
   Premium-minimal, Arabic-first RTL
   ============================================================ */

:root {
  /* Neutrals (cool slate) */
  --bg: #f6f8fb;
  --bg-alt: #ffffff;
  --bg-tint: #eef3f8;
  --ink: #0d1526;
  --ink-2: #475569;
  --ink-3: #7c8ba1;
  --line: rgba(13, 21, 38, 0.09);
  --line-2: rgba(13, 21, 38, 0.14);
  --card: #ffffff;

  /* Brand — pulled from the logo mark (blue top → green bottom) */
  --blue: #0a7ec2;
  --teal: #0fae8e;
  --green: #15a44b;
  --navy: #0b1424;
  --navy-2: #101c30;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--teal) 55%, var(--green) 100%);
  --grad-soft: linear-gradient(135deg, rgba(10,126,194,.12), rgba(21,164,75,.12));

  /* On-dark */
  --d-ink: #eaf1f8;
  --d-ink-2: #9fb1c6;
  --d-line: rgba(255, 255, 255, 0.12);
  --d-card: rgba(255, 255, 255, 0.04);

  /* Tunables (tweakable) */
  --accent: var(--blue);
  --accent-2: var(--green);
  --accent-grad: var(--grad);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --sec-pad: 120px;
  --shadow-sm: 0 1px 2px rgba(13,21,38,.05);
  --shadow: 0 10px 34px -12px rgba(13,21,38,.16);
  --shadow-lg: 0 28px 60px -22px rgba(13,21,38,.28);

  --font-head: 'Tajawal', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[dir="rtl"] body { letter-spacing: 0; }

::selection { background: rgba(15,164,75,.18); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 28px; }
.section { padding-block: var(--sec-pad); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent-grad);
  display: inline-block;
}

.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 18px;
}
.sec-head p {
  color: var(--ink-2);
  font-size: 19px;
  margin-top: 18px;
  max-width: 640px;
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent-grad);
  opacity: 0; transition: opacity .3s;
}
.btn--primary span, .btn--primary svg { position: relative; z-index: 1; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary:hover::after { opacity: 1; }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { color: var(--navy); background: #fff; }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--lg { padding: 17px 34px; font-size: 17px; }

.arrow-flip { transition: transform .25s; }
[dir="rtl"] .arrow-flip { transform: scaleX(-1); }
.btn:hover .arrow-flip { transform: translateX(-3px); }
[dir="rtl"] .btn:hover .arrow-flip { transform: scaleX(-1) translateX(-3px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  overflow: hidden;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 248, 251, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
/* Header — fixed 76px; logo contained inside bar */
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
}
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  height: 76px;
  max-width: min(58vw, 210px);
  overflow: hidden;
}
.header-logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  object-position: center;
}
.nav-main { display: none; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: rgba(13,21,38,.04); }
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; z-index: 2; }
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: 12px; direction: ltr;
}
.lang-switch a {
  padding: 5px 8px; border-radius: 7px; color: var(--ink-3);
  transition: color .2s, background .2s;
}
.lang-switch a.active { color: var(--ink); background: rgba(13,21,38,.06); }
.lang-switch a:hover { color: var(--ink); }
.lang-sep { color: var(--line-2); }
.header-cta-desktop { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (min-width: 480px) {
  .header-row { gap: 14px; }
  .header-logo { max-width: min(52vw, 240px); }
  .header-logo img { height: 56px; }
}
@media (min-width: 768px) {
  .header-right { gap: 12px; }
  .header-logo { max-width: 280px; }
  .header-logo img { height: 58px; }
}
@media (min-width: 1000px) {
  .header-row { gap: 24px; }
  .header-logo {
    flex-shrink: 0;
    max-width: 300px;
  }
  .header-logo img { height: 60px; }
  .header-right { gap: 14px; }
  .nav-main { display: flex; }
  .header-cta-desktop { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .glow {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .5;
}
.hero-bg .g1 { width: 520px; height: 520px; top: -160px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(10,126,194,.35), transparent 68%); }
.hero-bg .g2 { width: 560px; height: 560px; top: 40px; inset-inline-end: -160px;
  background: radial-gradient(circle, rgba(21,164,75,.28), transparent 68%); }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(13,21,38,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,21,38,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 9px 7px 14px;
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700;
  font-size: 13.5px; color: var(--ink);
  box-shadow: var(--shadow-sm); white-space: nowrap; max-width: 100%;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-grad);
  box-shadow: 0 0 0 4px rgba(15,164,75,.14);
}
.badge .badge-en { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--ink-3); direction: ltr; }
.badge .badge-div { width: 1px; height: 13px; background: var(--line-2); flex: none; }
@media (max-width: 560px) { .badge .badge-en, .badge .badge-div { display: none; } }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 26px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 19.5px;
  color: var(--ink-2);
  margin-top: 26px;
  max-width: 560px;
  line-height: 1.8;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-trust {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--ink-3); direction: ltr;
}
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* ---------- Hero: Digital Operating Infrastructure ---------- */
.sysmap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  --node-fs: 14px;
  --node-en: 10px;
}
.sysmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.sysmap .link {
  fill: none;
  stroke: url(#linkgrad);
  stroke-width: 1.4;
  opacity: .4;
}
.sysmap .pulse {
  fill: none; stroke: var(--accent-2); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 5 240; opacity: .85;
  animation: dash 3.8s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -245; } }

/* NCI intelligence ring */
.nci-ring {
  fill: none; stroke: url(#linkgrad); stroke-width: 1.4;
  stroke-dasharray: 2 7; stroke-linecap: round;
  opacity: .55; transform-box: view-box; transform-origin: 200px 200px;
  animation: ringspin 60s linear infinite, ringpulse 4.5s ease-in-out infinite;
}
.nci-ring--faint { opacity: .22; stroke-dasharray: 1 9; animation: ringspin 90s linear infinite reverse; }
@keyframes ringspin { to { transform: rotate(360deg); } }
@keyframes ringpulse { 0%,100% { opacity: .5; } 50% { opacity: .8; } }

.orbit-g { transform-box: view-box; transform-origin: 200px 200px; animation: ringspin 9s linear infinite; }
.orbit-g--rev { animation: ringspin 13s linear infinite reverse; }
.orbit-dot { fill: var(--accent-2); filter: drop-shadow(0 0 5px rgba(15,164,75,.7)); }
.orbit-dot--sm { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(10,126,194,.7)); }

.orbit-chip {
  position: absolute; top: 24.5%; left: 50%; transform: translate(-50%, -50%);
  z-index: 4; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--ink-2); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 4px 11px 4px 9px; box-shadow: var(--shadow-sm); direction: ltr; white-space: nowrap;
}
.orbit-chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-grad);
  box-shadow: 0 0 0 3px rgba(15,164,75,.16); }

/* Module nodes */
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap; z-index: 3;
  animation: floaty 6.5s ease-in-out infinite;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
  cursor: default;
}
.node:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px -16px rgba(10,126,194,.4), 0 0 0 1px rgba(15,164,75,.35);
}
.node .ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--grad-soft);
}
.node .ic svg { width: 16px; height: 16px; stroke: var(--accent); }
.node .nm { font-family: var(--font-head); font-weight: 700; font-size: var(--node-fs); line-height: 1.1; }
.node .nm small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: var(--node-en); color: var(--ink-3); letter-spacing: .04em; direction: ltr; margin-top: 1px; }
@keyframes floaty { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 6px)); } }

/* Core */
.node-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 134px; height: 134px; border-radius: 32px;
  background: var(--accent-grad);
  display: grid; place-items: center; text-align: center;
  color: #fff; box-shadow: 0 24px 54px -16px rgba(10,126,194,.62);
  z-index: 3; overflow: hidden;
}
.node-core .core-mesh {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
}
.node-core .core-inner { position: relative; z-index: 1; }
.node-core::before {
  content: ""; position: absolute; inset: -12px; border-radius: 42px;
  border: 1px solid rgba(15,164,75,.32); animation: ring 3.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.92); opacity: .85; } 100% { transform: scale(1.4); opacity: 0; } }
.node-core .core-mark { font-family: var(--font-head); font-weight: 800; font-size: 31px; line-height: 1; }
.node-core .core-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; opacity: .9; margin-top: 6px; direction: ltr; }

/* analytics insight chip */
.mini-insight {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 11px 10px; box-shadow: var(--shadow);
  animation: floaty 7.5s ease-in-out infinite .4s;
}
.mini-insight .mi-head {
  display: flex; align-items: center; gap: 6px; direction: ltr;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3);
  margin-bottom: 7px;
}
.mini-insight .mi-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px rgba(15,164,75,.14); }
.mini-insight .mi-bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.mini-insight .mi-bars i { width: 6px; border-radius: 3px; background: var(--accent-grad); display: block;
  transform-origin: bottom; animation: barpulse 2.8s ease-in-out infinite; }
.mini-insight .mi-bars i:nth-child(2) { animation-delay: .25s; }
.mini-insight .mi-bars i:nth-child(3) { animation-delay: .5s; }
.mini-insight .mi-bars i:nth-child(4) { animation-delay: .75s; }
.mini-insight .mi-bars i:nth-child(5) { animation-delay: 1s; }
@keyframes barpulse { 0%,100% { transform: scaleY(.82); opacity: .8; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 1080px) and (min-width: 941px) {
  .sysmap { max-width: 460px; --node-fs: 13px; --node-en: 9px; }
}
@media (max-width: 600px) {
  .sysmap { max-width: 380px; --node-fs: 12.5px; --node-en: 9px; }
  .node { padding: 8px 11px; gap: 7px; border-radius: 12px; }
  .node .ic { width: 26px; height: 26px; }
  .node .ic svg { width: 14px; height: 14px; }
  .node-core { width: 112px; height: 112px; border-radius: 28px; }
  .node-core .core-mark { font-size: 26px; }
  .orbit-chip { font-size: 9px; padding: 3px 8px; }
  .mini-insight { display: none; }
}
@media (max-width: 380px) {
  .node .nm small { display: none; }
}

.reduce-motion .pulse, .reduce-motion .node, .reduce-motion .node-core::before,
.reduce-motion .nci-ring, .reduce-motion .orbit-g, .reduce-motion .mini-insight,
.reduce-motion .mi-bars i,
.diagram-still .pulse, .diagram-still .node, .diagram-still .node-core::before,
.diagram-still .nci-ring, .diagram-still .orbit-g, .diagram-still .mini-insight,
.diagram-still .mi-bars i { animation: none !important; }

/* ============================================================
   CORE MESSAGE
   ============================================================ */
.core {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start;
}
@media (max-width: 880px) { .core { grid-template-columns: 1fr; gap: 32px; } }
.core h2 { font-size: clamp(28px, 3.6vw, 42px); }
.core p { color: var(--ink-2); font-size: 19px; }
.core p + p { margin-top: 22px; }
.core .pull {
  margin-top: 30px; padding: 24px 26px;
  border-inline-start: 3px solid transparent;
  border-image: var(--accent-grad) 1;
  background: var(--grad-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-weight: 500; font-size: 19px; color: var(--ink);
  line-height: 1.7;
}
[dir="rtl"] .core .pull { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

/* ============================================================
   OPERATING LAYER (4 layers flow)
   ============================================================ */
.layers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--card); box-shadow: var(--shadow);
}
@media (max-width: 860px) { .layers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .layers { grid-template-columns: 1fr; } }
.layer {
  padding: 34px 28px; position: relative;
  border-inline-end: 1px solid var(--line);
  transition: background .3s;
}
.layer:last-child { border-inline-end: none; }
@media (max-width: 860px) {
  .layer:nth-child(2n) { border-inline-end: none; }
  .layer:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.layer:hover { background: var(--bg-tint); }
.layer .step-n {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  letter-spacing: .1em; direction: ltr;
}
.layer .layer-ic {
  width: 46px; height: 46px; border-radius: 13px; margin: 16px 0 18px;
  background: var(--grad-soft); display: grid; place-items: center;
}
.layer .layer-ic svg { width: 23px; height: 23px; stroke: var(--accent); }
.layer h3 { font-size: 21px; }
.layer h3 .en { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--accent); letter-spacing: .06em; margin-bottom: 4px; direction: ltr; }
.layer p { color: var(--ink-2); font-size: 15.5px; margin-top: 10px; line-height: 1.65; }
.layer .conn {
  position: absolute; top: 56px; inset-inline-end: -7px; z-index: 2;
  width: 14px; height: 14px; color: var(--ink-3);
}
[dir="rtl"] .layer .conn { transform: scaleX(-1); }
.layer:last-child .conn { display: none; }
@media (max-width: 860px) { .layer .conn { display: none; } }

/* ============================================================
   WHAT NGU BUILDS — pillars
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pillar {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pillar--wide { grid-column: span 3; }
.pillar--third { grid-column: span 2; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar--wide, .pillar--third { grid-column: span 1; }
  .pillar--feature { grid-column: span 2; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar--feature { grid-column: span 1; }
}
.pillar .p-ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  background: var(--navy); display: grid; place-items: center;
}
.pillar .p-ic svg { width: 21px; height: 21px; stroke: #fff; }
.pillar h3 { font-size: 19px; }
.pillar .p-en { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .05em; direction: ltr; }
.pillar p { color: var(--ink-2); font-size: 15px; margin-top: 12px; line-height: 1.65; }
.pillar .tag {
  display: inline-block; margin-top: 16px; font-family: var(--font-mono);
  font-size: 11.5px; color: var(--ink-3); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: var(--radius-pill); direction: ltr;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.product {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.product .p-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.product .glyph { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; }
.product .glyph svg { width: 25px; height: 25px; }
.product--nci .glyph { background: var(--accent-grad); }
.product--nci .glyph svg { stroke: #fff; }
.product .glyph--dots { background: var(--bg-tint); }
.product .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; direction: ltr; }
.product h3 { font-size: 25px; }
.product .p-desc { color: var(--ink-2); font-size: 15.5px; margin-top: 12px; line-height: 1.65; }
.product .p-val { color: var(--ink-2); font-size: 14.5px; margin-top: 14px; line-height: 1.6; opacity: .92; }
.product .p-line {
  margin-top: 20px; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--accent); letter-spacing: .02em; direction: ltr;
}
.product .p-cta {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink);
  margin-top: auto;
}
.product .p-cta svg { width: 16px; height: 16px; transition: transform .25s; }
[dir="rtl"] .product .p-cta svg { transform: scaleX(-1); }
.product:hover .p-cta { color: var(--accent); }
.product .dot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 30px; }
.product .dot-grid i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); display: block; }
.product .dot-grid i.on { background: var(--green); }

/* ============================================================
   NCI SECTION (dark)
   ============================================================ */
.nci {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(21,164,75,.22), transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 100%, rgba(10,126,194,.22), transparent 60%),
    var(--navy);
  color: var(--d-ink);
}
.nci .eyebrow { color: #fff; }
.nci .eyebrow::before { background: linear-gradient(90deg, var(--blue), var(--green)); }
.nci h2 { color: #fff; }
.nci .sec-head p { color: var(--d-ink-2); }
.nci-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 820px) { .nci-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .nci-flow { grid-template-columns: 1fr; } }
.nci-step {
  position: relative;
  background: var(--d-card); border: 1px solid var(--d-line);
  border-radius: var(--radius); padding: 28px 24px;
  backdrop-filter: blur(6px);
}
.nci-step .ns-n { font-family: var(--font-mono); font-size: 12px; color: var(--green); letter-spacing: .1em; direction: ltr; }
.nci-step .ns-ic { width: 42px; height: 42px; border-radius: 12px; margin: 16px 0 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--d-line); display: grid; place-items: center; }
.nci-step .ns-ic svg { width: 21px; height: 21px; stroke: #fff; }
.nci-step h4 { color: #fff; font-size: 18px; font-family: var(--font-head); }
.nci-step h4 .en { display:block; font-family: var(--font-mono); font-weight:400; font-size: 10.5px; color: var(--green); letter-spacing:.06em; margin-bottom:4px; direction:ltr; }
.nci-step p { color: var(--d-ink-2); font-size: 14.5px; margin-top: 10px; line-height: 1.6; }
.nci-step .flow-arrow {
  position: absolute; top: 50%; inset-inline-end: -16px; transform: translateY(-50%);
  width: 18px; color: var(--d-ink-2); z-index: 2;
}
[dir="rtl"] .nci-step .flow-arrow { transform: translateY(-50%) scaleX(-1); }
.nci-step:last-child .flow-arrow { display: none; }
@media (max-width: 820px) { .nci-step .flow-arrow { display: none; } }
.nci-note {
  margin-top: 48px; max-width: 720px;
  font-family: var(--font-head); font-weight: 500; font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.55; color: #fff;
}
.nci-note span { color: var(--green); }

/* ============================================================
   VISION
   ============================================================ */
.vision { text-align: start; }
.vision-statement {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(26px, 4.4vw, 50px); line-height: 1.3;
  max-width: 980px; letter-spacing: -0.01em;
}
.vision-statement .muted { color: var(--ink-3); }
.vision-body { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; }
@media (max-width: 760px) { .vision-body { grid-template-columns: 1fr; gap: 22px; } }
.vision-body p { color: var(--ink-2); font-size: 17px; }
.vision-strong {
  margin-top: 44px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.4;
}
.vision-strong .grad-text { display: inline; }

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }
.principle { background: var(--card); padding: 28px 26px; transition: background .3s; }
.principle:hover { background: var(--bg-tint); }
.principle .pr-en { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.principle .pr-ar { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; line-height: 1.6; }
.principle .pr-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; direction: ltr; }

/* ============================================================
   CUSTOM BUILDS
   ============================================================ */
.custom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 860px) { .custom { grid-template-columns: 1fr; gap: 34px; } }
.custom h2 { font-size: clamp(26px, 3.4vw, 38px); }
.custom p { color: var(--ink-2); font-size: 17px; margin-top: 18px; }
.custom .examples { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.custom .examples span {
  font-size: 14px; color: var(--ink-2); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 16px;
}
.custom-visual {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.custom-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(13,21,38,.025) 14px 15px);
  pointer-events: none;
}
.cv-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); position: relative; }
.cv-row:last-child { border-bottom: none; }
.cv-row .cv-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; flex: none; }
.cv-row .cv-ic svg { width: 19px; height: 19px; stroke: var(--accent); }
.cv-row .cv-t { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.cv-row .cv-t small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; font-family: var(--font-body); }
.cv-row .cv-bar { margin-inline-start: auto; width: 64px; height: 6px; border-radius: 99px; background: var(--bg-tint); overflow: hidden; }
.cv-row .cv-bar i { display: block; height: 100%; background: var(--accent-grad); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 920px) { .process-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.pstep { position: relative; padding-top: 24px; }
.pstep .pnum {
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: var(--navy); margin-bottom: 18px;
}
.pstep:hover .pnum { background: var(--accent-grad); }
.pstep .pline { position: absolute; top: 43px; inset-inline-start: 38px; inset-inline-end: -20px; height: 1.5px;
  background: linear-gradient(90deg, var(--line-2), transparent); }
[dir="rtl"] .pstep .pline { background: linear-gradient(-90deg, var(--line-2), transparent); }
.pstep:last-child .pline { display: none; }
@media (max-width: 920px) { .pstep .pline { display: none; } }
.pstep h4 { font-size: 17px; font-family: var(--font-head); }
.pstep p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; line-height: 1.6; }

/* ============================================================
   TRUST
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { padding: 30px 26px; border-inline-end: 1px solid var(--line); transition: background .3s; }
.trust-item:last-child { border-inline-end: none; }
.trust-item:hover { background: var(--bg-tint); }
@media (max-width: 900px) {
  .trust-item:nth-child(2n) { border-inline-end: none; }
  .trust-item { border-bottom: 1px solid var(--line); }
}
.trust-item .t-ic { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 11px; background: var(--grad-soft); display: grid; place-items: center; }
.trust-item .t-ic svg { width: 20px; height: 20px; stroke: var(--accent); }
.trust-item h4 { font-size: 16.5px; font-family: var(--font-head); }
.trust-item p { color: var(--ink-2); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(15,164,75,.18), transparent 60%),
    var(--navy);
  color: var(--d-ink);
  text-align: center;
}
.final .wrap { max-width: 820px; }
.final h2 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; }
.final p { color: var(--d-ink-2); font-size: 19px; margin-top: 22px; }
.final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.final-foot {
  margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--d-line);
  font-family: var(--font-head); font-weight: 500; font-size: clamp(18px, 2.4vw, 24px);
  color: #fff; line-height: 1.5;
}
.final-foot .muted { color: var(--d-ink-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-2); color: var(--d-ink-2); padding-block: 72px 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .fb-mark { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff; }
.footer-brand .fb-mark span { color: var(--green); }
.footer-brand p { font-size: 14.5px; margin-top: 16px; max-width: 340px; line-height: 1.7; }
.footer-col h5 { color: #fff; font-family: var(--font-head); font-size: 14px; letter-spacing: .02em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; padding: 6px 0; color: var(--d-ink-2); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--d-line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom .fb-en { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; direction: ltr; color: var(--d-ink-2); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.pending { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reduce-motion .reveal { opacity: 1; transform: none; transition: none; }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11,20,36,.4); backdrop-filter: blur(2px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--bg-alt); z-index: 95; padding: 26px 24px;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.3,1);
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
[dir="rtl"] .drawer { inset-inline-end: 0; transform: translateX(-100%); }
.drawer.open { transform: none; }
.drawer .dr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer .dr-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.drawer a { display: block; font-family: var(--font-head); font-weight: 500; font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer .dr-cta { margin-top: 24px; }
.drawer .dr-cta .btn { width: 100%; }
