/* ==========================================================================
   CyGuardPro — Design System
   Product of Nouveau Sentinel
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --navy-950: #060f18;
  --navy-900: #0b1c2c;
  --navy-800: #122a3f;
  --navy-700: #1a3a55;
  --teal-700: #0a5f68;
  --teal-600: #0c7f8c;
  --teal-500: #0e9aa8;
  --teal-400: #2bc4d1;
  --teal-100: #e2f7f9;

  /* Pillar accents */
  --gov-purple: #4a3aa0;
  --risk-orange: #a8481f;
  --audit-green: #0a6b4d;
  --auto-gold: #9c7209;
  --admin-slate: #46535f;

  /* Status */
  --success: #1c9a6c;
  --warning: #d68a1f;
  --critical: #e5484d;
  --info: #2b7fd6;

  /* Neutrals */
  --bg: #f4f7f9;
  --bg-alt: #eef2f5;
  --surface: #ffffff;
  --border: #e2e8ee;
  --border-strong: #cbd5e0;
  --text: #000000;
  --text-muted: #000000;
  --text-faint: #000000;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 45, 0.06), 0 1px 1px rgba(10,30,45,.04);
  --shadow: 0 6px 20px rgba(10, 30, 45, 0.08), 0 2px 6px rgba(10,30,45,.05);
  --shadow-lg: 0 20px 50px rgba(6, 20, 32, 0.16), 0 6px 16px rgba(6,20,32,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg) url('/Pics/bg-plexus.jpg') center top / cover no-repeat fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
