/* ============================================================
   Salasel Babel — Legal Operating System · Home
   Visual identity: lapis & gold of Babylon's Ishtar Gate
   ============================================================ */

:root {
  /* Palette */
  --lapis-900: #0F2A52;  /* Basalt Lapis — dark sections */
  --lapis-700: #1C4A86;
  --lapis-600: #2E6FB0;  /* Ishtar Blue — primary action */
  --lapis-400: #6FA0D0;
  --brass-500: #C8A24B;  /* Royal Brass — the human seal */
  --brass-600: #B08D3A;
  --brass-200: #E7D4A0;
  --limestone-50: #F1ECE2; /* Warm Stone */
  --limestone-100: #E7E0D2;
  --limestone-200: #D9CFBC;
  --clay-500: #B5673A;   /* Clay — diagrams only */
  --clay-300: #D49B72;
  --ink-900: #1A1B1E;    /* Tablet Ink */
  --ink-600: #4A4C52;
  --ink-400: #75777E;
  --white: #FCFAF5;

  /* Type scale (rem) */
  --fs-display: 3.5rem;
  --fs-h1: 2.5rem;
  --fs-h2: 1.875rem;
  --fs-h3: 1.375rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.78rem;

  /* Fonts */
  --font-ar-display: 'Reem Kufi', system-ui, sans-serif;
  --font-ar-body: 'Tajawal', system-ui, sans-serif;
  --font-la-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-la-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Active (swapped by lang) */
  --font-display: var(--font-ar-display);
  --font-body: var(--font-ar-body);

  --radius: 4px;
  --radius-card: 12px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --line-hi: 1.8;
}

html[lang="en"] {
  --font-display: var(--font-la-display);
  --font-body: var(--font-la-body);
  --line-hi: 1.65;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--line-hi);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.32; }

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 132px); }

/* Eyebrow — mono spec label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-600);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass-500);
}
.on-dark .eyebrow { color: var(--brass-200); }
.on-dark .eyebrow::before { background: var(--brass-200); }

.section-head { max-width: 640px; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.section-head .lead { color: var(--ink-600); font-size: 1.12rem; }
.on-dark .section-head .lead { color: var(--lapis-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius);
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-seal {
  background: var(--brass-500); color: #2A2207;
  box-shadow: 0 1px 0 var(--brass-600) inset, 0 8px 22px -12px rgba(200,162,75,.9);
}
.btn-seal:hover { background: var(--brass-200); box-shadow: 0 1px 0 var(--brass-600) inset, 0 10px 26px -10px rgba(200,162,75,1); }
.btn-primary { background: var(--lapis-600); color: #fff; }
.btn-primary:hover { background: var(--lapis-700); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .92; }
.btn-ghost:hover { opacity: 1; background: rgba(255,255,255,.06); }
.on-light .btn-ghost { color: var(--lapis-700); }
.on-light .btn-ghost:hover { background: rgba(46,111,176,.07); }
.btn-text { padding: 12px 4px; font-weight: 500; color: inherit; opacity: .85; }
.btn-text:hover { opacity: 1; }
.btn .ar-only { display: inline; }

.icon { width: 1.15em; height: 1.15em; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
  color: var(--limestone-50);
}
.site-header.is-scrolled {
  background: rgba(241,236,226,.92);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: var(--limestone-200);
  color: var(--ink-900);
}
.header-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }

/* Brand / logo placeholder */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word .ar { font-family: var(--font-ar-display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0; }
.brand-word .en { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: .7; }

.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 9px 14px; font-size: 0.95rem; font-weight: 500; color: inherit;
  border-radius: var(--radius); opacity: .9; transition: opacity .2s, background .2s;
}
.nav-item > a:hover, .nav-item > button:hover { opacity: 1; background: rgba(127,127,127,.1); }
.nav-item .caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.has-mega.open .caret { transform: rotate(180deg); }

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

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: .05em; border: 1px solid currentColor;
  border-radius: 999px; overflow: hidden; opacity: .85;
}
.lang-toggle span { padding: 6px 11px; transition: background .2s, color .2s; }
.lang-toggle .is-active { background: currentColor; }
.site-header:not(.is-scrolled) .lang-toggle .is-active { color: var(--lapis-900); }
.site-header.is-scrolled .lang-toggle .is-active { color: var(--limestone-50); }
.lang-toggle:hover { opacity: 1; }

