/* shield.observer marketing landing
 *
 * Bounded-hero: the hero is a centered dashboard component with clickable
 * tabs (Projects · Findings · Runtime · Threat · Live) matching the real
 * app routing. Marketing copy sits below the hero.
 */

:root {
  /* Shield dashboard tokens (shield.css :root) */
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #1a2332;
  --border: #1f2937;
  --border-strong: #2d3648;
  --text: #e5e7eb;
  --text-dim: #9ca3af;
  --text-muted: #6b7280;
  --accent: #3b82f6;
  --accent-dim: #1e40af;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --purple: #a78bfa;

  --crit-fg: #fca5a5; --crit-bg: #7f1d1d;
  --high-fg: #fcd34d; --high-bg: #78350f;
  --med-fg:  #93c5fd; --med-bg:  #1e3a5f;
  --pass-fg: #6ee7b7; --pass-bg: #064e3b;

  --brand-1: #A78BFA;
  --brand-2: #7C3AED;
  --brand-light: #C4B5FD;
  --brand-deep: #5B21B6;
  --brand-tint: rgba(167, 139, 250, 0.08);
  --brand-soft: rgba(167, 139, 250, 0.05);
  --brand-border: rgba(167, 139, 250, 0.3);
  --brand-shadow: rgba(167, 139, 250, 0.3);

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 8px;
  --radius-lg: 20px;
  --container-max: 1280px;
  --section-pad-y: 5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: var(--brand-light); text-decoration: none; }
a:hover { color: var(--brand-1); }
code { font-family: var(--font-mono); font-size: .88em; }

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   TOP MARKETING-PAGE NAV — sticky at y=0, translucent + backdrop blur
   ============================================================ */
.nav-top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(10, 14, 20, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-top-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Nav anchor links (Features · Workflow · Platform). Center slot
   on desktop, hidden on mobile to keep the thin nav scannable. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: var(--text-dim);
  font-size: .88rem;
  font-weight: 500;
  padding: .35rem .25rem;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover {
  color: var(--brand-1);
  border-bottom-color: var(--brand-1);
}

.nav-top-link {
  color: var(--brand-light);
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.nav-top-link:hover {
  color: var(--brand-1);
  background: rgba(167, 139, 250, .08);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  font-size: 1.05rem;
}
.nav-brand:hover { color: var(--text); }
.nav-brand b { font-weight: 700; color: var(--brand-1); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .9rem;
}
.nav-links a {
  color: var(--text-dim);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--brand-1);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  padding: .4rem .9rem;
  border-radius: 999px;
  border-bottom: 1px solid var(--brand-border);
  transition: background .15s, color .15s;
}
.nav-links .nav-cta:hover { background: var(--brand-2); color: #fff; }

/* ============================================================
   HERO — bounded 80vw × 80vh dashboard container
   ============================================================ */
.hero {
  position: relative;
  padding: 1.5rem 1.5rem .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(167, 139, 250, .08) 0%, transparent 55%),
    linear-gradient(135deg, #0a0a0f 0%, #0f172a 50%, #0a0a0f 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 70%, var(--brand-tint) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, .08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bounded {
  position: relative;
  width: 70vw;
  height: 70vh;
  min-height: 560px;
  max-height: 760px;
  max-width: 1240px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(167, 139, 250, .05),
    0 2px 0 rgba(255, 255, 255, .02) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- Dashboard header: brand + tabs + status ---------------- */
.dash-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-size: .95rem;
  white-space: nowrap;
}
.dash-brand b { color: var(--brand-1); font-weight: 700; }
.dash-tabs {
  display: flex;
  gap: .25rem;
  flex: 1;
  justify-content: center;
}
.dash-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  padding: .45rem .95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.dash-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}
.dash-tab.active {
  color: var(--brand-1);
  background: var(--brand-tint);
  border-color: var(--brand-border);
}

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* --- Pane container ----------------------------------------- */
.pane {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pane[hidden] { display: none; }
.pane-inner {
  flex: 1;
  min-height: 0;
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  overflow-y: auto;
}

/* ============================================================
   PANE: PROJECTS — 8 KPIs + cards + ticker
   ============================================================ */
.demo-metrics {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .4rem;
  flex-shrink: 0;
}
.metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .55rem;
  text-align: left;
}
.metric-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1.1;
}
.metric-val.metric-crit  { color: var(--crit-fg); }
.metric-val.metric-high  { color: var(--high-fg); }
.metric-val.metric-block { color: var(--amber); }
.metric-val.metric-ok    { color: var(--pass-fg); }
.metric-lbl {
  font-size: .55rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: .15rem;
}

