:root {
  --bg: #0a0a14;
  --fg: #f4f4ff;
  --accent: #ff3ec9;
  --accent2: #3ef0ff;
  --accent3: #ffe23e;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  cursor: crosshair;
}

/* ---------- no selection / drag ---------- */
* {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
}
img { -webkit-user-drag: none; user-drag: none; pointer-events: auto; }
::selection { background: transparent; }
::-moz-selection { background: transparent; }

/* ---------- background grid ---------- */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  animation: gridShift 18s linear infinite;
  z-index: 0;
}
@keyframes gridShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

/* ---------- color blobs ---------- */
.bg-blob {
  position: fixed;
  width: 50vmax; height: 50vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.blob1 { background: var(--accent);  top: -10%; left: -10%; animation: float1 14s ease-in-out infinite; }
.blob2 { background: var(--accent2); bottom: -15%; right: -10%; animation: float2 17s ease-in-out infinite; }
.blob3 { background: var(--accent3); top: 40%; left: 40%; animation: float3 22s ease-in-out infinite; opacity: 0.35; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(15vw, 10vh) scale(1.2); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12vw, -10vh) scale(1.1); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-30%,-70%) scale(1.3); } }

/* ---------- wave ripples ---------- */
.wave-field {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.wave {
  position: absolute;
  left: 50%; top: 50%;
  width: 40vmin; height: 40vmin;
  margin-left: -20vmin; margin-top: -20vmin;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: translate3d(0,0,0) scale(0.2);
  animation: ripple var(--dur, 3s) cubic-bezier(.15,.7,.25,1) forwards;
  mix-blend-mode: screen;
  will-change: transform, opacity, border-color;
}
@keyframes ripple {
  0%   { opacity: 0.0; transform: scale(0.15); border-width: 4px; }
  10%  { opacity: 0.85; }
  100% { opacity: 0; transform: scale(5);   border-width: 1px; }
}

/* ---------- emoji field ---------- */
.emoji-field {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.emoji-field .e {
  position: absolute;
  font-size: 28px;
  user-select: none;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
  animation: drift linear infinite;
  opacity: 0.85;
}
@keyframes drift {
  0%   { transform: translate3d(0, 110vh, 0) rotate(0deg); }
  100% { transform: translate3d(var(--dx, 0px), -20vh, 0) rotate(720deg); }
}

/* ---------- center stage ---------- */
.stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  text-align: center;
}

.logo-wrap {
  position: relative;
  width: min(40vmin, 320px);
  height: min(40vmin, 320px);
  display: grid;
  place-items: center;
}

.logo-spin {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  animation: spinSlow 9s linear infinite;
  will-change: transform;
}
.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(255, 62, 201, 0.55))
    drop-shadow(0 0 40px rgba(62, 240, 255, 0.35));
  transform: translate3d(0,0,0) scale(1);
  will-change: transform, filter;
}
@keyframes spinSlow {
  0%   { rotate: 0deg; }
  100% { rotate: 360deg; }
}

.logo-ring, .ring2 {
  position: absolute;
  inset: -12%;
  border: 2px dashed rgba(255, 62, 201, 0.55);
  border-radius: 50%;
  animation: spinRev 14s linear infinite;
  pointer-events: none;
}
.ring2 {
  inset: -22%;
  border-color: rgba(62, 240, 255, 0.45);
  border-style: dotted;
  animation: spinSlow 26s linear infinite;
}
@keyframes spinRev {
  0%   { rotate: 360deg; }
  100% { rotate: 0deg; }
}

.logo-shadow {
  position: absolute;
  bottom: -8%;
  width: 60%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), transparent 70%);
  filter: blur(4px);
  animation: shadow 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes shadow {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%     { transform: scale(0.7); opacity: 0.4; }
}

/* ---------- title (glitch) ---------- */
.title {
  position: relative;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: 0.04em;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: hue 6s linear infinite;
}
@keyframes hue {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.title::before, .title::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: inherit;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  mix-blend-mode: screen;
  pointer-events: none;
}
.title::before { transform: translate(2px, 0);  filter: hue-rotate(40deg);  animation: glitch1 3.2s infinite steps(1); }
.title::after  { transform: translate(-2px, 0); filter: hue-rotate(-40deg); animation: glitch2 2.7s infinite steps(1); }
@keyframes glitch1 {
  0%,92%,100% { clip-path: inset(0 0 0 0); transform: translate(0,0); }
  93% { clip-path: inset(10% 0 70% 0); transform: translate(3px,-2px); }
  96% { clip-path: inset(60% 0 20% 0); transform: translate(-4px,1px); }
}
@keyframes glitch2 {
  0%,90%,100% { clip-path: inset(0 0 0 0); transform: translate(0,0); }
  91% { clip-path: inset(30% 0 40% 0); transform: translate(-3px,2px); }
  94% { clip-path: inset(70% 0 10% 0); transform: translate(4px,-1px); }
}

.tag {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(244,244,255,0.75);
  letter-spacing: 0.08em;
  min-height: 1.4em;
}
.tag::after {
  content: "▌";
  margin-left: 2px;
  animation: caret 1s steps(1) infinite;
  color: var(--accent2);
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- cta ---------- */
.cta,
.cta:link,
.cta:visited,
.cta:hover,
.cta:active,
.cta:focus {
  color: var(--fg);
  text-decoration: none;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 18px;
  font: inherit;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.cta:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--accent2);
  background: rgba(62, 240, 255, 0.08);
  box-shadow: 0 0 24px rgba(62, 240, 255, 0.35);
}
.cta:active { transform: translateY(0) scale(0.98); }
.cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5cff8a;
  box-shadow: 0 0 8px #5cff8a, 0 0 16px #5cff8a;
  animation: ctaPulse 1.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%,100% { opacity: 1;   transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.7); }
}
.cta-arrow {
  transition: transform 0.2s ease;
}
.cta:hover .cta-arrow { transform: translateX(4px); }

/* ---------- footer ---------- */
.foot {
  position: fixed;
  bottom: 14px; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(244,244,255,0.5);
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
