/* =========================================================================
   CodeShield · War Room demo (standalone, dark cinematic)
   No shared stylesheets. Everything lives here.
   ========================================================================= */

:root {
  --ink: #0c0b12;
  --ink-2: #111019;
  --panel: rgba(24, 22, 38, 0.55);
  --panel-solid: #16141f;
  --hair: rgba(196, 188, 234, 0.14);
  --hair-strong: rgba(196, 188, 234, 0.24);

  --accent: #6557bd;
  --accent-soft: #c4bcea;
  --green: #4fa67a;
  --red: #dc5050;
  --crit: #ff6a3d;

  --txt: #ece9f6;
  --txt-dim: #9b96b4;
  --txt-faint: #6d688a;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--ink);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- backdrop */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(196,188,234,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,188,234,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.bg-glow-a {
  top: -18%; left: 8%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(101,87,189,0.55), transparent 70%);
  animation: drift-a 18s var(--ease) infinite alternate;
}
.bg-glow-b {
  bottom: -22%; right: 4%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(196,188,234,0.28), transparent 70%);
  animation: drift-b 22s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate(60px, 50px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-50px, -40px) scale(1.08); } }

#confetti {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  width: 100%; height: 100%;
}

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-ico { height: 30px; width: auto; display: block; }
.brand-word { height: 20px; width: auto; display: block; opacity: 0.92; }
.topbar-r { display: flex; align-items: center; gap: 14px; }
.workspace-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hair);
  backdrop-filter: blur(14px);
  font-size: 13px; font-weight: 600; color: var(--txt-dim);
  letter-spacing: 0.02em;
}
.ws-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 12px var(--accent-soft);
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hair);
  backdrop-filter: blur(14px);
}
.lang-opt {
  appearance: none; border: 0; cursor: pointer;
  padding: 6px 13px; border-radius: 999px;
  background: transparent; color: var(--txt-dim);
  font: 600 12px/1 "DM Sans", sans-serif; letter-spacing: 0.06em;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-opt:hover { color: var(--txt); }
.lang-opt.is-active {
  background: var(--accent-soft); color: #0b0b12;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

/* ---------------------------------------------------------------- stage */
.stage-wrap {
  position: relative; z-index: 3;
  max-width: 1180px; margin: 0 auto;
  padding: 22px 40px 90px;
  min-height: calc(100vh - 74px);
}

.state { display: none; }
.state.is-active { display: block; animation: state-in 0.7s var(--ease) both; }
@keyframes state-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* staggered reveal helper */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal-up 0.8s var(--ease) forwards; }
.state.is-active .reveal:nth-child(1) { animation-delay: 0.05s; }
.state.is-active .reveal:nth-child(2) { animation-delay: 0.16s; }
.state.is-active .reveal:nth-child(3) { animation-delay: 0.27s; }
.state.is-active .reveal:nth-child(4) { animation-delay: 0.38s; }
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------- eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent-soft);
}
.eyebrow-ok { color: var(--green); }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); position: relative;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--red); opacity: 0.7;
  animation: ping 1.6s var(--ease) infinite;
}
.live-dot-run { background: var(--accent-soft); }
.live-dot-run::after { border-color: var(--accent-soft); }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(2.1); opacity: 0; } }

/* =================================================== STATE 1: BEFORE */
.before-head { margin-bottom: 26px; }
#before-h1 {
  margin: 0 0 14px; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02;
  background: linear-gradient(180deg, #fff 30%, #cfc9e6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.before-sub { margin: 0; font-size: 16px; color: var(--txt-dim); }
.sub-sep { margin: 0 10px; color: var(--txt-faint); }
.repo-tag {
  font-family: var(--mono); font-size: 0.9em; color: var(--accent-soft);
  background: rgba(101,87,189,0.14); border: 1px solid var(--hair);
  padding: 2px 9px; border-radius: 7px;
}

.sev-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sev-note { margin: 0 0 26px; font-size: 13px; line-height: 1.5; color: var(--txt-dim); opacity: 0.85; max-width: 640px; }
.sev-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hair);
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--txt-dim);
}
.sev-pill b { color: var(--txt); font-weight: 700; }
.sev-pill .swatch { width: 9px; height: 9px; border-radius: 3px; }

