/* ============================================================
   BrainerX Labs — Enterprise Security Harness product page
   Generated page styles; see scripts/build_solutions.py
   ============================================================ */

:root {
  --sev-crit: #D9365E;
  --sev-high: #E2703A;
  --sev-med: #C99A1E;
  --sev-low: #6E6E73;
}

/* ---------- hero ---------- */

.hn-hero {
  position: relative;
  background: var(--dark);
  padding: 92px 0 86px;
  overflow: hidden;
}

.hn-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 44% at 22% -10%, rgba(59, 79, 255, 0.3), transparent 70%),
    radial-gradient(34% 40% at 88% 108%, rgba(124, 92, 255, 0.2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
}

.hn-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hn-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  padding: 8px 15px;
  margin-bottom: 26px;
}

.hn-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hn-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.hn-title em { font-style: normal; color: #5B6CFF; }

.hn-sub {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.62);
  max-width: 520px;
}

.hn-hero-cta { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }

.hn-hero-facts {
  display: flex;
  gap: 20px;
  margin-top: 34px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.hn-hero-facts b { color: #fff; font-weight: 500; margin-right: 6px; }

/* terminal */

.hn-term {
  background: #0F0F14;
  border: 1px solid #23232C;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.7);
}

.hn-term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #1D1D25;
}

.hn-term-dots { display: flex; gap: 6px; }
.hn-term-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A2A34; }

.hn-term-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.hn-term-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #34C98E;
  border: 1px solid rgba(52, 201, 142, 0.35);
  border-radius: 20px;
  padding: 4px 9px;
}

.hn-term-body {
  padding: 16px 18px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.76);
}

.hn-term-body .t { color: #52525E; margin-right: 9px; }
.hn-term-body .ok { color: #34C98E; }
.hn-term-body .info { color: #8FA0FF; }
.hn-term-body .warn { color: #E7B549; }
.hn-term-body .crit { color: #FF6B8A; }
.hn-term-body .dim { color: rgba(255, 255, 255, 0.42); }

.hn-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #8FA0FF;
  vertical-align: -2px;
  animation: hn-blink 1s steps(1) infinite;
}

@keyframes hn-blink { 50% { opacity: 0; } }

/* ---------- problem cards ---------- */

.hn-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.hn-problem {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
}

.hn-problem-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #FDECEF;
  color: var(--sev-crit);
  font-size: 16px;
  margin-bottom: 20px;
}

.hn-problem h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}

.hn-problem p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- local / air-gap split ---------- */

.hn-local {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hn-local-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

.hn-local-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
}

.hn-machine {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #16161C, #0C0C0E);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hn-machine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 20% 0%, rgba(59, 79, 255, 0.22), transparent 70%);
}

.hn-machine-inner {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 22px 20px;
}

.hn-machine-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.hn-machine-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px 13px;
  color: #fff;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.hn-machine-row i {
  font-style: normal;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: rgba(59, 79, 255, 0.22);
  color: #93A2FF;
}

.hn-machine-out {
  position: relative;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #FF8FA6;
  border: 1px solid rgba(217, 54, 94, 0.4);
  background: rgba(217, 54, 94, 0.1);
  border-radius: 20px;
  padding: 9px 14px;
}

/* ---------- five stages ---------- */

.hn-stages { margin-top: 52px; }

.hn-stage-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.hn-stage-tab {
  position: relative;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.hn-stage-tab:hover { transform: translateY(-2px); border-color: var(--faint); }

.hn-stage-tab.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 30px -16px rgba(59, 79, 255, 0.45);
}

.hn-stage-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 10px;
}

.hn-stage-tab.active .hn-stage-num { color: var(--accent); }

.hn-stage-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
}

.hn-stage-hint { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }

.hn-stage-panel { display: none; }
.hn-stage-panel.active { display: grid; animation: hn-in 0.28s ease; }

