/* ============================================================
   alnafitha AI — Design System
   Brand colors sampled from alnafitha.com:
     #1E28C3  royal blue (primary, wordmark)
     #00B1CD  cyan (accent, IT sunburst mark)
     #25296F  navy (deep heading)
     #226db4  azure (link/secondary)
     #f8fbff  icy paper (page bg)
     #ebf3ff  blue-tint surface
   Aesthetic: editorial × modern Saudi tech
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Ink scale (cool grays, not warm) */
  --ink-900: #15192F;        /* headings on light bg */
  --ink-700: #253342;        /* body text */
  --ink-500: #4F5C72;        /* secondary text */
  --ink-400: #677488;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;

  /* Surfaces */
  --paper:    #F8FBFF;        /* page background — icy off-white */
  --paper-2:  #EBF3FF;        /* lifted surface — blue tint */
  --paper-3:  #FFFFFF;        /* cards */
  --line:     #DCE4F0;        /* subtle border */
  --line-2:   #C5D0E2;        /* stronger border */

  /* Royal blue — primary brand */
  --royal-900: #0C1170;
  --royal-800: #161FA0;
  --royal-700: #1E28C3;       /* PRIMARY · matches wordmark */
  --royal-600: #2E3DD5;
  --royal-500: #5462E6;
  --royal-100: #E0E4FB;

  /* Cyan — accent (IT sunburst mark) */
  --cyan-700: #0091AC;
  --cyan-600: #00A0BD;
  --cyan-500: #00B1CD;        /* ACCENT */
  --cyan-400: #2BC4DD;
  --cyan-300: #6FDAEB;
  --cyan-100: #D9F4FA;

  /* Deep navy — heading shadow + footer */
  --navy-900: #0E1240;
  --navy-700: #25296F;

  /* Azure — link */
  --azure-600: #226db4;
  --azure-500: #2E80C9;

  /* ---- Backwards-compat aliases used throughout HTML ---- */
  --emerald-900: var(--navy-900);
  --emerald-800: var(--royal-800);
  --emerald-700: var(--royal-700);
  --emerald-600: var(--royal-600);
  --emerald-500: var(--royal-500);
  --emerald-100: var(--royal-100);
  --gold-700: var(--cyan-700);
  --gold-600: var(--cyan-600);
  --gold-500: var(--cyan-500);
  --gold-400: var(--cyan-400);
  --gold-300: var(--cyan-300);
  --gold-100: var(--cyan-100);

  /* Typography */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-arabic:  'IBM Plex Sans Arabic', 'Manrope', sans-serif;

  /* Spacing (8pt grid) */
  --s-1:  4px;   --s-2:  8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;   --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px;  --s-14: 56px; --s-16: 64px; --s-20: 80px;
  --s-24: 96px;  --s-32: 128px; --s-40: 160px; --s-48: 192px;

  /* Radii */
  --r-2: 4px; --r-3: 8px; --r-4: 12px; --r-6: 20px; --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 1px rgba(21, 25, 47, 0.04), 0 0 0 1px rgba(21, 25, 47, 0.04);
  --shadow-2: 0 1px 2px rgba(21, 25, 47, 0.04), 0 8px 24px rgba(30, 40, 195, 0.06);
  --shadow-3: 0 2px 4px rgba(21, 25, 47, 0.06), 0 24px 56px rgba(30, 40, 195, 0.10);

  /* Container */
  --max:    1280px;
  --max-narrow: 880px;
  --max-text:   720px;

  /* Easings */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--royal-700); color: #FFFFFF; }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.display {
  font-size: clamp(56px, 9.2vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 350;
  color: var(--navy-900);
}
.h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.0; letter-spacing: -0.025em; color: var(--navy-900); }
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--navy-900); }
.h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.015em; color: var(--navy-900); }
.h4 { font-size: 20px; line-height: 1.3; }
em.serif { font-style: italic; font-family: var(--font-display); font-weight: 400; color: var(--royal-700); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-700);
}
.eyebrow.dark { color: var(--cyan-400); }
.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--cyan-700);
  letter-spacing: 0;
  font-weight: 400;
  display: inline-block;
}
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 56ch;
}
.body-l { font-size: 17px; line-height: 1.6; }
.body-s { font-size: 14px; line-height: 1.5; color: var(--ink-500); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.ar { font-family: var(--font-arabic); direction: rtl; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-8); }
.container.narrow { max-width: var(--max-narrow); }
.container.text   { max-width: var(--max-text); }
section { position: relative; padding: var(--s-32) 0; }
section.tight { padding: var(--s-20) 0; }
section.compact { padding: var(--s-16) 0; }

