:root {
  --bg: #070b14;
  --bg-soft: #0d1524;
  --card: rgba(148, 163, 184, 0.055);
  --card-border: rgba(148, 163, 184, 0.14);
  --text: #e8eefc;
  --muted: #8ea0bf;
  --accent: #ff9900;
  --accent-soft: rgba(255, 153, 0, 0.14);
  --ok: #34d399;
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 15% -10%, #12203a 0%, var(--bg) 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.glow-a { top: -220px; right: -120px; background: #1d4ed8; }
.glow-b { bottom: -260px; left: -140px; background: #b45309; opacity: 0.22; }

.shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffb84d, #f97316);
  color: #1b1205;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.brand-name { font-weight: 650; letter-spacing: 0.01em; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18);
}
.pill.is-ok { color: #c7f5e4; border-color: rgba(52, 211, 153, 0.35); }
.pill.is-ok .dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
.pill.is-bad { color: #fecaca; border-color: rgba(248, 113, 113, 0.35); }
.pill.is-bad .dot { background: #f87171; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- hero ---------- */
.hero { padding: 26px 0 34px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.accent {
  background: linear-gradient(120deg, #ffc46b, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.chain-node {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.7);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.chain-node.is-active {
  color: #ffe0b0;
  border-color: rgba(255, 153, 0, 0.45);
  background: var(--accent-soft);
}
.chain-arrow { color: #3b4a63; font-size: 13px; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.02));
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(148, 163, 184, 0.3); transform: translateY(-2px); }

.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  word-break: break-all;
}
.value.mono { font-family: var(--mono); font-size: clamp(14px, 2vw, 17px); }

.hint { margin-top: auto; font-size: 12px; color: #62748f; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 13px;
}
.footer-note { margin-right: auto; }

.btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 153, 0, 0.4);
  background: var(--accent-soft);
  color: #ffd79b;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn:hover { background: rgba(255, 153, 0, 0.22); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: progress; }

.stamp { font-size: 12px; color: #52627c; }

@media (max-width: 860px) {
  .card { grid-column: span 6; }
  .cards { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 560px) {
  .shell { padding-top: 24px; }
  .card { grid-column: span 12; min-height: 104px; }
  .cards { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .footer-note { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
