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

:root {
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --white: #f8fafc;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  background: #050510;
  color: var(--white);
}

canvas#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
}

/* Badge */
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4em 1.1em;
  border: 1px solid rgba(124, 58, 237, 0.6);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Headline */
.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  gap: 0.05em;
}

.line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.line-1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 252, 0.7);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.line-2 {
  font-size: clamp(4.5rem, 16vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 45%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.line-3 {
  font-size: clamp(2.5rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

/* Sub */
.sub {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.45);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 0.6s ease 1.8s forwards;
}

.scroll-hint span {
  display: block;
  width: 1.5px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(167,139,250,0.8), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out 2s infinite;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}
