/* ═══════════════════════════════════════════════════════════════
   XENOIT DESIGN SYSTEM
   Inspired by NIST.gov institutional authority —
   modernised for cybersecurity & AI
   ═══════════════════════════════════════════════════════════════ */

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

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Brand colours — NIST navy + modern cyber teal */
  --navy:        #0D1B2E;
  --navy2:       #132436;
  --navy3:       #1A3050;
  --blue:        #005EA2;   /* NIST primary blue */
  --blue-dark:   #004880;
  --blue-light:  #D9E8F6;
  --teal:        #0DAB8B;   /* AI / modern accent */
  --teal-dark:   #098C72;
  --teal-light:  #D2F4EC;

  /* Neutral surface — NIST-like light background */
  --bg:          #FFFFFF;
  --bg2:         #F5F6F8;   /* section alt — matches NIST surface grey */
  --bg3:         #EEF0F3;
  --bg-dark:     var(--navy);
  --bg-dark2:    var(--navy2);

  /* Typography */
  --text:        #1B1B1B;
  --text-2:      #3D4551;
  --text-3:      #71767A;
  --text-inv:    #F0F4F8;   /* on dark backgrounds */
  --text-inv2:   #A8B8CC;

  /* Borders */
  --border:      rgba(0,0,0,0.08);
  --border2:     rgba(0,0,0,0.14);
  --border-inv:  rgba(255,255,255,0.08);
  --border-inv2: rgba(255,255,255,0.14);

  /* Semantic */
  --success:     #168A5A;
  --warning:     #B85C00;
  --danger:      #C0392B;
  --info:        var(--blue);

  /* Fonts */
  --font-head: 'Syne', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Radii */
  --r-sm:  4px;
  --r-md:  6px;
  --r-lg:  10px;
  --r-xl:  16px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent font inflation on iOS */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent blue flash on tap — iOS */
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

/* Minimum touch target — all interactive elements */
button, a, [role="button"] { touch-action: manipulation; }

/* Anchor scroll — account for fixed 60px nav + 12px breathing room */
:target         { scroll-margin-top: 80px; }
section[id]     { scroll-margin-top: 80px; }
.page-hero[id]  { scroll-margin-top: 0; }

/* Focus styles — keyboard navigation */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── GRID TEXTURE (dark sections only) ─────────────────────── */
.dark-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.dark-section { position: relative; }
.dark-section > * { position: relative; z-index: 1; }

/* ── NAVIGATION ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* iPhone notch / Dynamic Island safe area */
  padding: 0 max(20px, env(safe-area-inset-right, 20px));
  padding-left: max(20px, env(safe-area-inset-left, 20px));
  background: var(--navy);
  border-bottom: 2px solid var(--blue);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-inv);
}

.logo-mark {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

.logo-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-inv2);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active { color: #fff; background: rgba(0,94,162,0.5); }
.has-drop::after { content: ' ▾'; font-size: 9px; opacity: .6; }

.nav-actions { display: none; align-items: center; gap: 8px; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  border: 1.5px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

/* Primary — NIST blue */
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Outline on dark bg */
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--text-inv);
}
.btn-outline-light:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* Outline on light bg */
.btn-outline {
  background: transparent;
  border-color: var(--border2);
  color: var(--text-2);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Teal — AI accent */
.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 600;
}
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: var(--r-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ── HAMBURGER & MOBILE MENU ─────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  /* 44×44 touch target — Apple HIG minimum */
  min-width: 44px;
  min-height: 44px;
  padding: 11px;
  background: none;
  border: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  margin-right: -11px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-inv2);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: #fff; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: #fff; }

.mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 190;
  /* Safe area insets for iPhone home bar */
  padding: 28px
    max(24px, env(safe-area-inset-right, 24px))
    max(40px, env(safe-area-inset-bottom, 40px))
    max(24px, env(safe-area-inset-left, 24px));
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
  /* Prevent page scroll behind drawer on iOS */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border-inv);
}
.mobile-menu.open { transform: translateX(0); }