/* ---------- Decorative marks ---------- */
.mark-8 {
  width: 28px; height: 28px;
  display: inline-block;
  vertical-align: middle;
  color: var(--cyan-500);
}
.rule-gold {
  width: 56px; height: 1px;
  background: var(--cyan-500);
  margin: 0 0 var(--s-6) 0;
  display: block;
}
.rule-gold.center { margin-left: auto; margin-right: auto; }

/* Sunburst-inspired tile (subtle background, references the IT sunburst mark) */
.bg-mashrabiya {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.8;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0,177,205,0.06) 0%, transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(30,40,195,0.05) 0%, transparent 40%);
  z-index: 0;
}
.bg-mashrabiya::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%2300B1CD' stroke-width='0.6' opacity='0.16'><circle cx='100' cy='100' r='30'/><circle cx='100' cy='100' r='44'/><circle cx='100' cy='100' r='58'/><g stroke-width='0.5'><line x1='100' y1='40' x2='100' y2='160'/><line x1='40' y1='100' x2='160' y2='100'/><line x1='58' y1='58' x2='142' y2='142'/><line x1='142' y1='58' x2='58' y2='142'/></g></g></svg>");
  background-size: 200px 200px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform .35s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--royal-700); color: #FFFFFF;
  border-color: var(--royal-700);
}
.btn-primary:hover { background: var(--royal-800); border-color: var(--royal-800); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-ghost {
  background: transparent; color: var(--ink-900); border-color: var(--ink-200);
}
.btn-ghost:hover { border-color: var(--royal-700); color: var(--royal-700); background: var(--paper-3); }
.btn-gold, .btn-cyan {
  background: var(--cyan-500); color: var(--navy-900); border-color: var(--cyan-500);
}
.btn-gold:hover, .btn-cyan:hover { background: var(--cyan-600); border-color: var(--cyan-600); transform: translateY(-1px); }
.btn-link {
  display: inline-flex; gap: var(--s-2); align-items: center;
  font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 2px;
  transition: border-color .25s, color .25s;
}
.btn-link:hover { border-color: var(--royal-700); color: var(--royal-700); }
.btn-link.gold:hover { border-color: var(--cyan-600); color: var(--cyan-700); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 251, 255, 0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out), padding .25s var(--ease-out);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--s-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  transition: padding .25s var(--ease-out);
}
.nav.scrolled .nav-inner { padding-top: 14px; padding-bottom: 14px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  flex-shrink: 0;
}
.nav-logo-img {
  height: 30px; width: auto;
  max-height: 30px; max-width: 110px;
  object-fit: contain;
  display: block;
  transition: opacity .2s;
}
.nav-logo .ai-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-left: 4px;
  background: var(--royal-700);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  border-radius: var(--r-2);
}
.nav-logo .ai-tag.cyan {
  background: var(--cyan-500);
  color: var(--navy-900);
}
.nav-logo .ar-mini {
  font-family: var(--font-arabic); font-size: 13px; color: var(--cyan-700);
  border-left: 1px solid var(--line-2); padding-left: 10px; margin-left: 4px;
  font-weight: 400;
}
.nav-links {
  display: flex; gap: var(--s-6);
  list-style: none; margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; height: 1px;
  width: 0; background: var(--cyan-500);
  transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--ink-900); }

