:root {
  --bg: #0A0E14;
  --surface: #111720;
  --border: #1F2733;
  --text: #E6EDF3;
  --muted: #8B98A8;
  --clean: #22C55E;
  --suspicious: #F59E0B;
  --infected: #EF4444;
  --info: #38BDF8;
  --accent: #22C55E;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--info); text-decoration-thickness: 1px; }
a:hover { color: white; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sw-skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #04140a; padding: .4rem .8rem; }
.sw-skip:focus { left: .5rem; z-index: 9; }
.sw-wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.sw-header, .sw-footer { background: rgba(10,14,20,.92); border-bottom: 1px solid var(--border); }
.sw-footer { border-bottom: 0; border-top: 1px solid var(--border); margin-top: 4rem; padding: 2.5rem 0; color: var(--muted); }
.sw-header-inner, .sw-footer-grid { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.sw-header-inner { padding: .7rem 0; }
.sw-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,14,20,.78);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.sw-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 700; letter-spacing: -.03em; text-decoration: none; font-size: 1.2rem; flex-shrink: 0; }
.sw-brand:hover { color: var(--text); }
.sw-brand-mark { color: var(--accent); filter: drop-shadow(0 0 8px rgba(34,197,94,.35)); }
.sw-brand-word span { color: var(--accent); }
.sw-nav { display: flex; gap: .25rem; align-items: center; padding: .25rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(17,23,32,.6); }
.sw-nav a { position: relative; color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; padding: .45rem .9rem; border-radius: 999px; transition: color .15s, background-color .15s; }
.sw-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.sw-nav a[aria-current="page"] { color: var(--text); background: #18212d; box-shadow: inset 0 0 0 1px #263142; }
.sw-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.sw-header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.sw-btn.sw-nav-cta { padding: .55rem 1rem; border-radius: 999px; font-size: .92rem; font-weight: 700; box-shadow: 0 0 0 1px rgba(34,197,94,.4), 0 6px 20px -8px rgba(34,197,94,.6); transition: transform .15s, box-shadow .15s; }
.sw-btn.sw-nav-cta:hover { color: #04140a; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(34,197,94,.6), 0 10px 24px -8px rgba(34,197,94,.75); }
.sw-nav-mobile { display: none; }
.sw-nav-mobile > summary { list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.sw-nav-mobile > summary::-webkit-details-marker { display: none; }
.sw-burger { position: relative; width: 18px; height: 12px; }
.sw-burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s, top .2s; }
.sw-burger span:nth-child(1) { top: 0; }
.sw-burger span:nth-child(2) { top: 5px; }
.sw-burger span:nth-child(3) { top: 10px; }
.sw-nav-mobile[open] > summary { border-color: #2c3a4d; background: #18212d; }
.sw-nav-mobile[open] .sw-burger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.sw-nav-mobile[open] .sw-burger span:nth-child(2) { opacity: 0; }
.sw-nav-mobile[open] .sw-burger span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.sw-nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 64px); overflow-y: auto;
  background: #0d131b; border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.7);
  padding: .75rem 1rem 1.25rem;
  animation: sw-drop .18s ease-out;
}
@keyframes sw-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sw-nav-panel nav { display: grid; gap: .35rem; }
.sw-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.sw-nav-row:hover, .sw-nav-row:active { color: var(--text); border-color: #2c3a4d; background: #151d28; }
.sw-nav-row strong { display: block; font-weight: 650; }
.sw-nav-row small { display: block; color: var(--muted); font-size: .82rem; margin-top: .1rem; }
.sw-nav-row svg { color: var(--muted); flex-shrink: 0; }
.sw-nav-row[aria-current="page"] { border-color: rgba(34,197,94,.5); background: #0f1c16; }
.sw-nav-row[aria-current="page"] svg { color: var(--accent); }
.sw-nav-extra { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 1rem .2rem .9rem; font-size: .9rem; }
.sw-nav-extra a { color: var(--muted); text-decoration: none; }
.sw-nav-extra a:hover { color: var(--text); }
.sw-btn.sw-nav-panel-cta { display: block; text-align: center; border-radius: 12px; padding: .9rem 1rem; }
.sw-btn.sw-nav-panel-cta:hover { color: #04140a; }
.sw-nav-note { margin: .6rem 0 0; text-align: center; color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.sw-hero { padding: 4.5rem 0 2rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.03em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .6rem; }
h2 { font-size: 1.6rem; margin: 2.2rem 0 .6rem; }
.sw-lead { color: var(--muted); font-size: 1.15rem; max-width: 42rem; }
.sw-grid { display: grid; gap: 1rem; }
.sw-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sw-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sw-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sw-card, .sw-finding, .sw-price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.sw-card a { text-decoration: none; color: var(--text); font-weight: 650; }
.sw-card p, .sw-price p { color: var(--muted); margin: .35rem 0 0; }
.sw-form { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.sw-form input, .sw-form textarea, .sw-form select {
  background: #0c121a;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: .85rem 1rem;
  font: inherit;
  min-width: min(100%, 280px);
  flex: 1;
}
.sw-btn, button.sw-btn {
  background: var(--accent);
  color: #04140a;
  border: 0;
  border-radius: 10px;
  padding: .85rem 1.1rem;
  font-weight: 700;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.sw-btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.sw-trust { color: var(--muted); font-family: var(--mono); font-size: .85rem; margin-top: .7rem; }
.sw-log {
  font-family: var(--mono);
  background: #070b10;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  color: #b7f7c8;
  font-size: .9rem;
  overflow: auto;
}
.sw-pill { display: inline-block; border-radius: 999px; padding: .1rem .55rem; font-family: var(--mono); font-size: .75rem; border: 1px solid var(--border); }
.sw-pill.critical, .sw-pill.infected { color: var(--infected); border-color: var(--infected); }
.sw-pill.high, .sw-pill.suspicious { color: var(--suspicious); border-color: var(--suspicious); }
.sw-pill.medium { color: var(--suspicious); }
.sw-pill.low, .sw-pill.info, .sw-pill.clean { color: var(--clean); border-color: var(--clean); }
.sw-pill.info { color: var(--info); border-color: var(--info); }
.sw-banner { border-radius: 16px; padding: 1.2rem 1.3rem; border: 1px solid var(--border); margin: 1rem 0; }
.sw-banner.infected { background: #2a1014; border-color: #5c2430; }
.sw-banner.suspicious { background: #2a210f; border-color: #5c4a1d; }
.sw-banner.clean { background: #0f2418; border-color: #1e4d32; }
.sw-banner.failed { background: #141a22; }
.sw-price.featured { border-color: var(--accent); }
.sw-price strong { font-size: 2rem; display: block; }
.sw-prose h2 { margin-top: 1.6rem; }
.sw-prose code, .sw-mono { font-family: var(--mono); font-size: .92em; }
.sw-prose pre { overflow: auto; background: #070b10; padding: 1rem; border-radius: 10px; }
.sw-footer-grid { align-items: start; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); }
.sw-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; }
.sw-footer a { display: block; color: var(--text); text-decoration: none; margin: .25rem 0; }
.sw-sticky { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; }
.sw-sticky summary, .sw-note {
  background: var(--accent);
  color: #04140a;
  font-weight: 700;
  padding: .75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.sw-sticky-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: .5rem; width: min(280px, 80vw); }
.sw-error { color: #fecaca; }
.sw-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sw-table th, .sw-table td { border-bottom: 1px solid var(--border); text-align: left; padding: .45rem; vertical-align: top; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; max-width: 28rem; }
dialog::backdrop { background: rgba(0,0,0,.65); }
@media (max-width: 860px) {
  .sw-grid-2, .sw-grid-3, .sw-grid-4, .sw-footer-grid { grid-template-columns: 1fr; }
  .sw-nav { display: none; }
  .sw-nav-mobile { display: block; }
}
@media (max-width: 380px) {
  .sw-btn.sw-nav-cta { padding: .5rem .8rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
