/* Bastion — AI Agent Governance interactive demo
   Marketing site + lead capture + interactive previews. Full light high-contrast theme for the entire portal. Self-contained. */

:root {
  /* Light theme base - high contrast, clean enterprise look */
  --bg: #fafafa;
  --bg-2: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --hover: rgba(15, 23, 42, 0.04);
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --brand: #1d4ed8;
  --brand-2: #3b82f6;
  --accent: #0284c7;
  --accent-2: #0ea5e9;
  /* Subtle accent for AI-related highlights (cyan-ish, not purple) */
  --ai: #0ea5e9;
  --ai-2: #38bdf8;
  --cyan: #06b6d4;

  /* semantic / risk ladder (kept for the interactive previews) */
  --ok: #10b981;
  --info: #3b82f6;
  --low: #22c55e;
  --medium: #eab308;
  --warn: #f59e0b;
  --high: #f97316;
  --critical: #ef4444;

  --mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Fira Code", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --maxw: 1180px;
}

/* Additions for new login / lead / admin pages */
.btn-sm { font-size:12.5px;padding:6px 12px; }
.section { background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:18px; }
.field label { font-size:12.5px;font-weight:600;color:#334155;display:block;margin-bottom:4px; }
input, select { width:100%;padding:9px 11px;border:1px solid var(--border);border-radius:8px;font-size:14px; }
input:disabled { background:#f8fafc;color:#64748b; }
.pill { font-size:11px;padding:1px 8px;border-radius:999px;background:#f1f5f9; }

.logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: #64748b;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.logout-btn:hover { background: #f8fafc; color: #334155; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }

/* ====== ambient background (light, subtle) ====== */
.bg-aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-aura::before, .bg-aura::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.12;
}
.bg-aura::before { width: 620px; height: 620px; background: var(--brand); top: -180px; left: -120px; }
.bg-aura::after { width: 560px; height: 560px; background: var(--accent); top: 240px; right: -160px; opacity: 0.10; }
.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #fff 30%, transparent 75%);
}

/* ====== top nav ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand .logo { width: 30px; height: 30px; display: grid; place-items: center; color: var(--brand-2); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.brand-title { display: flex; align-items: center; gap: 8px; }
.brand .pill {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(29, 78, 216, 0.10); color: var(--brand); padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.2);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 13px; color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--hover); color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 9px;
  font-weight: 600; font-size: 14px; padding: 11px 18px; transition: transform .12s, filter .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 130%); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 30px rgba(37,99,235,.45); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ====== layout ====== */
section { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 40px); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2);
  background: rgba(37, 99, 235, 0.10); border: 1px solid rgba(37,99,235,.28);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 640px; }
.grad { background: linear-gradient(110deg, #7cb0ff 0%, var(--accent-2) 60%, var(--cyan) 110%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }

/* ====== hero ====== */
.hero { padding-top: clamp(48px, 7vw, 86px); text-align: left; }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* split contrast card in hero (kept for other pages) */
.contrast { display: grid; gap: 14px; }
.contrast-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  position: relative; overflow: hidden;
}
.contrast-card.old { opacity: .82; }
.contrast-card.new { border-color: rgba(37,99,235,.40); box-shadow: 0 0 0 1px rgba(37,99,235,.15), 0 18px 50px rgba(0,0,0,.4); }
.contrast-card .tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.contrast-card.new .tag { color: var(--brand-2); }
.contrast-card .big { font-size: 19px; font-weight: 700; margin: 8px 0 4px; }
.contrast-card .sub { font-size: 13.5px; color: var(--text-2); }
.vs { text-align: center; font-size: 12px; font-weight: 800; color: var(--text-3); letter-spacing: .2em; }

/* ====== hero governance flow diagram ====== */
@keyframes bstn-flow { to { stroke-dashoffset: -200; } }
@keyframes bstn-breathe {
  0%, 100% { box-shadow: 0 18px 40px -14px rgba(37,99,235,.55), 0 0 0 0 rgba(56,189,248,0); }
  50%      { box-shadow: 0 18px 40px -14px rgba(37,99,235,.55), 0 0 0 12px rgba(56,189,248,.12); }
}

.guard-diagram {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text);
}
.guard-diagram-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 6px;
}
.guard-diagram-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}
.guard-diagram-title {
  margin: 0 0 16px; font-size: clamp(20px, 2.4vw, 23px);
  line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
}
.guard-diagram-captions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: #8494AE; text-align: center;
}
.guard-diagram-captions .accent { color: var(--brand); }

