/* ========================================================================
   ADEN TECH — Design System
   Premium · Trustworthy · Modern · Bilingual (EN/AR)
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ----- Tokens -------------------------------------------------------- */
:root {
  /* Master palette — Navy */
  --navy-50:  #F4F7FE;
  --navy-100: #E5ECFB;
  --navy-200: #C5D3F2;
  --navy-300: #8FA6DE;
  --navy-400: #5C77BB;
  --navy-500: #2F4D90;
  --navy-600: #1B3573;
  --navy-700: #102456;
  --navy-800: #0A1A3F;
  --navy-900: #061230;
  --navy-950: #030A1F;

  /* Master palette — Electric */
  --electric-50:  #EEF3FF;
  --electric-100: #DDE6FE;
  --electric-200: #BACDFD;
  --electric-300: #8DAAFA;
  --electric-400: #5E83F5;
  --electric-500: #3D62F0;   /* primary accent */
  --electric-600: #2745DB;
  --electric-700: #1D34B5;
  --electric-800: #1B2E91;
  --electric-900: #1C2C75;

  /* Product accents */
  --hub:        #7C5CFF;       /* Aden Hub — violet, building / SaaS */
  --hub-soft:   #EEE9FF;
  --hub-ink:    #3B1FBE;

  --educhain:   #10B981;       /* EduChain Trust — emerald */
  --educhain-soft: #D6F5E6;
  --educhain-ink:  #065F46;

  --qr:         #F59E0B;       /* Aden QR — amber */
  --qr-soft:    #FEF1CB;
  --qr-ink:     #92580B;

  --logistics:  #06B6D4;       /* Aden Logistics — teal */
  --logistics-soft: #CFF5FB;
  --logistics-ink:  #075E73;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;
  --info:    #3D62F0;

  /* Surfaces — light */
  --bg:           #FFFFFF;
  --bg-subtle:    #F7F9FD;
  --bg-muted:     #EDF1F8;
  --bg-inverse:   var(--navy-900);
  --border:       #E4E9F1;
  --border-strong:#CFD6E2;
  --text:         var(--navy-800);
  --text-muted:   #4B5B7A;
  --text-soft:    #7B8AA5;
  --text-inverse: #FFFFFF;
  --brand:        var(--navy-800);
  --accent:       var(--electric-500);
  --accent-ink:   #FFFFFF;
  --ring:         rgba(61, 98, 240, 0.32);

  /* Spacing (4px base) */
  --s-0: 0;
  --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;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-3xl: 36px;
  --r-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 26, 63, 0.05);
  --shadow-sm: 0 1px 2px rgba(10, 26, 63, 0.06), 0 1px 3px rgba(10, 26, 63, 0.05);
  --shadow-md: 0 4px 10px rgba(10, 26, 63, 0.06), 0 2px 4px rgba(10, 26, 63, 0.04);
  --shadow-lg: 0 14px 32px rgba(10, 26, 63, 0.10), 0 4px 8px rgba(10, 26, 63, 0.04);
  --shadow-xl: 0 28px 64px rgba(10, 26, 63, 0.14), 0 8px 16px rgba(10, 26, 63, 0.05);
  --shadow-glow: 0 0 0 6px rgba(61, 98, 240, 0.14);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.04);

  /* Typography */
  --font-sans:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'DM Sans', system-ui, sans-serif;
  --font-mono:   'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Container */
  --container: 1240px;
  --container-narrow: 940px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:           #060B1C;
  --bg-subtle:    #0B1430;
  --bg-muted:     #11204A;
  --bg-inverse:   #FFFFFF;
  --border:       #1B2C55;
  --border-strong:#2C4178;
  --text:         #ECF1FC;
  --text-muted:   #9FB0D1;
  --text-soft:    #6E80A4;
  --text-inverse: var(--navy-900);
  --brand:        #ECF1FC;
  --accent:       #5E83F5;
  --accent-ink:   var(--navy-900);
  --ring:         rgba(94, 131, 245, 0.40);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40), 0 1px 3px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.55), 0 4px 8px rgba(0, 0, 0, 0.30);
  --shadow-xl: 0 28px 64px rgba(0, 0, 0, 0.60), 0 8px 16px rgba(0, 0, 0, 0.30);

  --hub-soft:        rgba(124, 92, 255, 0.16);
  --educhain-soft:   rgba(16, 185, 129, 0.16);
  --qr-soft:         rgba(245, 158, 11, 0.18);
  --logistics-soft:  rgba(6, 182, 212, 0.18);

  color-scheme: dark;
}

