:root {
  --ink: #162130;
  --muted: #5a6778;
  --line: rgba(22, 33, 48, 0.08);
  --safe: #0f6b47;
  --watch: #b26a00;
  --risk: #bf2f27;
  --forbidden: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.5 "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 226, 167, 0.75), transparent 25%),
    radial-gradient(circle at bottom right, rgba(176, 215, 255, 0.72), transparent 28%),
    #f5f8fc;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero,
.panel,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(12px);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #936000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

.hero-copy {
  margin: 10px 0 0;
  color: var(--muted);
}

.primary-button {
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd37d, #75bbff);
  color: #17202d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.pill.safe {
  background: #edfdf3;
  color: var(--safe);
}

.pill.watch {
  background: #fff5df;
  color: var(--watch);
}

.pill.risk {
  background: #fff0ef;
  color: var(--risk);
}

.pill.forbidden {
  background: var(--forbidden);
  color: #ffffff;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li + li {
  margin-top: 10px;
}

.meta {
  color: var(--muted);
}

.code-box {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 16px;
  background: #f5f7fb;
  color: #334155;
  overflow: auto;
}

@media (max-width: 900px) {
  .stats-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: start;
  }
}