/* Projects pane: full-width grid + action-row subhead + authed-replica card shape */
.projects-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: .75rem;
}
.projects-count {
  font-size: .78rem;
  color: var(--text-dim);
}
.projects-count strong {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 700;
  margin-right: .25rem;
}
.projects-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.pj-action {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  padding: .35rem .75rem;
  border-radius: 5px;
  cursor: default;
  transition: color .15s, border-color .15s, background .15s;
}
.pj-action:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.pj-action.pj-action-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.pj-action.pj-action-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .6rem;
  align-content: start;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.demo-cards-full { /* Projects pane: full-width grid (ticker moved to Live) */ }
.proj-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .6rem .7rem;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  cursor: pointer;
}
.proj-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.proj-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proj-card.pulse-red {
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(239, 68, 68, .35);
  animation: pulse-red-card 1.5s ease-out;
}
@keyframes pulse-red-card {
  0%   { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  40%  { box-shadow: 0 0 20px rgba(239, 68, 68, .55); }
  100% { box-shadow: 0 0 14px rgba(239, 68, 68, .35); }
}

/* Card header row: logo + name + sparkline + big right-aligned score */
.pc-head {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  gap: .4rem;
  align-items: center;
}
.pc-logo {
  width: 18px; height: 18px;
  background: var(--brand-tint);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 700;
  color: var(--brand-light);
  flex-shrink: 0;
}
.pc-name {
  font-size: .78rem; font-weight: 700;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.pc-spark {
  width: 56px;
  height: 18px;
  flex-shrink: 0;
}
.pc-spark polyline {
  fill: none;
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.pc-score {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  line-height: 1;
  transition: color .3s;
  text-align: right;
  min-width: 42px;
}
.pc-score.pc-score-na { color: var(--text-muted); }

/* Card secondary rows */
.pc-meta {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-meta-sep { color: var(--text-muted); margin: 0 .35rem; }
.pc-badges { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .55rem;
  color: var(--text-muted);
}
.pc-passed { color: var(--text-dim); }
.pc-passed.pc-passed-ok { color: var(--pass-fg); }
.pc-runtime {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 600;
  font-size: .5rem;
}
.pc-runtime.rt-daily     { background: rgba(16, 185, 129, .14); color: var(--pass-fg); }
.pc-runtime.rt-or-assess { background: rgba(245, 158, 11, .14); color: var(--amber); }
.pc-runtime.rt-no-url    { background: var(--surface-2); color: var(--text-muted); }

.badge {
  font-family: var(--font-mono);
  font-size: .58rem; font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.3;
}
.b-critical, .badge-critical { background: var(--crit-bg); color: var(--crit-fg); }
.b-high,     .badge-high     { background: var(--high-bg); color: var(--high-fg); }
.b-medium,   .badge-medium   { background: var(--med-bg);  color: var(--med-fg); }
.b-pass,     .badge-pass     { background: var(--pass-bg); color: var(--pass-fg); }

/* Showcase (T-105) finding — subtle lavender glow + inline task-tag pill
   so viewers see the same work surface across the fleet. Matches shield's
   brand accent. */
.task-tag {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: #c4b5fd; background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.4);
  padding: 0 5px; border-radius: 999px;
  margin-left: 4px; vertical-align: middle;
  white-space: nowrap;
}
tbody tr.row-featured {
  position: relative;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.07) 0%, transparent 60%);
  box-shadow: inset 3px 0 0 0 #A78BFA;
}

.pc-bar {
  background: var(--surface-2);
  border-radius: 3px;
  height: 4px;
  margin-top: .45rem;
  overflow: hidden;
}
.pc-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease-out, background .3s;
}

/* -----------------------------------------------------------------------
 * PROJECT DETAIL — click-to-detail view inside the Projects pane.
 * Flattened adaptation of the real assess.html page (score ring + 6
 * summary cards + sections table + per-project findings table).
 * ----------------------------------------------------------------------- */
.proj-detail {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-height: 0;
}
.pd-header {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
}
.pd-back {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: inherit;
  font-size: .72rem;
  padding: .3rem .65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.pd-back:hover,
.pd-back:focus-visible { border-color: var(--accent); color: var(--text); outline: none; }
.pd-title-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.pd-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}
.pd-meta {
  font-size: .72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.pd-score-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
}
.pd-ring { width: 140px; height: 140px; }
.pd-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}
.pd-section {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.pd-section-head {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-dim);
}
.pd-count {
  display: inline-block;
  margin-left: .35rem;
  padding: .05rem .4rem;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.pd-section-table,
.pd-findings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .76rem;
}
.pd-section-table th,
.pd-findings-table th {
  text-align: left;
  padding: .4rem .55rem;
  background: var(--surface);
  color: var(--text-dim);
  font-weight: 500;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pd-section-table td,
.pd-findings-table td {
  padding: .4rem .55rem;
  border-bottom: 1px solid var(--border);
}
.pd-section-table code,
.pd-findings-table code {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text);
}
.pd-findings-table td {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-bar-bg {
  background: var(--surface-2);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
  min-width: 120px;
}
.pd-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease-out;
}
.pd-sect-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.pd-sect-findings {
  text-align: right;
  white-space: nowrap;
}
.pd-sect-na { opacity: .55; }
.pd-dim { color: var(--text-dim); font-size: .7rem; }

