:root {
  --bg: #f4f7ef;
  --ink: #10261f;
  --accent: #116d5d;
  --accent-soft: #9ce5ca;
  --warn: #b13e2c;
  --panel: #fbfdf8;
  --panel-border: #c7d8cf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, #d5ecd6 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, #d7f0ec 0%, transparent 40%),
    linear-gradient(160deg, #f8faf5 0%, #eef4e8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(circle at 1px 1px, #29443c 0.5px, transparent 0.75px);
  background-size: 10px 10px;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 18px 60px;
}

.hero {
  animation: rise 0.7s ease;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #345148;
  font-size: 0.8rem;
}

h1 {
  margin: 10px 0;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0;
  max-width: 800px;
  color: #2c473f;
}

.status-cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card,
.panel {
  background: rgba(251, 253, 248, 0.88);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(34, 66, 55, 0.08);
  backdrop-filter: blur(6px);
}

.card {
  padding: 14px;
  animation: rise 0.8s ease both;
}

.card h2 {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #49675d;
}

.card p {
  margin: 8px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
}

.panel {
  margin-top: 14px;
  padding: 14px;
  animation: rise 0.9s ease both;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.gate {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid;
}

.gate.pass {
  background: #ebf9ef;
  border-color: #5fb981;
}

.gate.fail {
  background: #fff0ec;
  border-color: #d56b5a;
}

.gate .name {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.gate .reason {
  margin: 6px 0 0;
  font-size: 0.86rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #dbe4df;
  font-size: 0.9rem;
}

th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #46645b;
}

td {
  font-family: "IBM Plex Mono", monospace;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  border: 1px solid;
}

.tag.pass {
  color: #1b5d3f;
  border-color: #5fb981;
  background: #e5f7ed;
}

.tag.fail {
  color: #7e2f21;
  border-color: #d56b5a;
  background: #ffece8;
}

footer {
  margin-top: 14px;
}

footer p {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: #3e5d53;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  main {
    padding-top: 26px;
  }

  .card p {
    font-size: 0.9rem;
  }
}