.mob-item {
  border-bottom: 1px solid var(--border-inv);
  padding: 14px 0;
}
.mob-item > a {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-inv);
  text-decoration: none;
  display: block;
  /* 44px min touch target */
  padding: 8px 0;
  transition: color .15s;
}
.mob-item > a:hover { color: var(--teal); }
.mob-sub {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
  border-left: 2px solid var(--blue);
}
.mob-sub a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-inv2);
  text-decoration: none;
  transition: color .15s;
}
.mob-sub a:hover { color: var(--teal); }
.mob-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mob-cta .btn { justify-content: center; padding: 13px; font-size: 14.5px; }

/* ── PAGE HERO (dark section) ────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 88px 20px 56px;
  border-bottom: 1px solid var(--border-inv);
  overflow: hidden;
}

.hero-rule {
  display: block;
  width: 40px; height: 3px;
  background: var(--teal);
  margin-bottom: 20px;
  border-radius: 2px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-inv2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  opacity: .7;
}
.breadcrumb a { color: var(--text-inv2); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}
.eyebrow-blue {
  background: rgba(0,94,162,0.25);
  color: #7EC8F5;
  border: 1px solid rgba(0,94,162,0.4);
}
.eyebrow-teal {
  background: rgba(13,171,139,0.18);
  color: #5DE8CE;
  border: 1px solid rgba(13,171,139,0.35);
}
.eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.pg-inner { max-width: 1200px; margin: 0 auto; width: 100%; }

h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 6.5vw, 56px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--text-inv);
  margin-bottom: 16px;
}
h1 .acc  { color: #7EC8F5; }   /* blue tint */
h1 .acc2 { color: #5DE8CE; }   /* teal tint */

.pg-sub {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--text-inv2);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-btns .btn { justify-content: center; }

/* Trust tags row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-inv2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-inv);
  padding: 4px 10px;
  border-radius: var(--r-sm);
}
.trust-tag::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── METRICS ROW ─────────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-inv);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.metric {
  background: rgba(255,255,255,0.04);
  padding: 18px 14px;
  text-align: center;
  border-right: 1px solid var(--border-inv);
}
.metric:last-child { border-right: none; }
.m-val {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: #fff;
}
.m-val-blue  { color: #7EC8F5; }
.m-val-teal  { color: #5DE8CE; }
.m-val-amber { color: #F5C842; }
.m-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-inv2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  opacity: .7;
}

/* ── INCLUDE CARD (hero sidebar) ─────────────────────────────── */
.include-card {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.include-card-top {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.ic-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.ic-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
}
.ic-body { padding: 10px 18px; }
.inc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.inc-item:last-child { border-bottom: none; }
.chk {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--teal-dark);
  flex-shrink: 0;
  margin-top: 1px;
}
.inc-text { color: var(--text); line-height: 1.4; font-weight: 500; }
.inc-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; font-weight: 400; }
.ic-cta {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.ic-cta .btn { width: 100%; justify-content: center; }
.ic-note { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 8px; }

/* pg-grid: hero two-column layout on desktop */
.pg-grid { display: block; }

/* ── SECTION UTILITIES ───────────────────────────────────────── */
.sec { padding: 52px 20px; }
.sec-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-dark { background: var(--navy); }
.max-w { max-width: 1200px; margin: 0 auto; }
.max-w-sm { max-width: 760px; margin: 0 auto; }

/* Section header */
.s-eye {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 500;
}
.s-eye-blue { color: var(--blue); }
.s-eye-teal { color: var(--teal-dark); }
.s-eye-inv  { color: var(--teal); }

h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 12px;
}
h2.inv { color: var(--text-inv); }

.s-sub {
  font-size: 14.5px;
  color: var(--text-2);
  font-weight: 400;
  line-height: 1.72;
  max-width: 540px;
  margin-bottom: 36px;
}
.s-sub.inv { color: var(--text-inv2); }

