/* === Identity landing page (public root "/") ===
   A deliberately mysterious "you should not be here" hero — it must NOT reveal
   what the service is. Self-contained dark palette; only depends on base.css for
   the box-sizing reset. */

body.landing {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #e5e9f0;
  background: radial-gradient(120% 120% at 50% 30%, #131b2f 0%, #08111f 70%);
}

.landing-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  gap: clamp(0.6rem, 2vw, 1.1rem);
}

.landing-halo {
  position: absolute;
  top: clamp(-3rem, -6vw, -2rem);
  left: 50%;
  width: clamp(18rem, 60vw, 34rem);
  height: clamp(18rem, 60vw, 34rem);
  transform: translateX(-50%);
  background: radial-gradient(circle,
      rgba(79, 116, 255, 0.28) 0%,
      rgba(79, 116, 255, 0.18) 40%,
      rgba(8, 17, 31, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: landing-breathe 6s ease-in-out infinite;
}

.landing-kicker,
.landing-title,
.landing-tagline,
.landing-door { position: relative; z-index: 1; }

.landing-kicker {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  color: #64748b;
  letter-spacing: 0.05em;
  user-select: none;
}

.landing-title {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #4f74ff 0%, #4f74ff 50%, #4f74ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-tagline {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: #94a3b8;
  line-height: 1.6;
}

/* The one real link on the page: a quiet escape hatch to the base domain. Muted
   so it doesn't break the mystery, but clearly a link on hover/focus. */
.landing-back {
  color: #cbd5e1;
  text-decoration: underline;
  text-decoration-color: #475569;
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.landing-back:hover,
.landing-back:focus-visible {
  color: #e5e9f0;
  text-decoration-color: #94a3b8;
}

/* Secret door — a faint dot linking to /admin. Deliberately no affordance
   (no pointer, hover, or focus ring); generous padding gives it a hit target. */
.landing-door {
  margin-top: clamp(1rem, 4vw, 2rem);
  display: inline-flex;
  padding: 0.75rem;
  cursor: default;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.landing-door-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: currentColor;             /* tinted by the status class below */
  animation: landing-pulse 2.4s ease-in-out infinite;
}

.is-operational { color: #6ee7b7; }
.is-degraded { color: #fcd34d; }

@keyframes landing-pulse {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  50%      { opacity: 0.9;  box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); }
}

@keyframes landing-breathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-halo, .landing-door-dot { animation: none; }
}
