/* SnagCell — AI Mission Control · dark observability aesthetic */

:root {
  --bg: #081018;
  --bg-elevated: #0f172a;
  --surface: #111827;
  --surface-2: #1e293b;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --muted-dark: #64748b;
  --primary: #38bdf8;
  --primary-soft: rgba(56, 189, 248, 0.12);
  --secondary: #818cf8;
  --secondary-soft: rgba(129, 140, 248, 0.12);
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --critical: #ef4444;
  --critical-soft: rgba(239, 68, 68, 0.12);
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.28);
  --glow: 0 0 40px rgba(56, 189, 248, 0.08);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-lg: 16px;
  --container-max: 1200px;
  --gutter: clamp(16px, 4vw, 28px);
  --container: min(var(--container-max), calc(100% - 2 * var(--gutter)));
  --site-top-h: 100px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.08), transparent),
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #7dd3fc; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--gutter);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-top-h);
}
.site-shell main { flex: 1; width: 100%; }

.page-content {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

body[data-page="signin"] .site-shell {
  min-height: 100vh;
}
body[data-page="signin"] .auth-page {
  flex: 1;
  min-height: calc(100vh - var(--site-top-h));
}

/* ── Top: ops bar + header ── */
.site-top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }

.announce-bar {
  background: #020617;
  color: rgba(248, 250, 252, 0.88);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.announce-bar a {
  color: var(--primary);
  font-weight: 700;
  margin-left: 6px;
}

.header-ops-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.header-ops-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  flex-wrap: nowrap;
  min-width: 0;
}
.ops-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.ops-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}
.ops-stat {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}
.ops-stat-critical { border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.ops-stat-warn { border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }
.ops-stat-ok { border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.ops-cta { color: var(--primary); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.ops-cta:hover { text-decoration: underline; }

.site-header-auth {
  background: rgba(8, 16, 24, 0.96);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.site-header-auth .header-main { grid-template-columns: 1fr auto; }
.auth-header-link { font-size: 0.88rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.auth-header-link:hover { color: var(--primary); }

.site-header {
  background: rgba(8, 16, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}
.logo-mark svg { width: 22px; height: 22px; }
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-text span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
  justify-content: center;
  min-width: 0;
}
.nav-link {
  padding: 7px 9px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--primary-soft); color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-login {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 8px 10px;
}
.nav-login:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav a, .mobile-nav button {
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

/* ── Typography ── */
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); line-height: 1.15; }
.eyebrow, .section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin-top: 16px; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.workspace-section .container,
.page-body .container,
.page-hero .container,
.is-alt .container {
  width: var(--container);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { margin-top: 10px; color: var(--muted); }
.section-inline-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
  text-align: center;
}

/* ── Buttons ── */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #041018;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(56, 189, 248, 0.35);
}
.btn-sm { padding: 9px 16px; font-size: 0.84rem; }
.btn-full { width: 100%; }
.text-link { font-weight: 700; color: var(--primary); }

/* ── Hero ── */
.hero-section { padding: 56px 0 72px; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; }
.hero-proof {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-proof li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.stream-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
}
.stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.stream-title { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--ink); }

.alert-stream { max-height: 320px; overflow: hidden; }
.stream-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  transition: background 0.3s;
}
.stream-row.stream-enter { animation: streamIn 0.4s ease; }
@keyframes streamIn {
  from { opacity: 0; transform: translateY(-8px); background: var(--primary-soft); }
  to { opacity: 1; transform: translateY(0); }
}
.stream-sev {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stream-critical .stream-sev { color: var(--critical); }
.stream-high .stream-sev { color: #fb923c; }
.stream-medium .stream-sev { color: var(--warn); }
.stream-low .stream-sev { color: var(--muted); }
.stream-row strong { color: var(--ink); font-weight: 600; }
.stream-src { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-dark); }

/* ── Sections ── */
section { padding: 72px 0; }
.is-alt { background: rgba(15, 23, 42, 0.55); border-block: 1px solid var(--border); }
.workspace-section { padding: 56px 0; }
.page-body { padding: 56px 0; }

.page-hero { padding: 48px 0 32px; }
.page-hero-compact { padding: 40px 0 24px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 800px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted-dark); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Engine pipeline ── */
.engine-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(280px, 1.35fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  opacity: 0.7;
  padding: 0 2px;
}
.pipe-in, .pipe-out {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.pipe-in h4, .pipe-out h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.pipe-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pipe-list li {
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink);
  border: 1px solid var(--border);
}
.pipe-queues li { border-left: 3px solid var(--secondary); }
.pipe-mid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}
.engine-core {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--glow);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.engine-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.engine-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}
.engine-tags span {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  line-height: 1.25;
  padding: 4px 4px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
  text-align: center;
  word-break: break-word;
}
.engine-tags span:nth-child(4) { grid-column: 1; }
.engine-tags span:nth-child(5) { grid-column: 2; }