.nav-cta { display: flex; gap: var(--s-3); align-items: center; flex-shrink: 0; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 16px; height: 16px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper-2);
  transform: translateY(-100%);
  transition: transform .4s var(--ease-out);
  display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--s-8); border-bottom: 1px solid var(--line);
}
.mobile-drawer ul {
  list-style: none; margin: 0; padding: var(--s-8);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.mobile-drawer ul li a {
  font-family: var(--font-display); font-size: 32px; font-weight: 400;
  letter-spacing: -0.02em;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
}
.mobile-drawer ul li a span.idx { font-family: var(--font-mono); font-size: 11px; color: var(--cyan-700); }

/* ---------- Hero archetype ---------- */
.hero {
  position: relative;
  padding: var(--s-32) 0 var(--s-24);
  overflow: hidden;
  isolation: isolate;
}
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(circle 600px at var(--mx, 50%) var(--my, 30%),
              rgba(0,177,205,0.20) 0%,
              rgba(30,40,195,0.08) 30%,
              transparent 70%);
  transition: background .15s linear;
}
.hero-pageno {
  position: absolute; top: var(--s-12); right: var(--s-8);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-400); text-transform: uppercase;
}
.hero-pageno strong { color: var(--cyan-700); font-weight: 500; }
.hero h1.display { max-width: 12ch; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-12);
}
.hero-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8);
  border-top: 1px solid var(--line);
  padding-top: var(--s-8);
  margin-top: var(--s-12);
}
.hero-meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-700); margin-bottom: var(--s-2); }
.hero-meta dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-900); }

/* ---------- Marquee trust bar ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
  overflow: hidden;
  background: var(--paper-2);
}
.marquee-track {
  display: flex; gap: var(--s-12);
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 18px; color: var(--ink-700);
}
.marquee-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-500);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats / big numbers ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: var(--s-12) var(--s-6);
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(56px, 7vw, 92px); line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--navy-900);
  display: flex; align-items: baseline; gap: 4px;
}
.stat .num .suffix { font-size: 0.45em; color: var(--cyan-600); font-style: italic; font-weight: 400; }
.stat .label { margin-top: var(--s-3); font-size: 13px; color: var(--ink-500); max-width: 22ch; }
.stat .ar-sub { display: block; margin-top: 4px; font-family: var(--font-arabic); font-size: 12px; color: var(--cyan-700); }

/* ---------- Section header ---------- */
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-12);
  align-items: end;
  margin-bottom: var(--s-16);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.section-head .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-700); }
.section-head .meta span.num { color: var(--ink-400); }
.section-head h2 .ar-translation { display: block; font-family: var(--font-display); font-style: italic; font-size: 0.45em; color: var(--cyan-700); font-weight: 400; margin-top: var(--s-2); letter-spacing: 0; }
.section-head h2 .ar-translation .ar { font-family: var(--font-arabic); font-style: normal; }

/* ---------- Doors / onramp cards ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.door {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: var(--s-12) var(--s-8) var(--s-8);
  border-radius: var(--r-3);
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  display: flex; flex-direction: column;
  min-height: 460px;
  overflow: hidden;
}
.door::before {
  content: ''; position: absolute; left: var(--s-8); top: 0;
  width: 0; height: 1px; background: var(--cyan-500);
  transition: width .5s var(--ease-out);
}
.door:hover { transform: translateY(-4px); border-color: var(--royal-500); box-shadow: var(--shadow-3); }
.door:hover::before { width: calc(100% - var(--s-16)); }
.door .roman {
  font-family: var(--font-display); font-style: italic; font-weight: 350;
  font-size: 80px; color: var(--cyan-500); letter-spacing: -0.05em;
  line-height: 1; margin-bottom: var(--s-6);
}
.door h3 { font-size: 32px; margin-bottom: var(--s-4); }
.door p { color: var(--ink-500); font-size: 15px; line-height: 1.6; margin: 0 0 var(--s-8); }
.door ul { list-style: none; padding: 0; margin: 0 0 var(--s-8); display: flex; flex-direction: column; gap: var(--s-2); }
.door ul li {
  font-size: 13px; color: var(--ink-700);
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding-left: 0;
}
.door ul li::before {
  content: '◆'; color: var(--cyan-500); font-size: 8px; margin-top: 6px;
}
.door .door-cta { margin-top: auto; }
.door .timing {
  position: absolute; top: var(--s-8); right: var(--s-8);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-400);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Solution cards ---------- */
