* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

:root{
  --bg: #050607;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.58);

  --violetA: rgba(167, 112, 255, 0.18);
  --violetText: rgba(185, 150, 255, 0.92);
}

body{
  background: var(--bg);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow: hidden;
}

.stage{
  position: relative;
  height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;

  background:
    radial-gradient(1200px 700px at 50% 45%, rgba(255,255,255,0.06), rgba(0,0,0,0) 60%),
    radial-gradient(900px 500px at 50% 55%, rgba(255,255,255,0.04), rgba(0,0,0,0) 70%),
    radial-gradient(1200px 900px at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%),
    linear-gradient(180deg, #050607 0%, #020304 100%);
}

/* Moving light sweep + faint purple */
.stage::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(900px 280px at 20% 40%, rgba(255,255,255,0.10), rgba(255,255,255,0) 65%),
    radial-gradient(980px 300px at 80% 60%, rgba(255,255,255,0.08), rgba(255,255,255,0) 65%),
    radial-gradient(820px 260px at 50% 80%, rgba(255,255,255,0.05), rgba(255,255,255,0) 70%),
    radial-gradient(780px 300px at 72% 55%, var(--violetA), rgba(0,0,0,0) 70%);
  filter: blur(18px);
  opacity: 0.60;
  animation: sweep 10s ease-in-out infinite;
  pointer-events:none;
}

/* Film grain */
.stage::after{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    repeating-radial-gradient(circle at 10% 20%, rgba(255,255,255,0.025) 0 1px, rgba(0,0,0,0) 1px 4px),
    repeating-radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02) 0 1px, rgba(0,0,0,0) 1px 5px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012), rgba(255,255,255,0.012) 1px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 6px);
  mix-blend-mode: overlay;
  opacity: 0.20;
  filter: blur(0.2px);
  animation: grain 2.2s steps(6) infinite;
  pointer-events:none;
}

.title-wrap{
  text-align: center;
  padding: 24px 28px;
}

.title{
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.24em;

  color: var(--text);
  font-weight: 300;
  font-size: clamp(44px, 6.2vw, 92px);
  letter-spacing: 0.55em;
  text-transform: uppercase;

  text-shadow:
    0 0 18px rgba(255,255,255,0.10),
    0 0 46px rgba(255,255,255,0.06);
}

.title .gap{ width: 0.85em; }

/* Type-in */
.title span{
  display:inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  animation: typeIn 900ms cubic-bezier(.16,1,.3,1) forwards;
}

.title span:nth-child(1)  { animation-delay: 0.10s; }
.title span:nth-child(2)  { animation-delay: 0.18s; }
.title span:nth-child(3)  { animation-delay: 0.26s; }
.title span:nth-child(4)  { animation-delay: 0.34s; }
.title span:nth-child(5)  { animation-delay: 0.42s; }
.title span:nth-child(6)  { animation-delay: 0s; } /* gap */
.title span:nth-child(7)  { animation-delay: 0.56s; }
.title span:nth-child(8)  { animation-delay: 0.64s; }
.title span:nth-child(9)  { animation-delay: 0.72s; }
.title span:nth-child(10) { animation-delay: 0.80s; }
.title span:nth-child(11) { animation-delay: 0.88s; }

.title .seven{
  color: var(--violetText);
  font-weight: 500;
  text-shadow:
    0 0 18px rgba(167,112,255,0.22),
    0 0 60px rgba(167,112,255,0.10),
    0 0 18px rgba(255,255,255,0.06);
}

/* Subtext restored + readable */
.sub{
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 900ms ease forwards;
  animation-delay: 1.15s;
}

/* ENTER moved LOWER (this was your complaint) */
.enter-wrap{
  margin-top: 46px; /* controlled, predictable */
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1.1s ease forwards;
  animation-delay: 1.85s;
}

.enter-btn {
  margin-top: 3rem;
  padding: 14px 38px;
  border-radius: 999px;
  border: none;
  outline: none;

  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);

  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-decoration: none;

  backdrop-filter: blur(6px);
  transition: background 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.2s ease,
              color 0.25s ease;
}

.enter-btn:hover {
  background: rgba(167, 139, 250, 0.22);
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

.enter-btn:active {
  transform: translateY(0);
}
@media (max-width: 520px){
  .title{ letter-spacing: 0.32em; }
}

@keyframes typeIn{
  0%{ opacity: 0; transform: translateY(12px); filter: blur(10px); }
  70%{ opacity: 1; filter: blur(2px); }
  100%{ opacity: 1; transform: translateY(0); filter: blur(0); }
}

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

@keyframes sweep{
  0%   { transform: translate(-2%, -1%) rotate(-2deg); }
  50%  { transform: translate(2%, 1%) rotate(2deg); }
  100% { transform: translate(-2%, -1%) rotate(-2deg); }
}

@keyframes grain{
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, -1%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}
