:root {
  --bg: #07111f;
  --panel: #0d1a30;
  --panel-2: #112341;
  --line: rgba(148, 163, 184, 0.16);
  --text: #eff6ff;
  --muted: #9cb0cb;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --signal: #f97316;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 24%),
    radial-gradient(circle at right, rgba(56, 189, 248, 0.12), transparent 20%),
    linear-gradient(180deg, #040916, #07111f 45%, #081528);
}

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

.topbar,
.card,
.stat,
.hero-card {
  background: rgba(13, 26, 48, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.4);
  backdrop-filter: blur(12px);
}

.topbar {
  border-radius: 28px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 20px;
}

.eyebrow {
  color: #baffea;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.96;
  max-width: 10ch;
}

.lede,
.label,
label span,
.muted {
  color: var(--muted);
}

.hero-card {
  border-radius: 22px;
  padding: 18px;
  align-self: center;
}

.hero-card code {
  display: block;
  margin: 8px 0 16px;
  color: #d8f8ff;
  word-break: break-all;
}

.stats,
.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.stat,
.card {
  border-radius: 22px;
  padding: 22px;
}

.stat strong {
  display: block;
  font-size: 34px;
  margin-top: 8px;
}

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

.grid-bottom {
  align-items: start;
}

.section-head {
  margin-bottom: 18px;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

input,
textarea,
select,
button {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #081322;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111d;
  font-weight: 700;
  cursor: pointer;
}

.message,
.code-block,
.list-item {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #081322;
}

.message {
  padding: 14px 16px;
}

.code-block {
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.hidden {
  display: none;
}

.list-item {
  padding: 16px;
}

.list-item + .list-item {
  margin-top: 12px;
}

.meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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