:root {
  color-scheme: light;
  --ink: #0c1f2e;
  --muted: #607383;
  --line: #d7e3ec;
  --panel: #ffffff;
  --panel-soft: #f7fbfe;
  --blue: #006eb8;
  --cyan: #13a7d8;
  --green: #18a66b;
  --yellow: #f2b705;
  --red: #d83b4d;
  --violet: #6b5cff;
  --bg: #eef6fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(19, 167, 216, .20), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(242, 183, 5, .16), transparent 24%),
    linear-gradient(180deg, #f7fcff 0%, var(--bg) 52%, #f8fbfd 100%);
  color: var(--ink);
}
a { color: var(--blue); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(12, 31, 46, .08);
  backdrop-filter: blur(14px);
}
.topbar img { height: 48px; width: auto; display: block; }
.topbar nav { display: flex; gap: 10px; flex-wrap: wrap; }
.topbar a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}
.topbar a:hover { background: #e8f3fa; }
main { max-width: 1180px; margin: 0 auto; padding: 42px 20px 72px; }
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 48px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--blue);
  text-transform: uppercase;
}
h1 { margin: 0 0 18px; font-size: 56px; line-height: 1.02; letter-spacing: 0; max-width: 760px; }
h2 { margin: 0; font-size: 28px; line-height: 1.16; letter-spacing: 0; }
.lead { max-width: 760px; color: #475d6d; font-size: 19px; line-height: 1.65; }
.lead.small { font-size: 16px; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 110, 184, .22);
}
.button.secondary { background: #e6f0f6; color: var(--ink); box-shadow: none; }
.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px dashed rgba(0, 110, 184, .28);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.orbit-a { width: 360px; height: 360px; }
.orbit-b { width: 250px; height: 250px; animation-duration: 12s; animation-direction: reverse; }
.robot {
  position: absolute;
  width: 110px;
  height: 128px;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(180deg, #fff, #dff4ff);
  border: 1px solid #b9ddec;
  box-shadow: 0 24px 55px rgba(21, 74, 106, .18);
  animation: float 4s ease-in-out infinite;
}
.robot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  width: 2px;
  height: 24px;
  background: var(--blue);
}
.robot::after {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  top: -36px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(242, 183, 5, .75);
}
.robot i, .robot b {
  position: absolute;
  top: 38px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px #bdeeff;
}
.robot i { left: 26px; }
.robot b { right: 26px; }
.robot span {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 34px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}
.robot-main { transform: translate(-40px, -34px); }
.robot-small {
  width: 72px;
  height: 84px;
  transform: translate(120px, 90px) scale(.86);
  animation-delay: -1.6s;
}
.robot-small i, .robot-small b { top: 26px; width: 12px; height: 12px; }
.robot-small i { left: 18px; }
.robot-small b { right: 18px; }
.robot-small span { left: 18px; right: 18px; bottom: 22px; }
.signal {
  position: absolute;
  left: 16px;
  bottom: 24px;
  min-width: 245px;
  padding: 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(12, 31, 46, .10);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(28, 74, 98, .16);
  backdrop-filter: blur(12px);
}
.signal span, .resolver-card span, .threat-card span { display: block; color: var(--muted); font-weight: 800; }
.signal strong { display: block; font-size: 42px; margin: 6px 0; }
.signal small, .resolver-card small { color: var(--muted); line-height: 1.45; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 14px; }
.insight-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 240px;
  align-items: center;
  gap: 22px;
  margin: 20px 0;
  padding: 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(12, 31, 46, .10);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(46, 87, 111, .10);
}
.donut {
  --blocked: 0;
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  background: conic-gradient(var(--red) calc(var(--blocked) * 1%), var(--green) 0);
  position: relative;
}
.donut::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(12, 31, 46, .08);
}
.donut span, .donut small {
  position: relative;
  z-index: 1;
}
.donut span {
  font-size: 30px;
  font-weight: 900;
}
.donut small {
  display: block;
  margin-top: 34px;
  margin-left: -86px;
  color: var(--muted);
  font-weight: 900;
}
.mini-stats {
  display: grid;
  gap: 10px;
}
.mini-stats div {
  padding: 14px;
  background: #f4f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mini-stats span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}
.mini-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}
.resolver-grid, .threat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.threat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resolver-card, .threat-card, table, .result, pre {
  background: var(--panel);
  border: 1px solid rgba(12, 31, 46, .10);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(46, 87, 111, .08);
}
.resolver-card, .threat-card { padding: 20px; }
.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(12, 31, 46, .10);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(46, 87, 111, .08);
}
.empty-state strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}
.empty-state span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
.resolver-card strong {
  display: block;
  margin: 8px 0;
  font-size: 25px;
  color: var(--green);
}
.threat-card strong { display: block; margin: 8px 0 14px; font-size: 30px; }
.bar { height: 9px; overflow: hidden; border-radius: 999px; background: #e6eef3; }
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
}
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #eaf4f9; font-size: 12px; text-transform: uppercase; letter-spacing: 0; color: #4a6475; }
td { color: #244050; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf6fb;
  color: #17475f;
  font-weight: 800;
  white-space: nowrap;
}
.narrow { max-width: 760px; }
.lookup { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 24px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  background: white;
  color: var(--ink);
}
select { font-weight: 800; }
textarea {
  min-height: 180px;
  padding: 12px 14px;
  resize: vertical;
  font-family: "Consolas", "Cascadia Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
}
.notice {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff8df;
  border: 1px solid #f1d783;
  color: #755a00;
  line-height: 1.5;
}
.result { padding: 24px; margin: 24px 0; }
.result span { display: block; color: var(--muted); margin-bottom: 8px; }
.result strong { font-size: 26px; }
.result.safe strong { color: var(--green); }
.result.blocked strong { color: var(--red); }
.blocked {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  max-width: 760px;
}
.blocked img { height: 64px; margin-bottom: 26px; }
.blocked h1 { font-size: 40px; }
.blocked p { color: var(--muted); line-height: 1.7; }
.blocked code {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}
.loader {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #d7e4ec;
  border-top-color: var(--blue);
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
pre { padding: 18px; overflow: auto; }
.admin h1 { font-size: 44px; }
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(12, 31, 46, .10);
  border-radius: 8px;
}
.admin-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
}
.admin-tabs a.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 110, 184, .18);
}
.public-result h1 {
  font-size: 42px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.metric, .admin-panel {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(12, 31, 46, .10);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(46, 87, 111, .09);
}
.metric {
  padding: 18px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}
.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
}
.admin-panel {
  padding: 20px;
  margin: 18px 0;
}
.admin-panel h2 {
  margin-bottom: 14px;
}
.admin-panel h3 {
  margin: 18px 0 10px;
  font-size: 18px;
}
.admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}
.lookup.compact {
  grid-template-columns: minmax(0, 460px) auto;
  margin: 0 0 14px;
}
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.config-grid label {
  display: grid;
  gap: 8px;
  color: #395567;
  font-weight: 900;
}
.config-grid button {
  width: max-content;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.source-list {
  margin: 0;
  padding-left: 18px;
  color: #244050;
  line-height: 1.6;
  word-break: break-word;
}
.blocked-page {
  max-width: none;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 20% 15%, rgba(216, 59, 77, .16), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(19, 167, 216, .20), transparent 28%),
    linear-gradient(160deg, #f8fcff 0%, #eaf5fb 100%);
}
.block-panel {
  width: min(920px, 100%);
  text-align: center;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(12, 31, 46, .10);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(31, 82, 110, .16);
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  position: relative;
}
.block-logo {
  height: 58px;
  width: auto;
  display: block;
  margin: 0 auto 18px;
}
.block-panel h1 {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(34px, 5vw, 54px);
}
.block-panel .lead {
  margin-left: auto;
  margin-right: auto;
}
.block-robot-wrap {
  position: relative;
  height: 185px;
  display: grid;
  place-items: center;
  margin: 8px 0 12px;
}
.block-robot-wrap .robot-main {
  transform: none;
}
.block-robot-wrap .orbit-a {
  width: 210px;
  height: 210px;
}
.shield-pulse {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid rgba(24, 166, 107, .4);
  animation: pulse 2.4s ease-out infinite;
}
.incident-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
  text-align: left;
}
.incident-facts div {
  padding: 14px;
  background: #f4f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.incident-facts dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}
.incident-facts dd {
  margin: 6px 0 0;
  font-weight: 900;
  word-break: break-word;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
@keyframes pulse {
  0% { transform: scale(.82); opacity: .8; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 360px; }
  h1 { font-size: 38px; }
  .resolver-grid, .threat-grid, .lookup, .metric-grid, .admin-form, .config-grid, .split, .incident-facts, .insight-band { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; }
}
