:root {
  --bg: #07070D;
  --violet: #7C3AED;
  --indigo: #4338CA;
  --lilac: #A78BFA;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.35);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Noise grain overlay */
.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 100;
}

/* Dot grid */
.grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Background orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  animation: drift 12s ease-in-out infinite;
}

.orb-1 {
  width: 560px;
  height: 560px;
  background: var(--violet);
  opacity: 0.13;
  top: -180px;
  right: -120px;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: var(--indigo);
  opacity: 0.11;
  bottom: -120px;
  left: -100px;
  animation-delay: -6s;
  animation-direction: reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-24px, 32px) scale(1.04); }
  66%       { transform: translate(18px, -18px) scale(0.97); }
}

/* Main content */
main {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.8rem;
  animation: fadeUp 1s ease 0s both;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lilac);
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
}

.dot:last-child {
  animation-delay: 0.6s;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

/* Wordmark */
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 2.8rem;
  animation: fadeUp 1s ease 0.15s both;
}

h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--violet) 0%, var(--lilac) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline */
.tagline {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.85;
  margin-bottom: 2.8rem;
  animation: fadeUp 1s ease 0.3s both;
}

.tagline::after {
  content: '_';
  color: var(--lilac);
  animation: blink 1.3s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Divider */
.rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  margin-bottom: 2.2rem;
  animation: fadeUp 1s ease 0.45s both;
}

/* Sub text */
.sub {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  animation: fadeUp 1s ease 0.6s both;
}

/* Footer */
footer {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.14);
  z-index: 1;
  animation: fadeUp 1s ease 0.9s both;
}

.sep {
  opacity: 0.4;
}

/* Shared animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
