/* CODEX RESET RADAR — mission-control / radar-station aesthetic */
:root {
  --bg: #05070d;
  --bg-2: #0a101d;
  --panel: #0d1524;
  --line: #1c2b45;
  --ink: #eaf2ff;
  --ink-dim: #8ba3c7;
  --green: #38ff9c;
  --amber: #ffb454;
  --cyan: #53d8ff;
  --red: #ff5470;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Unbounded", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "IBM Plex Mono", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
body {
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(56,255,156,.07), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(83,216,255,.06), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}
/* faint engineering grid */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(139,163,199,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,163,199,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}
/* CRT scanline overlay */
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(5,7,13,0) 0 3px, rgba(5,7,13,.22) 3px 4px);
  mix-blend-mode: multiply;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(5,7,13,.82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 12px var(--green); align-self: center;
  animation: blink 2.2s infinite;
}
@keyframes blink { 0%,88% {opacity:1} 92% {opacity:.25} 100% {opacity:1} }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.brand-cn { font-size: 12px; color: var(--ink-dim); letter-spacing: .2em; }
.top-actions { display: flex; gap: 10px; }
.ghost-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--ink); background: transparent; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.ghost-btn:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 14px rgba(56,255,156,.25); }

main { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: 40px 24px 24px; }

/* ---------- hero verdict ---------- */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; }
.verdict-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 34px 36px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: rise .6s ease both;
}
.verdict-card::after {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 340deg, var(--vc, var(--green)) 340deg 360deg);
  opacity: .07; animation: spin 7s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.verdict-card[data-verdict="send"]    { --vc: var(--green); }
.verdict-card[data-verdict="normal"]  { --vc: var(--amber); }
.verdict-card[data-verdict="err"]     { --vc: var(--red); }

.verdict-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vc, var(--ink-dim)); box-shadow: 0 0 10px var(--vc, transparent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }

.verdict-word {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(34px, 4.8vw, 64px); line-height: 1.14;
  margin: 22px 0 6px; letter-spacing: .02em;
  overflow-wrap: anywhere;
  color: var(--vc, var(--ink));
  text-shadow: 0 0 34px color-mix(in srgb, var(--vc, transparent) 45%, transparent);
  transition: color .4s;
}
.verdict-sub { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .3em; color: var(--ink-dim); text-transform: uppercase; }
.verdict-reason { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--ink); max-width: 46ch; }
.verdict-meta { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }
.advice-row { margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.advice-badge {
  display: inline-block; font-family: var(--mono); font-size: 13.5px; font-weight: 700;
  letter-spacing: .04em; color: var(--vc, var(--ink));
  border: 1.5px solid color-mix(in srgb, var(--vc, var(--ink)) 55%, transparent);
  background: color-mix(in srgb, var(--vc, var(--ink)) 10%, transparent);
  border-radius: 999px; padding: 7px 16px;
}
.advice-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); }

/* ---------- gauge ---------- */
.gauge-wrap { background: linear-gradient(200deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px 20px; display: flex; flex-direction: column; align-items: center; animation: rise .6s .12s ease both; }
.gauge { position: relative; width: 100%; max-width: 280px; }
.gauge-svg { width: 100%; display: block; filter: drop-shadow(0 0 14px rgba(56,255,156,.15)); }
.gauge-sweep {
  position: absolute; left: 50%; bottom: 6%; width: 150px; height: 150px; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none; opacity: .35;
  background: conic-gradient(from -50deg at 50% 100%, transparent 0deg, var(--green) 18deg, transparent 42deg);
  mask-image: radial-gradient(circle at 50% 100%, #000 0 96px, transparent 97px);
  animation: sweep 3.4s linear infinite;
}
@keyframes sweep { to { transform: translateX(-50%) rotate(360deg); } }
.gauge-readout { margin-top: 2px; text-align: center; font-family: var(--display); }
.gauge-readout > span:first-child { font-size: 30px; font-weight: 700; }
.gauge-label { display: block; font-size: 10px; letter-spacing: .3em; color: var(--ink-dim); font-family: var(--mono); margin-top: 4px; }
.gauge-caption { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); text-align: center; line-height: 1.6; }

/* ---------- watch banner ---------- */
.watch-banner {
  margin-top: 22px; border-radius: 16px; padding: 16px 22px;
  border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line));
  background: color-mix(in srgb, var(--green) 8%, var(--panel));
  font-size: 14.5px; line-height: 1.7; animation: rise .5s ease both;
}
.watch-banner b { color: var(--green); }

