/* ============================================================
   COSINT × SENTRA — dark operational theme
   Tokens lifted directly from frontend/src/design-system/tokens.ts:
     - real Sentra surface scale (#080c14 → #1c2333)
     - blue/indigo accents as in the product
     - Inter sans + JetBrains Mono + Geist Variable (optional)
   ============================================================ */

:root {
  /* Sentra surface scale — bg.base → bg.overlay */
  --bg:        #080c14;     /* bg.base */
  --bg-2:      #0a0e17;
  --surface:   #0d1117;     /* bg.raised */
  --surface-2: #151b28;     /* bg.surface */
  --raised:    #1c2333;     /* bg.overlay */
  --line:      #1e293b;     /* border */
  --line-2:    #232d3f;     /* hover */
  --line-3:    #334155;     /* border light */

  /* text scale */
  --ink:       #f1f5f9;     /* text.primary */
  --ink-2:     #cbd5e1;
  --mute:      #9fb0c2;     /* text.secondary */
  --faint:     #7a8d9f;     /* text.muted */
  --dim:       #64748b;     /* text.tertiary */

  /* accents — Sentra product palette */
  --accent:        #3b82f6; /* accent.blue */
  --accent-2:      #60a5fa;
  --accent-bg:     rgba(59,130,246,0.12);
  --accent-line:   rgba(59,130,246,0.35);
  --accent-ink:    #0b1530;

  --indigo:    #6366f1;
  --ok:        #10b981;     /* accent.emerald */
  --ok-bg:     rgba(16,185,129,0.12);
  --warn:      #f59e0b;     /* accent.amber */
  --warn-bg:   rgba(245,158,11,0.12);
  --danger:    #ef4444;     /* accent.red */
  --danger-bg: rgba(239,68,68,0.12);
  --info:      #38bdf8;     /* accent.sky */
  --info-bg:   rgba(56,189,248,0.12);
  --cyan:      #06b6d4;
  --purple:    #a855f7;
  --pink:      #ec4899;

  /* entity colors — Sentra typed graph */
  --e-person:         #3b82f6;
  --e-org:            #10b981;
  --e-location:       #ec4899;
  --e-event:          #f59e0b;
  --e-vehicle:        #06b6d4;
  --e-comms:          #a855f7;
  --e-financial:      #fbbf24;
  --e-infrastructure: #94a3b8;

  /* severity */
  --sev-crit:   #dc2626;
  --sev-high:   #f97316;
  --sev-med:    #eab308;
  --sev-low:    #22c55e;
  --sev-info:   #3b82f6;

  /* type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-1: 3px;
  --r-2: 5px;
  --r-3: 8px;

  --gut: 24px;
  --pad-section: 96px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ====================================================
   Typography
   ==================================================== */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.eyebrow .num {
  display: inline-block;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  color: var(--mute);
  font-size: 10px;
}

.display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: normal;
  color: var(--mute);
}

h2.section-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 8px;
  text-wrap: balance;
}
h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}

.lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0 0 12px; color: var(--ink-2); }

.mono { font-family: var(--mono); }

/* ====================================================
   Header
   ==================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,10,9,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#3b82f6 0%,#6366f1 100%);
  color: #fff;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.35), 0 4px 14px rgba(59,130,246,0.25);
}
.brand .wm {
  font-family: "Geist","Inter",var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.brand .wm em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
}
.brand .builds { display: none; }
.nav-main {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--mute);
}
.nav-main a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.nav-main a:hover { color: var(--ink); }
.nav-main a.active { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--r-2);
  border: 1px solid transparent;
  transition: background 120ms, border-color 120ms, color 120ms;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #0c0a09; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border-color: transparent; padding: 9px 4px;
}
.btn-ghost:hover { color: var(--accent-2); }
.btn .arrow { transition: transform 160ms; }
.btn:hover .arrow { transform: translateX(2px); }

/* ====================================================
   Sections
   ==================================================== */

