/* ---------- Base Reset ---------- */
* { 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.52);

  /* Premium purple accents (subtle, not neon) */
  --violetA: rgba(167, 112, 255, 0.18);
  --violetB: rgba(134, 80, 255, 0.10);
  --violetText: rgba(185, 150, 255, 0.92);
}

/* ---------- Stage ---------- */
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” layer + faint purple tint */
.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(700px 260px at 65% 45%, 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 / noise overlay */
.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 ---------- */
.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;

  /* base glow */
  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; /* creates the ULTRA [space] SE7EN gap */
}

/* TYPE-IN effect: each character reveals sequentially */
.title span{
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  animation: typeIn 900ms cubic-bezier(.16,1,.3,1) forwards;
}

/* Stagger delays (manual, stable, no JS) */
.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 (hidden) */
.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; }

/* Purple accent: keep it surgical */
.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);
}

/* Micro subtext */
.micro{
  margin-top: 16px;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;

  opacity: 0;
  transform: translateY(8px);
  animation: microIn 1.2s ease forwards;
  animation-delay: 1.35s;
}

/* Mobile tracking tightening */
@media (max-width: 520px){
  .title{ letter-spacing: 0.32em; }
}

/* ---------- Animations ---------- */
@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 microIn{
  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); }
}