/* Mega menu */
.mega-menu {
  position: absolute; inset-block-start: calc(var(--header-h) - 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(880px, 92vw); background: var(--white); color: var(--ink-900);
  border: 1px solid var(--limestone-200); border-radius: var(--radius-card);
  box-shadow: 0 30px 70px -28px rgba(15,42,82,.4);
  padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.nav-item.has-mega.open .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-card { padding: 18px; border-radius: 10px; background: var(--limestone-50); transition: background .2s; }
.mega-card:hover { background: var(--limestone-100); }
.mega-card .mega-ico { width: 30px; height: 30px; color: var(--lapis-600); margin-bottom: 12px; }
.mega-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 5px; }
.mega-card p { font-size: 0.86rem; color: var(--ink-600); line-height: 1.6; }

/* Mobile */
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: inherit; }
.menu-btn svg { width: 24px; height: 24px; }
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; background: var(--lapis-900); color: var(--limestone-50);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 32px;
  transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
}
html[dir="ltr"] .mobile-drawer { transform: translateX(-100%); }
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-drawer .md-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a { font-family: var(--font-display); font-size: 1.5rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-drawer .md-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; background: var(--lapis-900); color: var(--limestone-50);
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 110px)) clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* faint engraved cylinder-seal texture on the leading (start) side */
.hero-seal-texture {
  position: absolute; inset-block: -10%; inset-inline-start: -6%;
  width: 48%; opacity: .14; color: var(--lapis-400);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 60%);
  mask-image: linear-gradient(to left, transparent, #000 60%);
}
html[dir="ltr"] .hero-seal-texture { -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%); }
.hero-glow { position: absolute; inset-block-start: -30%; inset-inline-end: -10%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(46,111,176,.45), transparent 70%); filter: blur(10px); }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.3rem, 5.2vw, var(--fs-display)); margin-bottom: 24px; }
.hero-title .line2 { color: var(--brass-200); }
.hero-sub { font-size: 1.18rem; color: #D6DEEA; max-width: 33ch; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 0.84rem; color: var(--lapis-400); }
.trust-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.trust-item .icon { width: 15px; height: 15px; color: var(--brass-200); }

/* Device placeholder frame */
.hero-visual { position: relative; }
.device-frame {
  background: linear-gradient(180deg, #133463, #0C2348);
  border: 1px solid rgba(111,160,208,.3); border-radius: 14px; padding: 12px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.device-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 12px; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); display: block; }
.device-bar .addr { margin-inline-start: 12px; height: 18px; flex: 1; border-radius: 5px; background: rgba(255,255,255,.06); }
.device-screen {
  position: relative; aspect-ratio: 16 / 11; border-radius: 8px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(111,160,208,.10) 0 10px, rgba(111,160,208,.04) 10px 20px),
    var(--lapis-900);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  border: 1px dashed rgba(111,160,208,.35);
}
.device-screen .ph-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .08em; color: var(--lapis-400); text-align: center; padding: 0 24px; }
.device-screen .ph-icon { width: 38px; height: 38px; color: var(--lapis-400); opacity: .7; }
.device-caption { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .1em; color: var(--lapis-400); text-align: center; margin-top: 12px; opacity: .8; }

/* ============================================================
   SHIFT / PROBLEM
   ============================================================ */
.shift { background: var(--limestone-50); }
.shift-inner { max-width: 900px; margin-inline: auto; text-align: center; }
.shift-pain { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--ink-400); line-height: 1.5; margin-bottom: 28px; }
.shift-turn { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.35rem); color: var(--ink-900); line-height: 1.4; }
.shift-turn b { color: var(--lapis-600); font-weight: 600; }
.shift-rule { width: 56px; height: 2px; background: var(--brass-500); margin: 0 auto 34px; }

/* ============================================================
   AI CYCLE — the rolling seal (signature)
   ============================================================ */
.cycle { background: var(--limestone-50); position: relative; }
.cycle-head { text-align: center; max-width: 680px; margin: 0 auto 8px; }
.cycle-head h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.cycle-head .lead { color: var(--ink-600); font-size: 1.1rem; }

.cycle-rail { position: relative; height: 320vh; }
@media (prefers-reduced-motion: reduce) { .cycle-rail { height: auto; } }
.cycle-sticky { position: sticky; inset-block-start: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cycle-sticky { position: static; height: auto; padding-block: 40px; } }

.cycle-progress { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .14em; color: var(--brass-600); margin-bottom: 26px; }

