/* OFFENSIVE LABS TECHNOLOGIES - offensivelabs.tech | css/products.css
   Page styles for products.html (engines). Loads AFTER css/main.css.
   Source of truth: DESIGN.md v5.0 - vibrant monochrome by inversion.
   HARD RULE: no hue anywhere; page colors come from main.css tokens only. */

/* Anchored engine sections clear the fixed header. */
.engine, #engagements { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

/* ----- PAGE HERO — engine jump index ----- */
.eng-index {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.eng-index a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration-color: var(--line-strong);
  white-space: nowrap;
}
.eng-index a:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* ----- ENGINE SECTION RHYTHM ----- */
.engine > .container > .section-index { margin-bottom: var(--space-5); }

.engine--alt {
  background: var(--bg-panel);
  border-block: 1px solid var(--line);
}

.engine-title { max-width: 20ch; }

.engine .split-copy .card-text + .card-text { margin-top: var(--space-4); }

/* ----- ENGINE VISUALS — instruments on constant graphite (§4.3) ----- */
.engine-graph {
  margin: 0;
  border: 1px solid var(--screen-line);
  border-radius: var(--radius-md);
  background: var(--screen-graph), var(--screen-bg);
  box-shadow: var(--shadow-screen);
  padding: var(--space-3);
}
.graph-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-1) var(--space-2) var(--space-3);
}
.graph-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--screen-ink);
  margin: 0;
}
.graph-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--screen-dim);
  margin: 0;
  white-space: nowrap;
}
.graph-svg { display: block; width: 100%; height: auto; }
.graph-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--screen-dim);
  margin: var(--space-3) var(--space-2) var(--space-1);
}

/* v5: SIEGE findings strip - the inverted severity chips live on the
   screen-token figure, so they use the constant screen pairs (4.3, 9.6):
   .engine-graph joined the .console/.terminal .sev--* groups in main.css. */
.graph-findings {
  border-top: 1px solid var(--screen-line);
  margin: var(--space-3) var(--space-1) 0;
  padding-top: var(--space-3);
}
.engine-graph .console-findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-4);
}

/* PROBE scope rings — page-token figure (a diagram, not a screen). */
.engine-rings {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  padding: var(--space-4);
}
.engine-rings .graph-caption { color: var(--ink-faint); margin: var(--space-3) 0 0; }
.rings-svg { display: block; width: 100%; height: auto; max-width: 26rem; margin-inline: auto; }
.ring-line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}
.ring-line--scope {
  stroke: var(--accent);
  stroke-dasharray: none;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 10px var(--glow));
}
.ring-dot { fill: var(--ink-faint); }
.ring-dot--scope { fill: var(--accent); }
.ring-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: var(--ink-faint);
}
.ring-label--scope { fill: var(--ink); font-weight: 600; }

/* PRETEXT message flow — frame around the .thread primitive (§9/§19). */
.engine-thread {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  padding: var(--space-4);
}
.engine-thread .thread { margin-inline: auto; }
.engine-thread .graph-caption { color: var(--ink-faint); margin: var(--space-4) 0 0; }

/* ----- SPEC TABLE + TERMINAL GRID — the dense half of each engine ----- */
.engine-specs {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.engine-specs .table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  padding: var(--space-3) var(--space-4) var(--space-4);
}
.engine-specs .table-caption { margin-bottom: var(--space-2); }
.engine-terminal .terminal { max-width: none; width: 100%; }

/* v5: INVERTED HOVER ROWS - the dense spec bodies invert fully on hover
   (DESIGN.md 4.4): --accent fill, --accent-ink text, one row at a time. */
.engine-specs .spec-table tbody tr {
  transition: background-color var(--t-fast) var(--ease);
}
.engine-specs .spec-table tbody tr:hover { background: var(--accent); }
.engine-specs .spec-table tbody tr:hover th,
.engine-specs .spec-table tbody tr:hover td { color: var(--accent-ink); }

@media (max-width: 979px) {
  .engine-specs { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .engine-specs .spec-table tbody tr { transition: none; }
}

/* ----- ENGAGEMENT MODELS — full version (homepage carries the teaser) ----- */
#engagements .model-band { background: var(--bg-elevated); }
.model-actions { margin-top: var(--space-4); }
