﻿:root {
  --bg: radial-gradient(circle at 50% 0%, #1f1f1f 0%, #050505 55%, #000000 100%);
  --text-primary: #f8f8f8;
  --text-secondary: rgba(248, 248, 248, 0.6);
  --accent-glow: rgba(255, 247, 5, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000000;
  color: var(--text-primary);
}

.scene {
  position: relative;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px;
  mix-blend-mode: soft-light;
  opacity: 0.4;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
  pointer-events: none;
}

.orb-one {
  width: 42vw;
  height: 42vw;
  top: -18vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  animation: orbFloatOne 28s ease-in-out infinite;
}

.orb-two {
  width: 36vw;
  height: 36vw;
  bottom: -16vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(255, 247, 5, 0.16) 0%, transparent 72%);
  animation: orbFloatTwo 32s ease-in-out infinite;
}

.orb-three {
  width: 28vw;
  height: 28vw;
  top: 24vh;
  right: 18vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 75%);
  animation: orbFloatThree 26s ease-in-out infinite;
}

.light-beam {
  position: absolute;
  width: 160vw;
  height: 18vw;
  filter: blur(90px);
  transform: rotate(-12deg);
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: screen;
}

.beam-one {
  top: 12vh;
  left: -40vw;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 40%, transparent 100%);
  animation: beamSweepOne 18s linear infinite;
}

.beam-two {
  bottom: 16vh;
  right: -50vw;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 247, 5, 0.18) 45%, transparent 100%);
  animation: beamSweepTwo 22s linear infinite;
}

#crystal-rays {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.8;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.2rem, 4vw, 2.6rem);
  padding: 0 1.5rem;
  perspective: 1200px;
}

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.logo-wrapper::after {
  content: "";
  position: absolute;
  width: clamp(220px, 28vw, 320px);
  height: clamp(220px, 28vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.4;
  animation: pulseGlow 6s ease-in-out infinite;
}

.logo {
  position: relative;
  width: clamp(160px, 22vw, 240px);
  height: auto;
  filter: drop-shadow(0 60px 140px rgba(255, 247, 5, 0.12));
  animation: logoFloat 9s ease-in-out infinite;
  will-change: transform;
}

.text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.9em;
}

.title {
  font-family: "Jost", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.6vw, 1.1rem);
  color: var(--text-primary);
  white-space: nowrap;
}

.subtitle {
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  color: var(--text-secondary);
  letter-spacing: 1.4em;
  padding-left: 1.4em;
}

.glow-bar {
  width: clamp(180px, 24vw, 280px);
  height: 1px;
  background: radial-gradient(circle, rgba(255, 247, 5, 0.4) 0%, transparent 70%);
  filter: blur(0.5px);
  position: relative;
  overflow: hidden;
}

.glow-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: barSweep 4s ease-in-out infinite;
}

@keyframes orbFloatOne {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(4vw, 6vh) scale(1.08);
  }

  50% {
    transform: translate(-2vw, 10vh) scale(0.98);
  }

  75% {
    transform: translate(6vw, 4vh) scale(1.05);
  }
}

@keyframes orbFloatTwo {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  20% {
    transform: translate(-6vw, -4vh) scale(1.06);
  }

  55% {
    transform: translate(-2vw, -10vh) scale(0.96);
  }

  80% {
    transform: translate(-8vw, -6vh) scale(1.04);
  }
}

@keyframes orbFloatThree {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  30% {
    transform: translate(-4vw, 6vh) scale(1.1);
  }

  65% {
    transform: translate(2vw, 4vh) scale(0.94);
  }
}

@keyframes beamSweepOne {
  0% {
    transform: rotate(-12deg) translateX(-20%);
  }

  50% {
    transform: rotate(-10deg) translateX(10%);
  }

  100% {
    transform: rotate(-12deg) translateX(-20%);
  }
}

@keyframes beamSweepTwo {
  0% {
    transform: rotate(-14deg) translateX(20%);
  }

  50% {
    transform: rotate(-12deg) translateX(-6%);
  }

  100% {
    transform: rotate(-14deg) translateX(20%);
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.46;
    transform: scale(1.04);
  }
}

@keyframes barSweep {
  0% {
    transform: translateX(-100%);
  }

  70% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 680px) {
  .text-group {
    letter-spacing: 0.6em;
  }

  .subtitle {
    letter-spacing: 1em;
    padding-left: 1em;
  }
}
