@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

:root {
  color-scheme: dark;
  --ink: #fff4d6;
  --muted: #d0b58b;
  --panel: rgba(45, 30, 55, 0.88);
  --panel-2: rgba(73, 43, 66, 0.88);
  --edge: #ffc06e;
  --edge-dark: #7a4a35;
  --green: #8dff9a;
  --red: #ff7474;
  --blue: #8ccfff;
  --purple: #d8a3ff;
  --shadow: #160d21;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%) 0 8px / 16px 16px,
    radial-gradient(circle at 20% 18%, rgba(255, 190, 110, 0.18), transparent 30rem),
    radial-gradient(circle at 78% 26%, rgba(145, 93, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, #24112f 0%, #120a1c 58%, #090710 100%);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font:
    12px/1.85 "Press Start 2P", ui-monospace, "Cascadia Mono", "Courier New", monospace;
  image-rendering: pixelated;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 4px,
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 32rem);
  opacity: 0.55;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.sigil {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #291427;
  background:
    linear-gradient(90deg, transparent 0 8px, rgba(0, 0, 0, 0.12) 8px 10px, transparent 10px),
    linear-gradient(#ffe18c, #ffae5d);
  border: 3px solid #3d233e;
  box-shadow:
    0 0 0 3px var(--edge),
    8px 8px 0 var(--shadow);
  font-size: 24px;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-title {
  color: #fff8de;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 3px 3px 0 var(--shadow);
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-size: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 2px solid #3d233e;
  border-radius: 0;
  color: #281522;
  background: #ffc46f;
  box-shadow:
    inset -3px -3px 0 rgba(80, 42, 36, 0.35),
    5px 5px 0 var(--shadow);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.button.secondary {
  color: var(--ink);
  background: #412948;
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.22),
    5px 5px 0 var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.panel {
  position: relative;
  border: 3px solid var(--edge);
  background: var(--panel);
  box-shadow:
    inset 0 0 0 3px rgba(61, 35, 62, 0.9),
    10px 10px 0 var(--shadow);
}

.panel::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255, 244, 214, 0.22);
  content: "▒";
  font-size: 42px;
  pointer-events: none;
}

.hero-copy,
.status-card,
.section {
  padding: clamp(22px, 4vw, 38px);
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 4px 8px;
  color: #160d21;
  background: var(--green);
  border: 2px solid #3d233e;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0 0 16px;
  color: #fff6c7;
  font-size: clamp(42px, 9vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.08em;
  text-shadow:
    4px 4px 0 #5d2a45,
    8px 8px 0 var(--shadow);
}

h2 {
  margin: 0 0 14px;
  color: #ffe18c;
  font-size: 22px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--shadow);
}

.lead {
  max-width: 62ch;
  margin: 0 0 24px;
  color: #f2d8ad;
  font-size: clamp(12px, 1.6vw, 15px);
}

.lead a,
.footer a,
.section a {
  color: var(--green);
  font-weight: 900;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.status-card {
  background: var(--panel-2);
}

.status-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.status-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 2px solid #3d233e;
  color: #140d17;
  background: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pill::before {
  width: 8px;
  height: 8px;
  content: "";
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.pill.online {
  color: #06220a;
  background: var(--green);
}

.pill.degraded {
  color: #2f1b00;
  background: #ffcf6f;
}

.pill.offline {
  color: #2a0505;
  background: var(--red);
}

.big-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  min-height: 96px;
  padding: 14px;
  border: 2px solid rgba(255, 192, 110, 0.55);
  background: rgba(16, 11, 24, 0.55);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.stat-value {
  color: #fff8de;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.small {
  color: var(--muted);
  font-size: 12px;
}

.section {
  margin-top: 24px;
}

.page-lead {
  max-width: 78ch;
}

.kv {
  display: grid;
  gap: 8px;
  margin: 0;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 192, 110, 0.35);
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  color: #fff8de;
  text-align: right;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  min-height: 88px;
  padding: 14px;
  border: 2px solid rgba(255, 192, 110, 0.35);
  background: rgba(16, 11, 24, 0.46);
  color: #fff8de;
  font-weight: 900;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid rgba(255, 192, 110, 0.35);
  background: rgba(16, 11, 24, 0.46);
}

.pixel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.pixel-table th,
.pixel-table td {
  padding: 12px;
  border-bottom: 1px dashed rgba(255, 192, 110, 0.35);
  text-align: left;
  vertical-align: top;
}

.pixel-table th {
  color: #ffe18c;
  font-size: 10px;
  text-transform: uppercase;
}

.pixel-table td {
  color: #fff8de;
}

.empty-state {
  padding: 18px;
  border: 2px solid rgba(255, 192, 110, 0.35);
  background: rgba(16, 11, 24, 0.46);
  color: var(--muted);
}

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

.footer {
  margin-top: 28px;
  color: rgba(255, 244, 214, 0.65);
  text-align: center;
  font-size: 12px;
}

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

  .nav {
    justify-content: flex-start;
  }

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

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 18px, 1120px);
    padding-top: 14px;
  }

  .brand-title {
    font-size: 24px;
  }

  .hero-copy,
  .status-card,
  .section {
    padding: 16px;
  }

  .big-stat,
  .grid,
  .plan-list {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