.solutions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.solution-card {
  background: var(--paper-3);
  padding: var(--s-8);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: background .25s;
}
.solution-card:hover { background: var(--paper-2); }
.solution-card .glyph {
  width: 48px; height: 48px;
  color: var(--royal-700);
  margin-bottom: var(--s-6);
}
.solution-card h3 { font-size: 22px; line-height: 1.2; margin-bottom: var(--s-3); }
.solution-card .ar-sub { font-family: var(--font-arabic); font-size: 13px; color: var(--cyan-700); margin-bottom: var(--s-4); }
.solution-card p { font-size: 14px; color: var(--ink-500); line-height: 1.55; margin: 0 0 var(--s-6); }
.solution-card .meta-row {
  margin-top: auto; display: flex; gap: var(--s-4); align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-400); text-transform: uppercase;
}
.solution-card .meta-row .pill {
  background: var(--cyan-100); color: var(--cyan-700);
  padding: 4px 10px; border-radius: var(--r-pill); font-size: 10px;
}
.solution-card .deploy {
  position: absolute; top: var(--s-8); right: var(--s-8);
  opacity: 0; transform: translateX(8px);
  transition: opacity .25s, transform .25s var(--ease-out);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--royal-700); letter-spacing: 0.08em;
}
.solution-card:hover .deploy { opacity: 1; transform: translateX(0); }

/* ---------- Filter chips ---------- */
.filter-row {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-12);
}
.chip {
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: transparent;
  font-size: 13px; font-weight: 500; color: var(--ink-700);
  transition: all .2s;
}
.chip:hover { border-color: var(--royal-700); color: var(--royal-700); }
.chip.active { background: var(--royal-700); border-color: var(--royal-700); color: #FFFFFF; }

/* ---------- Steps / numbered timeline ---------- */
.timeline {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid; grid-template-columns: 80px 1fr 1fr;
  gap: var(--s-12); align-items: start;
  padding: var(--s-12) 0;
  border-bottom: 1px solid var(--line);
}
.step .step-num {
  font-family: var(--font-display); font-style: italic; font-weight: 350;
  font-size: 64px; color: var(--cyan-500); line-height: 0.9;
  letter-spacing: -0.04em;
}
.step h3 { font-size: 32px; line-height: 1.05; }
.step h3 .ar-sub { display: block; font-family: var(--font-arabic); font-size: 16px; color: var(--cyan-700); margin-top: var(--s-2); font-weight: 400; }
.step .step-body p { color: var(--ink-500); margin: 0 0 var(--s-4); font-size: 15px; line-height: 1.6; }
.step .step-body ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-2);
  font-size: 13px; color: var(--ink-700);
}
.step .step-body ul li::before { content: '— '; color: var(--cyan-500); }

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25; letter-spacing: -0.015em;
  color: var(--navy-900);
  max-width: 22ch;
  position: relative;
  padding-left: var(--s-8);
}
.pullquote::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--royal-700), var(--cyan-500));
}
.pullquote cite {
  display: block; margin-top: var(--s-6);
  font-family: var(--font-mono); font-style: normal; font-weight: 500;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan-700);
}

/* ---------- Compliance tiles ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  background: var(--paper-3); padding: var(--s-8);
  display: flex; flex-direction: column;
  min-height: 240px;
}
.tile .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan-700);
  margin-bottom: var(--s-4);
}
.tile h4 { font-size: 22px; margin: 0 0 var(--s-3); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; color: var(--navy-900); }
.tile p { margin: 0; color: var(--ink-500); font-size: 14px; line-height: 1.55; }
.tile .checks {
  margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-2);
}
.tile .check {
  font-size: 11px; padding: 4px 10px;
  border-radius: var(--r-pill); border: 1px solid var(--royal-100);
  color: var(--royal-700); background: rgba(224, 228, 251, 0.5);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

/* ---------- Architecture diagram container ---------- */
.diagram {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--s-12);
  position: relative;
  overflow: hidden;
}

/* ---------- Big-number CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--royal-900) 0%, var(--royal-700) 60%, var(--royal-800) 100%);
  color: var(--paper);
  padding: var(--s-32) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%2300B1CD' stroke-width='0.5' opacity='0.18'><circle cx='120' cy='120' r='40'/><circle cx='120' cy='120' r='62'/><circle cx='120' cy='120' r='84'/><g stroke-width='0.4'><line x1='120' y1='40' x2='120' y2='200'/><line x1='40' y1='120' x2='200' y2='120'/><line x1='65' y1='65' x2='175' y2='175'/><line x1='175' y1='65' x2='65' y2='175'/></g></g></svg>");
  background-size: 240px 240px; opacity: 0.55;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { color: #FFFFFF; }
.cta-band h2 em.serif { color: var(--cyan-400); }
.cta-band .lede { color: rgba(255, 255, 255, 0.78); }
.cta-band .btn-primary { background: var(--cyan-500); color: var(--navy-900); border-color: var(--cyan-500); }
.cta-band .btn-primary:hover { background: var(--cyan-400); border-color: var(--cyan-400); }
.cta-band .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); background: transparent; }
.cta-band .eyebrow.dark { color: var(--cyan-300); }

/* ---------- Form ---------- */
.form-wrap { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-4); padding: var(--s-10); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s-10); }
.tab {
  flex: 1; padding: var(--s-6) var(--s-4);
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  text-align: left;
  transition: border-color .25s, color .25s;
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  color: var(--ink-400); letter-spacing: -0.01em;
}
.tab .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); margin-right: var(--s-2); letter-spacing: 0.1em; }
.tab.active { color: var(--navy-900); border-bottom-color: var(--royal-700); }
.tab.active .num { color: var(--cyan-700); }