/* ----- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
body[dir="rtl"] { font-family: var(--font-arabic); }

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

::selection { background: var(--electric-200); color: var(--navy-900); }
[data-theme="dark"] ::selection { background: var(--electric-700); color: #fff; }

/* ----- Typography classes ------------------------------------------- */
.display-1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.display-2 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.heading-1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.heading-2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.heading-3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.heading-4 { font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; }
.body-lg   { font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.body      { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.body-sm   { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.caption   { font-size: 13px; line-height: 1.5; color: var(--text-soft); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.mono { font-family: var(--font-mono); }

/* ----- Layout helpers ----------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-tight { padding: clamp(48px, 5vw, 80px) 0; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.grid { display: grid; gap: var(--s-6); }
.stack > * + * { margin-top: var(--s-4); }

/* ===== HEADER / NAV ================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s-6);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--text);
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--electric-600));
  color: #fff;
  border-radius: 9px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.18);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-name .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); align-self: center; }
.brand-name .sub { font-size: 12px; font-weight: 500; color: var(--text-soft); letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: var(--s-1); }
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-muted); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-link .chev { width: 12px; height: 12px; margin-inline-start: 4px; opacity: 0.6; display: inline-block; vertical-align: -1px; }

.nav-actions { display: flex; align-items: center; gap: var(--s-2); }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--dur-fast) var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .sun, .theme-toggle .moon { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Lang toggle */
.lang-toggle {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-strong); }

/* ===== BUTTONS ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
  position: relative;
  user-select: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-glow); }
.btn .icon { width: 16px; height: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-primary { background: #fff; color: var(--navy-900); }
[data-theme="dark"] .btn-primary:hover { background: var(--electric-100); }

.btn-accent {
  background: var(--electric-500);
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-accent:hover { background: var(--electric-600); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(61,98,240,0.30); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--text-soft); }

.btn-ghost { color: var(--text-muted); background: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--bg-muted); }

.btn-onnavy {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
}
.btn-onnavy:hover { background: rgba(255,255,255,0.18); }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 500;
  color: var(--accent);
}
.btn-link:hover { gap: 9px; }
.btn-link .arrow { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
[dir="rtl"] .btn-link .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn-link:hover .arrow { transform: scaleX(-1) translateX(2px); }

/* ===== INPUTS ======================================================= */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text); }
.field-hint { font-size: 12px; color: var(--text-soft); }
.field-error { font-size: 12px; color: var(--danger); }

.input, .textarea, .select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 14.5px;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.55; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 36px;
}
[dir="rtl"] .select { background-position: 18px 50%, 13px 50%; padding-inline-end: 14px; padding-inline-start: 36px; }

.input-group { position: relative; }
.input-group .input { padding-inline-start: 42px; }
.input-group .lead-icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-soft);
  pointer-events: none;
}

.checkbox, .radio {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text);
  cursor: pointer;
}
.checkbox input, .radio input { display: none; }
.checkbox .box, .radio .box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  display: inline-grid; place-items: center;
  background: var(--bg);
  transition: all var(--dur-fast) var(--ease);
}
.radio .box { border-radius: 50%; }
.checkbox input:checked + .box, .radio input:checked + .box {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox .box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform var(--dur-fast) var(--ease);
}
.checkbox input:checked + .box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.radio .box::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform var(--dur-fast) var(--ease);
}
.radio input:checked + .box::after { transform: scale(1); }

/* ===== CARDS ======================================================== */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.card-hoverable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card-flat { box-shadow: none; }
.card-elevated { box-shadow: var(--shadow-md); border-color: transparent; }
.card-feature {
  padding: var(--s-8);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
}

/* Product card */
.product-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease);
  display: flex; flex-direction: column;
  min-height: 320px;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--product-soft, transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--product, var(--border-strong)); }