@media (max-width: 960px) {
  .pd-score-row { grid-template-columns: 1fr; justify-items: center; }
  .pd-summary { grid-template-columns: repeat(3, 1fr); }
  .pd-findings-table td { max-width: 200px; }
}
@media (max-width: 480px) {
  .pd-summary { grid-template-columns: repeat(2, 1fr); }
  .pd-findings-table td { max-width: 140px; }
  .pd-ring { width: 120px; height: 120px; }
}

/* Ticker (shared visual language across panes) */
.demo-ticker, .bt-queue, .live-ticker-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .65rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ticker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .55rem;
  flex-shrink: 0;
}
.ticker-head h3 {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-dim);
  font-weight: 500;
}
.ticker-status {
  display: flex; align-items: center; gap: .3rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--green);
}
.ticker, .live-ticker {
  flex: 1;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: .65rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ticker-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: .45rem;
  padding: .22rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: ticker-fadein .45s forwards ease-out;
}
.ticker-row:last-child { border-bottom: none; }
@keyframes ticker-fadein {
  from { opacity: 0; transform: translateY(-4px); background: rgba(167, 139, 250, .18); }
  to   { opacity: 1; transform: translateY(0); background: transparent; }
}
.ticker-row.flash-red {
  animation: ticker-fadein .45s forwards ease-out,
             ticker-red-flash 1.6s .4s ease-out;
}
@keyframes ticker-red-flash {
  0%   { background: rgba(239, 68, 68, 0); }
  30%  { background: rgba(239, 68, 68, .35); }
  100% { background: rgba(239, 68, 68, 0); }
}
.t-time { color: var(--text-muted); white-space: nowrap; }
.t-body { color: var(--text); word-break: break-word; }
.t-type {
  display: inline;
  color: var(--text-dim);
  font-weight: 600;
  margin-right: .25rem;
}
.t-type.sev-critical { color: var(--red); }
.t-type.sev-high     { color: var(--amber); }
.t-type.sev-feed     { color: var(--text-muted); }
.t-type.sev-ok       { color: var(--green); }
.t-type.sev-bt       { color: var(--purple); }
.t-type.sev-dlp      { color: var(--brand-1); }
.t-type.sev-rt       { color: var(--accent); }

/* ============================================================
   PANE: FINDINGS — filter bar + severity table
   ============================================================ */
.findings-filters, .runtime-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.ff-search {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .4rem .7rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .78rem;
  min-width: 240px;
  flex: 1;
  max-width: 380px;
}
.ff-search:focus { outline: none; border-color: var(--brand-1); }
.ff-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .4rem .7rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .78rem;
  cursor: pointer;
}
.ff-count {
  font-size: .72rem;
  color: var(--text-dim);
  margin-left: auto;
  font-family: var(--font-mono);
}