@media (max-width: 760px) {
  body { background-attachment: scroll; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  min-width: 0;
}

/* Grid/flex children default to min-width:auto, which lets unbreakable
   content (buttons, stat rows) force the track wider than the viewport.
   Force them shrinkable so wrapping/wrapping-based responsiveness works. */
.hero-row > *, .split > *, .grid > *, .footer-grid > *,
.hero-cta, .hero-stats, .hero-stats > *,
.nav-row > *, .nav-actions, .problem-shell > *, .problem-cards > * {
  min-width: 0;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-100);
  border: 1px solid rgba(14,154,168,.25);
  padding: 6px 14px;
  border-radius: 999px;
  max-width: 100%;
  white-space: normal;
}
.eyebrow.on-dark {
  color: var(--teal-400);
  background: rgba(43, 196, 209, 0.12);
  border-color: rgba(43,196,209,.3);
}
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 16px; }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 18px; }
.on-navy { background: var(--navy-900); color: #fff; }
.on-navy .text-muted { color: rgba(255,255,255,.68); }
.on-alt { background: rgba(238,242,245,.25); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal-500); color: #fff; box-shadow: 0 8px 20px rgba(14,154,168,.28); }
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-ghost.active { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill-green { background: rgba(10,107,77,.12); color: var(--audit-green); border-color: rgba(10,107,77,.25); }
.text-muted { color: var(--text-muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--navy-950);
  color: rgba(255,255,255,.62);
  font-size: 13.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar span { white-space: nowrap; }
.topbar strong { color: #fff; font-weight: 600; }

header.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11,28,44,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; flex-shrink: 0; }
.brand .logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.brand-text span { font-size: 11.5px; color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.main-nav a {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a.active { color: #fff; background: rgba(43,196,209,.14); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; color: #fff; padding: 6px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-950); color: rgba(255,255,255,.65); padding: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: 15px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: 15px; margin-top: 14px; color: rgba(255,255,255,.55); max-width: 320px; }
.footer-bottom {
  padding: 18px 0;
  display: flex; justify-content: center; align-items: center;
  font-size: 13.5px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 10px;
}
.footer-bottom .legal-tag { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(43,196,209,.20), transparent 60%),
    radial-gradient(700px 400px at 5% 0%, rgba(74,58,160,.18), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: #fff;
  padding: 86px 0 0;
  overflow: hidden;
  position: relative;
}
.hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-bottom: 70px; min-width: 0; }
.hero-row > * { min-width: 0; max-width: 100%; }
.hero h1 { font-size: clamp(24px, 3.8vw, 46px); line-height: 1.1; margin-top: 20px; max-width: 100%; overflow-wrap: break-word; }
.hero h1 .accent { color: var(--teal-400); }
.hero-tag { font-size: 20px; color: rgba(255,255,255,.78); margin-top: 20px; font-style: italic; max-width: 520px; overflow-wrap: break-word; }
.hero-desc { margin-top: 18px; font-size: 17.5px; color: rgba(255,255,255,.68); max-width: 540px; overflow-wrap: break-word; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; max-width: 100%; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 34px; margin-top: 46px; }
.hero-stats div b { display: block; font-size: 24px; color: #fff; }
.hero-stats div span { font-size: 13.5px; color: rgba(255,255,255,.55); }

.hero-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.hero-shot img { width: 100%; }
.hero-shot-label {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(6,15,24,.75);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---------- Marquee strip ---------- */
.strip { background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.strip .container { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; flex-wrap: wrap; gap: 18px; }
.strip .item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 14.5px; font-weight: 500; }
.strip .item svg { width: 18px; height: 18px; color: var(--teal-400); flex-shrink: 0; }

/* ---------- Problem cards ---------- */
.problem-shell {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 8px;
  overflow: hidden;
}
.problem-visual {
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--teal-600), var(--navy-800));
  padding: 32px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.problem-visual .tag-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.problem-visual .tag-row span { background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; text-align: center; }
.problem-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.problem-card { background: var(--navy-800); border-radius: var(--radius); padding: 22px; color: #fff; }
.problem-card .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(168,72,31,.22); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.problem-card .ic svg { width: 20px; height: 20px; color: var(--risk-orange); }
.problem-card h4 { font-size: 15.5px; }
.problem-card p { font-size: 14.5px; color: rgba(255,255,255,.62); margin-top: 8px; }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pillar-card {
  background: var(--surface); border: 1.5px solid #888; border-radius: var(--radius);
  padding: 0; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-visual {
  height: 104px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.pillar-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.5px);
  background-size: 13px 13px;
}
.pillar-visual svg { width: 58px; height: 58px; position: relative; z-index: 1; }
.pillar-body { padding: 20px 22px 26px; }
.pillar-card h3 { font-size: 17px; }
.pillar-card .count { font-size: 13.5px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.pillar-card ul { margin-top: 14px; }
.pillar-card li { font-size: 14.5px; color: var(--text-muted); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.pillar-card li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.pillar-card a.pillar-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--teal-600); }

.bg-gov { background: linear-gradient(135deg, var(--gov-purple), #372b7a); box-shadow: 0 8px 18px -6px rgba(74,58,160,.5); }
.bg-risk { background: linear-gradient(135deg, var(--risk-orange), #7d3212); box-shadow: 0 8px 18px -6px rgba(168,72,31,.5); }
.bg-audit { background: linear-gradient(135deg, var(--audit-green), #063d2c); box-shadow: 0 8px 18px -6px rgba(10,107,77,.5); }
.bg-auto { background: linear-gradient(135deg, var(--auto-gold), #7a5800); box-shadow: 0 8px 18px -6px rgba(156,114,9,.5); }
.bg-admin { background: linear-gradient(135deg, var(--admin-slate), #262d35); box-shadow: 0 8px 18px -6px rgba(70,83,95,.5); }

/* ---------- Feature cards (generic) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card { background: var(--surface); border: 1.5px solid #888; border-radius: var(--radius); padding: 26px; }
.governance-cards, .audit-compliance-cards, .admin-cards { grid-template-columns: repeat(2, 1fr); }
.governance-cards .feat-card { border: 1.5px solid #888; }
#risk .feat-card { border: 1.5px solid #888; }

/* The two dashboard screenshots above "Library -> Register -> Assessment ->
   Treatment" have slightly different native aspect ratios. Give both cards
   a shared box (so they read as the same size) but use object-fit: contain
   with a white fill -- matching the screenshots' own white canvas -- so the
   full image is always visible instead of being cropped. */
.risk-dashboard-pair .shot-frame img { width: 100%; aspect-ratio: 1.46 / 1; object-fit: contain; background: var(--surface); }

/* Risk-page rust accents, reusing the existing risk-orange palette. */
#risk .flow-step .dot { border-color: var(--risk-orange); color: var(--risk-orange); }
.note.rust { border-color: var(--risk-orange); background: rgba(168,72,31,.2); }
.note.rust b { color: var(--risk-orange); }
.eyebrow-rust { color: var(--risk-orange); background: rgba(168,72,31,.12); border-color: rgba(168,72,31,.25); }
#risk .tab-bar { background: #7d3212; border-radius: var(--radius) var(--radius) 0 0; border-bottom: none; padding: 6px; gap: 6px; margin-bottom: 0; }
#risk .tab-btn { color: rgba(255,255,255,.8); border-radius: 8px; border: none; flex: 1; text-align: center; }
#risk .tab-btn.active { background: var(--risk-orange); color: #fff; border-color: transparent; }
#risk .tab-panel { padding: 32px; }
.risk-tabs-card .tab-panel h3, .risk-tabs-card .tab-panel p { text-shadow: 0 0 10px rgba(255,255,255,.9); }
#risk .tab-panel p.text-muted { color: var(--text); font-size: 16px; line-height: 1.6; }

/* Automation & AI tabs: identical tab/header styling to the Risk-page table. */
#automation .tab-bar { background: #7d3212; border-radius: var(--radius) var(--radius) 0 0; border-bottom: none; padding: 6px; gap: 6px; margin-bottom: 0; }
#automation .tab-btn { color: rgba(255,255,255,.8); border-radius: 8px; border: none; flex: 1; text-align: center; }
#automation .tab-btn.active { background: var(--risk-orange); color: #fff; border-color: transparent; }
#automation .tab-panel { padding: 32px; }
.automation-combo-card .tab-panel h3, .automation-combo-card .tab-panel p { text-shadow: 0 0 10px rgba(255,255,255,.9); }
#automation .text-muted { color: var(--text); }

/* Audit & Compliance page green accents, reusing the existing audit-green palette. */
#audit .feat-card { border: 1.5px solid #888; }
.audit-dashboard-pair .shot-frame img { width: 100%; aspect-ratio: 2.74 / 1; object-fit: contain; background: var(--surface); }
#audit .flow-step .dot { border-color: var(--audit-green); color: var(--audit-green); }
.eyebrow-green { color: var(--audit-green); background: rgba(10,107,77,.12); border-color: rgba(10,107,77,.25); }
.note.green { border-color: var(--audit-green); background: rgba(10,107,77,.22); }
.note.green b { color: var(--audit-green); }
#audit .data-table th {
  background-color: #032820;
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.16) 0%, transparent 40%),
    linear-gradient(135deg, #0f8a63, #032820),
    radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.5px);
  background-size: cover, cover, 12px 12px;
  color: #fff;
}
#audit .data-table td:first-child { background: #eafaf3; }
#audit .data-table th, #audit .data-table td { border: 1px solid var(--border-strong); }
.audit-fieldwork-cards .feat-card-dark {
  background-color: #032820;
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.14) 0%, transparent 45%),
    linear-gradient(135deg, #0f8a63, #032820),
    radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.5px);
  background-size: cover, cover, 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), var(--shadow-sm);
}

/* More prominent grid lines on the Audit page's two tables. */
#audit .data-table { border: 1px solid var(--border-strong); }

/* A standalone shot-frame image narrower than its container renders
   left-aligned by default; center it explicitly. */
.centered-shot img { margin: 0 auto; }

/* Platform Admin page: dark, polished slate/gray accents. */
#admin .feat-card { border: 1.5px solid #888; }
.admin-cards .feat-card {
  border: 2px solid rgba(255,255,255,.16);
  background-color: #1c232a;
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.14) 0%, transparent 45%),
    linear-gradient(135deg, #5b6b7c, #1c232a),
    radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.5px);
  background-size: cover, cover, 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), var(--shadow-sm);
}
.admin-cards .feat-card h3, .admin-cards .feat-card p { color: #fff; }
.admin-cards .feat-card p { color: rgba(255,255,255,.78); }
.eyebrow-gray { color: var(--admin-slate); background: rgba(70,83,95,.14); border-color: rgba(70,83,95,.28); }
.admin-dashboard-pair .shot-frame img { width: 100%; aspect-ratio: 2.07 / 1; object-fit: contain; background: var(--surface); }

/* Task & Workflow Management + Analytics & Reports combined into one card,
   reusing the Risk-page tabs card's background image and fade treatment. */
.org-combo-card.automation-combo-card {
  background-image: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)), url('/Pics/WhatsApp%20Image%202026-08-30%20at%206.01.55%20AM.jpeg');
  background-size: cover; background-position: center;
}
.feat-card .ic { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-card .ic svg { width: 25px; height: 25px; color: #fff; }
.feat-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feat-card p { font-size: 15px; color: var(--text-muted); }
.feat-card .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

/* Capability grid: image + heading by default. On hover, a small rounded
   color panel anchored at the bottom-right corner expands (via clip-path)
   to flow across the whole card, revealing the description as it grows. */
.feat-flip { position: relative; padding: 0; overflow: hidden; }
.feat-flip-media { height: 150px; overflow: hidden; }
.feat-flip-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-flip > h3 { padding: 18px 22px 22px; margin: 0; font-size: 16.5px; }
.feat-flip-overlay {
  position: absolute; inset: 0; z-index: 2;
  background-color: var(--flip-color, var(--teal-500));
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.22) 0%, transparent 45%),
    radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.5px);
  background-size: cover, 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  color: #fff; padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: center;
  clip-path: circle(22px at calc(100% - 22px) calc(100% - 22px));
  transition: clip-path .65s cubic-bezier(.65,0,.35,1);
}
.feat-flip-overlay h4 { color: #fff; font-size: 16.5px; margin: 0 0 10px; }
.feat-flip-overlay p { color: rgba(255,255,255,.92); font-size: 14.5px; line-height: 1.55; margin: 0; }
.feat-flip:hover .feat-flip-overlay { clip-path: circle(145% at calc(100% - 22px) calc(100% - 22px)); }
@media (prefers-reduced-motion: reduce) {
  .feat-flip-overlay { transition: none; }
}

/* ---------- Expandable image cards ----------
   A row of panels where one card is expanded at a time. Each card splits
   internally into a media half (photo) and a panel half (light gradient,
   full text) once active; collapsed cards show only a narrow image strip
   with a rotated number + label. Mobile-first: cards stack and expand by
   height (media on top, panel below); from 761px up the row goes
   horizontal and cards expand by width, media left / panel right. */
.expand-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: expand-card;
}
.expand-card {
  counter-increment: expand-card;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid #444;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  height: 104px;
  transition: height .62s cubic-bezier(.22,1,.36,1);
  outline: none;
}
.expand-card.active { height: 360px; }
.expand-card-media {
  position: relative;
  overflow: hidden;
  flex: 1 1 100%;
  min-width: 0;
  min-height: 0;
  transition: flex-basis .6s cubic-bezier(.22,1,.36,1);
}
.expand-card.active .expand-card-media { flex: 1 1 50%; }
.expand-card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  filter: saturate(.92) brightness(.97);
  transition: transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease;
}
.expand-card:hover .expand-card-media img,
.expand-card.active .expand-card-media img,
.expand-card:focus-visible .expand-card-media img {
  transform: scale(1);
}
.expand-card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,15,24,.85) 0%, rgba(6,15,24,.4) 45%, rgba(6,15,24,.15) 100%);
  transition: opacity .5s ease;
}
.expand-card.active .expand-card-media::after { opacity: .55; }
.expand-card-label {
  position: absolute; inset: 0; z-index: 2; padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .03em;
  text-transform: uppercase; text-align: center; margin: 0;
  transition: opacity .3s ease;
}
.expand-card-label .expand-card-num {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7);
}
.expand-card.active .expand-card-label { opacity: 0; }
.expand-card-panel {
  flex: 0 0 0%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-100), #ffffff);
  opacity: 0;
  padding: 0;
  transition: flex-basis .6s cubic-bezier(.22,1,.36,1), opacity .35s ease .1s, padding .6s cubic-bezier(.22,1,.36,1);
}
.expand-card.active .expand-card-panel { flex: 1 1 50%; opacity: 1; padding: 22px; }
.expand-card-eyebrow {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--teal-600); margin-bottom: 8px; white-space: nowrap;
}
.expand-card-panel h4 { color: var(--text); font-size: 19px; margin: 0 0 10px; text-transform: none; }
.expand-card-panel p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.expand-card-num::before { content: counter(expand-card, decimal-leading-zero); }

