@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/Unbounded_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #09070F;
  --bg-2: #120E1C;
  --surface: rgba(20, 16, 30, 0.72);
  --surface-strong: rgba(25, 20, 38, 0.88);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #F5F1EA;
  --mute: #A49CB5;
  --dim: #6C647E;

  --accent: #FF5B3A;
  --safe: #C6F36A;
  --gold: #FFC93C;
  --crit: #FF4664;
  --info: #8E9BFF;
  --cyan: #6FE0CF;

  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;

  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
}

/* Fullscreen Three.js Canvas Layer */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Subtle vignette + dot telemetry grid over canvas */
.ambient-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 91, 58, 0.09), transparent 44%),
    radial-gradient(circle at 18% 72%, rgba(198, 243, 106, 0.06), transparent 42%),
    radial-gradient(ellipse at center, transparent 42%, rgba(9, 7, 15, 0.72) 100%);
}
.ambient-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12));
}

/* Scroll Progress Rail */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-rail-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--crit), var(--accent), var(--gold), var(--safe));
  box-shadow: 0 0 14px rgba(255, 91, 58, 0.75);
  transition: width 80ms linear;
}

/* Floating Glassmorphic Top HUD Nav */
.hud-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(1160px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 16px;
  border-radius: 999px;
  background: rgba(14, 11, 22, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hud-brand-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 91, 58, 0.16);
  border: 1px solid rgba(255, 91, 58, 0.45);
  color: var(--accent);
  letter-spacing: 0.06em;
}

.hud-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hud-links::-webkit-scrollbar { display: none; }
.hud-links a {
  text-decoration: none;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 200ms, background 220ms var(--ease-spring);
  white-space: nowrap;
}
.hud-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.hud-links a.active {
  color: #140905;
  background: var(--safe);
  box-shadow: 0 0 22px rgba(198, 243, 106, 0.35);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-scan {
  appearance: none;
  border: 1px solid rgba(198, 243, 106, 0.45);
  background: rgba(198, 243, 106, 0.12);
  color: var(--safe);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 180ms var(--ease-spring), background 200ms, box-shadow 200ms;
}
.btn-scan:hover {
  background: rgba(198, 243, 106, 0.22);
  box-shadow: 0 0 20px rgba(198, 243, 106, 0.28);
  transform: translateY(-1px);
}
.btn-scan:active { transform: scale(0.96); }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 8px var(--safe);
  animation: beacon 2.1s infinite ease-in-out;
}
@keyframes beacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Main Foreground Content */
main {
  position: relative;
  z-index: 10;
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding-bottom: 110px;
}

section {
  padding-top: 96px;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-spring), transform 700ms var(--ease-spring);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Interactive Spotlight Glass Card */
.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  overflow: hidden;
  transition: border-color 260ms, transform 320ms var(--ease-spring), box-shadow 320ms;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.085), transparent 60%);
}
.glass:hover::before { opacity: 1; }
.glass:hover {
  border-color: var(--line-2);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

/* Hero Section */
.hero {
  min-height: 92vh;
  padding-top: 122px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 91, 58, 0.12);
  border: 1px solid rgba(255, 91, 58, 0.32);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, #F5F1EA 15%, #FF5B3A 55%, #FFC93C 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--mute);
  max-width: 560px;
  margin: 0 0 26px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.meta-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.meta-pill span { color: var(--mute); margin-right: 4px; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF5B3A, #FF2E63);
  color: #160502;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 12px 34px rgba(255, 91, 58, 0.34);
  transition: transform 200ms var(--ease-spring), box-shadow 200ms;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(255, 91, 58, 0.48); }

.btn-ghost {
  appearance: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: background 200ms, transform 200ms var(--ease-spring);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* Right-side Hero Holographic Score Card */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.score-holo {
  width: min(360px, 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(16, 13, 26, 0.72);
}

.score-ring-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.score-svg {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.score-svg circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.score-bg { stroke: rgba(255, 255, 255, 0.08); }
.score-arc {
  stroke: url(#scoreGrad);
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset 1400ms var(--ease-spring);
  filter: drop-shadow(0 0 10px rgba(255, 91, 58, 0.55));
}
.score-num-box {
  position: relative;
  display: flex;
  flex-direction: column;
}
.score-big {
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
}
.score-big small {
  font-size: 16px;
  color: var(--mute);
}
.score-grade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

.sev-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.sev-mini {
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 200ms var(--ease-spring), border-color 200ms, background 200ms;
}
.sev-mini:hover { transform: translateY(-2px); border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); }
.sev-mini b { display: block; font-family: var(--display); font-size: 20px; line-height: 1.1; }
.sev-mini span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--mute); }

.tile-hud-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 11, 22, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.tile-hud-hint b { color: var(--safe); }

/* Telemetry KPI Strip */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.kpi-card {
  padding: 18px;
  border-radius: 20px;
}
.kpi-val {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--text);
}
.kpi-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mute);
  margin-top: 6px;
}
.kpi-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 4px;
}