/* Clay band the cylinder rolls across */
.cycle-stage { position: relative; width: min(1100px, 92vw); }
.clay-band {
  position: relative; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--clay-300), var(--clay-500));
  opacity: .5; margin-bottom: 0;
}

/* Cylinder seal */
.cylinder {
  position: absolute; inset-block-start: -46px; inset-inline-start: 0; z-index: 5;
  width: 64px; height: 92px; transform: translateX(0);
  will-change: transform;
}
.cylinder-core {
  position: absolute; inset: 0 18px; border-radius: 9px;
  background: linear-gradient(100deg, #1B3F6E 0%, #2E6FB0 45%, #16365f 100%);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
.cylinder-core::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 2px, transparent 2px 8px);
  opacity: .6;
}
.cylinder-cap { position: absolute; inset-inline: 6px; height: 14px; border-radius: 50%; background: linear-gradient(180deg, #79a3cf, #2E6FB0); box-shadow: inset 0 1px 2px rgba(255,255,255,.4); }
.cylinder-cap.top { inset-block-start: -5px; }
.cylinder-cap.bot { inset-block-end: -5px; background: linear-gradient(180deg, #2E6FB0, #16365f); }
.cylinder-pin { position: absolute; inset-block: -16px; inset-inline-start: 50%; width: 2px; background: var(--brass-500); transform: translateX(-50%); opacity: .8; }

/* Imprints */
.imprints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.imprint {
  text-align: center; opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.imprint.is-stamped { opacity: 1; transform: none; }
.imprint-roundel {
  width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
  background: var(--white); color: var(--lapis-600);
  box-shadow: 0 0 0 1.5px var(--lapis-600) inset, 0 14px 30px -16px rgba(46,111,176,.6);
}
.imprint-roundel .icon { width: 32px; height: 32px; stroke-width: 1.5; }
.imprint-roundel .ring { position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(46,111,176,.35); }
.imprint-num { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--lapis-600); color: #fff; font-family: var(--font-mono); font-size: 0.7rem; display: flex; align-items: center; justify-content: center; }
.imprint-name { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }
.imprint-desc { font-size: 0.86rem; color: var(--ink-600); line-height: 1.55; }

/* the gold human-approval link */
.imprint.is-gold .imprint-roundel { color: var(--brass-600); background: #FBF4DF; box-shadow: 0 0 0 1.5px var(--brass-500) inset, 0 16px 36px -14px rgba(200,162,75,.85); }
.imprint.is-gold .imprint-roundel .ring { border-color: rgba(200,162,75,.45); }
.imprint.is-gold .imprint-num { background: var(--brass-500); color: #2A2207; }
.imprint.is-gold.is-stamped .imprint-roundel { animation: sealPress .5s var(--ease); }
@keyframes sealPress { 0% { transform: scale(1); } 30% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.imprint .human-tag { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-600); }

.cycle-caption { text-align: center; max-width: 560px; margin: 48px auto 0; color: var(--ink-600); }
.cycle-caption b { color: var(--ink-900); }
.cycle-statuses { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.cycle-statuses .st { padding: 4px 10px; border-radius: 4px; background: var(--limestone-100); color: var(--ink-600); }
.cycle-statuses .st.approved { background: #FBF4DF; color: var(--brass-600); }
.cycle-statuses .arr { color: var(--ink-400); }

/* ============================================================
   MODULES
   ============================================================ */
.modules { background: var(--white); }
.modules-head { margin-bottom: 46px; }
.modules-cta { display: flex; justify-content: center; margin-top: 42px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.module-card {
  padding: 24px 22px; border-radius: var(--radius-card); background: var(--white);
  border: 1px solid var(--limestone-200);
  transition: transform .22s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(15,42,82,.35); border-color: var(--limestone-100); }
.module-ico { width: 34px; height: 34px; color: var(--lapis-600); margin-bottom: 18px; }
.module-name { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 7px; }
.module-line { font-size: 0.88rem; color: var(--ink-600); line-height: 1.55; }
.module-card.is-engine { background: var(--lapis-900); color: var(--limestone-50); border-color: transparent; }
.module-card.is-engine .module-ico { color: var(--brass-200); }
.module-card.is-engine .module-line { color: var(--lapis-400); }

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions { background: var(--limestone-50); }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.solution-card {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius-card);
  background: var(--white); border: 1px solid var(--limestone-200); overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(15,42,82,.4); }
.solution-card .sol-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass-600); letter-spacing: .12em; }
.solution-card .sol-ico { width: 40px; height: 40px; color: var(--lapis-600); margin: 18px 0 20px; }
.solution-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.solution-card p { color: var(--ink-600); margin-bottom: 22px; }
.solution-card .sol-link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--lapis-600); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.solution-card .sol-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.solution-card:hover .sol-link .icon { transform: translateX(-4px); }
html[dir="ltr"] .solution-card:hover .sol-link .icon { transform: translateX(4px); }
.solution-card .sol-tag { position: absolute; inset-block-start: 22px; inset-inline-end: 22px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-500); background: #F6E9DF; padding: 4px 9px; border-radius: 4px; }

/* ============================================================
   SECURITY STRIP
   ============================================================ */
.security { background: var(--lapis-900); color: var(--limestone-50); position: relative; overflow: hidden; }
.security .hero-seal-texture { inset-inline-start: auto; inset-inline-end: -8%; width: 40%; opacity: .1; }
.security-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.security-statement { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.05rem); line-height: 1.45; }
.security-statement .hl { color: var(--brass-200); }
.security-side .badge-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.badge { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(111,160,208,.18); }
.badge .icon { width: 22px; height: 22px; color: var(--brass-200); flex: none; }
.badge .b-text { font-size: 0.95rem; }
.badge .b-text b { display: block; font-family: var(--font-display); font-weight: 600; }
.badge .b-text span { color: var(--lapis-400); font-size: 0.84rem; }

/* ============================================================
   PROOF
   ============================================================ */
.proof { background: var(--white); }
.proof-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.proof-head h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.proof-head .lead { color: var(--ink-600); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 30px 26px; border-radius: var(--radius-card); background: var(--limestone-50); border: 1px solid var(--limestone-200); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--lapis-600); line-height: 1; margin-bottom: 12px; unicode-bidi: plaintext; }
.stat-num small { font-size: 0.45em; color: var(--brass-600); }
.stat-label { font-size: 0.95rem; color: var(--ink-600); line-height: 1.5; }
.stat-illustrative { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: .08em; color: var(--ink-400); margin-top: 12px; text-transform: uppercase; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band { background: var(--lapis-900); color: var(--limestone-50); position: relative; overflow: hidden; text-align: center; }
.cta-band .seal-stamp { width: 78px; height: 78px; margin: 0 auto 26px; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--lapis-400); margin-bottom: 32px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-glow { position: absolute; inset-block-end: -50%; inset-inline-start: 50%; transform: translateX(-50%); width: 70%; height: 100%; background: radial-gradient(closest-side, rgba(200,162,75,.22), transparent 70%); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--lapis-900); color: var(--limestone-100); padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--lapis-400); font-size: 0.92rem; max-width: 30ch; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(111,160,208,.25); display: flex; align-items: center; justify-content: center; color: var(--lapis-400); transition: color .2s, border-color .2s; }
.footer-social a:hover { color: var(--brass-200); border-color: var(--brass-200); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lapis-400); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.95rem; color: var(--limestone-100); opacity: .85; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: var(--brass-200); }
.footer-news p { color: var(--lapis-400); font-size: 0.9rem; margin-bottom: 14px; }
.news-form { display: flex; gap: 8px; margin-bottom: 20px; }
.news-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(111,160,208,.3); background: rgba(255,255,255,.04); color: #fff; font-family: var(--font-body); font-size: 0.92rem; }
.news-form input::placeholder { color: var(--lapis-400); }
.news-form input:focus { outline: none; border-color: var(--brass-200); }
.news-form button { padding: 12px 18px; border-radius: var(--radius); background: var(--lapis-600); color: #fff; font-weight: 600; white-space: nowrap; }
.footer-contact { font-size: 0.88rem; color: var(--lapis-400); line-height: 1.9; }
.footer-contact a:hover { color: var(--brass-200); }

.seal-divider { height: 1px; background: repeating-linear-gradient(90deg, rgba(111,160,208,.4) 0 6px, transparent 6px 12px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; font-size: 0.82rem; color: var(--lapis-400); }
.footer-bottom .fb-links { display: flex; gap: 18px; align-items: center; }
.footer-bottom a:hover { color: var(--brass-200); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* lang visibility helpers */
.en-only { display: none; }
html[lang="en"] .ar-only { display: none; }
html[lang="en"] .en-only { display: inline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .hero-sub { max-width: 46ch; }
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .security-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav, .header-actions .desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .solution-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --fs-h2: 1.6rem; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .imprints { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; }
  .cycle-rail { height: 280vh; }
}
