:root {
  --bg: #070d12;
  --card: #121a22;
  --ink: #e7eef3;
  --muted: #9aafbc;
  --line: #2a3946;
  --green: #1ed760;
  --green-ink: #062117;
  --orange: #f0a35e;
  --red: #ff8d8d;
  --shadow: 0 16px 36px rgba(0, 0, 0, .28);
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .brand span, .button { font-family: Outfit, sans-serif; letter-spacing: -.02em; }
h1 { font-size: clamp(1.85rem, 4vw, 3.1rem); line-height: 1.12; margin: 0 0 10px; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.2; margin: 0 0 10px; }
h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
p { margin: 0 0 12px; }
a { color: #8ee7b5; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid #1ed760; outline-offset: 2px; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; background: #fff; color: #062117; padding: 8px 12px; z-index: 8; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(7, 13, 18, .92); border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; font-size: 1.15rem; }
.links { display: flex; gap: 16px; margin-inline-start: auto; }
.links a { color: #d5e4ea; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.links a[aria-current="page"] { color: #fff; }
.menu { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; min-height: 44px; padding: 0 14px; }
.lang { display: flex; align-items: center; margin: 0; }
.lang select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #0d151c; padding: 0 8px; max-width: 132px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0;
  background: var(--green); color: var(--green-ink); text-decoration: none; font-weight: 650;
}
.button:hover { filter: brightness(1.05); }
.button:active { transform: translateY(1px); }
.button.small { min-height: 44px; padding: 0 12px; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.ghost:hover { border-color: #8ee7b5; }
.hero { padding: 28px 0 20px; background: radial-gradient(700px 280px at 80% 0%, rgba(30, 215, 96, .12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 22px; align-items: start; }
.hero-copy, .scanner { grid-column: 1; }
.notes { grid-column: 2; grid-row: 1 / span 2; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: #8ee7b5; margin-bottom: 8px; }
.lede, .section-lead { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.trust, .hint, .tip { color: var(--muted); font-size: .95rem; }
.scanner, .stack, .progress-card, .example-card, .report-card, .card-link, .cards article, .notes {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.scanner, .stack, .progress-card, .example-card { padding: 16px; }
.notes { padding: 18px; }
.notes ul, .plain, .status-list { list-style: none; padding: 0; margin: 0; }
.notes li, .check { display: flex; gap: 10px; align-items: flex-start; }
.notes li + li { margin-top: 14px; }
.icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: #1ed760; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modes { display: flex; gap: 8px; margin-bottom: 12px; }
.modes.sub { margin-top: 4px; }
.modes button, .text {
  min-height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #0d151c; color: var(--ink); padding: 0 12px;
}
.modes button[aria-pressed="true"] { background: #1ed760; color: #062117; border-color: #1ed760; }
.label-row { display: flex; align-items: center; gap: 8px; }
.label-row label { flex: 1; margin-bottom: 0; }
.label-row .text { margin-top: 8px; }
.scanner input, select, textarea, .stack input, .stack textarea, #web-url {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: #0b1218; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
.error { min-height: 1.2em; color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions.tight { margin-top: 0; }
.hidden, [hidden] { display: none !important; }
.ribbon {
  display: inline-flex; margin: 0 0 10px; background: #3a2d12; color: #ffd98a;
  border-radius: 999px; padding: 4px 10px; font-size: .78rem; letter-spacing: .08em; font-weight: 700;
}
.section { padding: 36px 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.patterns { grid-template-columns: repeat(3, 1fr); }
.cards article, .card-link { padding: 16px; text-decoration: none; color: inherit; }
.card-link { display: block; }
.card-link:hover, .cards article:hover { border-color: #355446; }
.status-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.status-list strong { display: inline-block; min-width: 9.5em; }
.panel { padding: 8px 0 28px; background: radial-gradient(520px 240px at 50% 0%, rgba(30, 215, 96, .16), transparent 70%); }
.progress-card { max-width: 460px; margin: 0 auto; text-align: center; box-shadow: 0 0 0 1px rgba(30, 215, 96, .18), 0 24px 60px rgba(0, 0, 0, .35); }
.progress-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; text-align: start; }
.gauge-wrap { position: relative; width: min(280px, 100%); margin: 8px auto 0; }
.gauge { width: 100%; height: auto; display: block; }
.gauge-track, #gauge-arc { fill: none; stroke-linecap: round; stroke-width: 12; }
.gauge-track { stroke: #1c3326; }
#gauge-arc { stroke: #1ed760; stroke-dasharray: 251; stroke-dashoffset: 251; }
.gauge-mark { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; }
.gauge-readout { position: absolute; left: 0; right: 0; bottom: 6px; }
#gauge-pct { display: block; font-size: 3rem; line-height: 1; color: #f4fff8; }
#stage-label { display: block; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.pace-steps { list-style: none; padding: 0; margin: 12px 0; text-align: start; }
.pace-steps li { padding: 8px 10px; border-radius: 10px; color: #6e8492; }
.pace-steps li.active { color: #f4fff8; background: #10261a; }
.pace-steps li.done { color: #8ee7b5; }
.bar { height: 8px; background: #243140; border-radius: 999px; overflow: hidden; }
#bar-fill { display: block; height: 100%; width: 0; background: var(--green); }
#progress-done, #progress-sources { padding-inline-start: 18px; }
.guide, .prose ul, .report ul { padding-inline-start: 18px; }
.report-card { padding: 16px; margin: 14px 0; }
.report-card li.risk { color: var(--red); }
.report-card li.attention { color: var(--orange); }
.addr { overflow-wrap: anywhere; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.meta div { background: #0d151c; border-radius: 12px; padding: 12px; }
.meta dt { color: var(--muted); font-size: .85rem; }
.stack.slim { margin-top: 18px; }
.check, .choice { font-weight: 500; margin: 8px 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; }
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; padding: 12px; }
.site-footer { border-top: 1px solid var(--line); color: #c5d4dc; padding: 28px 0 40px; }
.foot { display: flex; justify-content: space-between; gap: 18px; }
.site-footer a { color: #fff; margin-inline-end: 12px; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }
#web-result h2 { margin-top: 12px; }
@media (max-width: 980px) {
  .hero-grid, .split, .cards.four, .cards.patterns, .meta { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .menu { display: inline-flex; margin-inline-start: auto; }
  .links.open {
    display: flex; flex-direction: column; position: absolute; z-index: 6;
    top: 68px; inset-inline: 0; background: #071018; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
  }
  .notes { grid-column: 1; grid-row: auto; }
}
@media (max-width: 700px) {
  .nav { min-height: 56px; }
  .links.open { top: 56px; }
  .hero { padding: 8px 0 4px; }
  h1 { font-size: 1.65rem; line-height: 1.12; margin-bottom: 6px; }
  .lede { font-size: .98rem; line-height: 1.4; margin-bottom: 8px; }
  .scanner { padding: 12px; }
  .modes { margin-bottom: 8px; }
  label { margin: 8px 0 4px; }
  .hint, .trust { font-size: .9rem; line-height: 1.35; margin-bottom: 6px; }
  .actions { margin-top: 8px; }
  .hero-grid { display: flex; flex-direction: column; }
  .notes { order: 3; }
  .cards, .cards.four, .cards.patterns, .split, .meta, .foot { grid-template-columns: 1fr; display: grid; }
  .foot { display: grid; }
  .actions .button, .section .button { width: 100%; }
  .site-header .button.small { display: none; }
  .label-row .text { min-width: 72px; }
  .status-list strong { min-width: 0; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
