/* AISEC — Rose Pine Dawn-inspired palette
   Light cream surfaces, dark ink terminal cards. */

:root {
  /* Light surface */
  --cream: #faf4ed;
  --cream-2: #f4ede4;
  --cream-3: #ede4d3;
  --ink: #1f1d2e;
  --ink-soft: #4a456e;
  --ink-muted: #797593;
  --ink-faint: #b4afc4;
  --rule: #e6dfd1;
  --rule-strong: #d8cfbc;

  /* Brand accents (single chroma family) */
  --teal: #286983;
  --teal-2: #56949f;
  --rose: #b4637a;
  --gold: #ea9d34;
  --pine: #56949f;
  --iris: #907aa9;

  /* Severity */
  --sev-critical: #b4637a;
  --sev-high: #d7827e;
  --sev-medium: #ea9d34;
  --sev-low: #56949f;
  --sev-info: #797593;

  /* Dark terminal */
  --term-bg: #191724;
  --term-bg-2: #1f1d2e;
  --term-bg-3: #26233a;
  --term-fg: #e0def4;
  --term-fg-dim: #908caa;
  --term-fg-faint: #6e6a86;
  --term-rule: #2a273f;
  --term-green: #9ccfd8;
  --term-amber: #f6c177;
  --term-red: #eb6f92;
  --term-iris: #c4a7e7;
  --term-rose: #ebbcba;

  --radius: 6px;
  --radius-lg: 10px;

  --container: 1200px;

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

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

/* Wordmark */
.wordmark {
  font-family: 'JetBrains Mono', var(--mono);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 22px;
  color: #9ccfd8;
}

/* ─── STATUS BAR (removed) ───────────────────────────── */
.statusbar-removed {
  display: none;
  background: var(--ink);
  color: rgba(250, 244, 237, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.statusbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
}
.sb-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sb-status { color: rgba(250, 244, 237, 0.85); }
.sb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9ccfd8;
  box-shadow: 0 0 6px rgba(156,207,216,0.7);
  animation: sb-pulse 2.4s ease-in-out infinite;
}
.sb-clock { color: rgba(250, 244, 237, 0.6); font-variant-numeric: tabular-nums; }
@keyframes sb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── NAV ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 237, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--teal); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 5px 10px;
  cursor: pointer;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.lang button.active { background: var(--ink); color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
  position: relative;
  /* The signature: a hard offset "sticker" shadow. No blur — like a stamp. */
  box-shadow: 3px 3px 0 0 var(--ink);
  --btn-shadow-color: var(--ink);
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 var(--btn-shadow-color);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--btn-shadow-color);
}

/* Solid family — all share ink fill + cream text. The shadow colour
   carries the semantic role; cards stack identically, only the
   offset-stamp colour distinguishes them. */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-terminal {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary   { --btn-shadow-color: var(--teal); }
.btn-secondary { --btn-shadow-color: var(--ink-faint); }
.btn-success   { --btn-shadow-color: var(--teal-2); }
.btn-danger    { --btn-shadow-color: var(--sev-critical); }
.btn-terminal  { --btn-shadow-color: var(--gold); }
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-terminal { box-shadow: 3px 3px 0 0 var(--btn-shadow-color); }

/* Ghost — the inverted twin: cream fill, ink text, ink shadow.
   Same form factor, lighter weight on the page. */
.btn-ghost {
  background: var(--cream);
  color: var(--ink);
  --btn-shadow-color: var(--ink);
}

.btn-sm { padding: 6px 12px; font-size: 11px; gap: 6px; }
.btn-lg { padding: 13px 22px; font-size: 14px; }
.btn-icon { padding: 9px; aspect-ratio: 1 / 1; gap: 0; }
.btn-icon.btn-sm { padding: 6px; }
.btn-icon.btn-lg { padding: 12px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn[disabled],
.btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  filter: saturate(0.6);
}
.btn[disabled]::after,
.btn.is-disabled::after { opacity: 0.3; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  color: var(--cream);
  animation: btn-spin 0.7s linear infinite;
}
.btn-ghost.is-loading::before { color: var(--ink); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* mono tag prefix — fits the terminal voice */
.btn .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(246,239,224,0.14);
  color: var(--cream);
  text-transform: uppercase;
}
.btn-ghost .tag { background: var(--cream-3); color: var(--ink-soft); }
.btn-terminal .tag { background: rgba(234,157,52,0.18); color: var(--gold); }

.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(2px); }
.btn .kbd {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid currentColor;
  opacity: 0.6;
  margin-left: 2px;
}

