:root {
  color-scheme: dark;
  --bg: #101312;
  --panel: #171c1a;
  --muted: #9aa5a0;
  --text: #edf3ef;
  --line: #2b3530;
  --accent: #e5484d;
  --accent-2: #34c759;
  --warn: #f5b942;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 750;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vw, 116px) clamp(20px, 5vw, 72px) clamp(40px, 7vw, 80px);
  min-height: 74vh;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 18px;
  max-width: 800px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.review-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.visual-header {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
}

.visual-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #58625d;
}

.finding {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.finding strong {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.finding span {
  color: var(--text);
}

.critical strong {
  color: var(--accent);
}

.high strong {
  color: var(--warn);
}

.sarif-line {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.band {
  padding: 44px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #121715;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

article h2,
.content h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.content {
  max-width: 980px;
  padding: 54px clamp(20px, 5vw, 72px);
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0e0d;
  padding: 20px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.compact {
  padding-top: 12px;
}

li {
  margin: 10px 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .topbar,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
