:root {
  --light-size: 400px;
  --white-fade: rgba(255, 255, 255, 0.6);
  --purple-glow: rgba(155, 0, 255, 0.6);
}

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

html, body {
  height: 100%;
  width: 100%;
  background: #000;
  font-family: 'Inter', sans-serif;
  color: white;
  overflow-x: hidden;
  cursor: none;
}

.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--white-fade);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: white;
  text-shadow: 0 0 8px var(--purple-glow);
}

.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 5;
}

h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  background: linear-gradient(90deg, #9b00ff, #d56eff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px var(--purple-glow);
  animation: steadyGlow 6s ease-in-out infinite;
}

@keyframes steadyGlow {
  0%, 100% { text-shadow: 0 0 40px var(--purple-glow); }
  50% { text-shadow: 0 0 60px rgba(155, 0, 255, 1); }
}

.subtitle {
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--white-fade);
}

/* Hidden Words */
.hidden-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hidden-words span {
  position: absolute;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  color: white;
  opacity: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  mix-blend-mode: lighten;
  transition: opacity 1.2s ease;
  animation: floatMove 14s ease-in-out infinite alternate;
  top: calc(10% + 80% * var(--y));
  left: calc(5% + 90% * var(--x));
  pointer-events: none;
}

.hidden-words.revealed span {
  opacity: 1;
}

@keyframes floatMove {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-15px) translateX(10px); }
  100% { transform: translateY(10px) translateX(-10px); }
}

/* Cursor Light */
.cursor-light {
  position: fixed;
  width: var(--light-size);
  height: var(--light-size);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(155,0,255,0.15) 40%, transparent 80%);
  border-radius: 50%;
  top: 0;
  left: 0;
  mix-blend-mode: lighten;
  filter: blur(5px);
  z-index: 1;
  transition: width 0.2s ease, height 0.2s ease, transform 0.08s ease;
}

/* Scroll Button */
.scroll-button {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.scroll-button button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 10px rgba(155, 0, 255, 0.2);
}

.scroll-button button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: white;
  box-shadow: 0 0 20px rgba(213, 110, 255, 0.4);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .cursor-light {
    display: none;
  }

  body {
    cursor: default;
    font-size: 16px;
    line-height: 1.5;
  }

  .main-header {
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }

  .logo {
    font-size: 0.95rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    position: relative;
    min-height: 100vh;
    padding: 2rem 1rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .title-wrap {
    margin: 0;
    gap: 0.4rem;
    align-items: center;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
    text-shadow: 0 0 25px var(--purple-glow);
  }

  .subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    max-width: 90%;
    text-align: center;
  }

  .scroll-button {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
  }

  .scroll-button button {
    font-size: 0.95rem;
    padding: 0.6rem 1.4rem;
    border-radius: 28px;
    touch-action: manipulation;
  }

  .section {
    padding: 3rem 1.2rem;
  }

  .hidden-words {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .hidden-words span {
    font-size: 0.75rem;
    opacity: 0;
    animation: floatMove 12s ease-in-out infinite alternate;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 4px rgba(155, 0, 255, 0.2);
    transition: opacity 0.8s ease;
  }

  .hidden-words.revealed span {
    opacity: 1;
  }
}