:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #020617;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.09), transparent 36rem), #020617;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.brand img {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.86);
  padding: 9px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.eyebrow {
  margin: 0 0 5px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 42px);
  letter-spacing: -0.035em;
}

.status-card {
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.status-card.status-active {
  border-color: rgba(251, 191, 36, 0.36);
}

.status-card.status-failed,
.status-card.status-offline {
  border-color: rgba(251, 113, 133, 0.36);
}

.status-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
}

.status-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.09);
}

.status-active .status-dot,
.status-loading .status-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 7px rgba(251, 191, 36, 0.09);
}

.status-failed .status-dot,
.status-offline .status-dot {
  background: #fb7185;
  box-shadow: 0 0 0 7px rgba(251, 113, 133, 0.09);
}

.status-label {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 750;
}

.status-message {
  max-width: 560px;
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(2, 6, 23, 0.35);
}

.details[hidden] {
  display: none;
}

.details > div {
  min-width: 0;
  padding: 18px 24px;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.details > div:last-child {
  border-right: 0;
}

dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 7px 0 0;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 650;
}

.countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.footer-copy {
  margin: 20px 0 0;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 620px) {
  .shell {
    padding-top: 38px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .details > div {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .details > div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .status-active .status-dot,
  .status-loading .status-dot {
    animation: pulse 1.8s ease-in-out infinite;
  }

  @keyframes pulse {
    50% {
      opacity: 0.58;
    }
  }
}
