:root {
  --bg: #0A0B0F;
  --surface: #12141A;
  --surface-2: #181B24;
  --line: #1F2330;
  --text: #F4F6FB;
  --muted: #9AA3B5;
  --accent: #D4AF37;
  --accent-2: #E6C766;
  --accent-ink: #14110A;
  --glow: rgba(212, 175, 55, 0.32);
  --high: #FF5A6E;
  --med: #FFB020;
  --low: #35D07F;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(212, 175, 55, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 12px; }
.site-header, .site-footer, .wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.03em; }
.brand img, .footer-brand img { height: 40px; width: auto; display: block; }
.brand small, .footer-brand small { display: block; color: var(--muted); font-weight: 500; letter-spacing: 0.16em; font-size: 10px; text-transform: uppercase; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.footer-brand img { height: 36px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav a.btn, .nav a.btn:hover, .nav a.btn:focus-visible { color: var(--accent-ink); }
.wrap { padding-bottom: 72px; }
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px;
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; font-weight: 650; }
h1 { font-size: clamp(40px, 6vw, 68px); margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; }
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; padding: 36px 0 20px; }
.kicker { color: var(--accent-2); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn, button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #F0D78A 0%, #E6C766 42%, #D4AF37 100%);
  color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 12px 18px; font: 650 15px/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 28px var(--glow);
}
.btn:hover, button:hover, .button:hover {
  background: linear-gradient(180deg, #F6E4A6 0%, #EED488 45%, #E6C766 100%);
  color: var(--accent-ink);
}
.btn.secondary, button.secondary, .btn.secondary:hover, button.secondary:hover {
  background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none;
}
.btn.secondary:hover, button.secondary:hover { border-color: var(--accent); color: var(--accent-2); }
.btn.small { padding: 9px 14px; font-size: 13px; }
button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.card, .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.grid-3, .grid-2, .grid-4 { display: grid; gap: 16px; margin: 18px 0 8px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section { padding: 42px 0 10px; }
.muted { color: var(--muted); }
.flash { background: #2A2112; border: 1px solid var(--med); color: #FFE7C2; padding: 12px 14px; border-radius: 12px; }
.hero-card { position: relative; overflow: hidden; }
.hero-card strong { font-size: 42px; letter-spacing: -0.04em; }
.price { color: var(--accent-2); }
.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 22px; }
.stepper span, .pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: 12px;
}
.stepper .on { background: rgba(212, 175, 55, 0.16); color: var(--accent-2); border-color: transparent; }
label { display: block; margin: 12px 0; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%; margin-top: 6px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit;
}
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--high); }
.chk { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.chk input { width: auto; margin-top: 4px; accent-color: var(--accent); }
pre.letter, .token {
  white-space: pre-wrap; font-family: var(--mono); font-size: 13px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow: auto;
}
.copy-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.progress { height: 8px; background: #0A0B0F; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #C4A04A, var(--accent), var(--accent-2)); }
.attack-list, .clean { list-style: none; padding: 0; margin: 0; }
.attack-row, .clean li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pill.verdict-pass, .sev-low { background: rgba(53, 208, 127, 0.15); color: var(--low); }
.pill.verdict-partial, .sev-medium { background: rgba(255, 176, 32, 0.15); color: var(--med); }
.pill.verdict-fail, .sev-high, .sev-critical { background: rgba(255, 90, 110, 0.15); color: var(--high); }
.pill.verdict-inconclusive { background: rgba(150, 176, 210, 0.16); color: #C5D4E8; }
.pill.verdict-not_applicable { background: #1A1D27; color: var(--muted); }
.grade {
  width: 112px; height: 112px; border-radius: 28px; display: grid; place-items: center;
  font-size: 56px; font-weight: 700; background: radial-gradient(circle at 30% 20%, #F0D78A, #D4AF37 58%, #C4A04A);
  color: var(--accent-ink); box-shadow: 0 12px 40px var(--glow);
}
.gauge { width: min(280px, 100%); }
.finding-card details { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.finding-card summary { cursor: pointer; color: var(--accent-2); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 550; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.stat b { display: block; font-size: 28px; letter-spacing: -0.04em; }
.faq details { padding: 8px 0; border-bottom: 1px solid var(--line); }
.preview-page { min-height: 220px; background: #FBF7EE; color: #16141F; border-radius: 12px; padding: 16px; }
.admin-nav { display: flex; gap: 18px; margin: 8px 0 4px; }
.admin-nav a { color: var(--accent-2); text-decoration: none; font-size: 14px; }
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; margin-bottom: 18px; }
.filters button { margin-top: 22px; }
@media (max-width: 860px) {
  .hero, .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .site-header, .site-footer, .wrap { width: min(1120px, calc(100% - 24px)); }
}