section { padding: var(--pad-section) 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .lede { color: var(--mute); }

/* ====================================================
   Hero
   ==================================================== */

.hero {
  padding: 56px 0 var(--pad-section);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(129,140,248,0.10), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(244,114,182,0.06), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: end;
  margin-top: 32px;
}
.hero .ctas { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.meta-row {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.meta-row .pill {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); margin-right: 6px; vertical-align: 1px;
}

/* ====================================================
   Sentra workspace mockup (hero)
   ==================================================== */

.workspace {
  margin-top: 56px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 40px 80px -40px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.02);
}

.ws-classification {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px;
  background: linear-gradient(180deg, #1a1816 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.ws-classification .badge {
  color: var(--ok);
  border: 1px solid rgba(52,211,153,0.4);
  background: var(--ok-bg);
  padding: 1px 8px; border-radius: 999px;
  font-size: 10px;
}
.ws-classification .meta { display: flex; gap: 18px; color: var(--faint); }
.ws-classification .meta b { color: var(--ink-2); font-weight: 500; }

.ws-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.ws-titlebar .left {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--ink-2);
}
.ws-titlebar .crumb {
  font-family: var(--mono); font-size: 11.5px; color: var(--mute);
  letter-spacing: 0.04em;
}
.ws-titlebar .crumb b { color: var(--ink); font-weight: 500; letter-spacing: 0; }
.ws-titlebar .crumb em { font-style: normal; color: var(--dim); padding: 0 6px; }
.ws-titlebar .right {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ws-titlebar .who {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2);
}
.ws-titlebar .who .av {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 600;
}

.ws-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.04em; text-transform: uppercase;
}
.ws-toolbar .seg {
  display: inline-flex; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden;
}
.ws-toolbar .seg span {
  padding: 4px 10px;
  border-right: 1px solid var(--line);
}
.ws-toolbar .seg span:last-child { border-right: 0; }
.ws-toolbar .seg span.on { background: var(--surface); color: var(--ink); }
.ws-toolbar .chip {
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.ws-toolbar .chip.osint { color: var(--accent); border-color: var(--accent-line); }
.ws-toolbar .spacer { flex: 1; }
.ws-toolbar .filter {
  padding: 3px 8px; border: 1px dashed var(--line-2); border-radius: 4px;
  color: var(--ink-2);
}
.ws-toolbar .filter b { color: var(--accent); font-weight: 500; }

.ws-body {
  display: grid;
  grid-template-columns: 56px 1fr 320px;
  min-height: 600px;
}

/* nav rail */
.ws-rail {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 0; gap: 6px;
}
.ws-rail .ricon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 5px; color: var(--faint);
  border: 1px solid transparent;
}
.ws-rail .ricon.on {
  color: var(--accent);
  background: var(--accent-bg);
  border-color: var(--accent-line);
}
.ws-rail .ricon svg { width: 18px; height: 18px; }
.ws-rail .sep { width: 22px; height: 1px; background: var(--line); margin: 6px 0; }