/* ── Chaos / problem grid ── */
.chaos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.chaos-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.chaos-panel-wide { grid-column: 1 / -1; }
.chaos-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Process row ── */
.process-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  min-width: 110px;
}
.step-n {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-arrow { color: var(--muted-dark); font-size: 1.2rem; }

/* ── Capability grid ── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cap-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--glow);
  transform: translateY(-2px);
  color: inherit;
}
.cap-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.cap-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cap-card p { font-size: 0.88rem; color: var(--muted); }

/* ── Teams & integrations ── */
.team-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.team-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: inherit;
  transition: border-color 0.2s;
}
.team-pill:hover { border-color: var(--primary); color: inherit; }
.team-pill strong { display: block; color: var(--ink); margin-bottom: 4px; }
.team-pill span { font-size: 0.82rem; color: var(--muted); }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.logo-row span {
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}

/* ── Command center grid (homepage) ── */
.command-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.command-grid .ui-panel-wide { grid-column: 1 / -1; }
.issue-cell-grid { display: flex; flex-direction: column; gap: 10px; }
.issue-cell-grid .issue-cell { margin-bottom: 0; }
.compact-stream .stream-row { padding: 10px 0; }
.compact-timeline li { padding-bottom: 12px; }

/* ── UI panels ── */
.ui-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ui-panel-highlight { border-color: rgba(56, 189, 248, 0.35); box-shadow: var(--glow); }
.ui-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
.ui-panel-body { padding: 16px; }
.ui-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.ui-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  margin-bottom: 6px;
}
.ui-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ui-list li { font-size: 0.88rem; color: var(--muted); }
.ui-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.ui-table th, .ui-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.ui-table th { color: var(--muted-dark); font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; }
.ui-table td { color: var(--ink); }
.ui-table-wide { font-size: 0.82rem; }

