/* botstop.io — dark, single-purpose UI. Neutral zinc greys + one green accent;
   the only other colours are the semantic verdict states (green/amber/red). */
:root {
  --bg: #0a0a0b;
  --bg-2: #100f11;
  --panel: #161517;
  --panel-2: #1e1d20;
  --border: #2a292d;
  --border-2: #3a383d;
  --text: #ededee;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --accent: #35c46a;
  --accent-2: #26a257;
  --human: #35c46a;
  --suspicious: #e3a92c;
  --automated: #ef4d57;
  --unknown: #8a8a93;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(53, 196, 106, 0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255, 255, 255, 0.025), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--mono); }
.small { font-size: 0.8rem; }
.break { word-break: break-all; }
.muted { color: var(--muted); }
.ml { margin-left: 0.5rem; }
.right { text-align: right; }
.center { text-align: center; }

/* ---- header / footer ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--accent); background: linear-gradient(160deg, rgba(53,196,106,0.20), rgba(53,196,106,0.06)); border: 1px solid var(--border-2); }
.brand-name { font-size: 1.12rem; }
.brand-dot { color: var(--muted-2); font-weight: 600; }
.site-nav a { color: var(--muted); margin-left: 1.1rem; font-size: 0.92rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-main { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.site-footer { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 3rem; color: var(--muted-2); font-size: 0.85rem; }

/* ---- hero ---- */
.hero { text-align: center; padding: 2.6rem 0 1.6rem; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.02;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff, #9a9aa2);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }

/* ---- checker card ---- */
.checker {
  position: relative;
  max-width: 640px;
  margin: 2rem auto 0;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  min-height: 260px;
  display: grid;
  place-items: center;
}

/* pending / radar */
.check-pending { text-align: center; }
.radar {
  position: relative;
  width: 132px; height: 132px;
  margin: 0.4rem auto 1.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(53,196,106,0.10) 0 30%, transparent 31%),
    repeating-radial-gradient(circle, rgba(53,196,106,0.14) 0 1px, transparent 1px 26px);
  border: 1px solid var(--border-2);
  overflow: hidden;
}
.radar::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 300deg, rgba(53,196,106,0.38) 360deg);
  animation: sweep 1.4s linear infinite;
}
.radar-sweep { position: absolute; inset: 42%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar::after { animation: none; } }

.check-status { color: var(--muted); margin: 0 0 1rem; font-size: 0.98rem; }
.progress { width: 260px; max-width: 80%; height: 6px; margin: 0 auto; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.12s linear; }
.checker[data-state="error"] .radar::after { animation: none; }

/* result */
.check-result { width: 100%; }
.verdict { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.verdict-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 700;
  border: 2px solid currentColor;
}
.verdict-text { text-align: left; }
.verdict-label { margin: 0; font-size: 1.7rem; letter-spacing: -0.02em; }
.verdict-score { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.verdict-score strong { color: var(--text); }

.is-human { color: var(--human); }
.is-suspicious { color: var(--suspicious); }
.is-automated { color: var(--automated); }
.is-unknown { color: var(--unknown); }
.verdict.is-human .verdict-label,
.verdict.is-suspicious .verdict-label,
.verdict.is-automated .verdict-label,
.verdict.is-unknown .verdict-label { color: currentColor; }

.scoremeter { margin: 1.4rem auto 0; height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; max-width: 460px; }
.scoremeter-fill { width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--human), var(--suspicious) 55%, var(--automated)); transition: width 0.8s cubic-bezier(0.22,1,0.36,1); }

/* signals on landing */
.signals { margin-top: 1.4rem; }
.signals-title { font-size: 0.95rem; margin: 0 0 0.6rem; color: var(--muted); font-weight: 600; }
.signals-empty { color: var(--muted); font-size: 0.92rem; text-align: center; margin: 1rem 0 0; }
.signals-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.sig { display: flex; align-items: center; gap: 0.6rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.9rem; }
.sig-level { text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.06em; font-weight: 700; padding: 0.14rem 0.4rem; border-radius: 5px; color: #0a0a0a; }
.sig-label { flex: 1; }
.sig-weight { color: var(--muted-2); font-family: var(--mono); font-size: 0.8rem; }
.lvl-strong .sig-level { background: var(--automated); }
.lvl-medium .sig-level { background: var(--suspicious); }
.lvl-weak .sig-level { background: #52525b; color: #e4e4e7; }
.lvl-info .sig-level { background: #2c2c30; color: #e4e4e7; }

.result-actions { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 10px; padding: 0.6rem 1.05rem; font-size: 0.92rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text); transition: transform 0.06s ease, border-color 0.15s ease, background 0.15s ease; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent), #1f9e54); color: #08120b; border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-ghost.active { border-color: var(--accent); color: var(--text); }
.btn-sm { padding: 0.32rem 0.6rem; font-size: 0.82rem; }

/* ---- explainer ---- */
.explainer { margin-top: 3rem; }
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.explain-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; }
.explain-card h3 { margin: 0 0 0.5rem; font-size: 1.02rem; }
.explain-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .explain-grid { grid-template-columns: 1fr; } }

