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

:root {
  --purple: #A700FF;
  --dark-purple: #2D0047;
  --dark-bg: #1a1a3a;
}

html {
  background-color: var(--dark-purple);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--dark-bg) 50%, var(--dark-purple) 100%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -60%);
  background: radial-gradient(
    circle,
    rgba(167, 0, 255, 0.08) 0%,
    rgba(107, 142, 232, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -60%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -60%) scale(1.08); }
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 104px;
  height: 160px;
  margin-bottom: 36px;
  filter: drop-shadow(0 0 30px rgba(167, 0, 255, 0.12));
}

.draw-node-top {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center center;
  animation: node-appear 0.5s ease-out forwards;
}

.draw-node-bottom {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center center;
  animation: node-appear 0.5s ease-out 1.1s forwards;
}

.draw-path-outer {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-stroke 1.6s ease-in-out 0.4s forwards;
}

.draw-path-inner {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw-stroke 1.4s ease-in-out 0.6s forwards;
}

@keyframes node-appear {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}

.wordmark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
}

.wordmark .trademark {
  font-size: 0.35em;
  font-weight: 600;
  vertical-align: baseline;
  margin-left: 0.125em;
  opacity: 1;
  color: #ffffff;
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 14px;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 2.45s forwards;
}

.tagline em {
  font-style: normal;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 2.7s forwards;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wordmark,
  .tagline,
  .draw-node-top,
  .draw-node-bottom,
  .footer {
    opacity: 1;
    transform: none;
  }

  .draw-path-outer,
  .draw-path-inner {
    stroke-dashoffset: 0;
  }

  .glow {
    animation: none;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 90px;
    height: 138px;
    margin-bottom: 32px;
  }

  .wordmark {
    font-size: 2.25rem;
  }

  .tagline {
    font-size: 0.8125rem;
  }

  .glow {
    width: 400px;
    height: 400px;
  }
}