@media (min-width: 761px) {
  .expand-row { flex-direction: row; height: 460px; gap: 14px; }
  .expand-card {
    flex-direction: row;
    height: 100%; flex: 1 1 0%; min-width: 0;
    transition: flex-grow .62s cubic-bezier(.22,1,.36,1);
  }
  .expand-card.active { flex-grow: 4; height: 100%; }
  .expand-card-media { flex: 1 1 100%; height: 100%; }
  .expand-card.active .expand-card-media { flex: 1 1 50%; }
  .expand-card-label {
    writing-mode: vertical-rl; transform: rotate(180deg);
    flex-direction: row-reverse;
    white-space: nowrap; overflow: hidden;
  }
  .expand-card-panel { flex: 0 0 0%; height: 100%; padding: 0; }
  .expand-card.active .expand-card-panel { flex: 1 1 50%; padding: 36px; }
  .expand-card-panel h4 { font-size: 22px; }
  .expand-card-panel p { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .expand-card, .expand-card-media, .expand-card-media img, .expand-card-label, .expand-card-panel { transition: none; }
}

/* ---------- Split (image + text) sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img, .shot-frame img {
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.shot-frame { position: relative; }
.shot-frame figcaption {
  margin-top: 12px; font-size: 14px; color: var(--text-muted); text-align: center; font-weight: 500;
}

/* ---------- Screenshot lightbox ---------- */
img.zoomable { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6, 15, 24, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  cursor: zoom-out;
}
.lightbox-close {
  position: fixed; top: 22px; right: 28px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.split-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-muted); }
