:root {
  --bg: #071017;
  --bg2: #0a151e;
  --panel: rgba(15, 29, 40, .78);
  --panel2: rgba(19, 38, 51, .9);
  --line: rgba(185, 220, 235, .14);
  --text: #f3f8fb;
  --muted: #9eb1bc;
  --accent: #7cf7d4;
  --accent2: #66b7ff;
  --ok: #68e6b5;
  --warn: #ffd166;
  --error: #ff7d8b;
  --shadow: 0 24px 80px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(102,183,255,.12), transparent 36rem),
    radial-gradient(circle at 90% 20%, rgba(124,247,212,.09), transparent 30rem),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar { height: 78px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:flex; gap:12px; align-items:center; text-decoration:none; color:var(--text); font-weight:800; letter-spacing:-.02em; }
.brand-mark { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; color:#071017; background:linear-gradient(135deg,var(--accent),#b0ffe8); font-size:13px; box-shadow:0 10px 30px rgba(124,247,212,.18); }
.badge,.count-pill { border:1px solid var(--line); border-radius:999px; padding:7px 10px; color:var(--muted); font-size:12px; background:rgba(255,255,255,.025); }
.hero { padding:90px 0 52px; max-width:900px; }
.eyebrow,.kicker { margin:0 0 12px; font-size:11px; letter-spacing:.19em; font-weight:800; color:var(--accent); }
h1 { margin:0; max-width:820px; font-size:clamp(44px,7vw,82px); line-height:.97; letter-spacing:-.055em; }
.lead { margin:28px 0 32px; max-width:760px; font-size:clamp(17px,2vw,21px); line-height:1.6; color:var(--muted); }
.check-form { display:flex; align-items:end; gap:12px; padding:12px; border:1px solid var(--line); border-radius:20px; background:rgba(8,19,27,.86); box-shadow:var(--shadow); backdrop-filter: blur(18px); }
.field { display:flex; flex-direction:column; gap:8px; }
.field span { padding-left:4px; font-size:11px; font-weight:700; color:var(--muted); }
.grow { flex:1; }
.port-field { width:112px; }
input { width:100%; border:1px solid var(--line); border-radius:12px; padding:14px 15px; outline:none; color:var(--text); background:#0a151d; font:inherit; transition:.18s ease; }
input:focus { border-color:rgba(124,247,212,.65); box-shadow:0 0 0 3px rgba(124,247,212,.08); }
button { border:0; border-radius:12px; padding:14px 21px; min-height:49px; color:#06110f; background:linear-gradient(135deg,var(--accent),#b6ffe9); font-weight:800; cursor:pointer; transition:.18s ease; }
button:hover { transform:translateY(-1px); box-shadow:0 12px 30px rgba(124,247,212,.18); }
button:disabled { opacity:.55; cursor:wait; transform:none; }
.form-note { margin:12px 3px 0; font-size:12px; color:#708691; }
.panel { border:1px solid var(--line); border-radius:22px; padding:24px; background:linear-gradient(180deg,rgba(18,34,46,.86),rgba(11,24,33,.82)); box-shadow:var(--shadow); backdrop-filter:blur(18px); }
.hidden { display:none !important; }
.loading { display:flex; gap:16px; align-items:center; margin-bottom:20px; }
.loading p { margin:4px 0 0; color:var(--muted); }
.spinner { width:28px; height:28px; border-radius:50%; border:3px solid rgba(255,255,255,.1); border-top-color:var(--accent); animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.error-panel { color:#ffd7dc; border-color:rgba(255,125,139,.28); background:rgba(80,24,35,.45); margin-bottom:20px; }
.results { padding-bottom:52px; }
.overview-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:18px; margin-bottom:18px; }
.content-grid { display:grid; grid-template-columns:.78fr 1.22fr; gap:18px; align-items:start; }
.score-panel { display:flex; justify-content:space-between; align-items:center; min-height:210px; }
.score-line { display:flex; align-items:baseline; gap:7px; }
.score-line strong { font-size:70px; line-height:1; letter-spacing:-.06em; }
.score-line span { color:var(--muted); }
.score-ring { width:112px; aspect-ratio:1; border-radius:50%; display:grid; place-items:center; background:conic-gradient(var(--accent) var(--score,0%), rgba(255,255,255,.08) 0); position:relative; }

.target-panel h2,.section-head h2 { margin:0; font-size:24px; letter-spacing:-.025em; }
.mini-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 22px; margin:24px 0 0; }
.mini-grid div { min-width:0; }
dt { font-size:11px; color:var(--muted); margin-bottom:5px; }
dd { margin:0; font-size:14px; overflow-wrap:anywhere; }
.section-head { display:flex; align-items:start; justify-content:space-between; gap:16px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.section-head .kicker { margin-bottom:7px; }
.small { font-size:11px; }
.muted { color:var(--muted); }
.findings { display:grid; gap:10px; margin-top:16px; }
.finding { display:grid; grid-template-columns:10px 1fr; gap:12px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.finding:last-child { border-bottom:0; }
.dot { width:9px; height:9px; border-radius:50%; margin-top:6px; background:var(--muted); box-shadow:0 0 18px currentColor; }
.finding.ok .dot { background:var(--ok); color:var(--ok); }
.finding.warn .dot { background:var(--warn); color:var(--warn); }
.finding.error .dot { background:var(--error); color:var(--error); }
.finding strong { font-size:14px; }
.finding p { margin:4px 0 0; font-size:13px; line-height:1.5; color:var(--muted); }
.chain { margin-top:22px; }
.cert { position:relative; display:grid; grid-template-columns:34px 1fr; gap:14px; padding-bottom:24px; }
.cert:not(:last-child)::before { content:""; position:absolute; left:16px; top:34px; bottom:0; width:1px; background:linear-gradient(var(--accent2),rgba(102,183,255,.12)); }
.cert-index { position:relative; z-index:1; width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#0c1a23; border:1px solid rgba(102,183,255,.32); color:var(--accent2); font-size:12px; font-weight:800; }
.cert-card { border:1px solid var(--line); border-radius:16px; padding:17px; background:rgba(6,16,23,.48); }
.cert-title { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.cert-title h3 { margin:0; font-size:16px; letter-spacing:-.01em; overflow-wrap:anywhere; }
.role { flex:0 0 auto; font-size:10px; letter-spacing:.12em; border:1px solid var(--line); border-radius:999px; padding:5px 7px; color:var(--muted); }
.cert-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; margin-top:14px; }
.meta-item { min-width:0; }
.meta-item span { display:block; font-size:10px; color:#79909c; margin-bottom:3px; }
.meta-item code,.meta-item div { display:block; font-family:inherit; font-size:12px; color:#cad7dd; overflow-wrap:anywhere; }
.link-state { margin:0 0 18px 48px; border-left:2px solid var(--ok); padding:7px 11px; color:var(--muted); font-size:11px; }
.link-state.bad { border-left-color:var(--error); color:#ffc5cc; }
.chain-note { margin:0; padding-top:8px; font-size:11px; line-height:1.5; }
footer { padding:28px 0 40px; border-top:1px solid var(--line); color:#718894; font-size:11px; line-height:1.6; }
@media (max-width: 800px) {
  .hero { padding-top:60px; }
  .check-form { display:grid; grid-template-columns:1fr 100px; }
  .check-form button { grid-column:1 / -1; }
  .overview-grid,.content-grid { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .shell { width:min(100% - 22px,1180px); }
  .topbar { height:64px; }
  .badge { display:none; }
  .hero { padding-top:44px; }
  .check-form { grid-template-columns:1fr; }
  .port-field { width:100%; }
  .check-form button { grid-column:auto; }
  .score-panel { min-height:auto; }
  .score-ring { width:88px; }
  .score-ring::after { width:64px; }
  .score-line strong { font-size:56px; }
  .mini-grid,.cert-meta { grid-template-columns:1fr; }
}
.brand small { color: var(--accent); font-size: .64em; margin-left: 2px; }
.score-ring::before { content:""; width:82px; aspect-ratio:1; border-radius:50%; background:#10212c; border:1px solid var(--line); position:absolute; }
.san-list { margin-top: 8px; display:flex; flex-wrap:wrap; gap:5px; }
.san-chip { border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:999px; padding:4px 7px; color:var(--muted); font-size:10px; max-width:100%; overflow-wrap:anywhere; }
.cert-valid { color:var(--ok); }
.cert-invalid { color:var(--error); }
footer code { color:#9fb6c2; }