.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-6); }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-700); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  color: var(--ink-900);
  transition: border-color .25s, background .25s;
  font-family: var(--font-body);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--royal-700); background: var(--paper-3);
  box-shadow: 0 0 0 3px rgba(30, 40, 195, 0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Footer ---------- */
footer.footer {
  background: var(--navy-900); color: var(--paper);
  padding: var(--s-24) 0 var(--s-12);
  position: relative;
  overflow: hidden;
}
footer.footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'><g fill='none' stroke='%2300B1CD' stroke-width='0.4' opacity='0.10'><circle cx='160' cy='160' r='60'/><circle cx='160' cy='160' r='90'/><circle cx='160' cy='160' r='120'/><g stroke-width='0.3'><line x1='160' y1='40' x2='160' y2='280'/><line x1='40' y1='160' x2='280' y2='160'/></g></g></svg>");
  background-size: 320px 320px;
  background-position: right -100px top -80px;
}
.footer > .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-10);
  padding-bottom: var(--s-16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 32px;
  letter-spacing: -0.02em; color: #FFFFFF; margin: 0 0 var(--s-4);
}
.footer-brand p { color: rgba(255, 255, 255, 0.6); max-width: 36ch; font-size: 14px; line-height: 1.6; margin: 0 0 var(--s-6); }
.footer-brand .ar-tag { font-family: var(--font-arabic); color: var(--cyan-400); font-size: 14px; margin-bottom: var(--s-3); display: block; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan-400);
  margin: 0 0 var(--s-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col ul li a { font-size: 14px; color: rgba(255, 255, 255, 0.7); transition: color .2s; }
.footer-col ul li a:hover { color: var(--cyan-400); }
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-8);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}
.footer-meta a { color: rgba(255, 255, 255, 0.7); }
.footer-meta a:hover { color: var(--cyan-400); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ---------- Helpers ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.split-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-10); }
.text-center { text-align: center; }
.gold, .cyan { color: var(--cyan-700); }
.emerald, .royal { color: var(--royal-700); }
.italic { font-style: italic; font-family: var(--font-display); font-weight: 400; }

/* ---------- Tabular case row ---------- */
.case-row {
  display: grid; grid-template-columns: 80px 2fr 3fr 1fr;
  gap: var(--s-8); align-items: center;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.case-row:hover { background: var(--paper-2); }
.case-row .idx { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-700); }
.case-row .ttl { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; color: var(--navy-900); }
.case-row .desc { color: var(--ink-500); font-size: 14px; }
.case-row .time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: var(--s-5); }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 980px) {
  section { padding: var(--s-20) 0; }
  .container { padding: 0 var(--s-6); }
  .doors { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: 0; }
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .step { grid-template-columns: 60px 1fr; }
  .step .step-body { grid-column: 2; }
  .step .step-num { font-size: 48px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .split-2, .split-3 { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .footer-meta { flex-direction: column; gap: var(--s-3); align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 40px 1fr; }
  .case-row .desc, .case-row .time { display: none; }
  .hero-meta { grid-template-columns: 1fr; gap: var(--s-4); }
}
@media (max-width: 600px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  section { padding: var(--s-16) 0; }
  .door { padding: var(--s-8) var(--s-6); min-height: auto; }
  .door .roman { font-size: 56px; }
  .form-wrap { padding: var(--s-6); }
  .tabs { flex-direction: column; gap: var(--s-2); border-bottom: 0; }
  .tab { border: 1px solid var(--line); border-radius: var(--r-3); }
}
