:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: rgba(17, 24, 39, 0.76);
  --panel-solid: #111827;
  --text: #f8fafc;
  --muted: #a7b0c0;
  --faint: #6b7280;
  --red: #ef4444;
  --amber: #f59e0b;
  --cyan: #22d3ee;
  --green: #34d399;
  --border: rgba(248, 250, 252, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 15%, rgba(239, 68, 68, 0.22), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.14), transparent 28rem),
    linear-gradient(135deg, #050506 0%, #0c111d 58%, #140a0a 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 88vh;
  display: grid;
  align-content: center;
  padding: 72px 0 48px;
}

.status-bar {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(239, 68, 68, 0.42);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 18px var(--red);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 960px;
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 10vw, 8.75rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.1rem;
}

.lede {
  max-width: 760px;
  color: #d1d5db;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.button.primary {
  border-color: rgba(239, 68, 68, 0.65);
  background: linear-gradient(135deg, #ef4444, #991b1b);
  box-shadow: 0 18px 54px rgba(239, 68, 68, 0.25);
}

.terminal-card,
.grid article,
.radio,
.social,
.artifacts,
.metadata-plan,
.manifesto {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.terminal-card {
  overflow: hidden;
  margin-bottom: 88px;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--red);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
}

.terminal-top strong {
  margin-left: 10px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

pre {
  margin: 0;
  padding: clamp(22px, 4vw, 42px);
  overflow-x: auto;
  color: #d1fae5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.9rem, 1.7vw, 1.15rem);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 88px;
}

.grid > div {
  grid-row: span 2;
  padding: 8px 28px 8px 0;
}

.grid article {
  min-height: 220px;
  padding: 26px;
}

.grid p,
.radio p,
.social p,
.artifacts p,
.artifacts li,
.manifesto p,
.radio-route .artifact-list,
.radio-route .artifact-list a,
footer {
  color: var(--muted);
}

.radio {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 88px;
}

.social,
.artifacts {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 88px;
}

.social-actions {
  display: grid;
  gap: 12px;
}

.artifacts ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.artifacts li {
  padding: 16px 18px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 18px;
  background: rgba(127, 29, 29, 0.16);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.metadata-plan {
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 88px;
}

.metadata-plan ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

code {
  color: #d1fae5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.broadcast-box {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), transparent),
    rgba(255, 255, 255, 0.04);
}

.label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #cffafe !important;
  background: rgba(8, 145, 178, 0.24);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.manifesto {
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 40px;
}

.manifesto p:first-child {
  max-width: 820px;
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 36px;
  font-size: 0.9rem;
}

footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

.radio-route .radio-hero {
  min-height: 72vh;
}

.radio-route code,
.radio-route .artifact-list a {
  color: #d1fae5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.radio-route .artifact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.radio-route .feed-panel {
  margin-bottom: 40px;
}

@media (max-width: 850px) {
  .grid,
  .radio,
  .social,
  .artifacts {
    grid-template-columns: 1fr;
  }

  .grid > div {
    grid-row: auto;
    padding-right: 0;
  }

  .grid article {
    min-height: auto;
  }

  footer {
    display: block;
  }
}
