:root {
  --primary: #8b5cf6;
  --primary-rgb: 139, 92, 246;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;
  --secondary: #6366f1;
  --text: #1a1a2e;
  --white: #ffffff;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.backdrop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.backdrop__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(var(--primary-rgb), 0.88) 0%,
    rgba(26, 26, 46, 0.94) 55%,
    #1a1a2e 100%
  );
}

.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.header {
  flex-shrink: 0;
}

.logo {
  display: block;
}

.logo--img {
  height: clamp(36px, 8vw, 52px);
  width: auto;
}

.logo--wordmark {
  display: none;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.5);
}

.logo--wordmark.logo--show {
  display: inline-block;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero__tagline {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--primary-light);
  text-shadow: 0 0 24px rgba(var(--primary-rgb), 0.4);
}

.hero__sub {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 400;
  opacity: 0.88;
  max-width: 28ch;
}

.footer {
  flex-shrink: 0;
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Entrance animation */
.main .header,
.main .hero,
.main .footer {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded .main .header { transition-delay: 0.1s; }
body.loaded .main .hero   { transition-delay: 0.25s; }
body.loaded .main .footer { transition-delay: 0.4s; }

body.loaded .main .header,
body.loaded .main .hero,
body.loaded .main .footer {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .hero {
    gap: 0.75rem;
  }
}