.findings-wrap-full {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.findings-table-full {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
}
.findings-table-full th {
  text-align: left;
  padding: .5rem .85rem;
  background: var(--surface-2);
  color: var(--text-dim);
  font-weight: 500;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.findings-table-full td {
  padding: .5rem .85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.findings-table-full tr:last-child td { border-bottom: none; }
.findings-table-full tr:hover td { background: var(--surface-2); }
.findings-table-full code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .9em;
  color: var(--brand-light);
}
.findings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--border);
}
.findings-head h3 {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-dim);
  font-weight: 500;
}
.src-pill {
  display: inline-block;
  font-size: .58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--text-dim);
}
.src-pill.src-dynamic { background: rgba(59, 130, 246, .15); color: var(--accent); }
.src-pill.src-static  { background: rgba(167, 139, 250, .12); color: var(--brand-light); }

/* ============================================================
   PANE: RUNTIME — DLP Live stream
   ============================================================ */
.runtime-sub-tabs, .threat-sub-tabs {
  display: flex;
  gap: .4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
  flex-shrink: 0;
}
.rt-sub-tab {
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 500;
  transition: color .15s, background .15s, border-color .15s;
}
.rt-sub-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}
.rt-sub-tab.active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
  cursor: default;
}
.rt-sub-tab:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
}

/* Sub-pane wrappers inside Runtime + Threat panes */
.rt-sub-pane {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  flex: 1;
  min-height: 0;
}
.rt-sub-pane[hidden] { display: none; }
.rt-sub-badge {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: .3rem;
}

/* DLP callout — Runtime pane */
.dlp-callout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .7rem .85rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s;
  flex-shrink: 0;
}
.dlp-callout.visible { opacity: 1; transform: translateY(0); }
.dlp-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .45rem;
  font-size: .72rem;
}
.dlp-icon {
  display: inline-flex;
  width: 20px; height: 20px;
  background: var(--brand-tint);
  color: var(--brand-1);
  border-radius: 4px;
  align-items: center; justify-content: center;
  font-weight: 700;
}
.dlp-title { color: var(--text); font-weight: 600; flex: 1; }
.dlp-pill {
  font-family: var(--font-mono);
  font-size: .6rem; font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--brand-tint);
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.dlp-pill.blocked { background: rgba(239, 68, 68, .18); color: var(--crit-fg); }
.dlp-prompt {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border-radius: 4px;
  padding: .55rem .7rem;
  line-height: 1.6;
}
.dlp-param { color: var(--brand-light); }
.dlp-secret {
  display: inline-block;
  padding: 1px 4px;
  margin: 0 1px;
  border-radius: 2px;
  background: rgba(245, 158, 11, .18);
  color: var(--amber);
  transition: background .35s, color .35s;
}
.dlp-secret.redacted {
  background: var(--crit-bg);
  color: var(--crit-fg);
  letter-spacing: 1px;
}

.runtime-stream-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.runtime-stream {
  width: 100%;
  border-collapse: collapse;
  font-size: .7rem;
}
.runtime-stream th {
  text-align: left;
  padding: .45rem .75rem;
  background: var(--surface-2);
  color: var(--text-dim);
  font-weight: 500;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.runtime-stream td {
  padding: .4rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .68rem;
}
.runtime-stream tr:last-child td { border-bottom: none; }
.runtime-stream tr.rt-new { animation: ticker-fadein .5s forwards ease-out; }
.rt-decision {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}
.rt-decision.allowed  { background: var(--pass-bg); color: var(--pass-fg); }
.rt-decision.blocked  { background: var(--crit-bg); color: var(--crit-fg); }
.rt-decision.redacted { background: var(--high-bg); color: var(--high-fg); }
.rt-decision.warned   { background: var(--med-bg);  color: var(--med-fg); }

/* ============================================================
   PANE: THREAT — budget + CVE feed + blue-team queue
   ============================================================ */
.threat-budget {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .4rem;
  flex-shrink: 0;
}
.threat-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: .75rem;
  flex: 1;
  min-height: 0;
}
.threat-feed-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.threat-feed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .7rem;
}
.threat-feed-table thead {
  background: var(--surface-2);
}
.threat-feed-table th {
  text-align: left;
  padding: .45rem .75rem;
  color: var(--text-dim);
  font-weight: 500;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
}
.threat-feed-table td {
  padding: .4rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .68rem;
  vertical-align: middle;
}
.threat-feed-table tr:last-child td { border-bottom: none; }
.threat-feed-table tr:hover td { background: var(--surface-2); }
.kev-pill {
  display: inline-block;
  background: var(--crit-bg);
  color: var(--crit-fg);
  font-size: .55rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}
