:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background: #04060d;
  color: #f6f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #182147 0%, transparent 30%),
    radial-gradient(circle at 80% 10%, #1d3754 0%, transparent 25%),
    radial-gradient(circle at 40% 80%, #1b2744 0%, transparent 30%),
    #04060d;
}

.page {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.starfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image: radial-gradient(2px 2px at 10% 20%, #d6e9ff, transparent),
    radial-gradient(2px 2px at 30% 0%, #c7ddff, transparent),
    radial-gradient(2px 2px at 60% 10%, #c0f2ff, transparent),
    radial-gradient(2px 2px at 80% 25%, #f3d5ff, transparent),
    radial-gradient(2px 2px at 50% 5%, #bfe2ff, transparent),
    radial-gradient(2px 2px at 15% 5%, #d6e9ff, transparent);
  background-size: 200px 200px, 260px 260px, 220px 220px, 240px 240px,
    210px 210px, 230px 230px;
  z-index: 3;
}

.starfall.active {
  opacity: 1;
  animation: starfall-move 1.4s ease-out forwards;
}

@keyframes starfall-move {
  0% {
    transform: translateY(-30px);
    opacity: 0.9;
  }
  100% {
    transform: translateY(80px);
    opacity: 0;
  }
}

.nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(121, 160, 255, 0.22),
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 120, 200, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(80, 200, 255, 0.14),
      transparent 30%
    );
  filter: blur(60px);
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 32px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  border-radius: 6px;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 12px;
  color: #f6f7fb;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #9fb3ff;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 18px;
  max-width: 720px;
  color: #c7cee7;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill.subtle {
  background: rgba(255, 255, 255, 0.04);
  color: #cdd5f5;
}

.pulse {
  position: relative;
  overflow: hidden;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(124, 211, 255, 0.35),
    transparent 50%
  );
  animation: ping 0.9s ease-out;
  pointer-events: none;
}

@keyframes ping {
  0% {
    opacity: 0.75;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.status-pill.ok {
  color: #92ffba;
  background: rgba(28, 187, 124, 0.14);
  border-color: rgba(28, 187, 124, 0.4);
}

.status-pill.bad {
  color: #ffc7c7;
  background: rgba(255, 99, 99, 0.12);
  border-color: rgba(255, 99, 99, 0.3);
}

.grid {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  position: relative;
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
}

.glass {
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.muted {
  color: #a5acc7;
  font-size: 0.95rem;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.meta-label {
  color: #7f88a8;
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.meta-value {
  margin: 0;
  color: #f6f7fb;
  font-weight: 700;
}

code {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