.product-card:hover::before { opacity: 0.55; }
[data-theme="dark"] .product-card:hover::before { opacity: 1; }
.product-card > * { position: relative; z-index: 1; }
.product-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: var(--product, var(--accent));
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: var(--s-5);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.2);
}
.product-icon svg { width: 26px; height: 26px; }
.product-name {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
.product-tagline {
  font-size: 13px; font-weight: 500;
  color: var(--product, var(--accent));
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
}
.product-desc { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0 0 var(--s-5); flex: 1; }
.product-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--product, var(--accent));
}
.product-cta .arrow { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.product-card:hover .product-cta .arrow { transform: translateX(3px); }
[dir="rtl"] .product-card:hover .product-cta .arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .product-cta .arrow { transform: scaleX(-1); }

/* Service card */
.service-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  transition: all var(--dur-base) var(--ease);
}
.service-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--electric-50);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
}
[data-theme="dark"] .service-icon { background: rgba(94,131,245,0.16); }
.service-icon svg { width: 22px; height: 22px; }
.service-card h4 { font-size: 17px; font-weight: 600; margin: 0 0 6px; color: var(--text); letter-spacing: -0.01em; }
.service-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0;
}
.badge-accent { background: var(--electric-50); color: var(--electric-700); }
[data-theme="dark"] .badge-accent { background: rgba(94,131,245,0.16); color: var(--electric-300); }
.badge-success { background: var(--educhain-soft); color: var(--educhain-ink); }
.badge-warning { background: var(--qr-soft); color: var(--qr-ink); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Pill / chip used in hero */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}
.pill .pill-tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--electric-500);
  color: #fff;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ===== HERO ========================================================== */
.hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 100px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% -10%, rgba(61, 98, 240, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at -10% 30%, rgba(124, 92, 255, 0.08), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.hero-eyebrow { margin-bottom: var(--s-5); }
.hero-title {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 var(--s-6);
  color: var(--text);
}
.hero-title .accent { color: var(--accent); }
.hero-title .underline {
  background: linear-gradient(transparent 70%, var(--electric-200) 70%);
  padding: 0 4px;
}
[data-theme="dark"] .hero-title .underline { background: linear-gradient(transparent 70%, rgba(94,131,245,0.32) 70%); }
.hero-lead {
  font-size: 19px; line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 var(--s-8);
  max-width: 540px;
}
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: var(--s-6); margin-top: var(--s-10); flex-wrap: wrap; }
.hero-trust-label { font-size: 12px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-mono); }
.hero-logos { display: flex; gap: var(--s-6); align-items: center; flex-wrap: wrap; opacity: 0.7; }
.hero-logos .logo { font-weight: 600; font-size: 15px; color: var(--text-soft); letter-spacing: -0.01em; }

/* Hero illustration */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline-start: auto;
}

/* ===== STATS ========================================================= */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  padding: var(--s-10) 0;
  border-block: 1px solid var(--border);
}
.stat-num {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin: 0 0 6px;
}
.stat-num .unit { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ===== SECTION HEADER =============================================== */
.section-head { max-width: 720px; margin: 0 auto var(--s-12); text-align: center; }
.section-head.left { text-align: start; margin-inline-start: 0; }
.section-head .eyebrow { display: inline-block; margin-bottom: var(--s-3); }
.section-head h2 { margin: 0 0 var(--s-3); }
.section-head p { margin: 0; color: var(--text-muted); font-size: 17px; line-height: 1.55; }

/* ===== FOOTER ======================================================== */
.site-footer {
  background: var(--navy-900);
  color: #C7D2E8;
  padding: var(--s-20) 0 var(--s-8);
  margin-top: var(--s-24);
}
[data-theme="dark"] .site-footer { background: #030714; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-12);
  margin-bottom: var(--s-16);
}
.footer-brand .brand-lockup { color: #fff; margin-bottom: var(--s-4); }
.footer-brand p { font-size: 14px; color: #93A5C8; max-width: 280px; margin: 0 0 var(--s-6); line-height: 1.55; }
.footer-col h5 { font-size: 13px; font-weight: 600; color: #fff; margin: 0 0 var(--s-4); letter-spacing: 0; text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.1em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #93A5C8; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: #6B7CA0;
  gap: var(--s-4); flex-wrap: wrap;
}
.footer-social { display: flex; gap: var(--s-2); }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  color: #C7D2E8;
  transition: all var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--electric-500); color: #fff; }

/* ===== CTA BAND ====================================================== */
.cta-band {
  position: relative;
  border-radius: var(--r-3xl);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 60%, var(--electric-700) 100%);
  color: #fff;
  padding: clamp(48px, 6vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(124, 92, 255, 0.35), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.25), transparent 50%);
  z-index: -1;
}
.cta-band h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 var(--s-4); max-width: 720px; }
.cta-band p { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 600px; margin: 0 0 var(--s-8); line-height: 1.55; }

