:root {
  --bg: #06070a;
  --bg-soft: #0b0f16;
  --text: #191970;
  --plasma-core-rgb: 238, 243, 255;
  --plasma-mid-rgb: 153, 180, 255;
  --plasma-edge-rgb: 78, 110, 197;
  --plasma-hot-rgb: 255, 126, 58;
  --plasma-spark-rgb: 255, 220, 145;
  --brand-mask-y-offset: 0px;
  --left-fade: rgba(6, 7, 10, 0.96);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(130% 120% at 20% 40%, var(--bg-soft), var(--bg));
  font-family: "Garamond", serif;
  cursor: none;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  cursor: none;
}

#plasma {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
}

.left-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      var(--left-fade) 0%,
      var(--left-fade) 18%,
      rgba(6, 7, 10, 0.8) 30%,
      rgba(6, 7, 10, 0.32) 48%,
      rgba(6, 7, 10, 0.08) 62%,
      rgba(6, 7, 10, 0) 76%
    );
}

.brand {
  position: absolute;
  z-index: 3;
  left: clamp(1.6rem, 5vw, 5.8rem);
  top: 50%;
  transform: translateY(-52%);
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: clamp(2.4rem, 9vw, 9.2rem);
  text-shadow:
    0 0 24px rgba(231, 236, 255, 0.25),
    0 0 90px rgba(125, 151, 255, 0.12);
  pointer-events: none;
}

#rocket-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 44px;
  height: 24px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transform: translate3d(-120px, -120px, 0);
  transform-origin: 50% 50%;
  border-radius: 12px 13px 13px 12px;
  border: 1px solid rgba(164, 190, 255, 0.45);
  background:
    radial-gradient(circle at 28% 50%, rgba(127, 168, 255, 0.85) 0 12%, transparent 13%),
    linear-gradient(90deg, rgba(243, 246, 255, 1) 0%, rgba(210, 223, 255, 1) 56%, rgba(170, 191, 243, 1) 100%);
  box-shadow:
    0 0 14px rgba(172, 198, 255, 0.28),
    0 0 34px rgba(255, 160, 92, 0.15);
  transition: opacity 140ms ease-out;
}

#rocket-cursor::before {
  content: "";
  position: absolute;
  right: -11px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid rgba(237, 244, 255, 0.98);
  filter: drop-shadow(0 0 4px rgba(211, 228, 255, 0.35));
}

#rocket-cursor::after {
  content: "";
  position: absolute;
  left: -16px;
  top: 5px;
  width: 18px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 74% 50%,
      rgba(255, 236, 178, 0.95) 0 20%,
      rgba(255, 158, 82, 0.95) 42%,
      rgba(255, 95, 30, 0.46) 68%,
      rgba(255, 95, 30, 0) 100%
    );
  filter: blur(0.4px);
  animation: rocket-flame 120ms ease-in-out infinite alternate;
}

.rocket-fin {
  position: absolute;
  left: 8px;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: linear-gradient(130deg, rgba(194, 212, 255, 0.95), rgba(135, 164, 229, 0.95));
  clip-path: polygon(0 0, 100% 48%, 0 100%);
  filter: drop-shadow(0 0 2px rgba(139, 175, 249, 0.4));
}

@keyframes rocket-flame {
  from {
    transform: scale(0.92) translateX(0);
    opacity: 0.85;
  }

  to {
    transform: scale(1.08) translateX(-1px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .brand {
    top: 18%;
    transform: translateY(0);
    font-size: clamp(2rem, 14vw, 5.4rem);
  }

  .left-fade {
    background:
      linear-gradient(
        90deg,
        var(--left-fade) 0%,
        var(--left-fade) 24%,
        rgba(6, 7, 10, 0.75) 38%,
        rgba(6, 7, 10, 0.32) 52%,
        rgba(6, 7, 10, 0.08) 66%,
        rgba(6, 7, 10, 0) 82%
      );
  }
}
