:root {
  --text: #f6f6f6;
  --muted: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(14, 14, 14, 0.82);
  --line-strong: rgba(255, 255, 255, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.06), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.04), transparent 25%),
    linear-gradient(180deg, #0b0b0b 0%, #050505 45%, #040404 100%);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}

.scene {
  position: relative;
  width: min(980px, 100%);
  z-index: 2;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 240px;
  margin-left: -120px;
  margin-top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.02) 42%, transparent 70%);
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 240ms ease;
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.78;
}

.glow-a {
  width: 46vw;
  height: 46vw;
  top: -18vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 72%);
  animation: driftA 18s ease-in-out infinite alternate;
}

.glow-b {
  width: 42vw;
  height: 42vw;
  right: -10vw;
  bottom: -14vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 74%);
  animation: driftB 22s ease-in-out infinite alternate;
}

.glow-c {
  width: 34vw;
  height: 34vw;
  left: 26vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 72%);
  animation: driftC 20s ease-in-out infinite alternate;
}

.panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.78), var(--card));
  border-radius: 28px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.04) 45%, transparent 75%);
  transform: translateX(-100%);
  animation: panelSweep 7.5s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 720ms ease forwards;
}

.stagger-1 {
  animation-delay: 120ms;
}

.stagger-2 {
  animation-delay: 240ms;
}

.stagger-3 {
  animation-delay: 360ms;
}

.stagger-4 {
  animation-delay: 480ms;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.14);
}

.subtitle {
  margin: 18px 0 0;
  max-width: 56ch;
  line-height: 1.7;
  color: var(--muted);
}

.status {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  animation: floatPill 5.4s ease-in-out infinite;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  animation: pulseDot 1.2s ease-in-out infinite;
}

.progress {
  margin-top: 12px;
  width: min(440px, 100%);
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #dadada 45%, #ffffff 100%);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.62);
  animation: loadBar 1.1s ease-out forwards;
}

.actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  color: #060606;
  background: linear-gradient(135deg, #ffffff 0%, #d9d9d9 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.14);
  animation: glowPulse 2.8s ease-in-out infinite;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -120% -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.88) 50%, transparent 65%);
  transform: translateX(-35%) rotate(8deg);
  animation: sweep 4.5s ease-in-out infinite;
  z-index: -1;
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 18, 18, 0.8);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line-strong);
}

.hint {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.52);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes driftA {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3vw, 1.8vw, 0) scale(1.06);
  }
}

@keyframes driftB {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2.8vw, -1.3vw, 0) scale(1.05);
  }
}

@keyframes driftC {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2vw, -2vw, 0) scale(1.07);
  }
}

@keyframes panelSweep {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(20%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes floatPill {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes loadBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 18px rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 26px rgba(255, 255, 255, 0.28);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-45%) rotate(8deg);
  }
  50% {
    transform: translateX(55%) rotate(8deg);
  }
  100% {
    transform: translateX(150%) rotate(8deg);
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .panel {
    border-radius: 22px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
