:root {
  --bg: #030304;
  --fg: #f5f5f7;
  --muted: #8a8a92;
  --blue: #3b6eff;
  --purple: #8b5cf6;
  --border: rgba(255, 255, 255, 0.09);
  --panel: rgba(255, 255, 255, 0.025);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint structural grid, like a sheet of graph paper — gives the black field texture */
.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
}

/* Fine grain over everything, so the black isn't a flat void */
.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Soft ambient glow behind the hero, echoing the logo's blue/purple gradient */
.glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(59, 110, 255, 0.2) 0%,
    rgba(139, 92, 246, 0.1) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.06);
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vh 24px;
  gap: clamp(32px, 6vh, 56px);
  text-align: center;
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(59, 110, 255, 0.28) 0%,
    rgba(139, 92, 246, 0.14) 45%,
    transparent 72%
  );
  filter: blur(6px);
  z-index: -1;
}

.logo {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(59, 110, 255, 0.18));
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 560px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  margin-bottom: -4px;
}

.title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.description {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 440px;
}

.divider {
  width: 48px;
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  animation: pulse 2.4s ease-in-out infinite;
}

.status-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 24px;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.footer p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* Entrance animation */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .status-dot {
    animation: none;
  }
  .glow {
    animation: none;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
