:root {
  --bg: #070709;
  --bg-2: #101014;
  --line: #2a2a32;
  --pink: #ff3d8a;
  --pink-2: #ff7ab0;
  --ink: #f4f4f6;
  --muted: #9a9aa8;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.55 "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% -10%, rgba(255, 61, 138, .16), transparent 28rem),
    var(--bg);
}

a { color: var(--pink-2); text-decoration: none; }
a:hover { color: #fff; }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.leaks-rail {
  position: absolute;
  left: 8px;
  top: 84px;
  width: 200px;
  z-index: 4;
}
.leaks-title {
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 34px;
  font-weight: 700;
  color: var(--pink);
  margin: 0 0 10px;
  line-height: 1;
}
.leaks-list { display: flex; flex-direction: column; gap: 8px; }
.leak-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pink);
  background: rgba(7, 7, 9, .72);
  padding: 4px 8px;
  min-height: 28px;
}
.leak-secret {
  flex: 1;
  min-width: 0;
  filter: blur(6px);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  line-height: 1.2;
  transition: filter .12s ease;
}
.leak-card:hover .leak-secret,
.leak-card:focus-within .leak-secret,
.leak-card.revealed .leak-secret {
  filter: none;
  user-select: text;
}
.leak-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--pink);
  cursor: pointer;
}
.leak-dot:hover { background: var(--pink-2); }
@media (max-width: 1280px) {
  .leaks-rail { width: 168px; }
}

header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 9, .88);
  backdrop-filter: blur(16px);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--pink);
  image-rendering: pixelated;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.brand-name span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links a.active, .nav-links a:hover { color: var(--pink); }

main { padding: 56px 0 88px; }

.hero {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 40px;
  align-items: end;
  animation: fade-up .45s ease;
}
.kicker {
  color: var(--pink);
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: .92;
  letter-spacing: -.04em;
  margin: 0;
  font-weight: 600;
}
.script-accent {
  display: block;
  color: var(--pink-2);
  font-style: italic;
  font-weight: 400;
  font-size: .58em;
  margin-top: 10px;
  letter-spacing: 0;
}
.lead { color: var(--muted); max-width: 540px; font-size: 17px; }
.stat-pills { display: flex; flex-direction: column; gap: 10px; }
.pill {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.pill b {
  display: block;
  font: 600 28px/1 "IBM Plex Mono", monospace;
  color: var(--pink);
}
.pill span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 24px;
}
.dropzone {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 148px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.dropzone.over, .dropzone:hover { border-color: var(--pink); transform: translateY(-2px); }
.drop-copy { display: flex; gap: 16px; align-items: center; }
.mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--pink);
  color: var(--pink);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.hint { color: var(--muted); font-size: 13px; }

button, .btn {
  border: 0;
  background: var(--pink);
  color: #0a0a0c;
  font: 700 12px/1 "IBM Plex Sans", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 16px;
  cursor: pointer;
}
button:hover, .btn:hover { background: var(--pink-2); color: #000; }
button:disabled { opacity: .4; cursor: wait; }
.btn-ghost {
  background: transparent;
  color: var(--pink-2);
  border: 1px solid var(--line);
}
.url-row { display: flex; gap: 10px; margin-top: 12px; }
.url-row input, input[type="text"], input[type="url"], input[type="file"] {
  flex: 1;
  border: 1px solid var(--line);
  background: #0c0c10;
  color: var(--ink);
  padding: 12px 14px;
  font: 15px "IBM Plex Sans", sans-serif;
}

#status { min-height: 26px; margin-top: 10px; color: var(--pink-2); font-weight: 600; }
#status.error { color: #ff6b7d; }

.scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 9, .82);
  backdrop-filter: blur(8px);
}
.scan-overlay[hidden] { display: none; }
.scan-card {
  width: min(420px, calc(100% - 40px));
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px 28px;
  text-align: center;
}
.scan-kicker {
  color: var(--pink);
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 700;
  margin: 16px 0 8px;
}
#scan-step { margin: 0 0 18px; color: var(--ink); font-weight: 600; }
.scan-bar {
  height: 3px;
  background: #1c1c24;
  overflow: hidden;
}
#scan-bar {
  display: block;
  height: 100%;
  width: 8%;
  background: var(--pink);
  transition: width .4s ease;
}
.scan-kitty {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--pink);
  image-rendering: pixelated;
  margin: 0 auto;
  animation: kitty-bounce .9s ease-in-out infinite;
}
@keyframes kitty-bounce {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(-8px); opacity: 1; }
}

.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.signal strong { display: block; margin-bottom: 4px; }

.compare-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 28px;
}
.compare-stage .dropzone { margin-top: 0; min-height: 132px; }
.compare-vs {
  align-self: center;
  font: 700 13px/1 "IBM Plex Sans", sans-serif;
  letter-spacing: .18em;
  color: var(--pink);
}
.compare-actions { margin-top: 16px; }
.compare-diff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.compare-diff .card { min-height: 140px; }
.compare-diff h3 { margin: 0 0 10px; }
.compare-diff ul {
  margin: 0;
  padding-left: 16px;
  max-height: 280px;
  overflow: auto;
}
.compare-diff li { margin: 6px 0; word-break: break-all; }
.compare-reports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.report.visible { display: block; }
.summary, .grid-2, #results { display: grid; gap: 12px; }
.summary { grid-template-columns: repeat(4, 1fr); margin: 18px 0; }
.grid-2 { grid-template-columns: 1.2fr .8fr; }
#results { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 16px; }
.metric, #results section {
  background: #0c0c10;
  border: 1px solid var(--line);
  padding: 14px;
}
.metric span, #results h2, .block h3 {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.metric strong { font-size: 18px; }
pre, .mono, code {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d8d8e4;
}
.score-bar {
  height: 3px;
  background: #1c1c24;
  overflow: hidden;
  margin: 10px 0 14px;
}
.score-bar > span {
  display: block;
  height: 100%;
  background: var(--pink);
  width: 0;
  transition: width .7s ease;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border: 1px solid var(--pink);
  color: var(--pink-2);
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hash-row, .ioc-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.copy {
  background: transparent;
  color: var(--pink-2);
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-size: 10px;
}
.history { margin-top: 24px; }
.history a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.history a:hover { color: var(--pink); }

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}
footer .shell { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-copy { max-width: 760px; }
.page-copy h1 { font-size: clamp(34px, 5vw, 52px); }
.page-copy p { color: var(--muted); }
.page-copy h2 { color: var(--pink-2); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.release {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.clean-table { width: 100%; border-collapse: collapse; }
.clean-table th, .clean-table td {
  text-align: left;
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
}
.clean-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}
.clean-table code { font-size: 12px; word-break: break-all; }
.note-list { margin: 0; padding-left: 18px; color: var(--ink); }
.note-list li { margin: 6px 0; }
.dossier { border-left: 2px solid var(--pink); padding-left: 16px; }
.status {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .12em;
  margin-right: 8px;
  font-weight: 700;
}
.status-live { color: #7dffb3; }
.status-dead { color: #ff6b7d; }
.status-extracted { color: #ffd37d; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 22px; }
.block { margin-top: 22px; }
.block h3 {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

@media (max-width: 820px) {
  .hero, .grid-2, .signals, .summary, .release, .compare-stage, .compare-diff, .compare-reports { grid-template-columns: 1fr; }
  nav { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .dropzone { flex-direction: column; align-items: flex-start; }
}