/* ===== INDUSTRY / CAPABILITY GRID ==================================== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--bg);
}
.cap-cell {
  padding: var(--s-8);
  border-inline-end: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background var(--dur-fast) var(--ease);
}
.cap-cell:hover { background: var(--bg-subtle); }
.cap-grid .cap-cell:nth-child(3n) { border-inline-end: none; }
.cap-grid .cap-cell:nth-last-child(-n+3) { border-bottom: none; }
.cap-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-muted);
  color: var(--text);
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
}
.cap-icon svg { width: 20px; height: 20px; }
.cap-cell h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.cap-cell p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* Industry pill grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.industry-pill {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--dur-fast) var(--ease);
}
.industry-pill:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.industry-pill .ind-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-muted);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.industry-pill .ind-icon svg { width: 18px; height: 18px; }
.industry-pill .ind-name { font-size: 14px; font-weight: 500; color: var(--text); }

/* ===== WHY / FEATURE LIST =========================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.why-item {
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease);
}
.why-item:hover { background: var(--bg); border-color: var(--border); box-shadow: var(--shadow-md); }
.why-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--s-3);
  letter-spacing: 0.04em;
}
.why-item h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.why-item p { font-size: 14.5px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ===== TESTIMONIAL ================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  display: flex; flex-direction: column;
  gap: var(--s-6);
}
.testimonial blockquote {
  margin: 0;
  font-size: 17px; line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  flex: 1;
}
.testimonial blockquote::before { content: "“"; font-size: 32px; font-weight: 700; color: var(--accent); margin-inline-end: 4px; line-height: 0; vertical-align: -10px; }
.testimonial-attr {
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-500), var(--electric-500));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.testimonial-attr .name { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; line-height: 1.3; }
.testimonial-attr .role { font-size: 12px; color: var(--text-soft); margin: 0; }

/* ===== TOKEN PREVIEW (for design-system page) ======================== */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.swatch {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.swatch-color { aspect-ratio: 1.4; }
.swatch-meta { padding: var(--s-3) var(--s-3) var(--s-3); }
.swatch-meta .name { font-size: 13px; font-weight: 600; margin: 0; }
.swatch-meta .val { font-family: var(--font-mono); font-size: 11px; color: var(--text-soft); margin: 0; }

.type-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  gap: var(--s-6);
}
.type-row:last-child { border-bottom: none; }
.type-label .name { font-family: var(--font-mono); font-size: 12px; color: var(--text-soft); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.type-label .spec { font-family: var(--font-mono); font-size: 11px; color: var(--text-soft); margin: 0; }

.token-row {
  display: grid; grid-template-columns: 140px 80px 1fr;
  align-items: center; gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.token-row:last-child { border-bottom: none; }
.token-name { font-family: var(--font-mono); font-size: 12px; color: var(--text); margin: 0; }
.token-value { font-family: var(--font-mono); font-size: 12px; color: var(--text-soft); margin: 0; }
.token-visual { display: flex; align-items: center; gap: var(--s-3); }
.radius-demo { width: 56px; height: 56px; background: var(--electric-500); border-radius: var(--r); flex-shrink: 0; }
.shadow-demo { width: 80px; height: 56px; background: var(--bg); border-radius: var(--r-md); border: 1px solid var(--border); }
.spacing-demo { height: 16px; background: var(--electric-500); border-radius: 2px; }

/* DS section anchor */
.ds-section { padding: var(--s-16) 0; border-bottom: 1px solid var(--border); }
.ds-section:last-child { border-bottom: none; }

/* Inline code */
code, .code-inline {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--bg-muted);
  border-radius: var(--r-xs);
  color: var(--text);
}

/* ===== RESPONSIVE =================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-12); }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid .cap-cell:nth-child(3n) { border-inline-end: 1px solid var(--border); }
  .cap-grid .cap-cell:nth-child(2n) { border-inline-end: none; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .hero-title { font-size: 40px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-grid .cap-cell { border-inline-end: none !important; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { text-align: start; }
  .section-head.left { text-align: start; }
  .type-row { grid-template-columns: 1fr; gap: var(--s-2); }
  .token-row { grid-template-columns: 1fr; }
}

/* Tweaks panel positioning override (used on home) */
.tweaks-panel-root { z-index: 70; }
