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

:root {
  --bg: #0a0a0a;
  --fg: #f0ece4;
  --accent: #7b2cbf;
  --muted: #3a3a3a;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--muted) 1px, transparent 1px),
    linear-gradient(90deg, var(--muted) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      0 60px,
      60px 0;
  }
}

.orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(223, 74, 240, 0.12) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

.container {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 720px;
}

.label {
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--fg);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

h1 span {
  color: var(--accent);
  display: inline-block;
  animation: flicker 8s ease-in-out 2s infinite;
}

@keyframes flicker {
  0%,
  92%,
  96%,
  100% {
    opacity: 1;
  }
  94% {
    opacity: 0.3;
  }
  95% {
    opacity: 1;
  }
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 2.5rem auto;
  opacity: 0;
  animation:
    fadeUp 0.8s ease 0.8s forwards,
    expandLine 0.8s ease 0.8s forwards;
  transform-origin: center;
}

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(240, 236, 228, 0.6);
  max-width: 420px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.progress-wrap {
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.35);
  margin-bottom: 0.6rem;
}

.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 5px;
  background: var(--muted);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  animation: fillBar 2.5s cubic-bezier(0.4, 0, 0.2, 1) 1.6s forwards;
}

@keyframes fillBar {
  to {
    width: 68%;
  }
}

.scanning {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.4s forwards;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.6);
    opacity: 0.3;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(240, 236, 228, 0.2);
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.corner {
  position: fixed;
  font-family: "DM Sans", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.2);
  z-index: 10;
}

.corner.tl {
  top: 2rem;
  left: 2rem;
}
.corner.br {
  bottom: 2rem;
  right: 2rem;
}