/* ─── SECTION SHELL ─────────────────────────────────── */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
}
.section.tight { padding: 72px 0; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--teal);
}
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); margin: 0; }
h1 { font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: 42px; line-height: 1.1; letter-spacing: -0.015em; font-weight: 600; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p  { color: var(--ink-soft); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; line-height: 1.5; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  padding: 72px 0 96px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(86,148,159,0.10), transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}
@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
}
.hero-col-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
  background: rgba(255,255,255,0.5);
}
.hero-tag .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 0 rgba(86,148,159,0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(86,148,159,0.6); }
  100% { box-shadow: 0 0 0 8px rgba(86,148,159,0); }
}
.hero-headline {
  margin: 0 0 24px;
  max-width: 18ch;
  font-size: 54px;
  text-align: left;
}
.hero h1 .accent { color: var(--teal); }
.hero-lede {
  max-width: 50ch;
  margin: 0 0 32px;
  text-align: left;
}
.hero-cta-row { justify-content: flex-start; }
.hero-meta {
  margin-top: 24px;
  margin-bottom: 0;
  justify-content: flex-start;
}

/* ─── HERO RIGHT-COLUMN STACK ───────────────────────── */
.hero-col-card {
  position: relative;
  min-width: 0;
}

/* ─── HERO TERMINAL MOCK ────────────────────────────── */
.hero-term {
  background: var(--term-bg);
  border: 1px solid var(--term-rule);
  border-radius: var(--radius);
  font-family: var(--mono);
  color: var(--term-fg-dim);
  font-size: 11.5px;
  line-height: 1.55;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 16px 40px -28px rgba(31,29,46,0.4);
}
.hero-term .ht-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--term-rule);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--term-fg-faint);
  background: rgba(255,255,255,0.015);
}
.hero-term .ht-tag { color: var(--term-amber); }
.hero-term .ht-host { color: var(--term-fg-faint); }
.hero-term .ht-stream {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-term .ht-line {
  display: grid;
  grid-template-columns: 60px 60px 1fr;
  gap: 10px;
  align-items: baseline;
}
.hero-term .ht-t { color: var(--term-fg-faint); }
.hero-term .ht-c {
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.hero-term .ht-c-recon { color: var(--term-blue, #9ccfd8); }
.hero-term .ht-c-exploit { color: var(--term-amber); }
.hero-term .ht-c-chain { color: var(--term-red); }
.hero-term .ht-m { color: var(--term-fg); }
.hero-term .ht-line-hit .ht-m {
  color: var(--term-amber);
}
.hero-term .ht-cursor {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-term .ht-prompt {
  color: var(--term-amber);
}
.hero-term .ht-blink {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--term-fg-dim);
  animation: ht-blink 1s steps(2) infinite;
}
@keyframes ht-blink {
  50% { opacity: 0; }
}

/* ─── HERO FINDING CARD ─────────────────────────────── */
.hero-finding {
  position: absolute;
  left: -32px;
  bottom: -40px;
  width: 64%;
  min-width: 320px;
  aspect-ratio: 16 / 9;
  z-index: 2;
}
.hf-frame {
  position: relative;
  background: var(--term-bg);
  border: 1px solid var(--term-rule);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: var(--term-fg);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 40px 80px -40px rgba(31,29,46,0.65),
    0 20px 40px -20px rgba(31,29,46,0.45);
}
.hf-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--term-amber);
  opacity: 0.55;
}
.hf-corner-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hf-corner-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hf-corner-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hf-corner-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hf-head-left { display: flex; gap: 10px; align-items: center; }
.hf-sev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(235,111,146,0.18);
  color: #f5b8c8;
  border: 1px solid rgba(235,111,146,0.45);
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 11px;
}
.hf-sev-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--term-red);
  box-shadow: 0 0 8px rgba(235,111,146,0.7);
  animation: hf-pulse 1.6s ease-in-out infinite;
}
@keyframes hf-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(235,111,146,0.5); }
  50%      { box-shadow: 0 0 14px rgba(235,111,146,0.95); }
}
.hf-cvss {
  color: var(--term-fg-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.hf-id {
  color: var(--term-fg-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hf-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--term-fg);
  margin: 0 0 12px;
  text-wrap: pretty;
}

.hf-chain-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--term-fg-faint);
  margin-bottom: 6px;
  text-align: left;
}
.hf-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 3px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--term-rule);
  margin-bottom: 10px;
}
.hf-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px 2px 3px;
  background: var(--term-bg-2);
  border: 1px solid var(--term-rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--term-fg-dim);
  white-space: nowrap;
}
.hf-step-n {
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--term-amber);
  background: rgba(234,157,52,0.15);
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
}
.hf-step-name { color: var(--term-fg); }
.hf-arrow {
  color: var(--term-amber);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 9px;
}

