:root {
  --primary: #3e2c79;
  --secondary: #5a44a3;
  --accent: #fdc122;
  --accent-dark: #e5ac1e;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  font-family: "Nunito", sans-serif;
  color: var(--white);
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent),
    var(--accent-dark)
  );
  background-size: 400% 400%;
  animation: gradient-bg 15s ease infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.08) 1px, transparent 0),
    radial-gradient(circle at 5px 5px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
  background-size: 12px 12px, 20px 20px;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 550px;
  padding: 50px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.topic-pill {
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

h1 {
  margin: 0 0 15px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

p {
  margin: 0 0 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.progress-container {
  width: 100%;
  height: 6px;
  margin-bottom: 25px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--white);
  box-shadow: 0 0 15px var(--white);
  animation: loading 4s linear forwards;
}

.direct-link {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.direct-link:hover,
.direct-link:focus {
  opacity: 1;
}

@keyframes gradient-bg {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes loading {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 60px 40px;
  }

  h1 {
    font-size: 2.2rem;
  }
}