/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  overflow-x: hidden;
}

/* Container */
.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #581c87 0%, #7c3aed 50%, #4338ca 100%);
  position: relative;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #c4b5fd;
}

.header-button {
  background-color: #7c3aed;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-button:hover {
  background-color: #6d28d9;
  transform: translateY(-1px);
}

/* Main content */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Icon */
.icon-container {
  margin-bottom: 2rem;
  animation: bounce 2s infinite, fade-in-up 0.6s ease-out;
}

.icon {
  font-size: 5rem;
  animation: pulse 2s infinite;
}

/* Title */
.title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.6s ease-out 0.2s both;
}

/* Subtitle */
.subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #c4b5fd;
  margin-bottom: 3rem;
  animation: fade-in-up 0.6s ease-out 0.4s both;
}

/* Buttons */
.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fade-in-up 0.6s ease-out 0.6s both;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.button-primary {
  background-color: #7c3aed;
  color: white;
}

.button-primary:hover {
  background-color: #6d28d9;
  transform: scale(1.05);
}

.button-secondary {
  background-color: #6d28d9;
  color: white;
}

.button-secondary:hover {
  background-color: #5b21b6;
  transform: scale(1.05);
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: #c4b5fd;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 4s ease-in-out infinite;
}

/* Animations */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-15px);
  }
  70% {
    transform: translateY(-7px);
  }
  90% {
    transform: translateY(-3px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive design */
@media (min-width: 640px) {
  .buttons-container {
    flex-direction: row;
  }

  .icon {
    font-size: 6rem;
  }
}

@media (min-width: 768px) {
  .main {
    padding: 2rem;
  }

  .icon {
    font-size: 8rem;
  }
}

/* Focus styles for accessibility */
.button:focus,
.header-button:focus {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .icon-container,
  .title,
  .subtitle,
  .buttons-container {
    animation: none;
  }

  .particle {
    animation: none;
  }

  .button:hover,
  .header-button:hover {
    transform: none;
  }
}