/* ── FEATURE GRID ────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.feat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color .15s, box-shadow .15s;
  border-left: 3px solid var(--blue);
}
.feat-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(0,94,162,0.08);
}
.feat-card.teal-accent { border-left-color: var(--teal); }
.feat-card.teal-accent:hover { border-color: var(--teal); box-shadow: 0 2px 12px rgba(13,171,139,0.1); }

.f-icon {
  width: 36px; height: 36px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
}
.f-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.f-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── PROCESS STEPS ───────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.proc-step {
  background: var(--bg);
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.proc-step:last-child { border-bottom: none; }
.proc-step::before {
  content: attr(data-n);
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--border2);
  letter-spacing: 0.05em;
}
.p-icon {
  font-size: 18px;
  margin-bottom: 10px;
  display: block;
}
.p-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.p-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

/* NIST-style numbered list for process */
.proc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* ── WHO GRID ────────────────────────────────────────────────── */
.who-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.who-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow .15s;
}
.who-card:hover { box-shadow: 0 2px 10px rgba(0,94,162,0.08); }
.w-icon {
  font-size: 16px;
  padding: 9px;
  background: var(--blue-light);
  border-radius: var(--r-md);
  flex-shrink: 0;
  line-height: 1;
}
.w-title { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.w-desc  { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

/* ── TABLE (threat table) ────────────────────────────────────── */
.data-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  font-weight: 500;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tr:hover td { background: var(--bg2); }

/* Severity badges — NIST-style */
.sev {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sev-critical { background: #FDECEA; color: var(--danger); border: 1px solid #F5C6C0; }
.sev-high     { background: #FEF3E2; color: var(--warning); border: 1px solid #F9D9A8; }
.sev-med      { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #A8CCE8; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  /* 44px min touch target */
  padding: 14px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color .15s;
}
.faq-q:hover { color: var(--blue); }
.faq-chev {
  font-size: 11px;
  color: var(--text-3);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-chev.open { transform: rotate(90deg); color: var(--blue); }
.faq-a {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.72;
  padding-bottom: 16px;
  display: none;
  border-left: 3px solid var(--blue);
  padding-left: 14px;
  margin-left: 2px;
}
.faq-a.open { display: block; }

/* ── INFO / HIGHLIGHT BOXES ──────────────────────────────────── */
.info-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 24px 22px;
}
.info-box.teal { border-left-color: var(--teal); }

.info-box-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.info-box-body {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.72;
}

/* ── PLATFORM CARDS ──────────────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.platform-card {
  background: var(--bg);
  padding: 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.platform-icon {
  font-size: 26px;
  flex-shrink: 0;
  padding: 10px;
  background: var(--bg2);
  border-radius: var(--r-md);
  line-height: 1;
}
.platform-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.platform-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── MODULE CARDS (training) ─────────────────────────────────── */
.module-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.module-card-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.module-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.module-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-inv);
  margin-top: 4px;
}
.module-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-inv);
  color: var(--text-inv2);
}
.module-body { padding: 18px 20px; }
.module-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-item {
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 1px solid rgba(0,94,162,0.2);
  font-weight: 400;
}

/* Tech stack tags */
.tech-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tech-tag {
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ── TRUST STRIP ─────────────────────────────────────────────── */
.trust-strip {
  background: var(--navy3);
  border-top: 1px solid var(--border-inv);
  border-bottom: 1px solid var(--border-inv);
  padding: 16px 20px;
  overflow: hidden;
}
.strip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-inv2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 12px;
  opacity: .7;
}
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--text-inv2);
  font-weight: 400;
}

/* ── SERVICE GRID (homepage) ─────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 14px rgba(0,94,162,0.1);
}
.service-card.feat {
  border-top: 3px solid var(--blue);
}
.service-card.feat-teal { border-top-color: var(--teal); }

.s-icon {
  width: 36px; height: 36px;
  background: var(--blue-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
}
.service-card.feat-teal .s-icon { background: var(--teal-light); }

.s-name {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.s-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.s-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.s-tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-3);
}
.s-arrow {
  position: absolute;
  top: 22px; right: 20px;
  font-size: 13px;
  color: var(--text-3);
  opacity: 0;
  transition: opacity .15s;
}
.service-card:hover .s-arrow { opacity: 1; color: var(--blue); }

/* ── WHY STATS ───────────────────────────────────────────────── */
.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 36px;
}
.why-stat {
  background: var(--bg2);
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-stat:nth-child(2n) { border-right: none; }
.why-stat:nth-child(3), .why-stat:nth-child(4) { border-bottom: none; }
.ws-val {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--blue);
}
.ws-val.teal { color: var(--teal-dark); }
.ws-label { font-size: 12px; color: var(--text-2); line-height: 1.45; }