/* ---------- stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; animation: rise .55s ease both; }
.stat-card:nth-child(2) { animation-delay: .06s; } .stat-card:nth-child(3) { animation-delay: .12s; } .stat-card:nth-child(4) { animation-delay: .18s; }
.stat-label { font-size: 12px; letter-spacing: .12em; color: var(--ink-dim); }
.stat-value { font-family: var(--display); font-weight: 700; font-size: 26px; margin-top: 8px; }
.stat-note { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); margin-top: 6px; }

/* ---------- quote ---------- */
.quote-card { margin-top: 22px; border-left: 3px solid var(--green); background: var(--panel); border-radius: 0 14px 14px 0; padding: 18px 24px; animation: rise .55s ease both; }
.quote-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.quote-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--green); }
.quote-source { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); text-decoration: none; }
.quote-source:hover { color: var(--green); }
blockquote { font-size: 15px; line-height: 1.8; color: var(--ink); }

/* ---------- history ---------- */
.history { margin-top: 34px; }
.section-title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.section-en { font-size: 10px; letter-spacing: .34em; color: var(--ink-dim); font-family: var(--mono); margin-left: 10px; font-weight: 400; }
.history-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.history-item {
  display: grid; grid-template-columns: 92px 84px 1fr; gap: 14px; align-items: baseline;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
  transition: border-color .2s, transform .2s;
}
.history-item:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); transform: translateX(4px); }
.h-date { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }
.badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; justify-self: start; white-space: nowrap; }
.badge-regular { color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 50%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.badge-banked { color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.badge-observed { color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.h-text { font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.h-text a { color: var(--ink-dim); text-decoration: none; font-family: var(--mono); font-size: 12px; margin-left: 8px; }
.h-text a:hover { color: var(--green); }

/* ---------- rules ---------- */
.rules { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; font-size: 14px; }
.rules summary { cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-dim); }
.rules summary:hover { color: var(--green); }
.rules ul { margin: 14px 0 6px 18px; display: flex; flex-direction: column; gap: 10px; line-height: 1.75; }
.rules b { color: var(--green); }
.rules a { color: var(--cyan); }

/* ---------- mcp ---------- */
.mcp-card { margin-top: 30px; background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px dashed color-mix(in srgb, var(--cyan) 40%, var(--line)); border-radius: 16px; padding: 24px 26px; }
.mcp-desc { margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--ink-dim); max-width: 62ch; }
.mcp-url, .mcp-cmd { display: inline-block; font-family: var(--mono); font-size: 13px; background: #060a12; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-top: 14px; color: var(--cyan); }
.mcp-cmd-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.mcp-cmd { color: var(--ink); margin-top: 0; }
.mcp-more { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-dim); text-decoration: none; }
.mcp-more:hover { color: var(--cyan); }

/* ---------- FAQ (SEO) ---------- */
.faq { margin-top: 30px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-top: 10px; }
.faq-item summary { cursor: pointer; font-size: 15px; font-weight: 700; padding: 12px 0; color: var(--ink); }
.faq-item summary:hover { color: var(--green); }
.faq-item p { font-size: 14px; line-height: 1.8; color: var(--ink-dim); padding: 0 0 14px; max-width: 70ch; }
.faq-item b { color: var(--green); }
.faq-item a { color: var(--cyan); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 46px; padding: 26px 24px 34px; text-align: center; font-size: 13px; color: var(--ink-dim); line-height: 2; }
.footer-credit { font-size: 11px; opacity: .55; }
.footer-credit a { color: var(--ink-dim); }
.footer a { color: var(--cyan); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-disclaimer { font-size: 11.5px; opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .history-item { grid-template-columns: 84px 1fr; }
  .h-text { grid-column: 1 / -1; }
  .brand-cn { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .verdict-card { padding: 26px 22px; }
}