.kev-pill.off {
  background: var(--surface-2);
  color: var(--text-muted);
}

.bt-queue-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.bt-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .45rem .55rem;
  font-size: .68rem;
}
.bt-item.active {
  border-color: var(--purple);
  box-shadow: 0 0 10px rgba(167, 139, 250, .25);
}
.bt-item .bt-cve {
  font-family: var(--font-mono);
  color: var(--amber);
  font-weight: 600;
  font-size: .7rem;
}
.bt-item .bt-proj {
  color: var(--text);
  font-weight: 500;
  margin-top: .15rem;
}
.bt-item .bt-sub {
  color: var(--text-dim);
  font-size: .62rem;
  margin-top: .15rem;
  display: flex;
  justify-content: space-between;
}
.bt-stage {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  background: var(--brand-tint);
  color: var(--brand-light);
}

/* ============================================================
   PANE: LIVE — ecosystem graph + metrics + live events
   ============================================================ */
.live-grid {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: .75rem;
  flex: 1;
  min-height: 0;
}
.live-side, .live-ticker-wrap, .live-graph-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .65rem;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.live-side { gap: .55rem; }
.live-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .35rem;
  flex-shrink: 0;
}

.live-graph-wrap {
  position: relative;
  padding: .5rem;
}
.live-graph-wrap svg {
  width: 100%;
  height: 100%;
  min-height: 300px;
}
.graph-stats {
  position: absolute;
  top: .4rem;
  left: .55rem;
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  z-index: 2;
  pointer-events: none;
}
.graph-stats .st { display: flex; align-items: baseline; gap: .25rem; }
.graph-stats .st .n { color: var(--text); font-weight: 600; font-size: .72rem; }
.graph-stats .st.crit .n { color: var(--red); }
.graph-stats .st.ok .n { color: var(--green); }

/* Ecosystem graph node styles */
.node { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
.node.hub { fill: var(--surface); stroke: var(--brand-1); stroke-width: 2; }
.node.project.ok  { stroke: var(--green); }
.node.project.mid { stroke: var(--amber); }
.node.project.bad { stroke: var(--red); }
.node.feed { stroke: var(--text-muted); stroke-dasharray: 2 2; }
.node-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-dim);
  pointer-events: none;
  text-anchor: middle;
}
.node-label.hub { fill: var(--brand-1); font-weight: 700; font-size: 10px; }
.edge { stroke: var(--border); stroke-width: 1; fill: none; opacity: .5; }
.edge.feed-edge { stroke-dasharray: 2 3; stroke: var(--text-muted); }
.edge.active {
  stroke: var(--brand-1);
  stroke-width: 1.8;
  opacity: 1;
  animation: edge-pulse 1.1s ease-out;
}
@keyframes edge-pulse {
  0%   { stroke-dashoffset: 20; stroke: var(--brand-1); }
  100% { stroke-dashoffset: 0;  stroke: var(--border); }
}
.node.active {
  animation: node-flash .9s ease-out;
}
@keyframes node-flash {
  0%   { stroke-width: 2; filter: drop-shadow(0 0 6px var(--brand-1)); }
  100% { stroke-width: 1.5; filter: none; }
}

/* Risk radar — simple horizontal bars per project */
.risk-radar {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
  overflow-y: auto;
}
.radar-row {
  display: grid;
  grid-template-columns: 70px 1fr 28px;
  gap: .4rem;
  align-items: center;
  font-size: .65rem;
}
.radar-name {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.radar-bar {
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.radar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease-out;
}
.radar-score {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--text-dim);
  text-align: right;
}

/* Live ticker rows (wider than Projects ticker) */
.live-ticker .ticker-row {
  grid-template-columns: 50px 80px 1fr;
}
.live-ticker .t-time { font-size: .6rem; }
.live-ticker .t-type { text-align: right; font-size: .6rem; }

