/* invisible-ink — "reveal" theme. Electric-blue brand, semantic tiers, make the hidden visible. */
:root {
  --ink: #080b12;
  --ink-2: #0c1019;
  --panel: #10151f;
  --panel-2: #141b27;
  --line: #233247;
  --line-soft: #19222f;
  --text: #d5dde8;
  --text-dim: #8696a8;
  --text-faint: #596778;
  --brand: #4da3ff;
  --brand-2: #6fb6ff;
  --brand-soft: #4da3ff1c;
  --clean: #3fb860;
  --suspect: #e3b341;
  --danger: #f0564a;
  --clean-soft: #3fb86016;
  --suspect-soft: #e3b34116;
  --danger-soft: #f0564a16;
  --reveal: #ff5fa2;              /* the colour of exposed hidden content */
  --reveal-soft: #ff5fa21f;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --head: "Space Grotesk", var(--sans);
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--text); font-family: var(--sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 480px at 82% -6%, #0e2a4a24, transparent 60%),
              radial-gradient(640px 360px at 6% 0%, #2a0f3320, transparent 55%); }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: #080b12cc; border-bottom: 1px solid var(--line-soft); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; }
.brand .mk { width: 16px; height: 16px; border-radius: 4px; border: 2px dashed var(--brand);
  box-shadow: 0 0 10px #4da3ff55; position: relative; }
.brand .mk::after { content: ""; position: absolute; inset: 3px; border-radius: 2px; background: var(--brand); opacity: .35; }
.brand b { color: var(--text); } .brand .tag { color: var(--text-faint); font-family: var(--mono); font-size: 12px; }
nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 14px; }
nav .links a { color: var(--text-dim); } nav .links a:hover { color: var(--text); text-decoration: none; }
nav .gh { border: 1px solid var(--line); padding: 7px 14px; border-radius: 9px; color: var(--text);
  display: inline-flex; gap: 8px; align-items: center; }
nav .gh:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }

header { padding: 70px 0 30px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brand); display: inline-block; }
h1 { font-family: var(--head); font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(32px, 5.3vw, 58px); line-height: 1.05; color: #fff; max-width: 18ch; }
h1 .em { color: var(--brand); }
.lede { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 62ch; }
.lede b { color: var(--text); font-weight: 500; }
code { font-family: var(--mono); font-size: .88em; background: #0a0f17; padding: 1px 5px; border-radius: 5px;
  color: var(--brand); border: 1px solid var(--line-soft); }

.stat-strip { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.stat-strip .s { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 11px; padding: 13px 18px; min-width: 132px; }
.stat-strip .s .n { font-family: var(--head); font-size: 24px; font-weight: 600; color: #fff; }
.stat-strip .s .n small { font-size: 14px; color: var(--text-dim); font-weight: 500; }
.stat-strip .s .l { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.analyzer { margin-top: 46px; background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px -40px #000, inset 0 1px 0 #ffffff08; overflow: hidden; }
.an-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #0b0f17; }
.an-head .tl { display: flex; gap: 7px; } .an-head .tl i { width: 11px; height: 11px; border-radius: 50%; background: #243340; display: block; }
.an-head .title { font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); margin-left: 4px; }
.an-head .pill { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 20px; padding: 4px 11px; display: flex; gap: 7px; align-items: center; }
.an-head .pill .live { width: 7px; height: 7px; border-radius: 50%; background: var(--clean); box-shadow: 0 0 8px var(--clean); }
.an-head .pill.loading .live { background: var(--suspect); box-shadow: 0 0 8px var(--suspect); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.an-body { padding: 18px; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .io { grid-template-columns: 1fr; } }
.col-label { font-family: var(--mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
#input { width: 100%; height: 150px; background: #0a0f17; border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); font-family: var(--mono); font-size: 13.5px; padding: 13px; resize: vertical; line-height: 1.6; }
#input::placeholder { color: var(--text-faint); }
/* the reveal panel: shows invisible chars as visible chips */
.reveal-box { background: #0a0f17; border: 1px solid var(--line); border-radius: 11px; padding: 13px;
  min-height: 150px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; word-break: break-word; white-space: pre-wrap; }
.ichip { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 1px 5px; border-radius: 5px; margin: 0 1px; vertical-align: middle; letter-spacing: .02em;
  background: var(--reveal-soft); color: var(--reveal); border: 1px solid #ff5fa255; }
.ichip.bidi { background: var(--danger-soft); color: var(--danger); border-color: #f0564a55; }
.ichip.tag { background: var(--reveal-soft); color: var(--reveal); border-color: #ff5fa255; }
.conf-hl { background: var(--suspect-soft); color: var(--suspect); border-bottom: 2px dotted var(--suspect); border-radius: 2px; }

.presets { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.presets .lab { font-size: 12px; color: var(--text-faint); align-self: center; font-family: var(--mono); }
.chip { font-family: var(--mono); font-size: 12px; color: var(--text-dim); border: 1px solid var(--line-soft);
  background: var(--panel-2); border-radius: 8px; padding: 6px 11px; cursor: pointer; transition: all .14s; }
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip .t { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.chip.clean .t { background: var(--clean); } .chip.suspect .t { background: var(--suspect); } .chip.danger .t { background: var(--danger); }

.verdict { margin-top: 16px; border-radius: 11px; border: 1px solid var(--line); padding: 15px 16px; background: var(--panel-2); transition: all .2s; }
.verdict.v-clean { border-color: #3fb86055; background: var(--clean-soft); }
.verdict.v-suspicious { border-color: #e3b34155; background: var(--suspect-soft); }
.verdict.v-dangerous { border-color: #f0564a55; background: var(--danger-soft); }
.verdict .top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.verdict .badge { font-family: var(--head); font-weight: 600; font-size: 14px; padding: 6px 13px; border-radius: 8px;
  text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.v-clean .badge { background: var(--clean); color: #04210f; }
.v-suspicious .badge { background: var(--suspect); color: #2a2104; }
.v-dangerous .badge { background: var(--danger); color: #2a0806; }
.verdict .stat { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }
.payload { margin-top: 13px; border: 1px solid #ff5fa255; background: var(--reveal-soft); border-radius: 10px; padding: 12px 14px; }
.payload .ph { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--reveal); margin-bottom: 6px; }
.payload .pv { font-family: var(--mono); font-size: 13.5px; color: #fff; word-break: break-all; }
.findings { margin-top: 13px; display: flex; flex-direction: column; gap: 9px; }
.finding { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.finding .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.finding.f-critical .dot { background: var(--danger); } .finding.f-warning .dot { background: var(--suspect); } .finding.f-info .dot { background: var(--brand); }
.finding .msg { color: var(--text); }
.noflag { color: var(--text-dim); font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.sani { margin-top: 13px; font-size: 12.5px; color: var(--text-dim); font-family: var(--mono); }
.sani b { color: var(--clean); }

section { padding: 64px 0; border-top: 1px solid var(--line-soft); }
.sec-tag { font-family: var(--mono); font-size: 12px; color: var(--brand); letter-spacing: .12em; text-transform: uppercase; }
h2 { font-family: var(--head); font-weight: 600; letter-spacing: -.02em; font-size: clamp(26px, 3.6vw, 36px); color: #fff; margin: 12px 0 14px; }
.sec-lede { color: var(--text-dim); max-width: 66ch; font-size: 16px; }

.vectors { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .vectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vectors { grid-template-columns: 1fr; } }
.vcard { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 17px; cursor: pointer; transition: all .15s; }
.vcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.vcard h4 { font-family: var(--head); font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 6px; }
.vcard p { font-size: 12.5px; color: var(--text-dim); }
.vcard .cve { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); margin-top: 9px; }
.vcard .try { font-family: var(--mono); font-size: 11px; color: var(--brand); margin-top: 8px; }

.bench-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 13px; padding: 22px; }
.card h3 { font-family: var(--head); font-weight: 600; font-size: 17px; color: #fff; margin-bottom: 4px; }
.card .sub { font-size: 12.5px; color: var(--text-faint); margin-bottom: 18px; }
.col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
@media (max-width: 820px) { .bench-grid > * { grid-column: 1 / -1 !important; } }
.bigstat { display: flex; align-items: baseline; gap: 10px; }
.bigstat .v { font-family: var(--head); font-size: 52px; font-weight: 600; color: var(--brand); letter-spacing: -.02em; line-height: 1; }
.bigstat .u { font-size: 15px; color: var(--text-dim); }
.metric-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; gap: 12px; }
.metric-row:last-child { border-bottom: 0; } .metric-row .k { color: var(--text-dim); } .metric-row .val { font-family: var(--mono); color: var(--text); font-weight: 500; }
.recallbar { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.rb { } .rb .lab { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.rb .lab .name { color: var(--text); } .rb .lab .pct { font-family: var(--mono); color: var(--clean); }
.rb .track { height: 10px; background: #0a0f17; border-radius: 5px; overflow: hidden; border: 1px solid var(--line-soft); }
.rb .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--clean), #6fdd90); border-radius: 5px; }

.pipe { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 820px) { .pipe { grid-template-columns: 1fr 1fr; gap: 14px; } }
.step { padding: 18px 20px 18px 0; position: relative; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: 8px; top: 18px; color: var(--line); font-size: 20px; }
@media (max-width: 820px) { .step::after { display: none !important; } }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--brand); }
.step h4 { font-family: var(--head); font-weight: 600; font-size: 15px; color: #fff; margin: 8px 0 7px; }
.step p { font-size: 13px; color: var(--text-dim); }

.codeblock { margin-top: 24px; background: #0a0f17; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.codeblock .cb-head { display: flex; padding: 10px 15px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.codeblock pre { padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text); }
.codeblock .c { color: var(--text-faint); } .codeblock .k { color: var(--brand); } .codeblock .s { color: #7fd6a0; }

footer { padding: 46px 0 70px; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
footer a { color: var(--text-dim); }
footer .disclaimer { width: 100%; font-size: 12.5px; color: var(--text-faint); line-height: 1.6; border-top: 1px dashed var(--line-soft); padding-top: 18px; margin-top: 4px; }

.reveal-anim { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-anim.in { opacity: 1; transform: none; }
@media (max-width: 680px) { nav .links a:not(.gh) { display: none; } nav .wrap { gap: 12px; } header { padding: 44px 0 20px; } .stat-strip .s { flex: 1 1 42%; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .reveal-anim { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