.guard-diagram-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 504;
  max-width: 640px;
  margin: 0 auto;
}
.guard-diagram-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
}
.guard-base { stroke: #CBD9F1; }
.guard-flow path {
  animation: bstn-flow 1.7s linear infinite;
}

.guard-node {
  position: absolute;
  left: 2.5%;
  width: 24.4%;
  height: 10.3%;
  min-height: 44px;
  box-sizing: border-box;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid #E6ECF6;
  border-radius: 13px;
  padding: 0 12px;
  box-shadow: 0 8px 22px -14px rgba(37,99,235,.28), 0 1px 2px rgba(15,23,42,.05);
  font-size: clamp(11px, 1.5vw, 13px); font-weight: 700; color: #1E293B; line-height: 1.15;
}
.guard-node.right {
  left: auto; right: 2.5%;
  flex-direction: row-reverse;
  text-align: right;
  box-shadow: 0 8px 22px -14px rgba(15,23,41,.22), 0 1px 2px rgba(15,23,42,.05);
}
.guard-ico {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
  background: #EDF3FE; color: #2563EB;
  display: flex; align-items: center; justify-content: center;
}
.guard-ico.muted { background: #EEF1F8; color: #334876; }

.guard-hub {
  position: absolute;
  left: 39.7%; top: 35.3%;
  width: 20.6%; height: 29.4%;
  box-sizing: border-box;
  border-radius: 20px;
  background: linear-gradient(150deg, #2563EB 0%, #1D4ED8 55%, #38BDF8 130%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff;
  animation: bstn-breathe 3.4s ease-in-out infinite;
  padding: 8px 6px;
}
.guard-hub-text { text-align: center; line-height: 1.1; }
.guard-hub-text .name { font-size: clamp(14px, 1.8vw, 17px); font-weight: 800; letter-spacing: -.01em; }
.guard-hub-text .sub {
  font-size: clamp(8px, 1.1vw, 9.5px); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #CFE1FF; margin-top: 3px;
}

@media (max-width: 900px) {
  .guard-diagram { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .guard-flow path, .guard-hub { animation: none; }
}

/* ====== stat strip ====== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; background: var(--surface);
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}
.stat .v {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  background: linear-gradient(120deg,#0f172a, #1e40af); -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.stat .k { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.4; }

/* ====== generic card / console frame (light for entire portal) ====== */
.console {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.console-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1){ background:#ff5f57;} .dots i:nth-child(2){ background:#febc2e;} .dots i:nth-child(3){ background:#28c840;}
.console-bar .crumb { font-family: var(--mono); }
.console-body { padding: 22px; }

/* alternating section bg */
.tint { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ====== act layout ====== */
.act-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 980px) { .act-grid { grid-template-columns: 1fr; gap: 28px; } }
.act-copy .num { font-family: var(--mono); font-size: 13px; color: var(--brand-2); font-weight: 700; }
.act-copy h2 { margin: 8px 0 14px; }
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.feature-list .ic { color: var(--ok); flex-shrink: 0; margin-top: 2px; }

/* ====== badges / pills ====== */
.badge { display:inline-flex; align-items:center; gap:5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing:.02em; }
.b-low { background: rgba(34,197,94,.15); color: #4ade80; }
.b-medium { background: rgba(234,179,8,.15); color: #facc15; }
.b-high { background: rgba(249,115,22,.16); color: #fb923c; }
.b-critical { background: rgba(239,68,68,.16); color: #f87171; }
.b-blue { background: rgba(59,130,246,.16); color: #93c5fd; }
.b-purple { background: rgba(37,99,235,.16); color: var(--brand-2); }
.b-muted { background: var(--hover); color: var(--text-2); }
.b-ok { background: rgba(16,185,129,.16); color: #34d399; }

/* ====== mini table ====== */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.row-int { cursor: pointer; transition: background .12s; }
.tbl tr.row-int:hover { background: var(--hover); }
.tbl .skill-name { color: var(--text); font-weight: 600; }
.tbl .skill-key { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

/* ====== lifecycle machine ====== */
.lifecycle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.lc-node {
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  color: var(--text-3); background: var(--bg-2); transition: all .25s; white-space: nowrap;
}
.lc-node.active { color: var(--text); border-color: var(--brand); background: rgba(29, 78, 216, 0.08); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
.lc-node.done { color: var(--text-2); border-color: var(--border-strong); }
.lc-node.danger.active { border-color: var(--critical); background: rgba(239,68,68,.16); box-shadow: 0 0 0 3px rgba(239,68,68,.14); }
.lc-arrow { color: var(--text-3); }
.lc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* agent identity card */
.idcard { display:flex; gap: 16px; align-items:center; padding: 16px; border:1px solid var(--border); border-radius: 14px; background: var(--bg-2); margin-bottom: 18px;}
.idcard .ava { width: 52px; height: 52px; border-radius: 14px; display:grid; place-items:center; background: linear-gradient(135deg, var(--accent), var(--brand)); flex-shrink:0;}
.idcard .meta b { font-size: 15px; }
.idcard .meta div { font-size: 12.5px; color: var(--text-2); }
.kv { display:flex; gap: 8px; font-size: 12.5px; margin-top: 4px; color: var(--text-3); flex-wrap: wrap;}

/* ====== DLP proxy demo ====== */
.dlp-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 20px; }
@media (max-width: 720px){ .dlp-flow{ grid-template-columns: 1fr; gap: 6px;} .dlp-flow .arrow{ transform: rotate(90deg);} }
.node {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; background: var(--bg-2);
  font-size: 13px; transition: all .3s;
}
.node .ttl { font-weight: 700; font-size: 13.5px; }
.node .desc { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.node.bastion { border-color: rgba(37,99,235,.35); background: rgba(37,99,235,.06); }
.node.scanning { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.node.blocked { border-color: var(--critical); box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.node.passed { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.node.dim { opacity: .4; }
.arrow { color: var(--text-3); display:grid; place-items:center; }
.arrow.live { color: var(--accent-2); }

.prompt-box { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); padding: 14px; }
.prompt-box textarea {
  width: 100%; background: transparent; border: none; color: var(--text); font-family: var(--mono);
  font-size: 13px; resize: vertical; min-height: 64px; outline: none; line-height: 1.5;
}
.preset-row { display:flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip {
  font-size: 12px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2);
  padding: 6px 11px; border-radius: 999px; transition: all .14s;
}
.chip:hover { background: var(--hover); color: var(--text); border-color: var(--brand-2); }
.verdict { margin-top: 16px; border-radius: 12px; padding: 16px; border:1px solid var(--border); display:none; }
.verdict.show { display: block; animation: pop .35s ease; }
.verdict.block { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.35); }
.verdict.allow { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.35); }
.verdict h4 { display:flex; align-items:center; gap:8px; font-size: 15px; margin-bottom: 6px; }
.verdict .finding { font-family: var(--mono); font-size: 12px; background: var(--bg); border:1px solid var(--border); border-radius: 8px; padding: 9px 11px; margin-top: 10px; color: var(--text-2); }
.verdict .finding b { color: #f87171; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99);} to { opacity:1; transform: none;} }

.counters { display:flex; gap: 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.counters .c .n { font-size: 24px; font-weight: 800; }
.counters .c .l { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.counters .c.block .n { color: #f87171; } .counters .c.redact .n { color: #fb923c;} .counters .c.allow .n{ color:#34d399;}

/* ====== UEBA demo ====== */
.risk-meter { height: 12px; border-radius: 999px; background: var(--bg-2); border:1px solid var(--border); overflow:hidden; margin: 8px 0 4px;}
.risk-fill { height: 100%; width: 8%; border-radius: 999px; background: var(--low); transition: width .5s ease, background .5s ease; }
.risk-score { font-size: 40px; font-weight: 800; line-height: 1; transition: color .4s; }
.detector-feed { margin-top: 16px; display: grid; gap: 8px; max-height: 220px; overflow:auto; }
.det {
  display:flex; align-items:center; gap: 10px; font-size: 13px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2); animation: slidein .35s ease;
}
.det .mitre { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-left:auto; }
.det.crit { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.07); }
@keyframes slidein { from { opacity:0; transform: translateX(-10px);} to {opacity:1; transform:none;} }
.quarantine-banner {
  display:none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; align-items:center; gap: 12px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); font-size: 14px; font-weight: 600;
}
.quarantine-banner.show { display:flex; animation: pop .4s ease; }

/* delegation chain */
.chain { display:flex; align-items:center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.chain .agent-node { border:1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-2); font-size: 13px; }
.chain .agent-node b { font-size: 13.5px; }
.chain .agent-node .sk { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.chain .agent-node.deny { border-color: var(--critical); background: rgba(239,68,68,.08); }

/* ====== comparison matrix ====== */
.matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.matrix th { font-size: 13px; }
.matrix th.bastion { color: var(--brand-2); }
.matrix td.center, .matrix th.center { text-align: center; width: 130px; }
.matrix .yes { color: #34d399; font-weight: 700; }
.matrix .no { color: var(--text-3); }
.matrix tbody tr:hover { background: var(--hover); }
.matrix td:first-child { color: var(--text); font-weight: 500; }

/* ====== closing CTA ====== */
.cta-card {
  text-align: center; border: 1px solid rgba(37,99,235,.3); border-radius: 24px; padding: clamp(36px, 6vw, 70px);
  background: radial-gradient(ellipse 100% 120% at 50% 0%, rgba(37,99,235,.12), transparent 70%), var(--surface);
}
.cta-card h2 { margin-bottom: 16px; }
.cta-card .lead { margin: 0 auto 30px; }
.cta-actions {
  justify-content: center;
  align-items: center;
  gap: 20px;
}

footer {
  padding: 28px clamp(16px, 4vw, 40px);
  color: var(--text-3); font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}
.footer-bastion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.footer-bastion .logo {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--brand-2);
}
.footer-bastion .logo svg { width: 20px; height: 20px; }
.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-cymmetri {
  display: block;
  height: 20px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.footer-copy {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
}
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
  .footer-copy { justify-self: center; text-align: center; white-space: normal; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* helpers */
.muted { color: var(--text-3); }
.mt8{margin-top:8px} .mt16{margin-top:16px} .mb0{margin-bottom:0}
.flex { display:flex; } .between{ justify-content: space-between; } .center-y{ align-items:center; } .gap8{gap:8px} .gap12{gap:12px} .wrapf{flex-wrap:wrap}
.spacer { flex: 1; }
.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display:grid; gap:10px; }
.toast { background: var(--surface-2); border:1px solid var(--border-strong); border-radius: 12px; padding: 12px 18px; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: pop .3s ease; display:flex; align-items:center; gap:10px; }

/* ============================================================
   ADDED: more "beyond-PAM" use-cases (break-glass, gateways, drift, DSL)
   ============================================================ */

.divider-head { text-align:center; max-width: 740px; margin: 0 auto 50px; }
.divider-head h2 { margin-bottom: 14px; }

/* ----- break-glass / Shamir quorum ----- */
.bg-config { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:var(--bg-2); margin-bottom:16px; }
.quorum-pill { font-family:var(--mono); font-size:13px; font-weight:700; color:var(--brand-2); background:rgba(37,99,235,.12); border:1px solid rgba(37,99,235,.3); padding:5px 12px; border-radius:999px; }
.custodians { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin:6px 0 16px; }
.custodian { display:flex; align-items:center; gap:10px; padding:11px 12px; border:1px solid var(--border); border-radius:11px; background:var(--bg-2); font-size:13px; cursor:pointer; transition:all .18s; }
.custodian:hover { border-color:var(--brand-2); background:var(--hover); }
.custodian.signed { border-color:var(--ok); background:rgba(16,185,129,.08); cursor:default; }
.custodian.signed:hover { background:rgba(16,185,129,.08); }
.custodian .ck { width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);font-size:12px;flex-shrink:0; }
.custodian.signed .ck { background:var(--ok); color:#04150e; }
.custodian .nm b { font-size:13px; } .custodian .nm div { font-size:11px;color:var(--text-3); }
.bg-progress { font-family:var(--mono); font-size:13px; color:var(--text-2); margin:4px 0 14px; }
.bg-vault { margin-top:14px; padding:16px; border-radius:12px; border:1px dashed var(--border-strong); background:var(--bg-2); text-align:center; transition:all .3s; }
.bg-vault.locked .secret { filter:blur(7px); user-select:none; }
.bg-vault.unlocked { border-style:solid; border-color:rgba(16,185,129,.4); background:rgba(16,185,129,.07); }
.bg-vault .secret { font-family:var(--mono); font-size:17px; font-weight:700; letter-spacing:.04em; }
.bg-vault .lbl { font-size:11.5px; color:var(--text-3); text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px; }

/* ----- gateway topology ----- */
.topo { position:relative; display:grid; grid-template-columns:1fr 1fr 1fr; gap:0; align-items:center; padding:8px 0 18px; }
.topo-col { display:grid; gap:12px; justify-items:center; }
.topo-node { border:1px solid var(--border); border-radius:12px; padding:12px 14px; background:var(--bg-2); font-size:12.5px; text-align:center; width:100%; max-width:170px; transition:all .3s; }
.topo-node .ttl { font-weight:700; font-size:13px; } .topo-node .desc{font-size:11px;color:var(--text-3);}
.topo-node.api { border-color:rgba(37,99,235,.4); }
.topo-node.gw { border-color:rgba(14,165,233,.45); background:rgba(14,165,233,.07); }
.topo-node.gw.online { box-shadow:0 0 0 3px rgba(16,185,129,.18); border-color:var(--ok); }
.topo-node.target.lit { box-shadow:0 0 0 3px rgba(37,99,235,.18); border-color:var(--brand-2); }
.fw-band { text-align:center; }
.fw-band .fw { writing-mode:vertical-rl; font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--text-3); border-left:2px dashed var(--border-strong); padding-left:6px; height:120px; display:inline-flex; align-items:center; }
.topo-link { font-size:11px; color:var(--text-3); text-align:center; margin:2px 0; font-family:var(--mono); }
.topo-link.dialing { color:var(--warn); } .topo-link.up { color:var(--ok); }
.no-inbound { display:inline-flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-2); border:1px solid var(--border); border-radius:999px; padding:6px 13px; background:var(--bg-2); }
.no-inbound b { color:#34d399; }

/* ----- drift feed ----- */
.acct-card { display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:var(--bg-2); margin-bottom:16px; }
.acct-card .ic { width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:var(--surface-2);flex-shrink:0; }
.acct-card.drifted { border-color:rgba(239,68,68,.4); background:rgba(239,68,68,.06); }
.drift-event { display:none; margin-top:6px; border:1px solid rgba(239,68,68,.35); background:rgba(239,68,68,.07); border-radius:12px; padding:14px 16px; }
.drift-event.show { display:block; animation:pop .35s ease; }
.drift-meta { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.drift-meta .m { font-family:var(--mono); font-size:11.5px; color:var(--text-2); background:var(--bg); border:1px solid var(--border); border-radius:7px; padding:5px 9px; }

/* ----- DSL editor ----- */
.dsl-wrap { display:grid; gap:12px; }
.dsl-toolbar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.dsl-editor { background:#06101f; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.dsl-editor .eb { display:flex; gap:6px; padding:9px 12px; border-bottom:1px solid var(--border); font-family:var(--mono); font-size:11.5px; color:var(--text-3); }
.dsl-editor textarea { width:100%; background:transparent; border:none; outline:none; color:#cfe3ff; font-family:var(--mono); font-size:12px; line-height:1.6; padding:14px; min-height:300px; resize:vertical; white-space:pre; }
.dsl-vs { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:6px; }
@media (max-width:640px){ .dsl-vs{grid-template-columns:1fr;} }
.dsl-vs .col { border:1px solid var(--border); border-radius:12px; padding:14px; background:var(--bg-2); font-size:13px; }
.dsl-vs .col.them { opacity:.8; } .dsl-vs .col.us { border-color:rgba(37,99,235,.35); }
.dsl-vs .col h5 { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-3); margin-bottom:8px; }
.dsl-vs .col.us h5 { color:var(--brand-2); }

/* ----- secondary button ----- */
.btn-secondary { background:rgba(37,99,235,.15); color:var(--brand-2); border:1px solid rgba(37,99,235,.4); }
.btn-secondary:hover { background:rgba(37,99,235,.28); border-color:rgba(37,99,235,.7); }

/* ----- trial modal ----- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.modal-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  width: 100%; max-width: 560px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  animation: slideUp .25s ease;
  color: var(--text);
}
@keyframes slideUp { from { transform:translateY(20px); opacity:0 } to { transform:translateY(0); opacity:1 } }
@media (max-width:600px) { .modal-card { padding:28px 20px; } }

.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: transparent; border: none; cursor: pointer;
  font-size: 22px; color: var(--text-3); line-height: 1;
  transition: color .15s;
}
.modal-close:hover { color: var(--text); }

.modal-header { margin-bottom: 24px; }
.modal-header h3 { font-size: 22px; font-weight: 700; margin-top: 8px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width:500px) { .field-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field .req { color: #dc2626; }
.field input, .field select {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px; color: var(--text);
  outline: none; font-family: inherit;
  transition: border-color .15s;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
.field select option { background: #ffffff; }

.form-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #b91c1c; margin-bottom: 8px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
}
.consent-row a { color: #2563eb; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.consent-row a:hover { color: #1d4ed8; }
