:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #09090b;
  color: #fafafa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(99, 102, 241, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.12), transparent 30rem),
    #09090b;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.35;
  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%);
}

.shell {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  width: min(100%, 680px);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  background: rgba(18, 18, 22, 0.82);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  color: #a1a1aa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 0.3rem rgba(52, 211, 153, 0.12);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.intro {
  max-width: 52ch;
  margin: 1.5rem 0 2rem;
  color: #a1a1aa;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.check {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  background: #111114;
}

.check-label {
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.check strong {
  overflow: hidden;
  color: #e4e4e7;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-button {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 0.85rem;
  background: #fafafa;
  color: #18181b;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.test-button:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
}

.test-button:active {
  transform: translateY(0);
}

.test-button:focus-visible {
  outline: 3px solid #818cf8;
  outline-offset: 3px;
}

.test-button.success {
  background: #34d399;
  color: #052e25;
}

.result {
  min-height: 1.5em;
  margin: 0.85rem 0 0;
  color: #71717a;
  font-size: 0.88rem;
  text-align: center;
}

footer {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: #52525b;
  font-size: 0.8rem;
}

footer a {
  color: #71717a;
  text-underline-offset: 0.2em;
}

@keyframes pulse {
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 1rem;
  }

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

  .check {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