.hf-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hf-meta {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--term-fg-dim);
  letter-spacing: 0.06em;
}
.hf-cta {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--term-green);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}
.hf-cta:hover { color: #fff; }
.hf-cta:hover .arr { transform: translateX(3px); }
.hf-cta .arr { transition: transform 0.15s ease; }

@media (max-width: 720px) {
  .hero-finding { margin-top: 40px; }
  .hf-frame { padding: 24px 22px; border-radius: var(--radius); }
  .hf-title { font-size: 19px; margin-bottom: 22px; }
  .hf-step { font-size: 11px; }
  .hf-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* legacy — kept harmless in case some build still references */
.hero-terminal, .finding-card { display: none; }
.hero h1 .strike {
  position: relative;
  color: var(--ink-muted);
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: 54%;
  height: 3px;
  background: var(--rose);
  transform: rotate(-2deg);
}
.hero-cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.hero-meta .dot { color: var(--teal); }

/* ─── TERMINAL CARD ─────────────────────────────────── */
.term {
  background: var(--term-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--term-rule);
  font-family: var(--mono);
  color: var(--term-fg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -30px rgba(31,29,46,0.45),
    0 8px 18px -8px rgba(31,29,46,0.25);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--term-bg-2);
  border-bottom: 1px solid var(--term-rule);
}
.term-procmeta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--term-fg-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.term-procmeta .proc-k { color: var(--term-fg-faint); }
.term-procmeta .proc-v { color: var(--term-fg-dim); }
.term-procmeta .proc-running {
  color: var(--term-green);
  position: relative;
  padding-left: 10px;
}
.term-procmeta .proc-running::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--term-green);
  box-shadow: 0 0 6px rgba(156,207,216,0.7);
  animation: blink 1.4s steps(2) infinite;
}
.term-procmeta .proc-name { color: var(--term-iris); }
.term-procmeta .proc-target { color: var(--term-fg); }
.term-procmeta .proc-sep { color: var(--term-fg-faint); margin: 0 8px; }
.term-title {
  font-size: 11px;
  color: var(--term-fg-dim);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.term-title .sep { color: var(--term-fg-faint); margin: 0 8px; }
.term-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--term-fg-faint);
  display: flex;
  gap: 12px;
  align-items: center;
}
.term-meta .live::before {
  content: "●";
  color: var(--term-green);
  margin-right: 6px;
  animation: blink 1.4s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

.term-body {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.55;
  /* Fixed height so the card never reflows as lines accumulate.
     Lines are anchored to the bottom (flex-end) and old ones clip off the top. */
  height: 420px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* row gap restores the breathing room that block-flow line-height used to give
     before we switched to flex layout. */
  row-gap: 5px;
}
.term-body::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(var(--term-bg), transparent);
  pointer-events: none;
  z-index: 1;
}
/* Static preview (design-system page): anchor lines to the top so the
   window never shows empty headroom when the feed isn't ticking. */
.term-body--static {
  justify-content: flex-start;
}
.term-body--static::after { display: none; }
.log-line {
  display: grid;
  grid-template-columns: 70px 70px 1fr;
  gap: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Lock vertical size so flex column never squashes lines (which would let
     20px line-height text bleed into neighbouring rows). */
  flex-shrink: 0;
  min-height: 20px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.log-time { color: var(--term-fg-faint); }
.log-tag {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  align-self: center;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--term-bg-3);
  color: var(--term-fg-dim);
  text-align: center;
  height: 18px;
  line-height: 16px;
}
.log-tag.recon  { color: var(--term-green); }
.log-tag.probe  { color: var(--term-iris); }
.log-tag.chain  { color: var(--term-amber); }
.log-tag.poc    { color: var(--term-red); }
.log-tag.info   { color: var(--term-fg-dim); }
.log-msg .green { color: var(--term-green); }
.log-msg .amber { color: var(--term-amber); }
.log-msg .red   { color: var(--term-red); }
.log-msg .iris  { color: var(--term-iris); }
.log-msg .dim   { color: var(--term-fg-dim); }
.log-msg .path  { color: var(--term-rose); }

.term-cursor::after {
  content: "▋";
  color: var(--term-green);
  margin-left: 6px;
  animation: blink 1s steps(2) infinite;
}