/* central canvas */
.ws-canvas {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 200px;
  background: var(--bg);
}
.ws-pane {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--bg);
}
.ws-pane:last-child { border-right: 0; }
.ws-pane.full { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.ws-pane.tline { grid-column: 1 / -1; border-bottom: 0; background: var(--surface-2); }

.pane-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.pane-head .title {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.pane-head .title svg { width: 12px; height: 12px; color: var(--accent); }
.pane-head .meta {
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  letter-spacing: 0.06em;
}
.pane-head .meta b { color: var(--ink-2); font-weight: 500; }

/* graph */
.graph-wrap { position: relative; height: calc(100% - 32px); padding: 8px; }
.graph-svg { width: 100%; height: 100%; display: block; }
.graph-legend {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 9.5px;
  color: var(--mute); letter-spacing: 0.04em;
}
.graph-legend .lk { display: inline-flex; align-items: center; gap: 5px; }
.graph-legend .lk i {
  width: 8px; height: 8px; border-radius: 50%;
}
.graph-metric {
  position: absolute; right: 12px; top: 40px;
  background: rgba(28,25,23,0.86);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 10px;
  font-family: var(--mono); font-size: 10.5px;
  min-width: 150px;
}
.graph-metric .label {
  color: var(--faint); letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 9px;
  margin-bottom: 4px;
}
.graph-metric .row {
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--ink-2); padding: 2px 0;
}
.graph-metric .row b { color: var(--accent); font-weight: 500; }

/* map */
.map-wrap { position: relative; height: calc(100% - 32px); overflow: hidden; }
.map-svg { width: 100%; height: 100%; display: block; }
.map-overlay {
  position: absolute; left: 10px; top: 10px;
  background: rgba(28,25,23,0.86);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: var(--mono); font-size: 10px;
  color: var(--mute); letter-spacing: 0.06em;
}
.map-overlay b { color: var(--ink-2); font-weight: 500; }
.map-scale {
  position: absolute; right: 10px; bottom: 10px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end;
  font-family: var(--mono); font-size: 9.5px; color: var(--mute);
  letter-spacing: 0.06em;
}
.map-scale .bar { width: 60px; height: 4px; background: linear-gradient(90deg, var(--ink-2), var(--mute)); }

/* timeline */
.tline-wrap { padding: 6px 12px 10px; height: 168px; overflow: hidden; }
.tline-axis {
  display: grid; grid-template-columns: 90px 1fr; align-items: center;
  font-family: var(--mono); font-size: 9.5px; color: var(--faint);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px dashed var(--line);
  padding: 2px 0 4px;
}
.tline-axis .ticks {
  display: grid; grid-template-columns: repeat(8, 1fr);
}
.tline-axis .ticks span { border-left: 1px solid var(--line); padding: 0 4px; color: var(--faint); }
.tline-axis .ticks span:first-child { border-left: 0; }
.tline-row {
  display: grid; grid-template-columns: 90px 1fr; align-items: center;
  padding: 4px 0; height: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.025);
}
.tline-row .lane {
  font-family: var(--mono); font-size: 10px;
  color: var(--mute); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
.tline-row .lane i {
  width: 7px; height: 7px; border-radius: 1px;
}
.tline-row .track {
  position: relative; height: 18px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 12.45%, rgba(255,255,255,0.04) 12.5%, rgba(255,255,255,0.04) 12.55%);
}
.tline-row .ev {
  position: absolute; top: 4px; height: 10px;
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 9px;
  color: #fff;
  border-radius: 2px;
  padding: 0 4px;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5) inset;
}
.tline-row .pt {
  position: absolute; top: 5px;
  width: 8px; height: 8px; transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}