/* ---- session detail / sessions list ---- */
.session { max-width: 940px; margin: 1.6rem auto 0; }
.session-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.session-title { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.session-meta { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

.verdict-banner { display: flex; align-items: center; gap: 0.9rem; border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 1.3rem; border: 1px solid var(--border-2); background: var(--panel); }
.verdict-banner .verdict-icon { width: 44px; height: 44px; font-size: 1.3rem; }
.verdict-banner h2 { margin: 0; font-size: 1.35rem; }
.verdict-banner p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.88rem; }
.verdict-banner.is-human .verdict-icon::before { content: '\2713'; }
.verdict-banner.is-suspicious .verdict-icon::before { content: '!'; }
.verdict-banner.is-automated .verdict-icon::before { content: '\2715'; }
.verdict-banner.is-unknown .verdict-icon::before { content: '?'; }
.verdict-banner.is-human h2 { color: var(--human); }
.verdict-banner.is-suspicious h2 { color: var(--suspicious); }
.verdict-banner.is-automated h2 { color: var(--automated); }
.verdict-banner.is-unknown h2 { color: var(--unknown); }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 1.1rem; }
.panel.no-pad { padding: 0; overflow: hidden; }
.panel.center { text-align: center; padding: 2.4rem; }
.panel-title { margin: 0 0 0.8rem; font-size: 1.02rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

.flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.flag { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; font-size: 0.9rem; }
.flag-level { text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.06em; font-weight: 700; padding: 0.14rem 0.4rem; border-radius: 5px; color: #0a0a0a; }
.flag-label { flex: 1; }
.flag-weight { color: var(--muted-2); font-family: var(--mono); font-size: 0.8rem; }
.flag.lvl-strong .flag-level { background: var(--automated); }
.flag.lvl-medium .flag-level { background: var(--suspicious); }
.flag.lvl-weak .flag-level { background: #52525b; color: #e4e4e7; }
.flag.lvl-info .flag-level { background: #2c2c30; color: #e4e4e7; }

/* tables */
table { width: 100%; border-collapse: collapse; }
.kv td, .kv th, .hist td, .sessions td, .sessions th { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 0.86rem; }
.kv th, .sessions th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
.kv-key { color: var(--muted); width: 190px; border-bottom: 1px dotted var(--border-2); cursor: help; }
.kv-val { color: var(--text); }
.kv-val.bad { color: var(--automated); }
tr:last-child td { border-bottom: none; }

.hist-name { width: 110px; font-family: var(--mono); font-size: 0.78rem; color: #b6b6bd; }
.hist-count { width: 44px; text-align: right; font-family: var(--mono); font-size: 0.8rem; }
.hist-barcell { width: auto; }
.bar { background: var(--panel-2); border-radius: 4px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: transparent; border-radius: 4px; }
.bar-fill.on { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

.pill { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.pill-ok { background: rgba(53,196,106,0.14); color: var(--human); border: 1px solid rgba(53,196,106,0.3); }
.pill-bad { background: rgba(239,77,87,0.14); color: var(--automated); border: 1px solid rgba(239,77,87,0.3); }
.pill-warn { background: rgba(227,169,44,0.14); color: var(--suspicious); border: 1px solid rgba(227,169,44,0.3); }
.v-human { background: rgba(53,196,106,0.14); color: var(--human); }
.v-suspicious { background: rgba(227,169,44,0.14); color: var(--suspicious); }
.v-automated { background: rgba(239,77,87,0.14); color: var(--automated); }
.v-unknown { background: rgba(138,138,147,0.16); color: var(--unknown); }

.sessions td { border-bottom: 1px solid var(--border); }
.sessions tbody tr:hover { background: var(--panel-2); }
.sessions thead th { background: var(--bg-2); }

.raw { margin-top: 0.6rem; }
.raw summary { cursor: pointer; color: var(--muted); font-size: 0.86rem; }
.raw pre { font-family: var(--mono); font-size: 0.74rem; max-height: 420px; overflow: auto; background: #09090a; border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; color: #d4d4d8; }

/* honeypot: invisible + unreachable to real users */
.hpo { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
