/* Сброс стилей и базовые настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Контейнер */
.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Анимированный фон */
.background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
}

.bg-element-1 {
  top: -10rem;
  right: -10rem;
  width: 20rem;
  height: 20rem;
  background: #8b5cf6;
  opacity: 0.2;
}

.bg-element-2 {
  bottom: -10rem;
  left: -10rem;
  width: 20rem;
  height: 20rem;
  background: #06b6d4;
  opacity: 0.2;
  animation-delay: 2s;
}

.bg-element-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24rem;
  height: 24rem;
  background: #6366f1;
  opacity: 0.1;
  animation-delay: 1s;
}

/* Плавающие частицы */
.particles {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0.3;
}

.particle-0 {
  animation: float-0 6s ease-in-out infinite;
  top: 10%;
  left: 20%;
}

.particle-1 {
  animation: float-1 8s ease-in-out infinite 2s;
  top: 30%;
  right: 25%;
}

.particle-2 {
  animation: float-2 7s ease-in-out infinite 4s;
  bottom: 20%;
  left: 70%;
}

/* Основной контент */
.main-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 32rem;
  width: 100%;
  animation: fadeInUp 1s ease-out;
}

/* Заголовок */
.header {
  margin-bottom: 4rem;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sparkle {
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.sparkle-left {
  margin-right: 0.75rem;
  color: #a855f7;
}

.sparkle-right {
  margin-left: 0.75rem;
  color: #06b6d4;
  animation-delay: 1s;
}

.main-title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  color: #cbd5e1;
  font-weight: 300;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.5;
}

/* Основная карточка */
.main-card {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.card-content {
  padding: 2rem;
}

.card-header {
  margin-bottom: 2rem;
}

.card-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.card-description {
  font-size: 1.125rem;
  color: #cbd5e1;
}

/* Кнопки */
.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: 4rem;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.btn:focus {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

.btn-discord {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-discord:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.btn-telegram {
  background: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%);
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #0e7490 0%, #1e40af 100%);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-100%) skewX(-12deg);
  transition: transform 0.7s ease;
}

.btn:hover .btn-shine {
  transform: translateX(100%) skewX(-12deg);
}

.btn-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.btn-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.btn-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

.btn-arrow {
  font-size: 1.25rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Футер */
.footer {
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.footer p {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes float-0 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

@keyframes float-1 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-15px) rotate(90deg);
    opacity: 0.7;
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-25px) rotate(270deg);
    opacity: 0.9;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .main-content {
    max-width: 100%;
  }

  .header {
    margin-bottom: 2rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .btn {
    height: 3.5rem;
    font-size: 1rem;
  }

  .btn-title {
    font-size: 1rem;
  }

  .btn-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .title-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sparkle {
    font-size: 1.5rem;
  }

  .sparkle-left,
  .sparkle-right {
    margin: 0;
  }
}

/* Улучшение доступности */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
  .main-card {
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.8);
  }

  .btn {
    border: 1px solid white;
  }
}