.why-point {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.why-point:last-child { border-bottom: none; }
.wp-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  padding-top: 2px;
  min-width: 22px;
  font-weight: 500;
}
.wp-title { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.wp-body  { font-size: 13px; color: var(--text-2); line-height: 1.62; }

/* ── CTA BANNER ──────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
.cta-top-rule {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), transparent);
}
.cta-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 500;
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-inv);
}
.cta-sub {
  font-size: 13.5px;
  color: var(--text-inv2);
  line-height: 1.68;
  margin-bottom: 22px;
}
.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-btns .btn { justify-content: center; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border-inv);
  padding: 40px 20px max(28px, env(safe-area-inset-bottom, 28px));
}
.ft-inner { max-width: 1200px; margin: 0 auto; }
.ft-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-inv);
  margin-bottom: 8px;
}
.ft-tag { font-size: 13px; color: var(--text-inv2); line-height: 1.6; margin-bottom: 28px; opacity: .7; }
.ft-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.ft-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-inv2);
  margin-bottom: 12px;
  opacity: .6;
  font-weight: 500;
}
.ft-col a {
  display: block;
  font-size: 13px;
  color: var(--text-inv2);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .15s;
  opacity: .8;
}
.ft-col a:hover { color: var(--teal); opacity: 1; }
.ft-divider {
  border: none;
  border-top: 1px solid var(--border-inv);
  margin-bottom: 18px;
}
.ft-bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ft-copy { font-size: 11.5px; color: var(--text-inv2); opacity: .5; }
.ft-swiss {
  font-size: 11.5px;
  color: var(--text-inv2);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: .5;
}

/* ── DIFFERENTIATOR BOX (webdev) ─────────────────────────────── */
.diff-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  border-left: 4px solid var(--blue);
}
.diff-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.diff-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.diff-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.diff-bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}
.diff-text { color: var(--text-2); line-height: 1.6; }

/* ── RESIDENCY BOX (cloud) ───────────────────────────────────── */
.residency-box {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 28px 22px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.residency-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue), transparent);
}
.residency-flag { font-size: 36px; flex-shrink: 0; line-height: 1; }
.residency-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-inv);
  margin-bottom: 8px;
}
.residency-body { font-size: 13.5px; color: var(--text-inv2); line-height: 1.72; }

