/* 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: 9px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: #2a2640; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(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: 14ch;
  font-size: 64px;
  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-dots { display: flex; gap: 6px; }
.term-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--term-fg-faint);
}
.term-dots span:nth-child(1) { background: #eb6f92; }
.term-dots span:nth-child(2) { background: #f6c177; }
.term-dots span:nth-child(3) { background: #9ccfd8; }
.term-title {
  font-size: 11px;
  color: var(--term-fg-dim);
  letter-spacing: 0.06em;
}
.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;
}
.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; }
}

/* ─── PRODUCT BLOCKS ────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--term-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--term-rule);
  color: var(--term-fg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
}
.product-card .ix {
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--term-fg-faint);
  letter-spacing: 0.08em;
}
.product-card h3 { color: var(--term-fg); }
.product-card p { color: var(--term-fg-dim); 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 {
  width: 22px; height: 22px;
  border: 1px solid var(--term-rule);
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 11px;
  color: var(--term-green);
  background: var(--term-bg);
}
.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; }
.final-cta .btn-ghost { color: var(--term-fg); border-color: var(--term-rule); }
.final-cta .btn-ghost:hover { border-color: var(--term-fg-dim); }

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;
}

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