/* right entity panel */
.ws-detail {
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  font-size: 12.5px;
}
.detail-tabs {
  display: flex; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.detail-tabs span {
  padding: 10px 12px; color: var(--faint);
  border-bottom: 1px solid transparent;
  border-right: 1px solid var(--line);
}
.detail-tabs span.on {
  color: var(--ink); border-bottom-color: var(--accent);
  background: var(--surface-2);
}
.detail-tabs .grow { flex: 1; border-right: 0; padding: 0; }

.entity-card { padding: 14px; border-bottom: 1px solid var(--line); }
.entity-card .head {
  display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
}
.entity-card .avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.entity-card .name { font-size: 15px; font-weight: 500; color: var(--ink); }
.entity-card .sub { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.entity-card .badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 4px;
}
.badge.person { color: var(--e-person); border-color: rgba(129,140,248,0.4); }
.badge.org { color: var(--e-org); border-color: rgba(52,211,153,0.4); }
.badge.loc { color: var(--e-location); border-color: rgba(244,114,182,0.4); }
.badge.event { color: var(--e-event); border-color: rgba(251,146,60,0.4); }
.badge.osint { color: var(--accent); border-color: var(--accent-line); }
.badge.sigint { color: #c084fc; border-color: rgba(192,132,252,0.4); }
.badge.geoint { color: #2dd4bf; border-color: rgba(45,212,191,0.4); }
.badge.humint { color: #fbbf24; border-color: rgba(251,191,36,0.4); }
.badge.rating { color: var(--ok); border-color: rgba(52,211,153,0.4); }
.badge.suspected { color: var(--warn); border-color: rgba(251,146,60,0.4); }

.attr-list {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--mono); font-size: 11px;
}
.attr-list li {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 12px; padding: 5px 0;
  color: var(--ink-2);
}
.attr-list li span:first-child { color: var(--faint); letter-spacing: 0.04em; }

.evidence-list {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.evidence-list .head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 8px;
}
.evidence-list .head b { color: var(--accent); font-weight: 500; }
.evidence-item {
  display: grid; grid-template-columns: 16px 1fr auto;
  gap: 8px; align-items: start;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.evidence-item:first-of-type { border-top: 0; }
.evidence-item .ic {
  width: 16px; height: 16px;
  border-radius: 3px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--faint);
  font-family: var(--mono); font-size: 8.5px;
}
.evidence-item .body { color: var(--ink-2); line-height: 1.35; font-size: 11.5px; }
.evidence-item .body .src {
  font-family: var(--mono); font-size: 10px; color: var(--faint);
  display: block; margin-top: 2px;
}
.evidence-item .rate {
  font-family: var(--mono); font-size: 10px;
  padding: 1px 5px; border-radius: 2px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--mute);
}

.copilot {
  padding: 12px 14px;
  background:
    radial-gradient(200px 80px at 100% 0%, rgba(129,140,248,0.10), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--line);
}
.copilot .head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 8px;
}
.copilot .head .who { color: var(--accent); }
.copilot .msg {
  font-size: 12px; color: var(--ink-2);
  line-height: 1.5; margin-bottom: 8px;
}
.copilot .msg .cite {
  color: var(--accent); font-family: var(--mono); font-size: 10px;
  border: 1px solid var(--accent-line); border-radius: 2px;
  padding: 0 4px; margin: 0 2px; vertical-align: 1px;
}
.copilot .conf {
  font-family: var(--mono); font-size: 10px;
  color: var(--faint);
}
.copilot .conf b { color: var(--ok); font-weight: 500; }
.copilot .input {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
}
.copilot .input .prompt {
  flex: 1; color: var(--faint); font-size: 11.5px;
  font-family: var(--mono);
}
.copilot .input .key {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--faint); border: 1px solid var(--line);
  padding: 1px 4px; border-radius: 2px;
}

/* ====================================================
   Cards / grids
   ==================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  min-height: 240px;
}
.card .icn {
  width: 36px; height: 36px;
  margin-bottom: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--accent);
  background: var(--surface-2);
}
.card .icn svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--mute); font-size: 14px; margin: 0; }
.card .tags {
  margin-top: auto; padding-top: 18px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.card .num {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--faint); letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ====================================================
   Workflow strip
   ==================================================== */

.flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--surface);
}
.flow .stage {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  position: relative;
  background: var(--surface);
}
.flow .stage:last-child { border-right: 0; }
.flow .stage .num {
  font-family: var(--mono); font-size: 10px;
  color: var(--faint); letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.flow .stage .name {
  font-size: 14.5px; color: var(--ink); font-weight: 500;
  margin-bottom: 4px;
}
.flow .stage .sur {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ====================================================
   Tables
   ==================================================== */

.cloud-tbl {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--surface);
}
.cloud-tbl th, .cloud-tbl td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
  color: var(--ink-2);
}
.cloud-tbl th {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
  background: var(--surface-2);
}
.cloud-tbl td.id {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--faint); width: 50px;
}
.cloud-tbl td.work { color: var(--ink); font-weight: 500; width: 24%; }
.cloud-tbl td.cat {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.04em;
}
.cloud-tbl tr:last-child th, .cloud-tbl tr:last-child td { border-bottom: 0; }

/* ====================================================
   Audience / why / verify
   ==================================================== */

