:root { --accent: #a392ff; }
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Instrument Sans', sans-serif;
  background: #0a0a0f;
  color: #e5e5ff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 85%, rgba(163,146,255,0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(140,120,255,0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 4s infinite;
}

@keyframes twinkle {
  0%,100% { opacity:0; }
  50% { opacity:0.85; }
}

.comet {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px 4px rgba(255,255,255,0.9);
  opacity: 0;
}

.comet::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px;
  height: 2px;
  background: linear-gradient(to left, rgba(163,146,255,0.8) 0%, rgba(163,146,255,0.4) 40%, transparent 100%);
  transform: rotate(145deg);
  transform-origin: right center;
}

@keyframes meteor {
  0%   { transform: translateX(110vw) translateY(-150px); opacity:0; }
  8%   { opacity:1; }
  92%  { opacity:1; }
  100% { transform: translateX(-150px) translateY(calc(100vh + 150px)); opacity:0; }
}

header {
  height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.hero { text-align: center; max-width: 1100px; padding: 0 2rem; }

.logo {
  font-size: 5.2rem;
  font-weight: 700;
  letter-spacing: -3.5px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}

.tagline {
  font-size: 2.4rem;
  font-weight: 300;
  opacity: 0.92;
  margin-bottom: 1.8rem;
  letter-spacing: -0.5px;
}

.description {
  font-size: 1.32rem;
  max-width: 740px;
  margin: 0 auto;
  opacity: 0.78;
  line-height: 1.8;
}

.hero-text {
  margin: 14rem 2rem 10rem;
  text-align: center;
  text-shadow: 0 0 40px rgba(163,146,255,0.4), 0 0 80px rgba(163,146,255,0.2);
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.3;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

footer {
  text-align: center;
  padding: 12rem 2rem 6rem;
  font-size: 0.95rem;
  opacity: 0.6;
  position: relative;
  z-index: 2;
}

/* 404-specific */
.code {
  font-size: 16vw;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 0 80px rgba(163,146,255,0.5);
}

.message { font-size: 2.8rem; font-weight: 300; opacity: 0.9; margin-bottom: 2rem; }
.sub { font-size: 1.4rem; opacity: 0.7; max-width: 620px; line-height: 1.7; margin: 0 auto; }
.home { margin-top: 4rem; font-size: 1.1rem; opacity: 0.8; text-decoration: none; color: inherit; border-bottom: 1px solid rgba(163,146,255,0.4); padding-bottom: 4px; }
.home:hover { opacity: 1; border-color: var(--accent); }

@media (max-width: 768px) {
  .logo { font-size: 3.6rem; }
  .tagline { font-size: 2rem; }
  .hero-text h2 { font-size: 2.6rem; }
  .code { font-size: 22vw; }
  .message { font-size: 2rem; }
}