:root {
  --bg: #0b0d10;
  --card: #13161b;
  --line: #242a33;
  --text: #e6e8eb;
  --muted: #8b93a1;
  --red: #ff3b3b;
  --red-dim: #5a1414;
  --green: #3ddc84;
  --amber: #ffb020;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at top, #2a0c0c 0%, var(--bg) 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.6 var(--sans);
}

a { color: var(--red); }
code, pre { font-family: var(--mono); }
code { background: #1d2229; padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.banner {
  background: var(--red-dim);
  border-bottom: 1px solid var(--red);
  padding: 10px 16px;
  text-align: center;
  font-size: .9rem;
}
.pulse {
  display: inline-block; width: 9px; height: 9px; margin-right: 8px;
  border-radius: 50%; background: var(--red);
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 50% { opacity: .2; } }

.hero { text-align: center; padding: 64px 16px 40px; }
.logo { width: 160px; height: 160px; filter: drop-shadow(0 0 30px rgba(255,59,59,.45)); }
h1 {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  margin: 16px 0 4px;
  letter-spacing: -.03em;
}
h1 .two { color: var(--red); }
.cve { font-family: var(--mono); color: var(--muted); margin: 0; }
.score { color: var(--red); font-weight: 700; }
.tagline { max-width: 620px; margin: 20px auto; font-size: 1.15rem; color: #c9ced6; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 1rem; cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { border-color: var(--muted); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #ff5555; border-color: #ff5555; }

main { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
}
.card h2 { margin-top: 0; font-size: 1.4rem; }
.fine { color: var(--muted); font-size: .85rem; }

.cvss { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.cvss div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.cvss span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.cvss b { color: var(--red); }

.term { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #07090b; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #1a1e24; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a404a; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; color: var(--muted); font-size: .8rem; font-family: var(--mono); }
.term pre { margin: 0; padding: 16px; font-size: .9rem; line-height: 1.55; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.p { color: var(--green); }
.r { color: var(--red); font-weight: 700; }
.cursor { animation: pulse 1s steps(1) infinite; color: var(--text); }




details { border-top: 1px solid var(--line); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: #c9ced6; }

footer {
  max-width: 820px; margin: 40px auto 0; padding: 24px 16px 48px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center;
}
footer strong { color: var(--text); }

@media (max-width: 520px) {
  .card { padding: 18px 16px; }
  .term pre { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; }
.ioc-table td:first-child { color: var(--red); font-family: var(--mono); white-space: nowrap; }
.ioc-table td:nth-child(2) code { word-break: break-all; }
.ioc-table td:nth-child(2) { min-width: 200px; }

.data-table { margin: 16px 0 8px; }
pre.code {
  background: #07090b; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: .88rem; overflow-x: auto; margin: 12px 0;
}
.banner { color: #f3c9c9; }

@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .data-table td { border: 0; padding: 2px 0; min-width: 0 !important; }
  .data-table:not(.ioc-table) td:first-child { font-weight: 600; }
  .data-table:not(.ioc-table) td:last-child::before { content: "Fixed version: "; color: var(--muted); }
  .ioc-table td:first-child { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
}
