:root {
  --bg: #0a0a0f;
  --surface: #12131a;
  --border: #23262f;
  --text: #f5f6fa;
  --text-muted: #8a8d9f;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* faint background grid for tech feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

main.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}

.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.logo {
  width: 260px;
  max-width: 70vw;
  height: auto;
  margin-bottom: 28px;
}

.tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.loader {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.loader span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: transparent;
  border: 2px solid var(--border);
  animation: bitPulse 2.4s ease-in-out infinite;
}

.loader span:nth-child(1) { animation-delay: 0.0s; }
.loader span:nth-child(2) { animation-delay: 0.1s; }
.loader span:nth-child(3) { animation-delay: 0.2s; }
.loader span:nth-child(4) { animation-delay: 0.3s; }
.loader span:nth-child(5) { animation-delay: 0.4s; }
.loader span:nth-child(6) { animation-delay: 0.5s; }
.loader span:nth-child(7) { animation-delay: 0.6s; }
.loader span:nth-child(8) { animation-delay: 0.7s; }

@keyframes bitPulse {
  0%, 100% {
    background: transparent;
    border-color: var(--border);
    box-shadow: none;
  }
  20% {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-soft);
  }
  40% {
    background: transparent;
    border-color: var(--border);
    box-shadow: none;
  }
}

.sub {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .loader span {
    animation: none;
  }
}