.audience {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}
.audience .cell {
  background: var(--surface);
  padding: 22px;
  min-height: 150px;
}
.audience .cell .num {
  font-family: var(--mono); font-size: 10px;
  color: var(--faint); letter-spacing: 0.1em; margin-bottom: 12px;
}
.audience .cell .who { font-size: 15px; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.audience .cell .desc { font-size: 12.5px; color: var(--mute); }

.verify {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.verify .v {
  background: var(--surface);
  padding: 20px;
}
.verify .v .label {
  font-family: var(--mono); font-size: 10px;
  color: var(--faint); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 8px;
}
.verify .v .val { font-size: 15px; color: var(--ink); font-weight: 500; }
.verify .v .val.mono { font-family: var(--mono); font-size: 13.5px; }
.verify .v .sub {
  font-size: 12px; color: var(--mute); margin-top: 4px;
}

/* ====================================================
   CTA band
   ==================================================== */

.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 36px;
  background:
    radial-gradient(500px 200px at 80% 0%, rgba(129,140,248,0.10), transparent 70%),
    var(--surface);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px; align-items: center;
}
.cta-band h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.cta-band p { color: var(--mute); margin-top: 8px; max-width: 50ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ====================================================
   Footer
   ==================================================== */

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  color: var(--mute);
  font-size: 13.5px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .grid h4 {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 12px; font-weight: 500;
}
.site-footer .links { display: flex; flex-direction: column; gap: 6px; }
.site-footer .links a:hover { color: var(--ink); }
.site-footer .disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px;
  font-size: 12px; color: var(--faint);
  font-family: var(--mono); letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ====================================================
   Subpage hero
   ==================================================== */

.page-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 16px 0 14px; color: var(--ink);
  text-wrap: balance;
}
.page-hero .lede { max-width: 64ch; }

/* ====================================================
   Misc
   ==================================================== */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 20px 22px;
  border-radius: var(--r-3);
  margin: 24px 0;
}
.callout .label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.callout p { color: var(--ink-2); margin: 0; }
.callout p + p { margin-top: 8px; }

hr.rule {
  border: 0; border-top: 1px solid var(--line); margin: 32px 0;
}

/* ====================================================
   Responsive
   ==================================================== */