@keyframes hn-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hn-stage-panel {
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hn-stage-copy { padding: 38px 36px; }

.hn-stage-copy h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.hn-stage-copy > p { font-size: 15px; color: var(--muted); line-height: 1.7; }

.hn-stage-points { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

.hn-stage-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.hn-stage-points i {
  font-style: normal;
  color: var(--accent);
  font-size: 11px;
  margin-top: 3px;
}

.hn-stage-out {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

.hn-stage-out b { color: var(--ink); font-weight: 500; }

.hn-stage-visual {
  background: #FBFBFA;
  border-left: 1px solid var(--border-soft);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* generic mini rows used inside stage visuals */

.hn-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--ink);
}

.hn-row .path { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.hn-row .meta { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); }

.hn-bar {
  width: 54px;
  height: 5px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.hn-bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

.hn-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.hn-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 5px 11px;
}

.hn-trace {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.hn-trace .src { color: var(--sev-crit); }
.hn-trace .sink { color: var(--accent); }
.hn-trace .arrow { color: var(--faint); }

.hn-verdict {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  border-radius: 10px;
  padding: 11px 13px;
}

.hn-verdict.keep { background: #E7F6EF; color: #14795A; }
.hn-verdict.drop { background: var(--border-soft); color: var(--muted); }
.hn-verdict i { font-style: normal; }

.hn-export {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hn-export span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-soft);
}

/* ---------- coverage grid ---------- */

.hn-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 52px;
}

.hn-cover-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hn-cover-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -16px rgba(11, 11, 12, 0.16); }

.hn-cover-card b {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.015em;
  display: block;
  margin-bottom: 5px;
}

.hn-cover-card span { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: block; }

.hn-cover-card em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--faint);
  display: block;
  margin-top: 10px;
}

/* ---------- finding sample ---------- */

.hn-finding {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 46px;
}

.hn-finding-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
  background: #FDFDFC;
  flex-wrap: wrap;
}

.hn-sev {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  border-radius: 20px;
  padding: 5px 11px;
  color: #fff;
}

.hn-sev.crit { background: var(--sev-crit); }
.hn-sev.high { background: var(--sev-high); }
.hn-sev.med { background: var(--sev-med); }

.hn-finding-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hn-finding-cwe {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.hn-finding-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}

.hn-finding-main { padding: 26px 24px; }
.hn-finding-main p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

.hn-code {
  margin-top: 16px;
  background: #0F0F14;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}

.hn-code .ln { color: #4A4A56; margin-right: 14px; }
.hn-code .del { color: #FF8FA6; }
.hn-code .add { color: #6EDCA8; }
.hn-code .cm { color: #6C6C7A; }

.hn-finding-side {
  padding: 26px 24px;
  border-left: 1px solid var(--border-soft);
  background: #FBFBFA;
}

.hn-kv { display: flex; flex-direction: column; gap: 14px; }

.hn-kv div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 4px;
}

.hn-kv div b {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* ---------- scale stats ---------- */

.hn-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.hn-scale-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.03);
}

.hn-scale-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #fff;
}

.hn-scale-card span {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-top: 6px;
}

/* ---------- responsive ---------- */

/* grid children must be allowed to shrink below their content width */
.hn-stage-copy, .hn-stage-visual,
.hn-finding-main, .hn-finding-side { min-width: 0; }

.hn-trace, .hn-row { overflow-x: auto; }
.hn-row .path { white-space: nowrap; }

@media (max-width: 1024px) {
  .hn-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hn-local { grid-template-columns: 1fr; gap: 40px; }
  .hn-stage-rail { grid-template-columns: repeat(2, 1fr); }
  .hn-stage-panel.active { grid-template-columns: 1fr; }
  .hn-stage-visual { border-left: none; border-top: 1px solid var(--border-soft); }
  .hn-finding-body { grid-template-columns: 1fr; }
  .hn-finding-side { border-left: none; border-top: 1px solid var(--border-soft); }
  .hn-cover { grid-template-columns: repeat(2, 1fr); }
  .hn-scale { grid-template-columns: repeat(2, 1fr); }
  .hn-problems { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hn-stage-rail { grid-template-columns: 1fr; }
  .hn-cover { grid-template-columns: 1fr; }
  .hn-scale { grid-template-columns: 1fr; }
  .hn-stage-copy { padding: 28px 22px; }
  .hn-finding-main, .hn-finding-side { padding: 22px 20px; }
  .hn-term-body { font-size: 10.5px; }
}
