:root {
  color-scheme: dark;
  --bg: #080b0f;
  --bg-deep: #05070a;
  --panel: #0d1218;
  --panel-raised: #111820;
  --line: #26313d;
  --line-control: #5c6b7b;
  --text: #f3f6f8;
  --text-soft: #b3bec9;
  --muted: #778492;
  --lime: #6fd3a5;
  --orange: #dfb060;
  --red: #c7233e;
  --red-bright: #ff5267;
  --blue: #b3bec9;
  --radius: 12px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button,
input {
  font: inherit;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem;
}
.skip-link:focus {
  top: 1rem;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-size: 1.22rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.4;
}
.brand-mark-core {
  stroke: var(--red-bright);
}
.status {
  font:
    0.75rem ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 0.5rem;
  box-shadow: 0 0 16px var(--lime);
}
main {
  width: min(1180px, calc(100% - 44px));
  margin: auto;
}
.hero {
  padding: clamp(70px, 9vw, 130px) 0 80px;
}
.eyebrow {
  color: var(--red-bright);
  font:
    0.75rem ui-monospace,
    monospace;
  letter-spacing: 0.14em;
  margin: 0 0 1.6rem;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin: 0;
  max-width: 950px;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 760px;
  margin: 2.2rem 0 2.6rem;
}
.review-form {
  max-width: 940px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.review-form label {
  display: block;
  font:
    0.75rem ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.input-row input {
  min-width: 0;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--line-control);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  outline: none;
}
.input-row input:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 2px rgba(255, 82, 103, 0.16);
}
.input-row button {
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--text);
  font-weight: 800;
  padding: 0 1.4rem;
  cursor: pointer;
}
.input-row button:hover {
  background: var(--red-bright);
  color: var(--bg);
}
.input-row button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.input-row button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.review-form > p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 12px 0 0;
}
.review-form .error {
  color: var(--red-bright);
  min-height: 1.2em;
}
.trust-row {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  color: var(--muted);
  font:
    0.72rem ui-monospace,
    monospace;
  text-transform: uppercase;
  margin-top: 22px;
}
.trust-row span::before {
  content: "✓";
  color: var(--lime);
  margin-right: 0.45rem;
}
.review-state,
.results,
.how-it-works {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.review-state {
  display: flex;
  gap: 22px;
  align-items: center;
}
.review-state[hidden],
.results[hidden] {
  display: none;
}
.review-state p {
  margin: 0.3rem 0;
  color: var(--muted);
}
.scanner {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-control);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.scanner span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--red-bright);
  animation: scan 1.3s ease-in-out infinite;
}
@keyframes scan {
  0%,
  100% {
    top: 10px;
  }
  50% {
    top: 42px;
  }
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.result-head h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0;
}
.result-head p:not(.eyebrow) {
  color: var(--muted);
}
.decision {
  padding: 0.7rem 1rem;
  border: 1px solid;
  border-radius: 8px;
  font:
    800 0.8rem ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.decision.block {
  color: var(--red-bright);
  border-color: var(--red-bright);
}
.decision.review {
  color: var(--orange);
  border-color: var(--orange);
}
.decision.pass {
  color: var(--lime);
  border-color: var(--lime);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 36px 0;
}
.summary-grid article {
  background: var(--panel);
  padding: 22px;
}
.summary-grid span {
  display: block;
  font:
    0.7rem ui-monospace,
    monospace;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.findings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.findings-head h3 {
  font-size: 1.5rem;
}
.findings-head span {
  color: var(--muted);
  font:
    0.75rem ui-monospace,
    monospace;
}
.findings {
  display: grid;
  gap: 12px;
}
.finding {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px;
}
.finding[data-severity="critical"],
.finding[data-severity="high"] {
  border-left-color: var(--red-bright);
}
.finding[data-severity="medium"] {
  border-left-color: var(--orange);
}
.finding-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.finding h4 {
  margin: 0;
  font-size: 1.05rem;
}
.badge {
  font:
    0.7rem ui-monospace,
    monospace;
  text-transform: uppercase;
  color: var(--red-bright);
}
.finding .location {
  font:
    0.75rem ui-monospace,
    monospace;
  color: var(--lime);
  overflow-wrap: anywhere;
}
.finding p {
  color: var(--text-soft);
  line-height: 1.55;
}
.finding .suggestion {
  margin-bottom: 0;
}
.empty {
  border: 1px dashed var(--line-control);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--muted);
}
.limitations {
  color: var(--muted);
  font:
    0.75rem ui-monospace,
    monospace;
  margin-top: 22px;
}
.evidence-report { margin-top: 40px; }
.evidence-report[hidden] { display: none; }
.report-heading, .check-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-heading h3 { margin: 0; font-size: 1.5rem; }
.coverage-score { font: .8rem ui-monospace, monospace; color: var(--text-soft); }
.report-note { color: var(--text-soft); line-height: 1.6; }
.review-commit, .evidence-quote { font: .78rem/1.6 ui-monospace, monospace; overflow-wrap: anywhere; color: var(--text-soft); }
.evidence-quote { border-left: 2px solid var(--line-control); padding-left: 12px; }
.scope-state { color: var(--orange); line-height: 1.5; }
.report-detail { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); margin-top: 12px; padding: 18px 22px; overflow-wrap: anywhere; }
.report-detail summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.report-detail summary:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.report-detail > p, .security-section p { line-height: 1.65; }
.impact-files, .report-checks { list-style: none; padding: 0; }
.impact-files li { padding: 10px 0; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); }
.impact-files code { font: .8rem/1.5 ui-monospace, monospace; }
.report-unknowns { color: var(--text-soft); padding-left: 20px; line-height: 1.65; }
.report-unknowns li + li { margin-top: 6px; }
.security-section { padding-top: 14px; }
.security-section h4 { color: var(--text); margin-bottom: 10px; }
.evidence-basis { color: var(--orange); font-weight: 550; }
.report-checks li { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.check-state { color: var(--text-soft); font: .75rem ui-monospace, monospace; text-transform: uppercase; }
.check-state[data-state="passed"] { color: var(--lime); }
.check-state[data-state="failed"] { color: var(--red-bright); }
.check-state[data-state="warning"], .check-state[data-state="pending"] { color: var(--orange); }
.workspace-next { margin-top: 32px; padding: 24px; border: 1px solid var(--line-control); border-radius: var(--radius); display: flex; gap: 28px; align-items: center; background: var(--panel-raised); }
.workspace-next .eyebrow { margin-bottom: 12px; }
.workspace-next h3 { margin: 0; font-size: 1.4rem; }
.workspace-next p:not(.eyebrow) { color: var(--text-soft); max-width: 740px; line-height: 1.6; margin-bottom: 0; }
.workspace-action { flex-shrink: 0; color: var(--text); background: var(--red); padding: 14px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.results { overflow-wrap: anywhere; }
.results > *, .summary-grid article, .result-head > * { min-width: 0; }
.how-it-works h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.05em;
  max-width: 650px;
}
.how-it-works ol {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.how-it-works li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.how-it-works li > span {
  color: var(--lime);
  font:
    700 0.75rem ui-monospace,
    monospace;
}
.how-it-works strong {
  font-size: 1.1rem;
}
.how-it-works p {
  color: var(--muted);
  margin: 0.5rem 0;
  line-height: 1.5;
}
footer {
  width: min(1180px, calc(100% - 44px));
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 50px;
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.8rem;
}
footer span {
  margin-right: auto;
}
footer a {
  color: var(--muted);
}
@media (max-width: 700px) {
  .topbar {
    height: 64px;
  }
  .hero {
    padding-top: 60px;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
  .input-row button {
    min-height: 54px;
  }
  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .trust-row {
    display: grid;
    gap: 0.7rem;
  }
  .finding-top {
    flex-direction: column;
  }
  .findings-head { flex-wrap: wrap; gap: 8px; }
  .workspace-next { align-items: stretch; flex-direction: column; }
  .workspace-action { text-align: center; }
  .how-it-works li {
    grid-template-columns: 48px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .scanner span {
    animation: none;
    top: 26px;
  }
}
