* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  background: #060912;
  color: #e8e8f0;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== ФОН ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.18), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(124, 92, 255, 0.15), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.08), transparent 60%);
  animation: bg-shift 20s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% {
    background:
      radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.18), transparent 50%),
      radial-gradient(circle at 85% 70%, rgba(124, 92, 255, 0.15), transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.08), transparent 60%);
  }
  100% {
    background:
      radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15), transparent 50%),
      radial-gradient(circle at 20% 80%, rgba(124, 92, 255, 0.18), transparent 50%),
      radial-gradient(circle at 60% 40%, rgba(88, 101, 242, 0.1), transparent 60%);
  }
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: #67e8f9; text-decoration: none; }
a:hover { color: #fff; }

code {
  background: rgba(103, 232, 249, 0.1);
  color: #67e8f9;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: .88em;
  border: 1px solid rgba(103, 232, 249, 0.15);
}

/* ===== ШАПКА ===== */
header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #7c5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
  transition: transform .3s;
}
.brand:hover .brand-icon { transform: scale(1.08) rotate(-5deg); }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: all .25s cubic-bezier(.2, .8, .2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: left .6s;
}

.btn:hover::before { left: 150%; }

.btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
  color: #fff;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 70px 0 80px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #67e8f9 40%, #a78bfa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-move 8s ease-in-out infinite;
}

@keyframes gradient-move {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #9ba3b8;
  max-width: 560px;
  margin: 0 auto 36px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  background: linear-gradient(135deg, #67e8f9, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .85rem;
  color: #7a7a8c;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ===== СЕКЦИИ ===== */
.section { padding: 70px 0; }

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: #9ba3b8;
  margin-bottom: 44px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== КАРТОЧКИ ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all .35s cubic-bezier(.2, .8, .2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #7c5cff);
  opacity: 0;
  transition: opacity .3s;
}

.card:hover {
  border-color: rgba(103, 232, 249, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(56, 189, 248, 0.25);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform .3s;
}
.card:hover .card-icon { transform: scale(1.15) rotate(-5deg); }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.card p {
  font-size: .92rem;
  color: #9ba3b8;
}

/* ===== ПРАВИЛА ===== */
.rules {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 720px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.rules ol {
  padding-left: 24px;
}

.rules li {
  margin-bottom: 12px;
  color: #c4c9d6;
  font-size: .95rem;
}

.rules li:last-child { margin-bottom: 0; }

.rules li strong { color: #67e8f9; }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta p {
  color: #9ba3b8;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ===== ПОДВАЛ ===== */
footer {
  text-align: center;
  padding: 34px 0;
  font-size: .85rem;
  color: #5a6276;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.hero h1,
.hero .subtitle,
.hero .btn,
.stats,
.section-title,
.section-sub,
.card,
.rules,
.cta h2,
.cta p,
.cta .btn {
  animation: fade-up .8s cubic-bezier(.2, .8, .2, 1) backwards;
}

.hero h1 { animation-delay: .05s; }
.hero .subtitle { animation-delay: .15s; }
.hero .btn { animation-delay: .25s; }
.stats { animation-delay: .35s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 600px) {
  .stats { gap: 28px; }
  .section { padding: 50px 0; }
  .hero { padding: 50px 0 60px; }
  .stats .stat-num { font-size: 1.5rem; }
  .brand { font-size: 1rem; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
}