:root {
  --bg: #05060f;
  --bg-secondary: #0a0f2b;
  --primary: #ff3fd1;
  --secondary: #6cff94;
  --cyan: #3bffff;
  --yellow: #ffe25d;
  --white: #f4f9ff;
  --text-muted: rgba(255, 255, 255, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--white);
  background: radial-gradient(circle at top, #151b4d, #05060f 40%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.preloader {
  position: fixed;
  inset: 0;
  background: #05060f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.1em;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.cube {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 1.8s infinite ease-in-out;
  margin-bottom: 18px;
}

.cube span {
  position: absolute;
  inset: 0;
  border: 3px solid var(--secondary);
  box-shadow: 0 0 15px var(--secondary), inset 0 0 15px var(--secondary);
  animation: pulse 1.4s infinite ease-in-out alternate;
}

.cube span:nth-child(2) {
  transform: rotateY(90deg);
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan), inset 0 0 15px var(--cyan);
}
.cube span:nth-child(3) {
  transform: rotateX(90deg);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary), inset 0 0 15px var(--primary);
}
.cube span:nth-child(4) {
  transform: rotate(45deg);
  border-color: var(--yellow);
  box-shadow: 0 0 15px var(--yellow), inset 0 0 15px var(--yellow);
}

.glow-layer,
.stars-layer,
.lines-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.glow-layer {
  background: radial-gradient(circle at 20% 20%, rgba(255, 111, 207, 0.4), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(108, 255, 148, 0.25), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(71, 167, 255, 0.2), transparent 60%);
  filter: blur(40px);
}

.stars-layer {
  background-image: url("photo/4.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  animation: drift 40s linear infinite;
}

.lines-layer {
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    linear-gradient(300deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
  background-size: 220px 220px;
  mix-blend-mode: screen;
}

.hero {
  padding: 24px clamp(16px, 4vw, 64px) 60px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(5, 6, 15, 0.7), rgba(5, 6, 15, 0.9)),
    url("photo/maxresdefault.jpg");
  background-size: cover;
  background-position: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.logo img {
  width: 48px;
  background: transparent;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.nav-btn {
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--secondary), var(--cyan));
  color: #060920;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(108, 255, 148, 0.45);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(108, 255, 148, 0.6);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.subtitle {
  margin-top: 16px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
}

.badge-green {
  background: rgba(108, 255, 148, 0.12);
  border-color: rgba(108, 255, 148, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.cta {
  border: none;
  padding: 18px 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, #ffe25d 45%, #ff8c37);
  color: #4d0f00;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(255, 195, 0, 0.6);
  animation: pulse-glow 1.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta.shake {
  animation: shake 0.4s linear;
}

.cta-particle {
  position: absolute;
  bottom: -10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: rise 6s linear forwards;
}

.cta:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 20px 50px rgba(255, 195, 0, 0.75);
}

.cta.giant {
  font-size: 1.3rem;
  padding: 24px 60px;
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-characters {
  position: relative;
  min-height: 360px;
}

.character {
  position: absolute;
  width: clamp(130px, 30vw, 220px);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
  animation: float 4s ease-in-out infinite;
  object-fit: cover;
}

.character.coin {
  clip-path: circle(46% at 50% 50%);
  background: transparent;
}

.char-1 {
  top: 0;
  left: 10%;
  animation-delay: 0s;
}
.char-2 {
  bottom: 0;
  right: 5%;
  animation-delay: 1s;
}
.char-3 {
  top: 15%;
  right: 45%;
  animation-delay: 0.5s;
}

.floating-coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.coin {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffe25d 45%, #f0ae00);
  box-shadow: 0 0 25px rgba(255, 195, 0, 0.8);
  animation: coin-float 6s linear infinite;
  opacity: 0.6;
}

.coin:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.coin:nth-child(2) {
  left: 40%;
  animation-delay: 1.5s;
}
.coin:nth-child(3) {
  left: 70%;
  animation-delay: 3s;
}
.coin:nth-child(4) {
  left: 85%;
  animation-delay: 4.5s;
}

.giveaway {
  padding: 80px clamp(16px, 4vw, 80px);
  background: linear-gradient(180deg, rgba(9, 9, 30, 0.65), rgba(5, 6, 15, 0.9)),
    url("photo/FON.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(15, 16, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.card:hover::after {
  opacity: 1;
}

.icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.cta-giant {
  margin: 40px auto 80px;
  padding: clamp(32px, 6vw, 80px);
  max-width: 1100px;
  text-align: center;
  border-radius: 40px;
  background: linear-gradient(140deg, rgba(5, 6, 15, 0.7), rgba(5, 6, 15, 0.85)),
    url("photo/3.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.cta-giant h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.cta-giant p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.particles,
.micro-particles span {
  position: absolute;
  pointer-events: none;
}

.particles {
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 2px);
  background-size: 120px 120px;
  opacity: 0.3;
}

.micro-particles span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: particle-float 8s linear infinite;
}

.micro-particles span:nth-child(2) {
  width: 8px;
  height: 8px;
  animation-delay: 1s;
}
.micro-particles span:nth-child(3) {
  width: 10px;
  height: 10px;
  animation-delay: 2s;
}
.micro-particles span:nth-child(4) {
  width: 6px;
  height: 6px;
  animation-delay: 3s;
}
.micro-particles span:nth-child(5) {
  width: 14px;
  height: 14px;
  animation-delay: 4s;
}

.footer {
  padding: 48px clamp(16px, 4vw, 64px);
  background: rgba(5, 6, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--secondary);
}

.telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(60, 195, 255, 0.12);
  border: 1px solid rgba(60, 195, 255, 0.5);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 16px;
}

.telegram:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(60, 195, 255, 0.4);
}

.tg-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #31c4ff);
  position: relative;
  animation: rotate 6s linear infinite;
  box-shadow: 0 0 15px rgba(49, 196, 255, 0.6);
}

.tg-icon::after {
  content: "✈";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  line-height: 1;
}

.footer-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Parallax */

[data-parallax] {
  will-change: transform;
}

/* Animations */

@keyframes spin {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.05);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-200px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes coin-float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
  }
  100% {
    transform: translate3d(0, -400px, 0) scale(1.1);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 15px 40px rgba(255, 195, 0, 0.6);
  }
  50% {
    box-shadow: 0 30px 60px rgba(255, 195, 0, 0.9);
  }
}

@keyframes particle-float {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate3d(200px, -200px, 0);
    opacity: 0;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-4px);
  }
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0.1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-220px) scale(1.2);
    opacity: 0;
  }
}

/* Responsive */

@media (max-width: 768px) {
  .hero {
    padding-top: 16px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-characters {
    min-height: 280px;
  }

  .char-3 {
    right: 10%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta,
  .ghost {
    width: 100%;
    justify-content: center;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .logo span {
    font-size: 1rem;
  }

  .cta-giant {
    border-radius: 24px;
  }
}