/* ============================================================
   HERO-BELOW — marketing copy (moved from left column)
   ============================================================ */
.hero-below {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(167, 139, 250, .03) 100%);
}
.hero-below-inner {
  text-align: center;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand-light);
  padding: .35rem .95rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: .3px;
}
.hero-below h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero-tagline {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}
.hero-subhead {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  justify-content: center;
}
.cta-primary {
  padding: .85rem 1.8rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--brand-shadow);
  transition: transform .2s, box-shadow .2s;
}
.cta-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--brand-shadow);
}
.cta-secondary {
  padding: .85rem 1.6rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid var(--brand-border);
  color: var(--brand-light);
  transition: background .2s, color .2s, border-color .2s;
}
.cta-secondary:hover {
  background: var(--brand-tint);
  border-color: var(--brand-1);
  color: var(--brand-1);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  max-width: 620px;
  margin: 0 auto;
}
.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.trust-unit { font-size: 1rem; color: var(--text-dim); }
.trust-lbl {
  font-size: .68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: .3rem;
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.workflow-section {
  padding: var(--section-pad-y) 0;
  background: #0f172a;
}
.workflow-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 2rem;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
}
.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  padding: 1rem;
  text-align: center;
  max-width: 170px;
  flex: 1;
}
.wf-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px var(--brand-shadow);
}
.wf-step h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.wf-step p {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.wf-step code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--brand-light);
  font-size: .8em;
}
.wf-arrow {
  align-self: center;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  position: relative;
  margin-top: 24px;
}
.wf-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--brand-2);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
  padding: var(--section-pad-y) 0;
  background: #0a0a0f;
}
.feat-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.feat-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-1);
}
.feat-header p { color: var(--text-dim); font-size: 1.05rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-border);
  box-shadow: 0 12px 30px var(--brand-tint);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .6rem;
}
.feature-card p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: .92rem;
}
.feature-card code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--brand-light);
  font-size: .85em;
}

/* ============================================================
   DEMO BLOCKS
   ============================================================ */