/* Section Headers */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.sec-head h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.1;
  margin: 10px 0 0;
  letter-spacing: -0.02em;
}
.sec-head p {
  margin: 0;
  color: var(--mute);
  max-width: 460px;
  font-size: 14.5px;
}

/* Attack Surface Interactive Topology */
.topo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 18px;
  align-items: stretch;
}
.topo-stage {
  position: relative;
  min-height: 430px;
  padding: 20px;
}
.topo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.topo-line {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  animation: dashFlow 22s linear infinite;
  transition: stroke 240ms, stroke-width 240ms;
}
.topo-line.lit {
  stroke: var(--accent);
  stroke-width: 2.6;
  filter: drop-shadow(0 0 6px rgba(255, 91, 58, 0.65));
}
@keyframes dashFlow {
  from { stroke-dashoffset: 180; }
  to { stroke-dashoffset: 0; }
}

.topo-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 164px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(18, 14, 28, 0.92);
  border: 1px solid var(--line-2);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: transform 220ms var(--ease-spring), border-color 200ms, box-shadow 220ms;
  z-index: 2;
}
.topo-node:hover {
  transform: translate(-50%, -54%) scale(1.04);
  border-color: rgba(255, 255, 255, 0.35);
}
.topo-node.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 91, 58, 0.28), 0 14px 36px rgba(0, 0, 0, 0.55);
}
.topo-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-bottom: 4px;
}
.topo-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
}
.topo-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topo-inspector {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.topo-finding-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.topo-fpill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms, transform 180ms;
}
.topo-fpill:hover { background: rgba(255, 91, 58, 0.2); border-color: var(--accent); transform: translateY(-1px); }

/* Severity Badges */
.sev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.sev-CRITICAL { color: #FF738A; background: rgba(255, 70, 100, 0.16); border: 1px solid rgba(255, 70, 100, 0.45); }
.sev-HIGH     { color: #FF876C; background: rgba(255, 91, 58, 0.16); border: 1px solid rgba(255, 91, 58, 0.45); }
.sev-MEDIUM   { color: #FFD86E; background: rgba(255, 201, 60, 0.14); border: 1px solid rgba(255, 201, 60, 0.4); }
.sev-LOW      { color: #AEB8FF; background: rgba(142, 155, 255, 0.15); border: 1px solid rgba(142, 155, 255, 0.4); }
.sev-INFO     { color: #8EF0DF; background: rgba(111, 224, 207, 0.14); border: 1px solid rgba(111, 224, 207, 0.35); }
.sev-SOLID    { color: #C6F36A; background: rgba(198, 243, 106, 0.14); border: 1px solid rgba(198, 243, 106, 0.4); }
.sev-GOOD     { color: #8EF0DF; background: rgba(111, 224, 207, 0.14); border: 1px solid rgba(111, 224, 207, 0.38); }
.sev-NEEDS    { color: #FFD86E; background: rgba(255, 201, 60, 0.14); border: 1px solid rgba(255, 201, 60, 0.4); }

/* Findings Filter Bar */
.filter-bar {
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fchip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms var(--ease-spring);
}
.fchip:hover { color: var(--text); border-color: var(--line-2); }
.fchip.on {
  background: var(--text);
  color: #100B18;
  border-color: var(--text);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 7, 15, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0 12px;
  height: 38px;
  min-width: 240px;
}
.search-box input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--body);
  font-size: 13.5px;
  width: 100%;
}
.search-box kbd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Progress Tracker Strip */
.progress-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.progress-bar {
  flex: 1;
  max-width: 260px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--safe));
  transition: width 400ms var(--ease-spring);
}

/* Expandable Finding Dossier Cards */
.findings-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.fcard {
  border-radius: 20px;
  transition: border-color 220ms, opacity 240ms;
}
.fcard.checked {
  opacity: 0.62;
  border-color: rgba(198, 243, 106, 0.3);
}

.fcard-head {
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
}
.fcard-id-col {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fcard-chk {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #142000;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  transition: all 180ms;
}
.fcard.checked .fcard-chk {
  background: var(--safe);
  border-color: var(--safe);
}

.fcard-title {
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--text);
}
.fcard.checked .fcard-title { text-decoration: line-through; color: var(--mute); }

.fcard-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.file-pill {
  font-family: var(--mono);
  font-size: 11px;
  color: #D4CEEA;
  background: rgba(142, 155, 255, 0.1);
  border: 1px solid rgba(142, 155, 255, 0.25);
  padding: 2px 8px;
  border-radius: 7px;
}
.effort-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute);
}

.chev {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: var(--mute);
  transition: transform 320ms var(--ease-spring), background 200ms;
}
.fcard.open .chev { transform: rotate(180deg); background: rgba(255, 255, 255, 0.12); color: var(--text); }

.fcard-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease-spring);
}
.fcard.open .fcard-body-wrap { grid-template-rows: 1fr; }
.fcard-body-inner { overflow: hidden; }