.findings-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 40px;
}
.finding {
  position: relative; overflow: hidden;
  padding: 16px 18px; border-radius: 15px;
  background: var(--panel); border: 1px solid var(--hair);
  backdrop-filter: blur(16px);
  opacity: 0; transform: translateY(14px) scale(0.985);
  animation: card-in 0.6s var(--ease) forwards;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.finding:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
@keyframes card-in { to { opacity: 1; transform: translateY(0) scale(1); } }

.finding-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
}
.chip.critical { color: #fff; background: rgba(255,106,61,0.18); border: 1px solid rgba(255,106,61,0.5); }
.chip.high     { color: #ffb59a; background: rgba(220,80,80,0.14); border: 1px solid rgba(220,80,80,0.4); }
.chip.medium   { color: var(--accent-soft); background: rgba(101,87,189,0.16); border: 1px solid rgba(101,87,189,0.4); }
.ftype {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em;
  padding: 4px 9px; border-radius: 6px;
  color: var(--txt-dim); background: rgba(255,255,255,0.035);
  border: 1px solid var(--hair);
}
.rule-tag { font-family: var(--mono); font-size: 11.5px; color: var(--txt-dim); }
.finding-title { margin: 0 0 9px; font-size: 15px; font-weight: 600; color: var(--txt); line-height: 1.3; }
.finding-loc { font-family: var(--mono); font-size: 12px; color: var(--txt-faint); }
.finding-loc b { color: var(--accent-soft); font-weight: 500; }
.finding-src { font-size: 11px; letter-spacing: 0.02em; color: var(--txt-dim); opacity: 0.85; }
.finding-src::before { content: "·"; margin: 0 6px; opacity: 0.6; }

.finding.is-critical::before {
  content: ""; position: absolute; inset: 0; border-radius: 15px;
  border: 1px solid rgba(255,106,61,0.55); pointer-events: none;
  animation: crit-pulse 2.4s var(--ease) infinite;
}
@keyframes crit-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,61,0); opacity: 0.5; }
  50%      { box-shadow: 0 0 26px -4px rgba(255,106,61,0.5); opacity: 1; }
}

/* deploy CTA */
.deploy-dock { text-align: center; }
.btn-deploy {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 40px; border: none; border-radius: 16px; cursor: pointer;
  font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #7568d0, #5a4bb0);
  box-shadow: 0 18px 50px -14px rgba(101,87,189,0.85), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), filter 0.3s var(--ease);
  overflow: hidden;
}
.btn-deploy:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 26px 70px -14px rgba(101,87,189,1); }
.btn-deploy:active { transform: translateY(-1px) scale(0.99); }
.btn-deploy[disabled] { pointer-events: none; opacity: 0.6; filter: grayscale(0.3); }
.btn-deploy-glow {
  position: absolute; inset: -60% -20%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);
  animation: sweep 3.4s var(--ease) infinite;
}
@keyframes sweep { 0% { transform: translateX(-80%); opacity: 0; } 40% { opacity: 0.7; } 100% { transform: translateX(80%); opacity: 0; } }
.btn-deploy svg { position: relative; }
.btn-deploy-label { position: relative; }
.deploy-hint { margin: 16px 0 0; font-size: 14px; color: var(--txt-faint); }

/* =================================================== STATE 2: OPERATION */
.op-head { text-align: center; margin-bottom: 34px; }
.op-head .eyebrow { margin-bottom: 12px; }
#op-repo-title { margin: 0; font-size: clamp(24px, 3vw, 34px); color: var(--txt); }

/* stage rail */
.rail {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 860px; margin: 0 auto 44px; padding: 0 10px;
}
.rail-line {
  position: absolute; top: 27px; left: 60px; right: 60px; height: 2px;
  background: var(--hair); border-radius: 2px; overflow: hidden;
}
.rail-line-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 14px rgba(101,87,189,0.7);
  transition: width 0.8s var(--ease);
}
.stage {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 108px; text-align: center;
}
.stage-orb {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-solid); border: 1.5px solid var(--hair);
  color: var(--txt-faint);
  transition: all 0.5s var(--ease);
}
.stage-orb svg { width: 24px; height: 24px; }
.stage-label { font-size: 12.5px; font-weight: 600; color: var(--txt-faint); letter-spacing: 0.02em; transition: color 0.4s var(--ease); }

.stage.is-active .stage-orb {
  border-color: var(--accent); color: #fff;
  background: linear-gradient(135deg, rgba(101,87,189,0.5), rgba(101,87,189,0.15));
  box-shadow: 0 0 0 5px rgba(101,87,189,0.12), 0 0 24px rgba(101,87,189,0.55);
  animation: orb-pulse 1.5s var(--ease) infinite;
}
.stage.is-active .stage-label { color: var(--accent-soft); }
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(101,87,189,0.10), 0 0 20px rgba(101,87,189,0.4); }
  50%      { box-shadow: 0 0 0 9px rgba(101,87,189,0.05), 0 0 34px rgba(101,87,189,0.7); }
}
.stage.is-done .stage-orb {
  border-color: var(--green); color: var(--green);
  background: rgba(79,166,122,0.14);
  box-shadow: 0 0 18px -2px rgba(79,166,122,0.5);
}
.stage.is-done .stage-label { color: #a9d9c3; }

.op-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: stretch; }

.panel {
  background: var(--panel); border: 1px solid var(--hair);
  border-radius: 18px; backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8);
}
.panel-cap {
  padding: 16px 20px 0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--txt-faint);
}