@media (max-width: 1140px) {
  .hero-head { grid-template-columns: 1fr; gap: 32px; }
  .ws-body { grid-template-columns: 56px 1fr 280px; }
  .cards, .cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .verify { grid-template-columns: repeat(2, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .nav-main { display: none; }
  .ws-body { grid-template-columns: 1fr; }
  .ws-rail { display: none; }
  .ws-detail { border-left: 0; border-top: 1px solid var(--line); }
  .ws-canvas { grid-template-columns: 1fr; }
  .ws-pane { border-right: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  :root { --pad-section: 64px; }
}
@media (max-width: 560px) {
  .cards, .cards.cols-3, .cards.cols-2 { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .verify { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .meta-row { gap: 12px; }
  .container { padding: 0 20px; }
  .brand .builds { display: none; }
  .header-cta .btn-secondary { display: none; }
}

/* v2 alignment v1 */


/* ============================================================
   v2 alignment — bring subpage components up to homepage fidelity
   ============================================================ */

/* refined header chrome */
.site-header { background: rgba(8,12,20,0.78); }
.site-header .container.row { padding: 0 28px; max-width: 1320px; }
.nav-main { gap: 28px; font-size: 13.5px; }
.nav-main a { padding: 6px 0; color: var(--mute); border-bottom: none; }
.nav-main a.active, .nav-main a:hover { color: var(--ink); }
.nav-main a.active { position: relative; }
.nav-main a.active::after { content:""; position:absolute; left:0; right:0; bottom:-22px; height:1px; background: var(--accent); }
.header-cta .btn-secondary { background: var(--surface-2); border-color: var(--line-3); }
.header-cta .btn-primary { background: var(--accent); color: #fff; border-color: rgba(59,130,246,0.6); box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 6px 18px rgba(59,130,246,0.28); }
.header-cta .btn-primary:hover { background: #2563eb; color: #fff; border-color: rgba(59,130,246,0.7); }

/* refined hero */
.page-hero { padding: 80px 0 56px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: transparent; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59,130,246,0.08), transparent 60%); pointer-events:none; }
.page-hero .container { position: relative; max-width: 1080px; }
.page-hero .eyebrow { margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.page-hero .eyebrow .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.page-hero h1 {
  font-family: "Geist","Inter",var(--sans);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 22px;
  text-wrap: balance;
  background: linear-gradient(180deg,#f1f5f9 0%,#94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lede { font-size: 18px; color: var(--mute); max-width: 720px; line-height: 1.55; }

/* refined section heads */
.section-head { max-width: none; margin-bottom: 56px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: end; }
.section-head h2.section-title, .section-head h2 { font-family: "Geist","Inter",var(--sans); font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 18px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lede { color: var(--mute); font-size: 16.5px; max-width: 680px; }
@media (max-width:1100px) { .section-head { grid-template-columns: 1fr; gap: 14px; } }

/* card grid — match homepage .proof tiles */
.cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cards.cards-3 { grid-template-columns: repeat(3,1fr); }
.cards.cards-4 { grid-template-columns: repeat(4,1fr); }
.card { background: var(--surface); padding: 32px 28px; border: none; border-radius: 0; }
.card .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; margin-bottom: 22px; }
.card .icn { margin-bottom: 18px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--accent-2); }
.card .icn svg { width: 18px; height: 18px; }
.card h3 { font-family: "Geist","Inter",var(--sans); font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.card p { font-size: 13.5px; color: var(--mute); line-height: 1.6; margin: 0 0 12px; }
.card .tags { display:flex; flex-wrap:wrap; gap:6px; margin-top: 12px; }
.card .badge, .badge { font-family: var(--mono); font-size: 9.5px; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase; background: var(--raised); border: 1px solid var(--line); color: var(--ink-2); display:inline-flex; align-items:center; gap:5px; }
.badge.person { background: rgba(59,130,246,0.12); color: var(--accent-2); border-color: rgba(59,130,246,0.3); }
.badge.org { background: rgba(16,185,129,0.12); color: #34d399; border-color: rgba(16,185,129,0.3); }
.badge.loc { background: rgba(236,72,153,0.12); color: #f9a8d4; border-color: rgba(236,72,153,0.3); }
.badge.event { background: rgba(245,158,11,0.12); color: var(--warn); border-color: rgba(245,158,11,0.3); }
.badge.vehicle { background: rgba(6,182,212,0.12); color: #67e8f9; border-color: rgba(6,182,212,0.3); }
.badge.comms { background: rgba(168,85,247,0.12); color: #d8b4fe; border-color: rgba(168,85,247,0.3); }
.badge.financial { background: rgba(251,191,36,0.12); color: #fde047; border-color: rgba(251,191,36,0.3); }
.badge.infra { background: rgba(148,163,184,0.12); color: #cbd5e1; border-color: rgba(148,163,184,0.3); }

@media (max-width:1100px){
  .cards, .cards.cards-3, .cards.cards-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:680px){
  .cards, .cards.cards-3, .cards.cards-4 { grid-template-columns: 1fr; }
}

/* footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--faint); }
.site-footer .container { max-width: 1320px; padding: 0 28px; }
.site-footer h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase; margin: 0 0 10px; font-weight: 500; }
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--ink-2); }
.site-footer hr { border:none; border-top: 1px solid var(--line); margin: 32px 0 18px; }
.site-footer .legal { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.04em; display:flex; justify-content:space-between; }

/* tight section padding parity */
section.tight { padding: 64px 0; border-top: 1px solid var(--line); }

/* tables */
table.cloud-tbl, .cloud-tbl table { width:100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.cloud-tbl-wrap { border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.cloud-tbl th, .cloud-tbl td { padding:13px 18px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
.cloud-tbl tr:last-child td { border-bottom:none; }
.cloud-tbl th { font-family: var(--mono); font-size:10px; letter-spacing:0.1em; color: var(--mute); text-transform:uppercase; font-weight:500; background: var(--surface-2); }

/* honest call-out */
.honest { margin-top: 24px; padding: 18px 22px; background: rgba(59,130,246,0.04); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.honest b { color: var(--accent-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 4px; font-weight: 500; }