.fcard-body {
  padding: 0 20px 20px 54px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dossier-box {
  background: rgba(9, 7, 15, 0.56);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.dossier-box.full { grid-column: 1 / -1; }
.dossier-box h4 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.dossier-box p { margin: 0; font-size: 13.5px; color: #DFD9EB; }
.dossier-box ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: #E4F7BF; }
.dossier-box li { margin-bottom: 6px; }
.dossier-box li:last-child { margin-bottom: 0; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 5px;
  color: #FFE4B5;
}

/* Telemetry & Bundle Diet Lab */
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
}
.lab-card { padding: 24px; }
.toggle-pill {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(9, 7, 15, 0.75);
  border: 1px solid var(--line-2);
  gap: 4px;
}
.toggle-pill button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
}
.toggle-pill button.on {
  background: var(--safe);
  color: #122000;
}
.toggle-pill button.on.bad {
  background: var(--crit);
  color: #fff;
}

.bundle-hero-num {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 18px 0 14px;
}
.bundle-hero-num b {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
}
.bundle-hero-num span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mute);
}

.bar-row { margin-bottom: 13px; }
.bar-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}
.bar-row-top span:last-child { font-family: var(--mono); font-weight: 700; }
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 700ms var(--ease-spring);
}

/* Radar + Feature Matrix */
.radar-feature-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.radar-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.radar-svg { width: 100%; max-width: 310px; height: auto; overflow: visible; }
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.feat-card { padding: 16px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.feat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.feat-name { font-weight: 700; font-size: 14.5px; }
.feat-notes { font-size: 13px; color: var(--mute); margin: 0; line-height: 1.5; }
.feat-meter { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: auto; }
.feat-meter > i { display: block; height: 100%; border-radius: 999px; }

/* Missing Features & Strengths */
.missing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.missing-col { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.missing-col h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.missing-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(9, 7, 15, 0.52);
  border: 1px solid var(--line);
}
.missing-item b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.missing-item p { margin: 0; font-size: 12.5px; color: var(--mute); }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.strength-card { padding: 18px; border-radius: 18px; }
.strength-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.strength-top b { font-size: 15px; }
.strength-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--safe);
  background: rgba(198, 243, 106, 0.12);
  border: 1px solid rgba(198, 243, 106, 0.35);
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.strength-card p { margin: 0; font-size: 13px; color: var(--mute); }

/* Sprint Roadmap */
.sprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.sprint-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sprint-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.sprint-head h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.sprint-eta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
}
.sprint-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sprint-list li {
  font-size: 13px;
  color: #DDD7EA;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(9, 7, 15, 0.55);
  border: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.sprint-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 28px 16px 48px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* Toast notification */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--safe);
  color: #142000;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: opacity 220ms, transform 240ms var(--ease-spring);
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 106px; min-height: auto; }
  .hero-right { align-items: stretch; }
  .score-holo { width: 100%; }
  .topo-wrap, .lab-grid, .radar-feature-grid { grid-template-columns: 1fr; }
  .fcard-body { grid-template-columns: 1fr; padding-left: 20px; }
  .hud-links { display: none; }
}
@media (max-width: 640px) {
  .topo-stage { min-height: 520px; }
  .topo-node { width: 132px; padding: 8px 10px; }
  .fcard-head { grid-template-columns: 1fr auto; }
  .fcard-id-col { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