/* ── HERO STAT CARD (homepage) ───────────────────────────────── */
.threat-card {
  background: var(--navy2);
  border: 1px solid var(--border-inv);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 32px;
}
.card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-inv);
  background: var(--navy);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-inv2);
  margin-left: auto;
  opacity: .6;
}
.threat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-inv);
  font-size: 12.5px;
}
.threat-row:last-of-type { border-bottom: none; }
.t-icon {
  width: 30px; height: 30px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.t-info { flex: 1; min-width: 0; }
.t-name { font-weight: 500; color: var(--text-inv); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-loc  { font-size: 10.5px; color: var(--text-inv2); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .7; }
.t-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.s-blocked { background: rgba(13,171,139,0.15); color: #5DE8CE; border: 1px solid rgba(13,171,139,0.25); }
.s-alert   { background: rgba(192,57,43,0.15);  color: #FF7B70; border: 1px solid rgba(192,57,43,0.25); }
.s-monitor { background: rgba(0,94,162,0.2);    color: #7EC8F5; border: 1px solid rgba(0,94,162,0.3); }

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-inv);
}
.c-stat {
  padding: 12px 10px;
  text-align: center;
  border-right: 1px solid var(--border-inv);
}
.c-stat:last-child { border-right: none; }
.stat-v { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.stat-l { font-size: 11px; font-family: var(--font-mono); color: var(--text-inv2); text-transform: uppercase; letter-spacing: 0.05em; opacity: .7; }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu  { animation: fadeUp .55s ease both; }
.d1  { animation-delay: .1s; }
.d2  { animation-delay: .2s; }
.d3  { animation-delay: .3s; }
.d4  { animation-delay: .4s; }

/* ── DIVIDER ─────────────────────────────────────────────────── */
hr.divider { border: none; border-top: 1px solid var(--border); }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: #CBD2D9; border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ── TABLET 600px+ ─────────────────────────────────────────── */
@media (min-width: 600px) {
  nav    { padding: 0 32px; }
  .page-hero { padding: 100px 32px 60px; }
  .sec   { padding: 64px 32px; }
  footer { padding: 48px 32px max(32px, env(safe-area-inset-bottom, 32px)); }
  .trust-strip { padding: 16px 32px; }

  .hero-btns { flex-direction: row; }
  .hero-btns .btn { justify-content: flex-start; }

  .feat-grid     { grid-template-columns: 1fr 1fr; }
  .process       { grid-template-columns: 1fr 1fr; }
  .process .proc-step { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .who-grid      { grid-template-columns: 1fr 1fr; }
  .service-grid  { grid-template-columns: 1fr 1fr; }
  /* platform-grid stays 1-col until iPad portrait handles it */
  .cert-grid     { grid-template-columns: repeat(3, 1fr); }
  .diff-grid     { grid-template-columns: 1fr 1fr; }
  .ft-cols       { grid-template-columns: repeat(3, 1fr); }

  .cta-btns { flex-direction: row; }
  .cta-btns .btn { justify-content: flex-start; }
  .cta-banner { padding: 36px 40px; }
}

/* ── iPAD PORTRAIT 768px+ ───────────────────────────────────── */
@media (min-width: 768px) {
  /* Hero two-column kicks in — iPad portrait has enough room */
  .pg-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
  }
  .include-card { margin-top: 0; }

  /* Platform cards 3-col comfortable on iPad portrait */
  .platform-grid { grid-template-columns: repeat(3, 1fr); }

  /* Service grid 3-col from iPad portrait */
  .service-grid { grid-template-columns: repeat(3, 1fr); }

  /* Process 3-col on iPad portrait — readable, not cramped */
  .process { grid-template-columns: repeat(3, 1fr); }

  /* Why section side-by-side */
  .why-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .why-stats { margin-bottom: 0; }

  /* CTA horizontal on tablet */
  .cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .cta-sub  { margin-bottom: 0; }
  .cta-btns { flex-shrink: 0; }
}

/* ── DESKTOP 900px+ ─────────────────────────────────────────── */
@media (min-width: 900px) {
  nav { height: 68px; padding: 0 48px; }
  .hamburger   { display: none; }
  .nav-links   { display: flex; }
  .nav-actions { display: flex; }

  .page-hero { padding: 130px 48px 80px; }
  .pg-grid {
    grid-template-columns: 1fr 340px;
    gap: 56px;
  }

  h1 { font-size: clamp(36px, 4.5vw, 56px); }
  .pg-sub { font-size: 16px; }
  .hero-btns { flex-direction: row; }

  .sec   { padding: 80px 48px; }
  footer { padding: 52px 48px max(36px, env(safe-area-inset-bottom, 36px)); }
  .trust-strip { padding: 18px 48px; }

  .feat-grid  { grid-template-columns: repeat(3, 1fr); }
  /* process stays 3-col on iPad landscape — 4-col only on wider screens */
  .process    { grid-template-columns: repeat(3, 1fr); }
  .who-grid   { grid-template-columns: 1fr 1fr; }

  /* cert-grid max 3-col until 1100px where 6-col makes sense */
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .strip-label { margin-bottom: 0; margin-right: 28px; float: left; line-height: 2; }

  .ft-cols   { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .ft-bottom { flex-direction: row; justify-content: space-between; align-items: center; }

  .cta-banner { padding: 44px 52px; }
  .residency-box { padding: 36px 40px; }
}

/* ── WIDE DESKTOP 1100px+ ───────────────────────────────────── */
@media (min-width: 1100px) {
  /* Only at true wide desktop does 4-col process make sense */
  .process { grid-template-columns: repeat(4, 1fr); }
  /* 6-col cert strip on wide desktop */
  .cert-grid { grid-template-columns: repeat(6, 1fr); }
  .strip-label { margin-bottom: 0; margin-right: 28px; float: left; line-height: 2; }
}

/* ── WIDE 1200px+ ─────────────────────────────────────────── */
@media (min-width: 1200px) {
  nav, .page-hero, .sec, footer, .trust-strip {
    padding-left: 60px !important;
    padding-right: 60px !important;
  }
}
