:root{
  --bg:#0c111b;
  --panel:#131b29;
  --panel2:#192335;
  --text:#f4f7fb;
  --muted:#8ea0b8;
  --line:#27354a;
  --good:#33d17a;
  --warn:#f6c453;
  --bad:#ff6b6b;
  --accent:#58a6ff;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 20% 0%, rgba(88,166,255,.12), transparent 32rem),
    var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

button,input{font:inherit}

.shell{width:min(1080px,calc(100% - 32px));margin:auto}

.topbar{
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{display:flex;align-items:center;gap:10px;font-size:18px}
.brand-dot{width:12px;height:12px;border-radius:50%;background:var(--good);box-shadow:0 0 26px var(--good)}
.badge{color:var(--muted);font-size:12px;border:1px solid var(--line);padding:6px 9px;border-radius:999px}

.hero{
  min-height:520px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:840px;
}

.eyebrow{font-weight:700;font-size:12px;letter-spacing:.18em;color:var(--accent)}
h1{font-size:clamp(44px,7vw,82px);line-height:.95;letter-spacing:-.055em;margin:18px 0 22px}
.hero>p{font-size:20px;color:var(--muted);margin:0 0 30px}

.scanner{
  display:flex;
  gap:10px;
  padding:8px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  max-width:760px;
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}
.scanner input{
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  color:var(--text);
  padding:16px 14px;
  outline:none;
}
.scanner button,.cta button{
  border:0;
  border-radius:12px;
  padding:0 22px;
  background:var(--accent);
  color:#07111f;
  font-weight:800;
  cursor:pointer;
}
.scanner button:disabled{opacity:.65;cursor:wait}
.hint{font-size:13px;color:var(--muted);margin-top:12px}

.result{padding:20px 0 90px}
.hidden{display:none}

.score-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  border:1px solid var(--line);
  border-radius:24px;
}
.small{color:var(--muted);font-size:13px}
.score{font-size:72px;font-weight:900;letter-spacing:-.06em;margin-top:4px}
.summary{font-size:18px;font-weight:700}
.muted{color:var(--muted);font-size:13px;margin-top:7px;word-break:break-all}

.ring{
  --score:0deg;
  width:132px;
  height:132px;
  flex:0 0 auto;
  border-radius:50%;
  background:conic-gradient(var(--good) var(--score), #253248 0);
  display:grid;
  place-items:center;
  position:relative;
}
.ring:after{
  content:"";
  position:absolute;
  width:102px;
  height:102px;
  border-radius:50%;
  background:var(--panel);
}
.ring span{position:relative;z-index:1;font-weight:900;font-size:19px}

.checks{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.check{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
}
.status-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-weight:900;
  flex:0 0 auto;
}
.check.pass .status-icon{background:rgba(51,209,122,.12);color:var(--good)}
.check.warn .status-icon{background:rgba(246,196,83,.12);color:var(--warn)}
.check.fail .status-icon{background:rgba(255,107,107,.12);color:var(--bad)}
.check-title{font-weight:800;margin-bottom:5px}
.check-message{font-size:14px;color:var(--muted);line-height:1.45}

.cta{
  margin-top:18px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:20px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  background:var(--panel);
}
.cta p{margin:5px 0 0;color:var(--muted)}
.cta button{height:46px;opacity:.5;cursor:not-allowed}

@media(max-width:720px){
  .hero{min-height:460px}
  .scanner{flex-direction:column}
  .scanner button{height:50px}
  .checks{grid-template-columns:1fr}
  .score-card{align-items:flex-start}
  .ring{width:100px;height:100px}
  .ring:after{width:76px;height:76px}
  .ring span{font-size:15px}
  .score{font-size:58px}
  .cta{align-items:flex-start;flex-direction:column}
  .cta button{width:100%}
}

.history-box{margin-top:18px;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--panel)}
.history-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.history-list{display:flex;flex-direction:column;gap:8px}
.history-row{display:flex;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.015)}
.history-row strong{margin-right:10px}
.history-row span{color:var(--muted);font-size:13px}
.history-meta{color:var(--muted);font-size:12px;text-align:right}
@media(max-width:720px){.history-row{flex-direction:column;gap:6px}.history-meta{text-align:left}}

.coverage{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}
.check.skip .status-icon{
  background:rgba(142,160,184,.12);
  color:var(--muted);
}
.check.skip{
  opacity:.78;
}

.scan-note{
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.incident-critical{border-left:3px solid var(--bad)}
.incident-warning{border-left:3px solid var(--warn)}
.incident-info{border-left:3px solid var(--good)}

.forms-found{
  margin:18px 0 0;
  padding:14px 16px;
  border:1px solid rgba(51,209,122,.35);
  background:rgba(51,209,122,.08);
  color:var(--good);
  border-radius:14px;
  font-weight:700;
}