.st-critical, .st-high, .st-medium, .st-low, .st-ok, .st-warn, .st-risk {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.st-critical { background: var(--critical-soft); color: #fca5a5; }
.st-high { background: rgba(251, 146, 60, 0.12); color: #fdba74; }
.st-medium, .st-warn { background: var(--warn-soft); color: #fcd34d; }
.st-low { background: var(--primary-soft); color: var(--primary); }
.st-ok, .st-risk { background: var(--ok-soft); color: #86efac; }

.ui-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  margin-top: 16px;
}
.ui-alert-ok { border-color: rgba(34, 197, 94, 0.35); background: var(--ok-soft); color: #bbf7d0; }
.ui-alert-warn { border-color: rgba(245, 158, 11, 0.35); background: var(--warn-soft); color: #fde68a; }
.ui-alert-info { border-color: rgba(56, 189, 248, 0.35); background: var(--primary-soft); color: #bae6fd; }

/* ── Issue cells ── */
.issue-cell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.cell-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cell-head strong { color: var(--ink); font-size: 0.92rem; }
.cell-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.cell-dup { color: var(--secondary); }
.cell-owner { color: var(--primary); }

/* ── Triptych / capture / classification ── */
.triptych-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.capture-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
.capture-arrow { align-self: center; font-size: 1.5rem; color: var(--primary); }
.raw-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.raw-src {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--secondary);
  display: block;
  margin-bottom: 8px;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.class-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.class-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.class-a, .class-b { font-size: 0.84rem; color: var(--muted); font-style: italic; margin-bottom: 6px; }
.class-result { font-size: 0.82rem; margin-top: 10px; color: var(--ink); }

/* ── Timeline ── */
.resolution-timeline {
  list-style: none;
  position: relative;
  padding-left: 24px;
}
.resolution-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.resolution-timeline li {
  position: relative;
  padding-bottom: 18px;
  display: flex;
  gap: 12px;
}
.tl-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
}
.resolution-timeline li.is-done .tl-dot { background: var(--ok); border-color: var(--ok); }
.resolution-timeline li.is-active .tl-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
.resolution-timeline li strong { display: block; color: var(--ink); font-size: 0.92rem; }
.resolution-timeline li p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.ui-timeline { list-style: none; }
.ui-timeline li { font-size: 0.84rem; padding: 4px 0; color: var(--muted); }
.ui-steps { padding-left: 18px; color: var(--muted); font-size: 0.88rem; }
.ui-steps li { margin-bottom: 6px; }

/* ── RCA / owner / hub ── */
.rca-grid, .owner-rec, .cluster-layout, .summary-fields, .analysis-layer {
  display: grid;
  gap: 16px;
}
.rca-grid { grid-template-columns: repeat(2, 1fr); }
.analysis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.analysis-row span { color: var(--muted); }
.cluster-layout { grid-template-columns: 2fr 1fr 1fr; }
.hub-workspace { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.hub-side { display: flex; flex-direction: column; gap: 12px; }
.summary-fields > div { padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ── Insights ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.insight-list { list-style: none; }
.insight-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.radar-chart { width: 160px; height: 160px; }
.radar-legend { display: flex; gap: 16px; font-size: 0.72rem; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-primary { background: var(--primary); }
.dot-secondary { background: var(--secondary); }
.health-bar, .load-bars > div {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
}
.health-track, .load-track {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.health-fill { height: 100%; background: var(--primary); border-radius: inherit; }
.load-track div { height: 100%; background: var(--secondary); border-radius: inherit; }

/* ── Teams scenarios ── */
.team-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.team-scenario {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.team-scenario h4 { font-size: 0.95rem; margin-bottom: 8px; }
.team-scenario p { font-size: 0.84rem; color: var(--muted); margin-bottom: 10px; }

/* ── Integrations ── */
.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.int-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.int-card h4 { color: var(--ink); margin-bottom: 12px; }
.int-read, .int-write { font-size: 0.84rem; margin-bottom: 8px; color: var(--muted); }
.int-read span, .int-write span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-right: 6px;
}
.signal-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.signal-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.signal-node {
  display: inline-block;
  margin: 4px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--ink);
}
.signal-bridge {
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 180px;
}
.signal-bridge span { display: block; font-weight: 700; color: var(--ink); }
.signal-bridge p { font-size: 0.78rem; margin-top: 6px; color: var(--muted); }

/* ── Security ── */
.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.control-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.control-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.control-card p { font-size: 0.84rem; color: var(--muted); }
.spec-callout {
  padding: 20px 24px;
  background: var(--primary-soft);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius);
  color: #bae6fd;
  font-size: 0.92rem;
}
.spec-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-pill {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.plan-card.is-featured {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--glow);
}
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #041018;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.plan-card > p { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.plan-price span { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.plan-features {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-features li {
  font-size: 0.86rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.pricing-compare-table { margin-top: 8px; }

/* ── About ── */
.about-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.content-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.content-panel h2 { font-size: 1.35rem; margin: 10px 0 14px; }
.content-panel h3 { font-size: 1.05rem; color: var(--ink); }
.content-panel p { color: var(--muted); margin-bottom: 12px; font-size: 0.92rem; }
.about-list { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.about-aside .content-panel { margin-bottom: 12px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.stat-card span { font-size: 0.82rem; color: var(--muted); }
.about-cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.about-cta-panel h2 { font-size: 1.35rem; }
.about-cta-panel p { color: var(--muted); margin-top: 6px; }

/* ── CTA ── */
.section-cta { padding: 64px 0; }
.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow);
}
.cta-panel h2 { font-size: 1.5rem; max-width: 520px; }
.cta-panel p { color: var(--muted); margin-top: 8px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: #040a10;
  padding: 56px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(6, 1fr);
  gap: 24px;
}
.footer-brand p { margin-top: 14px; font-size: 0.88rem; color: var(--muted); max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted-dark);
}

/* ── Modals ── */
.modal-open { overflow: hidden; }
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.75);
  backdrop-filter: blur(4px);
}
.site-modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.site-modal-wide { width: min(720px, 100%); }
.site-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.site-modal h2 { font-size: 1.3rem; margin-bottom: 8px; }
.site-modal-lead { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
}
.form-success, .capture-result {
  margin-top: 14px;
  padding: 12px;
  background: var(--ok-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  font-size: 0.86rem;
  color: #bbf7d0;
}
.capture-result p { margin-bottom: 6px; color: var(--muted); }
.capture-result strong { color: var(--ink); }

.demo-workspace {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.demo-col { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.demo-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); margin-bottom: 10px; }
.demo-cell { font-size: 0.82rem; padding: 8px; background: var(--surface); border-radius: 6px; margin-bottom: 6px; color: var(--ink); }
.demo-tag { display: inline-block; font-size: 0.72rem; padding: 4px 8px; background: var(--primary-soft); border-radius: 4px; margin: 3px; color: var(--primary); }
.demo-arrow { color: var(--primary); font-size: 1.2rem; }
.demo-timeline { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-timeline span { font-size: 0.68rem; padding: 4px 8px; background: var(--surface); border-radius: 4px; color: var(--muted); }

.is-running { opacity: 0.6; pointer-events: none; }

/* ── Auth (SignalTrx-style — shared header + logo) ── */
.auth-page {
  width: 100%;
  min-height: calc(100vh - var(--site-top-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter);
}
.auth-wrap { width: min(420px, 100%); }
.auth-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-back:hover { color: var(--primary); }
.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 8px; color: var(--ink); }
.auth-card > p { color: var(--muted); margin-bottom: 24px; font-size: 0.92rem; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
}
.auth-card .auth-footer { margin-top: 20px; font-size: 0.88rem; color: var(--muted); text-align: center; }

/* legacy auth selectors kept for compatibility */
.auth-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
}
.auth-sub { color: var(--muted); margin-bottom: 24px; font-size: 0.92rem; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-footer { margin-top: 20px; font-size: 0.88rem; color: var(--muted); text-align: center; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .triptych-mock { grid-template-columns: 1fr; }
  .hub-workspace { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .engine-pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { display: none; }
  .pipe-mid { justify-content: center; }
  .cluster-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --site-top-h: 64px; }
  .header-ops-bar { display: none; }
  .hero-split { grid-template-columns: 1fr; }
  .cap-grid, .pricing-grid, .team-row, .command-grid { grid-template-columns: 1fr; }
  .chaos-grid { grid-template-columns: 1fr; }
  .engine-pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { display: none; }
  .nav-links, .header-actions .nav-login, .header-actions .btn { display: none; }
  .header-main { grid-template-columns: 1fr auto; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .capture-split { grid-template-columns: 1fr; }
  .capture-arrow { display: none; }
  .signal-flow { grid-template-columns: 1fr; }
  .demo-workspace { grid-template-columns: 1fr; }
  .demo-arrow { display: none; }
  .rca-grid { grid-template-columns: 1fr; }
  .about-split, .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cap-grid, .pricing-grid, .team-row, .chaos-grid, .insights-grid, .command-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { padding: 24px; flex-direction: column; align-items: flex-start; }
  .process-row { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); }
}
