:root {
  --bg: #080a0f; --panel: #10151e; --line: #1d2532; --text: #e8edf5; --dim: #8d99ac;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --violet: #a78bfa;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.dim { color: var(--dim); }
a { color: inherit; }

.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 460px at 50% -8%, rgba(52,211,153,.16), transparent 70%),
    radial-gradient(620px 420px at 88% 4%, rgba(167,139,250,.13), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 46px 100%;
  opacity: .55;
  mask-image: linear-gradient(#000 0, #000 620px, transparent 1100px);
  -webkit-mask-image: linear-gradient(#000 0, #000 620px, transparent 1100px);
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 17px; letter-spacing: -.01em; }
.brand img { display: block; }
.links { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.links a { color: var(--dim); text-decoration: none; }
.links a:hover { color: var(--text); }
.links .lang { border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 620px) { .links a:not(.lang) { display: none; } }

.hero { max-width: 880px; margin: 0 auto; padding: 60px 24px 0; text-align: center; }
.kicker { color: var(--ok); }
.hero h1 { font-size: clamp(34px, 6.4vw, 60px); line-height: 1.04; letter-spacing: -.035em;
  margin: 16px 0 0; font-weight: 650; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--ok), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--dim); font-size: 17.5px; max-width: 640px; margin: 20px auto 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none;
  margin: 30px auto 0; padding: 0; max-width: 620px; color: var(--dim); }
.stats li { padding: 0 10px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; color: var(--text); font-size: 22px; letter-spacing: -.02em;
  font-family: ui-sans-serif, system-ui, sans-serif; text-transform: none; margin-bottom: 4px; }

#drop { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; min-height: 250px; margin: 40px 0 0; padding: 34px 26px; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, #151d2a, #0c1119) padding-box,
              linear-gradient(100deg, var(--ok), var(--violet)) border-box;
  animation: breathe 3.4s ease-in-out infinite; transition: transform .18s; }
#drop:hover, #drop.over { transform: translateY(-3px); animation: none;
  box-shadow: 0 30px 70px -26px rgba(52,211,153,.6), 0 0 0 5px rgba(52,211,153,.08); }
#drop.busy { pointer-events: none; animation: none; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 24px 60px -30px rgba(52,211,153,.45), 0 0 0 0 rgba(52,211,153,0); }
  50%      { box-shadow: 0 28px 74px -26px rgba(167,139,250,.6), 0 0 0 7px rgba(52,211,153,.07); }
}
.drop-icon { width: 36px; height: 36px; color: var(--ok); }
#drop.busy .drop-icon { color: var(--violet); }
.drop-title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.cta { margin-top: 4px; padding: 12px 26px; border-radius: 11px; font-size: 15px; font-weight: 650;
  color: #06130e; background: linear-gradient(100deg, var(--ok), var(--violet));
  box-shadow: 0 12px 34px -12px rgba(52,211,153,.75); transition: filter .18s, transform .18s; }
#drop:hover .cta { filter: brightness(1.1); transform: translateY(-1px); }
#drop.busy .cta { opacity: .35; }
.drop-hint { color: var(--dim); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { #drop { animation: none; } }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--ok), var(--violet), transparent); }
#drop.busy .scan { opacity: 1; animation: sweep 1.1s linear infinite; }
@keyframes sweep { from { transform: translateY(0); } to { transform: translateY(250px); } }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px 90px; }
section { padding-top: 92px; }
.section-tag { color: var(--ok); margin: 0; }
h2.section-tag { font-size: 11.5px; }
.section-lead { color: var(--dim); max-width: 640px; margin: 12px 0 0; }

#report { padding-top: 56px; }
.summary { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
figure { margin: 0; }
#preview { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
figcaption { color: var(--dim); font-size: 12px; margin-top: 7px; word-break: break-all; }
.gauge { height: 10px; border-radius: 6px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--ok), var(--warn) 55%, var(--bad)); }
.gauge .fill { position: absolute; inset: 0; background: var(--bg); opacity: .74; transition: clip-path .6s; }
.gauge .needle { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--text); transition: left .6s; }
.axis { display: flex; justify-content: space-between; color: var(--dim); margin-top: 6px; }
#verdict { margin: 16px 0 4px; font-size: 25px; letter-spacing: -.02em; }
#summary { margin: 0; color: var(--dim); }
.meta { color: var(--dim); margin: 12px 0 0; }
.warn { color: var(--warn); font-size: 13px; margin: 9px 0 0; }
#reset { margin-top: 18px; background: none; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 16px; cursor: pointer; font: inherit; font-size: 14px; }
#reset:hover { border-color: var(--ok); }

#detectors { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#detectors li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; }
#detectors li.off { opacity: .5; }
.row { display: flex; align-items: baseline; gap: 12px; }
.row .name { flex: 1; font-weight: 550; }
.row .val { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim); }
.bar { height: 4px; border-radius: 3px; background: #171e2a; margin: 10px 0 9px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; transition: width .6s; }
.finding { margin: 0; }
.viz { margin: 13px 0 0; display: flex; gap: 16px; align-items: flex-start; }
.viz img { width: 250px; border-radius: 9px; border: 1px solid var(--line); display: block; background: var(--bg); }
.viz figcaption { flex: 1; color: var(--dim); font-size: 13.5px; }
details { margin-top: 10px; }
summary { color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
td { padding: 4px 0; color: var(--dim); border-bottom: 1px solid var(--line); }
td:last-child { text-align: right; color: var(--text); font-family: var(--mono);
  font-size: 12px; letter-spacing: 0; text-transform: none; word-break: break-all; }
.about { color: var(--dim); font-size: 13.5px; margin: 10px 0 0; }
.disclaimer { color: var(--dim); font-size: 13.5px; border-left: 2px solid var(--line);
  padding-left: 14px; margin: 30px 0 0; }

.tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 12px; margin-top: 26px; }
.test { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 17px; transition: border-color .18s, transform .18s; }
.test:hover { border-color: #2c3a4e; transform: translateY(-2px); }
.test header { display: flex; align-items: baseline; gap: 10px; }
.test .tag { color: var(--ok); }
.test h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.test p { flex: 1; color: var(--dim); font-size: 13.5px; margin: 10px 0 14px; }
.weight { height: 3px; border-radius: 2px; background: #171e2a; overflow: hidden; margin-bottom: 7px; }
.weight i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--violet)); }

.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 26px; }
.limits article { border: 1px solid var(--line); border-left: 2px solid var(--warn);
  border-radius: 12px; padding: 17px; background: var(--panel); }
.limits h3 { margin: 0 0 8px; font-size: 15.5px; }
.limits p { margin: 0; color: var(--dim); font-size: 13.5px; }

.code { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 17px;
  overflow-x: auto; margin: 24px 0 0; font-size: 12.5px; letter-spacing: 0; text-transform: none;
  color: var(--ok); line-height: 1.7; }
.ghost { display: inline-block; margin-top: 16px; color: var(--dim); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px; font-size: 14px; }
.ghost:hover { color: var(--text); border-color: var(--ok); }

footer a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--text); }
footer { display: flex; justify-content: space-between; gap: 16px; max-width: 1080px;
  margin: 0 auto; border-top: 1px solid var(--line); padding: 26px 24px 40px;
  color: var(--dim); font-size: 13.5px; }

@media (max-width: 720px) {
  .summary { grid-template-columns: 1fr; }
  .viz { flex-direction: column; } .viz img { width: 100%; }
  section { padding-top: 68px; }
}
