:root {
  --bg: #111215; --panel: #1a1c21; --panel-2: #20232a; --line: #2c2f37;
  --text: #e8e8ea; --muted: #9aa0ab; --accent: #8b6cff; --accent-2: #a78bfa; --gold: #fde68a;
  --critical: #ef4444; --warning: #f59e0b; --possible: #38bdf8; --info: #a1a1aa; --good: #22c55e;
  --radius: 10px; --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }
:not(pre) > code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 0.88em; word-break: break-word; }
pre { background: #0c0d10; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; line-height: 1.55; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(17,18,21,.9); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* hero */
.hero { padding: 72px 0 48px; }
.eyebrow { color: var(--accent-2); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.5px; max-width: 760px; text-wrap: balance; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #7a58ff; }

section { padding: 40px 0; }
h2 { font-size: 28px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -.3px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { padding: 3px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rule-list li:last-child { border-bottom: 0; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--good); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.product { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0c0d10; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0; }
.stats b { display: block; font-size: 26px; color: var(--text); }
.stats span { color: var(--muted); font-size: 14px; }
.legend { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; color: var(--muted); font-style: italic; max-width: 760px; }

/* docs */
.page { padding: 40px 0 60px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 12px; }
.prose { max-width: 780px; }
.prose p, .prose li { color: #cfd2d8; }
.prose h2 { margin-top: 36px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--accent-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); margin: 0 4px 4px 0; white-space: nowrap; }
.badge.critical { color: var(--critical); } .badge.warning { color: var(--warning); } .badge.possible { color: var(--possible); } .badge.info { color: var(--info); }
.rule-id { font-family: ui-monospace, Menlo, monospace; font-weight: 700; white-space: nowrap; }
.example { margin: 18px 0; }
.example .label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.example.bad .label { color: var(--critical); } .example.good .label { color: var(--good); }
.example.bad pre { border-left: 3px solid var(--critical); } .example.good pre { border-left: 3px solid var(--good); }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 32px; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 10px; gap: 16px; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}

/* consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.5); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.consent p { margin: 0; flex: 1 1 260px; color: #cfd2d8; font-size: 15px; }
.consent-buttons { display: flex; gap: 10px; }
.consent .btn { padding: 8px 16px; cursor: pointer; font: inherit; font-weight: 600; }
.footer-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.footer-link:hover { color: var(--text); text-decoration: underline; }