/* ─── GAP (yearly vs aisec) ──────────────────────────── */
.gap-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  background: var(--term-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--term-rule);
  padding: 48px 40px;
  color: var(--term-fg);
}
.gap-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.gap-side-head { text-align: center; }
.gap-side-name {
  font-family: 'JetBrains Mono', var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e0def4;
  font-weight: 600;
}
.gap-side-meta {
  font-family: 'JetBrains Mono', var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(224,222,244,0.45);
  margin-top: 6px;
}
.gap-canvas {
  width: 100%;
  aspect-ratio: 73 / 5;
  background: var(--term-bg-2);
  border: 1px solid var(--term-rule);
  border-radius: 8px;
  position: relative;
}
.gap-canvas-yearly {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1.4%;
}
.gap-dot {
  width: 1.2%;
  aspect-ratio: 1 / 1;
  background: #ea9d34;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(234,157,52,0.7);
}
.gap-canvas-aisec {
  display: grid;
  grid-template-columns: repeat(73, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 2px;
  padding: 6px;
}
.gap-cell {
  background: linear-gradient(180deg, #56949f, #286983);
  border-radius: 1px;
  opacity: 0.95;
}
.gap-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
}
.gap-num-value {
  font-weight: 700;
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.gap-num-yearly .gap-num-value { color: #ea9d34; }
.gap-num-aisec .gap-num-value { color: #9ccfd8; }
.gap-num-unit {
  font-family: 'JetBrains Mono', var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224,222,244,0.6);
}
.gap-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
}
.gap-vs-line {
  flex: 1;
  width: 1px;
  background: var(--term-rule);
  min-height: 60px;
}
.gap-vs-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(224,222,244,0.55);
  font-style: italic;
}
.gap-caption {
  margin-top: 24px;
  text-align: center;
  font-family: 'JetBrains Mono', var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 880px) {
  .gap-wrap { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .gap-vs { flex-direction: row; padding: 0; }
  .gap-vs-line { width: auto; height: 1px; min-height: 0; min-width: 60px; }
  .gap-num-value { font-size: 48px; }
}

/* ─── FOUNDER QUOTES ────────────────────────────────── */
.section-founders { background: var(--cream); }
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .founders-grid { grid-template-columns: 1fr; }
}
.founder-quote {
  margin: 0;
  padding: 28px 26px 24px;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.founder-body {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  quotes: "\201C" "\201D";
}
.founder-body::before {
  content: open-quote;
  margin-right: 2px;
  color: var(--teal);
  opacity: 0.55;
}
.founder-body::after {
  content: close-quote;
  margin-left: 2px;
  color: var(--teal);
  opacity: 0.55;
}
.founder-attr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 4px;
}
.founder-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule-strong);
}
.founder-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.founder-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.founder-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

/* ─── PRODUCT BLOCKS ────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.product-feats {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.product-feats li > i {
  color: var(--teal);
  font-size: 14px;
  line-height: 1.45;
  flex-shrink: 0;
  margin-top: 1px;
}
.product-card .ix {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.product-card .ix-label { display: inline-flex; align-items: center; gap: 10px; }
.product-card h3 { line-height: 1.25; margin-top: 4px; }
.product-card p { margin: 0; line-height: 1.55; }
.product-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: -2px;
  opacity: 0.95;
}
.product-card .ix {
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}
.product-card h3 { color: var(--ink); }
.product-card p { color: var(--ink-soft); font-size: 14px; }
.product-card .demo {
  background: var(--term-bg-2);
  border: 1px solid var(--term-rule);
  border-radius: 6px;
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--term-fg-dim);
  flex: 1;
}
.product-card .demo .k { color: var(--term-iris); }
.product-card .demo .v { color: var(--term-green); }
.product-card .demo .a { color: var(--term-amber); }
.product-card .demo .r { color: var(--term-red); }
.product-card .feat {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--term-fg-dim);
  display: grid;
  gap: 6px;
}
.product-card .feat li::before {
  content: "›";
  color: var(--term-green);
  margin-right: 8px;
}
.product-card-shield {
  border: 1px solid rgba(180,99,122,0.45) !important;
  box-shadow: 0 0 0 1px rgba(180,99,122,0.25), 0 22px 60px -28px rgba(180,99,122,0.45);
}
.product-card-shield .ix { color: #d98aa3 !important; }
.product-card .card-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--rose);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}
.cadence-toggle {
  display: inline-flex;
  border: 1px solid var(--term-rule);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
  align-self: flex-start;
}
.cadence-toggle button {
  background: transparent;
  border: 0;
  color: var(--term-fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
}
.cadence-toggle button.active { background: var(--term-bg-3); color: var(--term-green); }

/* ─── STACK ─────────────────────────────────────────── */
.stack-flow-wrap {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding: 22px 0;
  background: var(--term-bg);
  border-top: 1px solid var(--term-rule);
  border-bottom: 1px solid var(--term-rule);
}
.stack-flow-wrap::before,
.stack-flow-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 96px;
  z-index: 2;
  pointer-events: none;
}
.stack-flow-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--term-bg), transparent);
}
.stack-flow-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--term-bg), transparent);
}
.stack-flow {
  overflow: hidden;
  width: 100%;
}
.stack-flow-track {
  display: inline-flex;
  gap: 10px;
  white-space: nowrap;
  animation: stack-flow-anim linear infinite;
  will-change: transform;
}
@keyframes stack-flow-anim {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / 3)); }
}
.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  background: var(--term-bg-2);
  border: 1px solid var(--term-rule);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--term-fg-dim);
  flex-shrink: 0;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.stack-chip:hover {
  color: var(--term-fg);
  border-color: var(--term-fg-faint);
  background: var(--term-bg-3);
}
.stack-chip-glyph {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.05);
}
.stack-chip-glyph-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--term-fg-faint);
  background: rgba(86,148,159,0.18);
  border-radius: 3px;
  font-weight: 700;
  padding: 0 4px;
  width: auto;
  min-width: 22px;
}
.stack-chip-name {
  color: var(--term-fg);
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (prefers-reduced-motion: reduce) {
  .stack-flow-track { animation: none; }
}
  border: 1px solid var(--term-rule);
  padding: 28px 32px;
  color: var(--term-fg);
  font-family: var(--mono);
}
.stack-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.stack-cat .label {
  font-size: 11px;
  color: var(--term-fg-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--term-rule);
  padding-bottom: 6px;
}
.stack-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-cat li {
  font-size: 12px;
  color: var(--term-fg-dim);
  background: var(--term-bg-2);
  border: 1px solid var(--term-rule);
  border-radius: 3px;
  padding: 3px 8px;
}
.stack-cat li:hover { color: var(--term-fg); border-color: var(--term-fg-faint); }