/* burndown */
.burndown-panel { padding-bottom: 20px; display: flex; flex-direction: column; }
.burndown { display: flex; align-items: baseline; gap: 12px; padding: 8px 20px 4px; }
.burn-number {
  font-family: var(--serif); font-weight: 700; font-size: 74px; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease);
}
.burn-number.is-zero { color: var(--green); text-shadow: 0 0 30px rgba(79,166,122,0.6); }
.burn-unit { font-size: 15px; color: var(--txt-dim); }
.burn-bar {
  margin: 14px 20px 18px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.burn-bar-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--crit), var(--accent) 55%, var(--green));
  border-radius: 999px;
  transition: width 0.8s var(--ease);
}
.sev-breakdown { display: flex; flex-direction: column; gap: 9px; padding: 0 20px; }
.sev-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.sev-row .sev-name { display: inline-flex; align-items: center; gap: 8px; color: var(--txt-dim); font-weight: 600; }
.sev-row .swatch { width: 9px; height: 9px; border-radius: 3px; }
.sev-row .sev-count { font-family: var(--mono); font-weight: 600; color: var(--txt); font-variant-numeric: tabular-nums; }
.sev-row.is-cleared .sev-count { color: var(--green); }
.sev-row.is-cleared .sev-name { opacity: 0.5; }

.op-meters {
  margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 20px 20px 0; border-top: 1px solid var(--hair); margin-top: 20px;
}
.meter { display: flex; flex-direction: column; gap: 5px; }
.meter-cap { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--txt-faint); }
.meter-val { font-size: 26px; font-weight: 600; color: var(--txt); font-variant-numeric: tabular-nums; }
.meter-val.good { color: var(--green); }
.meter-val.accent { color: var(--accent-soft); }
.meter-val.cost-pop { display: inline-block; animation: cost-pop 0.6s ease; transform-origin: left center; }
@keyframes cost-pop { 0% { transform: scale(1); } 28% { transform: scale(1.22); } 100% { transform: scale(1); } }
.meter-note { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-soft); opacity: 0.9; }
.meter-note.good { color: var(--green); }

/* log terminal */
.log-panel { display: flex; flex-direction: column; overflow: hidden; }
.log-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--hair);
  background: rgba(0,0,0,0.25);
}
.log-dots { display: inline-flex; gap: 6px; }
.log-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--txt-faint); opacity: 0.5; }
.log-dots i:nth-child(1) { background: var(--red); opacity: 0.7; }
.log-dots i:nth-child(2) { background: var(--crit); opacity: 0.7; }
.log-dots i:nth-child(3) { background: var(--green); opacity: 0.7; }
.log-title { font-size: 12.5px; color: var(--txt-dim); }
.log-body {
  flex: 1; min-height: 300px; max-height: 360px; overflow-y: auto;
  padding: 16px 20px; font-size: 13px; line-height: 1.75; color: #c8c3dd;
  scroll-behavior: smooth;
}
.log-body::-webkit-scrollbar { width: 6px; }
.log-body::-webkit-scrollbar-thumb { background: var(--hair-strong); border-radius: 3px; }
.log-line {
  opacity: 0; transform: translateY(4px);
  animation: log-in 0.4s var(--ease) forwards;
  white-space: pre-wrap; word-break: break-word;
}
@keyframes log-in { to { opacity: 1; transform: translateY(0); } }
.log-line .prompt { color: var(--accent); }
.log-line .ok { color: var(--green); }
.log-line .warn { color: var(--crit); }
.log-line .dim { color: var(--txt-faint); }
.log-line .llm { color: var(--accent-soft); font-weight: 600; }
.log-caret { display: inline-block; width: 8px; height: 15px; background: var(--accent-soft); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* =================================================== STATE 3: AFTER */
.state-after { display: none; }
.after-inner { text-align: center; max-width: 760px; margin: 40px auto 0; }
.success-mark { width: 96px; height: 96px; margin: 0 auto 24px; }
.success-mark svg { width: 100%; height: 100%; }
.sm-ring { stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw 0.7s var(--ease) 0.15s forwards; filter: drop-shadow(0 0 12px rgba(79,166,122,0.6)); }
.sm-check { stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.5s var(--ease) 0.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.after-h1 {
  margin: 0 0 14px; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02;
  background: linear-gradient(180deg, #fff 30%, #b9e6d1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.after-sub { margin: 0 0 40px; font-size: 17px; color: var(--txt-dim); }

.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 42px; }
.metric-card {
  padding: 26px 18px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--hair); backdrop-filter: blur(16px);
}
.metric-val { font-family: var(--serif); font-weight: 700; font-size: 42px; line-height: 1; color: #fff; }
.metric-val.accent { color: var(--accent-soft); }
.metric-val.good { color: var(--green); }
.metric-cap { margin-top: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--txt-faint); text-transform: uppercase; }

.after-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.btn-pr {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 18px 34px; border-radius: 15px; text-decoration: none;
  font-size: 17px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #7568d0, #5a4bb0);
  box-shadow: 0 18px 50px -14px rgba(101,87,189,0.85), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-pr:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 26px 70px -14px rgba(101,87,189,1); }
.btn-talk {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 13px; text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--txt);
  letter-spacing: 0.01em;
  background: var(--panel); border: 1px solid var(--hair-strong);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-talk:hover { border-color: var(--accent-soft); color: var(--accent-soft); transform: translateY(-2px); }
.btn-reset {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--txt-faint);
  letter-spacing: 0.02em; transition: color 0.3s var(--ease);
}
.btn-reset:hover { color: var(--accent-soft); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .findings-grid { grid-template-columns: repeat(2, 1fr); }
  .op-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .rail { flex-wrap: nowrap; overflow-x: auto; }
}
@media (max-width: 600px) {
  .stage-wrap, .topbar { padding-left: 20px; padding-right: 20px; }
  .findings-grid { grid-template-columns: 1fr; }
  .stage { width: 78px; }
  .stage-label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.1s !important; }
}