.demos-section {
  padding: var(--section-pad-y) 0;
  background: #0a0a0f;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.demo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.demo-block:last-child { margin-bottom: 0; }
.demo-block-flip .demo-block-copy { order: 2; }
.demo-block-flip .demo-block-art  { order: 1; }

.demo-block-copy h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.demo-text {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.feature-list { list-style: none; }
.feature-list li {
  padding: .5rem 0 .5rem 1.6rem;
  position: relative;
  color: var(--text-dim);
  line-height: 1.6;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-1);
  font-weight: 700;
}
.feature-list li strong { color: var(--text); }

.term-box {
  background: #050810;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.term-head {
  background: #0f172a;
  padding: .7rem .95rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.term-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.term-dot:nth-child(1) { background: #f87171; }
.term-dot:nth-child(2) { background: #fbbf24; }
.term-dot:nth-child(3) { background: #34d399; }
.term-title {
  margin-left: auto;
  color: var(--text-dim);
  font-size: .78rem;
}
.term-body { padding: 1.3rem 1.5rem; }
.term-row {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  color: var(--text);
  font-size: .88rem;
}
.term-row.term-highlight {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: .5rem;
  padding-top: .85rem;
}
.term-row.term-sub {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: .82rem;
}
.term-divider {
  height: 1px;
  background: rgba(255, 255, 255, .1);
  margin: .9rem 0 .5rem;
}
.term-label {
  color: var(--text-muted);
  font-size: .78rem;
  margin-bottom: .4rem;
}
.term-accent { color: var(--brand-1); font-weight: 600; }
.t-ok  { color: var(--pass-fg); font-weight: 600; }
.t-err { color: var(--crit-fg); font-weight: 600; }

.code-content {
  padding: 1.3rem 1.5rem;
  margin: 0;
  font-size: .82rem;
  line-height: 1.75;
  color: #cbd5e1;
  font-family: var(--font-mono);
  overflow-x: auto;
  white-space: pre;
}
.code-content .c-kw { color: var(--brand-light); }
.code-content .c-str { color: var(--pass-fg); }

/* ============================================================
   PLATFORM
   ============================================================ */
.platform-section {
  padding: var(--section-pad-y) 0;
  background: linear-gradient(180deg, #0f172a 0%, #0a0a0f 100%);
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.plat-card {
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.plat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}
.plat-card.plat-primary {
  border-color: var(--brand-border);
  background: linear-gradient(135deg, var(--brand-soft) 0%, rgba(15, 23, 42, .6) 100%);
}
.plat-card.plat-primary:hover {
  border-color: var(--brand-1);
  box-shadow: 0 20px 40px var(--brand-tint);
}
.plat-card img { margin-bottom: 1.1rem; }
.plat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
}
.plat-tag {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 1.1rem;
}
.plat-card ul { list-style: none; text-align: left; }
.plat-card ul li {
  padding: .4rem 0 .4rem 1.15rem;
  position: relative;
  color: var(--text-dim);
  font-size: .85rem;
}
.plat-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.plat-card.plat-primary ul li::before { color: var(--brand-1); }

.unified {
  text-align: center;
  padding: 2.75rem 2.5rem;
  background: rgba(15, 23, 42, .4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
}
.unified-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.unified h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
}
.unified p {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  padding: var(--section-pad-y) 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #0f172a 50%, #0a0a0f 100%);
}
.cta-content { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-content img { margin-bottom: 1.5rem; }
.cta-content h2 {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.cta-content p {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 2.5rem 0;
  background: #050810;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
}
.footer-brand b { color: var(--brand-1); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--brand-light); }
.footer-meta { color: var(--text-muted); font-size: .8rem; }

/* ============================================================
   RUNTIME NOTE — secondary line under detections cell
   ============================================================ */
.rt-note {
  font-size: .58rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
  letter-spacing: .15px;
}


/* ============================================================
   TRY-IT CTA — big dark card with mailto primary
   ============================================================ */
.try-it-section {
  padding: var(--section-pad-y) 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #0f172a 50%, #0a0a0f 100%);
}
.try-it-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(167, 139, 250, .08) 0%, rgba(15, 23, 42, .85) 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(167, 139, 250, .08);
}
.try-it-card img { margin-bottom: 1.25rem; }
.try-it-card h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.try-it-card p {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.try-it-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
  .hero-bounded { width: 92vw; }
  .demo-metrics { grid-template-columns: repeat(4, 1fr); }
  .threat-budget { grid-template-columns: repeat(3, 1fr); }
  .live-grid { grid-template-columns: 200px 1fr 240px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .io-grid { grid-template-columns: 1fr; }
  .observer-strip { gap: .4rem; padding: 1.25rem .75rem; }
  .observer-pill { padding: .45rem .75rem; gap: .4rem; }
  .observer-pill .pill-wordmark { font-size: .72rem; }
  .try-it-card { padding: 2.25rem 1.5rem; }
  .try-it-card h2 { font-size: 1.7rem; }
  .hero { padding: 1.25rem .75rem; min-height: auto; }
  .hero-bounded { width: 96vw; height: auto; min-height: 640px; max-height: none; }
  .dash-header { flex-wrap: wrap; gap: .6rem; }
  .dash-tabs { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .dash-tab { font-size: .78rem; padding: .35rem .7rem; }
  .pane-inner { padding: .7rem; }
  .demo-grid, .threat-split { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, auto); }
  .live-side { order: 2; }
  .live-graph-wrap { order: 1; min-height: 320px; }
  .live-ticker-wrap { order: 3; }
  .hero-below h1 { font-size: 2.2rem; }
}

/* Tablet-specific adjustments (641-768) — projects grid drops from the
 * auto-fit 3-col default to 2-col so the hero card doesn't feel dense.
 * Phones (≤640) go 1-col via the next block.
 */
@media (max-width: 768px) {
  .demo-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-top { height: 56px; }
  .nav-top-inner { padding: 0 16px; }
  .hero { min-height: calc(100vh - 56px); }
  .observer-strip { padding: 1rem .5rem; gap: .35rem; }
  .observer-pill { padding: .4rem .65rem; }
  .observer-pill img { width: 18px; height: 18px; }
  .observer-pill .pill-wordmark { font-size: .68rem; }
  .try-it-card { padding: 1.75rem 1rem; }
  .try-it-card h2 { font-size: 1.45rem; }
  .try-it-row { flex-direction: column; }
  .hero-bounded { width: 100%; border-radius: 10px; }
  .demo-metrics { grid-template-columns: repeat(2, 1fr); gap: .3rem; }
  .threat-budget { grid-template-columns: repeat(2, 1fr); }
  .demo-cards { grid-template-columns: 1fr; }
  .projects-subhead { flex-direction: column; align-items: stretch; gap: .5rem; }
  .projects-actions { justify-content: flex-start; }
  .findings-filters, .runtime-filters { gap: .35rem; }
  .ff-search { min-width: 100%; max-width: none; }
  .findings-table-full th:nth-child(6),
  .findings-table-full td:nth-child(6),
  .findings-table-full th:nth-child(7),
  .findings-table-full td:nth-child(7) { display: none; }
  .threat-feed-table th:nth-child(5),
  .threat-feed-table td:nth-child(5),
  .threat-feed-table th:nth-child(6),
  .threat-feed-table td:nth-child(6) { display: none; }
  .runtime-stream th:nth-child(5),
  .runtime-stream td:nth-child(5),
  .runtime-stream th:nth-child(6),
  .runtime-stream td:nth-child(6) { display: none; }
  .nav-links { gap: 1rem; font-size: .82rem; }
  .nav-links a[href="#platform"],
  .nav-links a[href="#workflow"] { display: none; }
  .hero-below h1 { font-size: 1.85rem; }
  .hero-below { padding: 2rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .demo-block { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
  .demo-block-flip .demo-block-copy { order: 1; }
  .demo-block-flip .demo-block-art  { order: 2; }
  .workflow-diagram { padding: 1.25rem; gap: 0; }
  .wf-step { max-width: 100%; flex-direction: row; text-align: left; align-items: flex-start; gap: 1rem; }
  .wf-step h4, .wf-step p { text-align: left; }
  .wf-arrow { width: 2px; height: 20px; margin: 0 0 0 24px; }
  .wf-arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(90deg); }
  .section-title { font-size: 1.8rem; }
  .cta-content h2 { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cta-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .live-dot { animation: none; opacity: 1; }
}

/* ============================================================
   Hero story flanks + narration (vanilla JS routine, matches
   tasks + transmission chassis).
   ============================================================ */
@keyframes hero-fade-in-blur {
  0%   { opacity: 0; transform: translateY(8px); filter: blur(3px); }
  60%  { opacity: 1; transform: translateY(0);   filter: blur(0); }
  100% { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
.hero-fade-in {
  animation: hero-fade-in-blur 650ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-flank {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12rem;
  pointer-events: none;
  z-index: 2;
  flex-direction: column;
}
@media (min-width: 1280px) {
  .hero-flank { display: flex; }
  .hero-flank-left  { left: .9rem; align-items: flex-end; text-align: right; }
  .hero-flank-right { right: .9rem; align-items: flex-start; }
}
@media (min-width: 1536px) {
  .hero-flank { width: 14rem; }
  .hero-flank-left  { left: 1.4rem; }
  .hero-flank-right { right: 1.4rem; }
}

.hero-flank-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, .10);
  border: 1px solid rgba(167, 139, 250, .35);
  color: #c4b5fd;
  margin-bottom: .75rem;
}
.hero-flank-chip-muted {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  color: #94a3b8;
}
.hero-flank-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #A78BFA;
  animation: hero-flank-pulse 1.8s ease-in-out infinite;
}
@keyframes hero-flank-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.hero-flank-label {
  font-size: 1.85rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.hero-flank-step {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #64748b;
  margin-top: .75rem;
}
.hero-flank-paused {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, .15);
  border: 1px solid rgba(245, 158, 11, .35);
  color: #fcd34d;
  margin-top: 1rem;
}
.hero-flank-paused[hidden] { display: none; }
.hero-flank-desc {
  font-size: 1rem;
  line-height: 1.45;
  color: #e2e8f0;
  font-weight: 500;
}
.hero-flank-rule {
  width: 2.2rem;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(167, 139, 250, .7), transparent);
  margin-top: 1rem;
}
.hero-flank-meta {
  font-size: .72rem;
  color: #64748b;
  margin-top: .4rem;
}