/* ─── REPORTS / INTEGRATIONS ────────────────────────── */
.reports-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.report-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.report-card.dark {
  background: var(--term-bg);
  border-color: var(--term-rule);
  color: var(--term-fg);
}
.report-card h3 { margin-bottom: 8px; }
.report-card.dark h3 { color: var(--term-fg); }
.report-preview {
  margin-top: 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  padding: 18px 20px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-family: var(--mono);
}
.report-preview h4 {
  font-family: var(--sans);
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-preview h4 .badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--rose);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
}
.report-preview .meta { color: var(--ink-muted); font-size: 10px; margin-bottom: 10px; }
.report-preview hr { border: 0; border-top: 1px solid var(--rule); margin: 10px 0; }

.integrations-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.integration {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--term-bg-2);
  border: 1px solid var(--term-rule);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--term-fg-dim);
}
.integration .icon,
.integration .integration-icon {
  width: 22px; height: 22px;
  border: 1px solid var(--term-rule);
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 13px;
  line-height: 1;
  color: var(--term-green);
  background: var(--term-bg);
  flex-shrink: 0;
}
.integration .label { color: var(--term-fg); }
.integration .right { margin-left: auto; color: var(--term-fg-faint); font-size: 11px; }

/* ─── PRICING ───────────────────────────────────────── */
.pricing-section { background: var(--cream); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.tier {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tier.featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.tier .tname {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tier.featured .tname { color: var(--term-amber); }
.tier .price { display: flex; align-items: baseline; gap: 4px; }
.tier .price .num {
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tier .price .per {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.tier.featured .price .per { color: var(--term-fg-dim); }
.tier .desc { font-size: 13px; color: var(--ink-muted); min-height: 36px; }
.tier.featured .desc { color: var(--term-fg-dim); }
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.tier li { display: flex; gap: 10px; align-items: flex-start; }
.tier li::before {
  content: "+";
  color: var(--teal);
  font-family: var(--mono);
  flex-shrink: 0;
  margin-top: 1px;
}
.tier.featured li::before { color: var(--term-amber); }
.tier .cta { margin-top: auto; }
.tier .cta .btn { width: 100%; justify-content: center; }
.tier .badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--term-amber);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
}
.tier { position: relative; }

/* ─── COMPLIANCE ────────────────────────────────────── */
.compliance-section { background: var(--cream-2); }
.compliance-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.compliance-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--cream);
}
.compliance-card .name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.compliance-card .desc {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.45;
}
.compliance-card .controls {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

/* ─── FINAL CTA / FOOTER ────────────────────────────── */
.final-cta {
  background: var(--term-bg);
  color: var(--term-fg);
  padding: 96px 0;
  border-bottom: 1px solid var(--term-rule);
  text-align: center;
}
.final-cta h2 { color: var(--term-fg); max-width: 720px; margin: 0 auto 16px; }
.final-cta p { color: var(--term-fg-dim); max-width: 560px; margin: 0 auto 32px; }
.final-cta .btn-primary { background: var(--term-amber); color: var(--term-bg); }
.final-cta .btn-primary:hover { background: #ffd089; }
/* Stamp shadow needs to be visible on dark term-bg — swap to a light cream offset. */
.final-cta .btn { border-color: var(--term-fg); --btn-shadow-color: var(--term-fg); box-shadow: 3px 3px 0 0 var(--term-fg); }
.final-cta .btn-primary { --btn-shadow-color: var(--term-fg); box-shadow: 3px 3px 0 0 var(--term-fg); }
/* Ghost on dark bg keeps cream fill + ink text — full punch. */

footer {
  background: var(--term-bg-2);
  color: var(--term-fg-dim);
  padding: 56px 0 36px;
  font-family: var(--mono);
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h5 {
  font-family: var(--mono);
  color: var(--term-fg-faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid li a:hover { color: var(--term-fg); }
.footer-bot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--term-rule);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--term-fg-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── COUNTERS ──────────────────────────────────────── */
.counter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--term-rule);
  border-radius: var(--radius-lg);
  background: var(--term-bg);
  overflow: hidden;
}
.counter {
  padding: 24px 24px;
  border-right: 1px solid var(--term-rule);
  font-family: var(--mono);
  color: var(--term-fg);
}
.counter:last-child { border-right: 0; }
.counter .num {
  font-size: 32px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: -0.02em;
}
.counter .num .unit { color: var(--term-fg-dim); font-size: 18px; margin-left: 4px; }
.counter .label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--term-fg-dim);
}
.counter .delta { color: var(--term-green); font-size: 11px; margin-top: 4px; }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 720px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .product-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .product-card { min-height: 0; }
  .stack-cats { grid-template-columns: repeat(2, 1fr); }
  .reports-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .compliance-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .counter-row { grid-template-columns: 1fr 1fr; }
  .counter:nth-child(2) { border-right: 0; }
  .counter:nth-child(1), .counter:nth-child(2) { border-bottom: 1px solid var(--term-rule); }
  .nav-links { display: none; }
  .finding-card { margin-left: 16px; margin-right: 0; }
  .dial-wrap { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  h1 { font-size: 36px; }
  .container { padding: 0 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .compliance-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dial-wrap { padding: 20px; }
  .stack-cats { grid-template-columns: 1fr; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ─── SEVERITY PRIMITIVES (shared) ─────────────────────
   Canonical dot + badge for severity. Used by design-system,
   projects listing, findings/issues listings, run.html, etc.
   ----------------------------------------------------- */
.sev-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sev-dot.sm { width: 6px; height: 6px; }
.sev-dot.lg { width: 10px; height: 10px; }
.sev-dot.crit, .sev-dot.critical { background: var(--sev-critical); }
.sev-dot.high                    { background: var(--sev-high); }
.sev-dot.med,  .sev-dot.medium   { background: var(--sev-medium); }
.sev-dot.low                     { background: var(--sev-low); }
.sev-dot.info                    { background: var(--sev-info); }
.sev-dot.glow.crit { box-shadow: 0 0 8px rgba(180,99,122,0.6); }
.sev-dot.glow.high { box-shadow: 0 0 8px rgba(215,130,126,0.5); }
.sev-dot.glow.med  { box-shadow: 0 0 8px rgba(234,157,52,0.5); }
.sev-dot.glow.low  { box-shadow: 0 0 8px rgba(86,148,159,0.5); }

.sev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.sev-badge.is-button {
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 10px;
  color: var(--ink-muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.sev-badge.is-button:hover { color: var(--ink); }
.sev-badge.is-button.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Compact mono chip — meta/cadence/tag.
   Canonical small uppercase badge used in cards & specimens. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--cream-3);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.chip.xs { font-size: 9px; padding: 2px 6px; letter-spacing: 0.1em; }
.chip.solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip.ghost { background: transparent; }

/* Utility */
.muted { color: var(--ink-muted); }
.row { display: flex; align-items: center; gap: 12px; }
.spaced { letter-spacing: 0.04em; }

/* ─── HATCH SURFACE ───────────────────────────────────
   Diagonal hatch over a paper tint. Use to flag "not real
   content yet": preview frames, paused/onboarding cards,
   empty-state placeholders. Always paired with a border. */
.hatch {
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(31,29,46,0.025) 11px 12px),
    var(--cream-2);
}
.hatch-strong {
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(31,29,46,0.05) 9px 10px),
    var(--cream-2);
}
.hatch-dark {
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(255,255,255,0.025) 11px 12px),
    var(--term-bg);
}

/* ─── ACTIVITY TIMELINE ─────────────────────────────── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 720px;
  position: relative;
}
.tl-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  position: relative;
}
.tl-row:last-child { border-bottom: 0; }
.tl-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
/* continuous vertical rail through every row */
.tl-rail::before {
  content: "";
  position: absolute;
  top: -14px; bottom: -14px;
  left: 50%;
  width: 1px;
  background: var(--rule-strong);
}
.tl-row:first-child .tl-rail::before { top: 8px; }
.tl-row:last-child  .tl-rail::before { bottom: calc(100% - 8px); }
.tl-dot {
  position: relative;
  width: 9px; height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--ink-faint);
  z-index: 1;
}
.tl-row[data-sev="critical"] .tl-dot { background: var(--sev-critical); box-shadow: 0 0 0 3px rgba(180,99,122,0.18); }
.tl-row[data-sev="high"]     .tl-dot { background: var(--sev-high);     box-shadow: 0 0 0 3px rgba(215,130,126,0.18); }
.tl-row[data-sev="medium"]   .tl-dot { background: var(--sev-medium);   box-shadow: 0 0 0 3px rgba(234,157,52,0.18); }
.tl-row[data-sev="low"]      .tl-dot { background: var(--sev-low);      box-shadow: 0 0 0 3px rgba(86,148,159,0.18); }
.tl-row[data-sev="ok"]       .tl-dot { background: #56949f;             box-shadow: 0 0 0 3px rgba(86,148,159,0.18); }
.tl-row[data-sev="fail"]     .tl-dot { background: var(--rose);         box-shadow: 0 0 0 3px rgba(180,99,122,0.18); }
.tl-row[data-sev="info"]     .tl-dot { background: var(--ink-faint);    box-shadow: 0 0 0 3px rgba(180,175,196,0.22); }

.tl-body { min-width: 0; }
.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.tl-verb {
  font-weight: 600;
  color: var(--ink);
}
.tl-row[data-sev="critical"] .tl-verb { color: var(--sev-critical); }
.tl-row[data-sev="fail"]     .tl-verb { color: var(--rose); }
.tl-target { color: var(--ink-soft); }
.tl-target code,
.tl-meta   code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--cream-3);
  padding: 1px 5px;
  border-radius: 3px;
}
.tl-time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.tl-meta {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tl-meta em { font-style: normal; color: var(--ink-soft); }
.tl-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: transparent;
}
.tl-pill.sev-critical { color: var(--sev-critical); background: rgba(180,99,122,0.08); }
.tl-pill.sev-high     { color: var(--sev-high);     background: rgba(215,130,126,0.10); }
.tl-pill.sev-medium   { color: var(--sev-medium);   background: rgba(234,157,52,0.10); }
.tl-pill.sev-low      { color: var(--sev-low);      background: rgba(86,148,159,0.10); }

