:root {
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.6);
  --accent-subtle: rgba(0, 212, 255, 0.1);
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
}

/* Background canvas */
#tron-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Main container */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

/* Logo container */
.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 12vw, 10rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.05em;
  user-select: none;
}

.logo-letter {
  display: inline-block;
  transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 1;
}

/* Blink animation for the 7 */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.logo-letter.seven.blinking {
  animation: blink 0.4s ease-in-out 3;
}

/* Expanded state - a and t spread apart, 7 disappears */
.logo-container.expanded .logo-letter.a {
  transform: translateX(-1.78em);
}

.logo-container.expanded .logo-letter.t {
  transform: translateX(1.78em);
}

.logo-container.expanded .logo-letter.seven {
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* Slot machine container */
.slot-container {
  position: absolute;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  white-space: nowrap;
}

.slot-container.visible {
  opacity: 1;
  text-shadow: 0 0 20px var(--accent-subtle);
}

.slot-inner {
  display: inline-block;
  white-space: nowrap;
}

/* Character reveal animation */
@keyframes charReveal {
  0% {
    opacity: 0;
    filter: blur(4px);
    color: var(--accent);
  }
  50% {
    opacity: 1;
    color: var(--accent);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    color: #fff;
  }
}

.char {
  display: inline-block;
  opacity: 0;
}

.char.revealed {
  animation: charReveal 0.4s ease-out forwards;
}

.char.scrambling {
  color: var(--accent);
  opacity: 1;
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Fade out before next word scramble */
.slot-container.fading-out {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

/* Coming soon button */
.coming-soon {
  margin-top: 3rem;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: default;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

.coming-soon.visible {
  opacity: 1;
}

.coming-soon:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-subtle), inset 0 0 15px var(--accent-subtle);
  transition: all 0.3s ease;
}