/* ---------------------------------------------------------------- mode chip
   Shown in the topbar of demo-sast / demo-sca to label the active analysis
   type and let the viewer jump back to the selector. */
.mode-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hair-strong);
  backdrop-filter: blur(14px);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.mode-chip:hover { border-color: var(--accent-soft); transform: translateY(-1px); }
.mode-chip-kind {
  font: 700 12px/1 var(--mono); letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 6px; color: #fff;
}
.mode-chip-sast .mode-chip-kind { background: rgba(101,87,189,0.9); }
.mode-chip-sca .mode-chip-kind  { background: rgba(79,166,122,0.9); }
.mode-chip-desc { font-size: 12.5px; font-weight: 600; color: var(--txt-dim); letter-spacing: 0.01em; }

/* ---------------------------------------------------------------- SCA dep row */
.finding-dep { margin: 2px 0 8px; font-size: 13.5px; color: var(--txt); word-break: break-all; }
.finding-dep b { font-weight: 600; }
.bump {
  display: inline-block; margin-left: 4px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.01em;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(79,166,122,0.14); color: var(--green);
  border: 1px solid rgba(79,166,122,0.28);
  white-space: nowrap;
}
.bump-major {
  display: inline-block; margin-left: 4px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(101,87,189,0.20); color: var(--accent-soft);
  border: 1px solid rgba(101,87,189,0.40);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- selector (/demo) */
.select-wrap {
  position: relative; z-index: 5;
  max-width: 1000px; margin: 0 auto; padding: 40px 24px 80px;
  text-align: center;
}
.select-head { margin-bottom: 44px; }
.select-head .eyebrow { justify-content: center; }
.select-h1 { font-size: clamp(32px, 5vw, 52px); margin: 14px 0 12px; }
.select-sub { color: var(--txt-dim); font-size: 17px; max-width: 620px; margin: 0 auto; }
.select-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  text-align: left;
}
.select-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 26px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--hair-strong);
  backdrop-filter: blur(16px);
  text-decoration: none; color: var(--txt);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  overflow: hidden;
}
.select-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
}
.select-card-sast::before { background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.select-card-sca::before  { background: linear-gradient(90deg, var(--green), #7fd4a6); }
.select-card:hover { transform: translateY(-4px); border-color: var(--hair-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.select-card-sast:hover { border-color: var(--accent-soft); }
.select-card-sca:hover  { border-color: rgba(79,166,122,0.6); }
.select-kind {
  align-self: flex-start;
  font: 700 12px/1 var(--mono); letter-spacing: 0.1em;
  padding: 6px 11px; border-radius: 7px; color: #fff; margin-bottom: 16px;
}
.select-card-sast .select-kind { background: rgba(101,87,189,0.9); }
.select-card-sca .select-kind  { background: rgba(79,166,122,0.9); }
.select-card h2 { font-family: var(--serif); font-size: 25px; margin: 0 0 8px; }
.select-card .select-tag { color: var(--txt-dim); font-size: 14.5px; margin: 0 0 18px; }
.select-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.select-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--txt); }
.select-card li svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; }
.select-card-sast li svg { color: var(--accent-soft); }
.select-card-sca li svg  { color: var(--green); }
.select-go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px;
}
.select-card-sast .select-go { color: var(--accent-soft); }
.select-card-sca .select-go  { color: var(--green); }
.select-note { margin-top: 34px; font-size: 13.5px; color: var(--txt-faint); }
@media (max-width: 720px) {
  .select-grid { grid-template-columns: 1fr; }
  .mode-chip-desc { display: none; }
}