/* dark terminal context (if ever embedded on dark) */
.pv.dark .timeline .tl-row { border-bottom-color: rgba(110,106,134,0.25); }
.pv.dark .tl-rail::before { background: rgba(110,106,134,0.4); }
.pv.dark .tl-head, .pv.dark .tl-verb { color: var(--term-fg); }
.pv.dark .tl-target { color: var(--term-fg-dim); }
.pv.dark .tl-target code, .pv.dark .tl-meta code { background: rgba(110,106,134,0.15); color: var(--term-fg); }
.pv.dark .tl-meta, .pv.dark .tl-time { color: var(--term-fg-faint); }

/* ─── SENTINEL ──────────────────────────────────────── */
.sentinel-section .section-head { max-width: 760px; }
.sent-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 40px;
  align-items: start;
  margin-top: 56px;
}
@media (max-width: 980px) {
  .sent-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* LEFT — feature list */
.sent-feat {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}
.sent-feat li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.sent-feat-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.sent-feat-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sent-feat-t {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.sent-feat-d {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.sent-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* RIGHT — dark panel stack */
.sent-right {
  display: grid;
  gap: 16px;
}

.sent-panel {
  background: var(--term-bg);
  border: 1px solid var(--term-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--term-fg);
  font-family: var(--mono);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -30px rgba(31,29,46,0.45),
    0 8px 18px -8px rgba(31,29,46,0.25);
}
.sent-panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--term-bg-2);
  border-bottom: 1px solid var(--term-rule);
}
.sent-panel-title {
  font-size: 11px;
  color: var(--term-fg-dim);
  letter-spacing: 0.06em;
}
.sent-panel-title .sep { color: var(--term-fg-faint); margin: 0 8px; }
.sent-panel-live {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--term-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--term-green);
  box-shadow: 0 0 6px rgba(156,207,216,0.7);
  animation: blink 1.4s steps(2) infinite;
  display: inline-block;
}

