:root{
  --bg0: #07040d;        /* near-black purple */
  --bg1: #0b0614;
  --ink: #efeaff;
  --muted: rgba(239,234,255,0.66);
  --faint: rgba(239,234,255,0.35);

  --p1: #6b4cff;         /* violet */
  --p2: #b46cff;         /* orchid */
  --p3: #2a9dff;         /* electric blue accent */
  --p4: #ff4fd8;         /* magenta accent */

  --shadow: 0 30px 100px rgba(0,0,0,0.55);
  --radius: 22px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 20% 20%, rgba(107,76,255,0.10), transparent 55%),
              radial-gradient(900px 600px at 80% 30%, rgba(255,79,216,0.08), transparent 60%),
              radial-gradient(900px 700px at 50% 85%, rgba(42,157,255,0.08), transparent 60%),
              linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Background layers */
.bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
}
.aurora{
  position: absolute;
  inset: -20%;
  filter: blur(50px);
  opacity: 0.55;
  transform: translate3d(0,0,0);
  mix-blend-mode: screen;
  animation: drift 14s ease-in-out infinite;
}
.aurora.a1{
  background:
    radial-gradient(closest-side at 30% 40%, rgba(107,76,255,0.45), transparent 60%),
    radial-gradient(closest-side at 60% 30%, rgba(180,108,255,0.28), transparent 55%);
  animation-duration: 18s;
}
.aurora.a2{
  background:
    radial-gradient(closest-side at 70% 60%, rgba(42,157,255,0.28), transparent 60%),
    radial-gradient(closest-side at 45% 70%, rgba(255,79,216,0.22), transparent 58%);
  animation-duration: 22s;
}
.aurora.a3{
  background:
    radial-gradient(closest-side at 55% 35%, rgba(180,108,255,0.20), transparent 60%),
    radial-gradient(closest-side at 35% 75%, rgba(107,76,255,0.20), transparent 58%);
  animation-duration: 26s;
  opacity: 0.4;
}

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

#grain{
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* Stage layout */
.stage{
  height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
}

.hero{
  width: min(720px, 92vw);
  text-align: center;
  padding: 46px 28px 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.07), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

/* Decorative “mark” above word */
.mark{
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
}
.ring{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(107,76,255,0.45), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(255,79,216,0.26), transparent 55%);
  border: 1px solid rgba(255,255,255,0.10);
  transform: rotate(12deg);
  filter: blur(0.2px);
  opacity: 0.85;
}
.ring.r2{
  inset: 10px;
  opacity: 0.65;
  transform: rotate(-10deg);
}
.ring.r3{
  inset: 20px;
  opacity: 0.45;
  transform: rotate(18deg);
}

/* The word */
.word{
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(56px, 10vw, 90px);
  line-height: 1.0;
  position: relative;
  display: inline-block;
  text-shadow:
    0 0 22px rgba(107,76,255,0.20),
    0 0 48px rgba(255,79,216,0.12);
}

/* Subtle spectral edge */
.word::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(90deg, rgba(107,76,255,0.55), rgba(42,157,255,0.38), rgba(255,79,216,0.45));
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(8px);
  opacity: 0.45;
  z-index: -1;
}

/* Copy */
.subtle{
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
}

/* Meta row */
.meta{
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}
.pill{
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.dot{
  width: 4px; height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.30);
}
.link{
  color: rgba(239,234,255,0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(239,234,255,0.18);
  padding-bottom: 2px;
}
.link:hover{
  border-bottom-color: rgba(239,234,255,0.50);
}

/* Footer */
.foot{
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(239,234,255,0.45);
  font-size: 12px;
  user-select: none;
  text-align: center;
}
.sep{ opacity: 0.35; }
.footlink{
  color: rgba(239,234,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(239,234,255,0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footlink:hover{
  color: rgba(239,234,255,0.72);
  border-bottom-color: rgba(239,234,255,0.32);
}
.compat-item{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.compat-icon{
  display: inline-block;
  line-height: 1;
  font-size: 12px;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce){
  .aurora{ animation: none; }
}