.split-list .num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ---------- Personas ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.persona-card { background: var(--surface); border: 1.5px solid #888; border-radius: var(--radius); padding: 26px; text-align: center; }
.persona-card .avatar { width: 56px; height: 56px; background: none; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.persona-card .avatar svg { width: 26px; height: 26px; color: var(--teal-600); }
.persona-card h4 { font-size: 15.5px; }
.persona-card p { font-size: 14.5px; color: var(--text-muted); margin-top: 8px; }
/* A different pastel tint per persona card, still on the same neutral border/shadow system. */
.persona-grid .persona-card:nth-child(1) { background: #dde3fb; }
.persona-grid .persona-card:nth-child(2) { background: #d3f2e3; }
.persona-grid .persona-card:nth-child(3) { background: #ffe4cf; }
.persona-grid .persona-card:nth-child(4) { background: #d3ecff; }

/* ---------- Compare / positioning ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.compare-card { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 26px; transition: background-color .3s ease; }
.compare-card:hover { background-color: var(--navy-800); }
.compare-card .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(43,196,209,.16); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.compare-card .ic svg { width: 21px; height: 21px; color: var(--teal-400); }
.compare-card h4 { font-size: 15.5px; }
.compare-card p { font-size: 14.5px; color: rgba(255,255,255,.6); margin-top: 8px; }

/* ---------- Market focus ---------- */
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.market-item {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid #888;
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: 18px; font-weight: 700;
  background-size: cover; background-position: center;
}
.market-item .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.market-item .ic svg { width: 17px; height: 17px; color: var(--teal-600); }

/* ---------- Stat band ---------- */
.stat-band { background: var(--navy-950); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 40px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); transition: background-color .3s ease; }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background-color: rgba(255,255,255,.05); }
.stat-item b { font-size: 34px; display: block; color: var(--teal-400); }
.stat-item span { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 6px; display: block; }

/* ---------- Universal card hover: lift + soft shadow only, no color change ---------- */
.feat-card, .persona-card, .compare-card, .problem-card, .market-item {
  transition: transform .25s ease, box-shadow .25s ease, background-color .3s ease;
}
.feat-card:hover, .persona-card:hover, .compare-card:hover, .problem-card:hover, .market-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Dark variant for the "From adoption to verified control" cards */
.feat-card-dark { background: var(--navy-900); border-color: transparent; }
.feat-card-dark h3 { color: #fff; }
.feat-card-dark p { color: rgba(255,255,255,.72); }

/* Framework list: columns fit as many cards per row as space allows, so
   long framework names stay on one line instead of wrapping and inflating
   just that card's height. */
.framework-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: stretch; }
.framework-grid .market-item { font-size: 15px; font-weight: 600; border-width: 1.5px; padding: 14px 16px; line-height: 1.35; }

/* Organization hierarchy: image + text presented as one unified card */
.org-combo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px; }
.org-combo-card .shot-frame img { border: none; box-shadow: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--teal-600) 130%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 8px; font-size: 16.5px; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th { text-align: left; background: var(--bg-alt); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding: 12px 16px; }
.data-table td { padding: 13px 16px; border-top: 1px solid var(--border); font-size: 15px; }
.data-table tr:hover td { background: var(--bg-alt); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.badge-purple { background: rgba(74,58,160,.12); color: var(--gov-purple); }
.badge-orange { background: rgba(168,72,31,.12); color: var(--risk-orange); }
.badge-green { background: rgba(10,107,77,.12); color: var(--audit-green); }
.badge-gold { background: rgba(156,114,9,.12); color: var(--auto-gold); }
.badge-slate { background: rgba(70,83,95,.12); color: var(--admin-slate); }
.badge-info { background: rgba(43,127,214,.1); color: var(--info); }

/* ---------- Tabs ---------- */
.tab-bar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.tab-btn { padding: 12px 18px; font-size: 15.5px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.tab-btn.active { color: var(--teal-600); border-color: var(--teal-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }

/* ---------- Timeline (lifecycle) ---------- */
.flow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; position: relative; }
.flow::before { content: ''; position: absolute; top: 21px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.flow-step { flex: 1; min-width: 110px; text-align: center; position: relative; z-index: 1; }
.flow-step .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 2px solid var(--teal-500); color: var(--teal-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: 700; font-size: 15px; }
.flow-step span { font-size: 13.5px; font-weight: 600; color: var(--text-muted); display: block; }

/* ---------- Resource cards ---------- */
.resource-card { background: var(--surface); border: 1.5px solid #888; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; height: 100%; }
.resource-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.resource-card .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--teal-100); display: flex; align-items: center; justify-content: center; }
.resource-card .ic svg { width: 22px; height: 22px; color: var(--teal-600); }
.resource-card h3 { font-size: 16px; margin-top: 16px; }
.resource-card p { font-size: 14.5px; color: var(--text-muted); margin-top: 8px; flex-grow: 1; }
.resource-card .row-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- Org hierarchy visual ---------- */
.org-tree { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0; }
.org-node { background: var(--navy-900); color: #fff; padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 15.5px; box-shadow: var(--shadow-sm); }
.org-node.root { background: var(--gov-purple); }
.org-children { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.org-branch { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.org-branch::before { content: ''; width: 1px; height: 18px; background: var(--border-strong); }
.org-node.leaf { background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; }

/* ---------- AI widget ---------- */
.ai-fab {
  position: fixed; top: 50%; right: 26px; z-index: 500;
  transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--gov-purple));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(14,154,168,.4);
  border: none; color: #fff;
  transition: transform .2s ease;
}
.ai-fab:hover { transform: translateY(-50%) scale(1.06); }
.ai-fab svg { width: 26px; height: 26px; }
.ai-panel {
  position: fixed; bottom: calc(50vh + 42px); right: 26px; z-index: 500;
  width: 420px; max-width: calc(100vw - 40px);
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: none; flex-direction: column; overflow: hidden;
}
.ai-panel.open { display: flex; animation: fadein .2s ease; }
.ai-panel-head { background: var(--navy-950); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 10px; }
.ai-panel-head .dot-status { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.ai-panel-head strong { font-size: 15px; display: block; }
.ai-panel-head span { font-size: 12.5px; color: rgba(255,255,255,.55); }
.ai-panel-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.65); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.ai-panel-close:hover { color: #fff; }
.ai-panel-body { padding: 18px 20px; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); overflow-y: auto; max-height: 480px; display: flex; flex-direction: column; gap: 14px; }
.ai-panel-body .badge { margin-bottom: 12px; }
.ai-msg p { margin: 0 0 10px; }
.ai-msg p:last-child { margin-bottom: 0; }
.ai-msg-bot { background: var(--bg-alt); border-radius: 10px; padding: 14px 16px; color: var(--text); align-self: flex-start; max-width: 96%; }
.ai-msg-user { background: var(--teal-500); color: #fff; border-radius: 10px; padding: 10px 14px; align-self: flex-end; max-width: 88%; font-size: 15.5px; }
.ai-msg-error { background: rgba(200,40,40,.1); color: #c62828; border-radius: 10px; padding: 10px 14px; align-self: flex-start; max-width: 92%; }
.ai-msg-bot h4 { margin: 14px 0 8px; color: var(--text); font-weight: 700; line-height: 1.3; font-size: 16px; }
.ai-msg-bot h4:first-child { margin-top: 0; }
.ai-msg-bot ul, .ai-msg-bot ol { margin: 0 0 10px; padding-left: 22px; }
.ai-msg-bot li { margin-bottom: 6px; }
.ai-msg-bot li:last-child { margin-bottom: 0; }
.ai-msg-bot li.ai-li-1 { margin-left: 18px; list-style-type: circle; }
.ai-msg-bot hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.ai-msg-bot strong { font-weight: 700; color: var(--text); }
.ai-msg-bot code { background: rgba(0,0,0,.06); border-radius: 4px; padding: 1px 5px; font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ai-msg-sources { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-faint); }
.ai-msg-sources div { margin-top: 2px; }
.ai-msg-loading { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; }
.ai-msg-loading span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); opacity: .4; animation: ai-blink 1.2s infinite ease-in-out; }
.ai-msg-loading span:nth-child(2) { animation-delay: .2s; }
.ai-msg-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-panel-input { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.ai-panel-input input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14.5px; background: var(--bg-alt); color: var(--text); }
.ai-panel-input input:disabled { opacity: .6; }
.ai-panel-input button { background: var(--teal-500); color: #fff; border: none; border-radius: 8px; padding: 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.ai-panel-input button:disabled { opacity: .6; cursor: default; }
.ai-fab-close { display: none; }

@media (max-width: 520px) {
  .ai-panel { bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; max-height: 82vh; }
  .ai-panel-body { max-height: none; flex: 1; }
  .ai-fab { top: auto; bottom: 18px; right: 18px; transform: none; }
  .ai-fab:hover { transform: scale(1.06); }
}

/* ---------- Breadcrumb / page hero (sub pages) ---------- */
.page-hero { background: var(--navy-950); color: #fff; padding: 64px 0 60px; position: relative; overflow: hidden;
  background: radial-gradient(900px 400px at 85% -20%, rgba(43,196,209,.18), transparent 60%), var(--navy-950);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 16px; }
.page-hero p { margin-top: 16px; color: rgba(255,255,255,.68); max-width: none; font-size: 17.5px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255,255,255,.5); }
.crumbs a:hover { color: #fff; }

/* ---------- Callout / note boxes ---------- */
.note {
  border-left: 3px solid var(--teal-500);
  background: var(--teal-100);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text);
}
.note b { color: var(--teal-600); }
.note.amber { border-color: var(--warning); background: #fdf3e3; }
.note.amber b { color: var(--warning); }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .nav-actions .btn-outline { display: none; }
}
@media (max-width: 1080px) {
  .grid-4, .compare-grid, .market-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid, .feat-grid, .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .split, .hero-row { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
@media (max-width: 760px) {
  .main-nav, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-primary { display: none; }
  .brand-text span { display: none; }
  .topbar .container { font-size: 12px; }
  .pillar-grid, .feat-grid, .persona-grid, .grid-3, .grid-4, .compare-grid, .market-grid, .stat-grid, .grid-2 { grid-template-columns: 1fr; }
  .problem-shell { grid-template-columns: 1fr; }
  .problem-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .cta-band { padding: 36px 24px; flex-direction: column; text-align: center; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 300; background: var(--navy-950);
  display: none; flex-direction: column; padding: 90px 28px 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; font-size: 20px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-close { position: fixed; top: 22px; right: 24px; z-index: 310; background: none; border: none; color: #fff; display: none; }
.mobile-close.open { display: block; }