/* feed */
.sent-feed {
  padding: 8px 14px 6px;
  font-size: 11.5px;
  line-height: 1.45;
}
.sent-feed-head,
.sent-feed-row {
  display: grid;
  grid-template-columns: 64px 56px minmax(0, 1.4fr) minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 12px;
  align-items: center;
  padding: 5px 0;
}
.sent-feed-head {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--term-fg-faint);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--term-rule);
  margin-bottom: 4px;
}
.sent-feed-row {
  border-bottom: 1px dashed rgba(42,39,63,0.6);
  white-space: nowrap;
  overflow: hidden;
}
.sent-feed-row:last-child { border-bottom: 0; }

.sf-time { color: var(--term-fg-faint); }
.sf-act {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  border: 1px solid currentColor;
  justify-self: start;
}
.sf-act-block { color: var(--term-red);   background: rgba(235,111,146,0.10); }
.sf-act-drop  { color: var(--term-red);   background: rgba(235,111,146,0.18); }
.sf-act-chal  { color: var(--term-amber); background: rgba(246,193,119,0.10); }
.sf-act-allow { color: var(--term-green); background: rgba(156,207,216,0.10); }

.sf-ua   { color: var(--term-fg); overflow: hidden; text-overflow: ellipsis; }
.sf-src  { color: var(--term-fg-dim); display: flex; gap: 8px; align-items: baseline; overflow: hidden; }
.sf-cc   { font-size: 9.5px; color: var(--term-fg-faint); letter-spacing: 0.1em; }
.sf-path { color: var(--term-rose); overflow: hidden; text-overflow: ellipsis; }
.sf-fp   { color: var(--term-iris); font-size: 11px; }

