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

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(75, 111, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 87% 82%, rgba(0, 245, 212, 0.13), transparent 30rem),
    #05070b;
}

.starfield,
.starfield::before,
.starfield::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.starfield {
  opacity: 0.72;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(116, 255, 230, 0.42) 0 1px, transparent 1.5px);
  background-position: 0 0, 43px 61px;
  background-size: 118px 118px, 173px 173px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.starfield::before {
  content: "";
  background: linear-gradient(115deg, transparent 0 48%, rgba(121, 158, 255, 0.06) 50%, transparent 52%);
}

.shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.glass-card {
  width: min(720px, 100%);
  padding: clamp(24px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(185, 208, 255, 0.17);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 24, 37, 0.88), rgba(8, 12, 20, 0.7));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 70px rgba(64, 105, 255, 0.1);
  backdrop-filter: blur(24px);
}

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

.logo-frame {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.logo-frame img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand-copy span,
footer {
  color: #8793a8;
  font-size: 12px;
}

.hero {
  margin: clamp(46px, 9vw, 76px) 0 34px;
}

.eyebrow {
  color: #73ffe5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero p {
  max-width: 570px;
  margin: 0;
  color: #aeb8c9;
  font-size: 15px;
  line-height: 1.75;
}

.status-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(3, 7, 14, 0.52);
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dce5f5;
  font-size: 13px;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd479;
  box-shadow: 0 0 16px rgba(255, 212, 121, 0.8);
}

.signal[data-state="ok"] .signal-dot {
  background: #62ffd8;
  box-shadow: 0 0 18px rgba(98, 255, 216, 0.9);
}

.signal[data-state="error"] .signal-dot {
  background: #ff6e8a;
  box-shadow: 0 0 18px rgba(255, 110, 138, 0.85);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.metrics div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

dt {
  margin-bottom: 8px;
  color: #748097;
  font-size: 11px;
}

dd {
  margin: 0;
  overflow: hidden;
  color: #f3f7ff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(111, 255, 225, 0.28);
  border-radius: 999px;
  color: #bdfff1;
  background: rgba(67, 255, 216, 0.07);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

button:hover {
  border-color: rgba(111, 255, 225, 0.56);
  background: rgba(67, 255, 216, 0.12);
}

button:focus-visible {
  outline: 2px solid #73ffe5;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .shell {
    align-items: start;
    padding: 14px;
  }

  .glass-card {
    min-height: calc(100svh - 28px);
    border-radius: 22px;
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .signal[data-state="checking"] .signal-dot {
    animation: pulse 1.2s ease-in-out infinite;
  }

  @keyframes pulse {
    50% {
      opacity: 0.35;
      transform: scale(0.75);
    }
  }
}
