:root {
  --bg: #05060a;
  --ink: #f3f5ff;
  --ink-dim: rgba(243, 245, 255, 0.62);
  --ink-faint: rgba(243, 245, 255, 0.32);
  --accent-a: #7b5cff;
  --accent-b: #78f0ff;
  --accent-c: #ff5cae;
  --accent-d: #5cffa8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "SF Pro Text",
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: relative;
  isolation: isolate;
}

.mesh {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  filter: blur(80px) saturate(140%);
  pointer-events: none;
  will-change: transform;
}

.blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.85;
  will-change: transform;
}

.blob-a {
  background: radial-gradient(circle at 30% 30%, var(--accent-a), transparent 60%);
  top: -10vmax;
  left: -10vmax;
  animation: drift-a 22s ease-in-out infinite alternate;
}

.blob-b {
  background: radial-gradient(circle at 60% 40%, var(--accent-b), transparent 60%);
  top: 10vmax;
  right: -15vmax;
  animation: drift-b 26s ease-in-out infinite alternate;
}

.blob-c {
  background: radial-gradient(circle at 50% 50%, var(--accent-c), transparent 60%);
  bottom: -15vmax;
  left: 10vmax;
  animation: drift-c 30s ease-in-out infinite alternate;
}

.blob-d {
  background: radial-gradient(circle at 50% 50%, var(--accent-d), transparent 60%);
  bottom: -5vmax;
  right: 5vmax;
  width: 40vmax;
  height: 40vmax;
  opacity: 0.55;
  animation: drift-d 34s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(15vmax, 8vmax, 0) scale(1.15); }
}
@keyframes drift-b {
  0% { transform: translate3d(0, 0, 0) scale(1.05); }
  100% { transform: translate3d(-12vmax, 14vmax, 0) scale(0.95); }
}
@keyframes drift-c {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(10vmax, -12vmax, 0) scale(1.2); }
}
@keyframes drift-d {
  0% { transform: translate3d(0, 0, 0) scale(0.95); }
  100% { transform: translate3d(-14vmax, -6vmax, 0) scale(1.1); }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  0% { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.kicker {
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(243, 245, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wordmark {
  margin: 0;
  font-weight: 600;
  font-size: clamp(3.5rem, 14vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  display: flex;
  gap: clamp(0.4rem, 1.5vw, 1.2rem);
  align-items: baseline;
}

.word {
  display: inline-block;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(123, 92, 255, 0.25);
}

.word.accent {
  background: linear-gradient(
    100deg,
    var(--accent-b) 0%,
    var(--accent-a) 45%,
    var(--accent-c) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tagline {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  position: relative;
  padding-left: 1.4rem;
}

.tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-d);
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--accent-d), 0 0 24px rgba(92, 255, 168, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.55; transform: translateY(-50%) scale(0.85); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .word.accent,
  .tagline::before,
  .brand {
    animation: none !important;
  }
}