.sent-feed-row.act-allow .sf-ua,
.sent-feed-row.act-allow .sf-path { color: var(--term-fg-dim); }

/* stats strip */
.sent-stats {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  align-items: baseline;
  gap: 18px;
  padding: 14px 18px;
  border-top: 1px solid var(--term-rule);
  background: var(--term-bg-2);
}
.sent-stats-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--term-fg-faint);
  text-transform: uppercase;
}
.sent-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sent-stat-v {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--term-fg);
  letter-spacing: -0.01em;
  line-height: 1;
}
.sent-stat-l {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--term-fg-faint);
  text-transform: uppercase;
}

/* WAF rule export box */
.sent-rule {
  background: var(--term-bg);
  border: 1px solid var(--term-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--mono);
  color: var(--term-fg);
}
.sent-rule-tabs {
  display: flex;
  align-items: center;
  background: var(--term-bg-2);
  border-bottom: 1px solid var(--term-rule);
  padding: 0 6px;
}
.sent-rule-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--term-fg-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sent-rule-tab:hover { color: var(--term-fg-dim); }
.sent-rule-tab.active {
  color: var(--term-amber);
  border-bottom-color: var(--term-amber);
}
.sent-rule-status {
  margin-left: auto;
  padding-right: 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--term-green);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sent-rule-body {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--term-fg-dim);
  white-space: pre-wrap;
  overflow-x: auto;
}
.sent-rule-body .r-comment { color: var(--term-fg-faint); font-style: italic; }
.sent-rule-body .r-kw      { color: var(--term-iris); }
.sent-rule-body .r-str     { color: var(--term-rose); }
.sent-rule-body .r-val     { color: var(--term-amber); }
.sent-rule-body .r-op      { color: var(--term-red); }
.sent-rule-body .r-txt     { color: var(--term-fg-dim); }

@media (max-width: 720px) {
  .sent-feed-head,
  .sent-feed-row { grid-template-columns: 56px 50px 1fr 1fr; gap: 8px; font-size: 10.5px; }
  .sent-feed-head span:nth-child(5),
  .sent-feed-head span:nth-child(6),
  .sent-feed-row .sf-path,
  .sent-feed-row .sf-fp { display: none; }
  .sent-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sent-stats-label { grid-column: 1 / -1; }
}

/* ─── MOBILE NAV / HAMBURGER ────────────────────────── */
.nav-toggle { display: none; }
.nav-drawer { display: none; }

@media (max-width: 720px) {
  .nav-row { gap: 12px; padding-right: 4px; }
  .nav-actions { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0 10px;
  }
  .nav-toggle-bar {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav-open .nav-toggle .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 20px 32px;
    border-top: 1px solid var(--rule);
    background: var(--cream);
  }
  .nav-drawer[hidden] { display: none; }
  .nav-drawer a:not(.btn) {
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--ink);
    padding: 8px 0;
  }
  .nav-drawer-rule {
    height: 1px;
    background: var(--rule);
    margin: 4px 0;
  }
  .nav-drawer-lang { align-self: flex-start; }
  .nav-drawer-lang button {
    padding: 10px 18px;
    font-size: 13px;
    min-height: 40px;
  }
  .nav-drawer-btn { justify-content: center; padding: 14px 18px; }
}

/* ─── MOBILE HERO ROBUSTNESS ────────────────────────── */
@media (max-width: 720px) {
  .hero-headline { font-size: 40px; max-width: none; }
  .hero { padding: 56px 0 72px; }
  .hero-grid { gap: 32px; }
  /* Terminal box must shrink with viewport, not push width */
  .hero-col-card { width: 100%; min-width: 0; }
  .hero-term { max-width: 100%; }
  .hero-term .ht-stream { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hero-term .ht-line { min-width: 0; }
  .hero-term .ht-m { min-width: 0; word-break: break-word; overflow-wrap: anywhere; }
  /* Lang button tap target if it ever shows on mobile */
  .lang button { min-height: 32px; padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 34px; }
}

/* Prevent any element from breaking out horizontally */
html, body { overflow-x: hidden; }
