/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --off-white: #e8e8f0;
  --glow-white: rgba(255,255,255,0.9);
  --glow-soft: rgba(255,255,255,0.35);
  --bg-deep: #000000;
  --bg-mid: #080810;
  --bg-surface: #0c0c18;
  --accent-blue: #4fc3f7;
  --accent-violet: #b39ddb;
  --accent-teal: #80cbc4;
  --shadow-glow: 0 0 40px rgba(255,255,255,0.15), 0 0 80px rgba(180,180,255,0.08);
}

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: 'Syne', sans-serif;
  background: var(--bg-deep);
  color: var(--white);
  cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
body::after {
  content: '';
  position: fixed;
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 20px 4px rgba(255,255,255,0.6);
  transform: translate(-50%,-50%);
  transition: transform 0.08s ease;
  top: var(--cy, 50%);
  left: var(--cx, 50%);
}

/* ===== CANVAS BG ===== */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.7;
}

/* ===== ORB LIGHTS ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: orbDrift linear infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(100,80,200,0.25) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation-duration: 20s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(60,160,255,0.2) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-duration: 25s;
  animation-delay: -8s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation-duration: 30s;
  animation-delay: -15s;
}
.orb-4 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(120,220,200,0.15) 0%, transparent 70%);
  top: 20%; right: 25%;
  animation-duration: 18s;
  animation-delay: -5s;
}
@keyframes orbDrift {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(30px,-40px) scale(1.05); }
  50%  { transform: translate(-20px,30px) scale(0.95); }
  75%  { transform: translate(40px,20px) scale(1.08); }
  100% { transform: translate(0,0) scale(1); }
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 80%);
}

/* ===== TOP LEFT ===== */
.top-left {
  position: fixed;
  top: 28px; left: 32px;
  z-index: 100;
  animation: fadeSlideDown 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
.party-tag {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  padding: 10px 18px;
  border-radius: 100px;
  box-shadow: 0 0 20px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.party-tag::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.party-icon {
  font-size: 1.1rem;
  animation: partyBounce 1.5s ease-in-out infinite;
}
@keyframes partyBounce {
  0%,100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.2); }
}
.party-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 25px rgba(255,255,255,0.4);
}

/* ===== STAGE ===== */
.stage {
  position: relative;
  z-index: 10;
  width: 100%; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* ===== 3D CARD ===== */
.card-3d-wrapper {
  perspective: 1200px;
  animation: fadeScaleIn 1s cubic-bezier(0.16,1,0.3,1) 0.4s both;
}
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  position: relative;
}
.card-face {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 50%,
    rgba(100,80,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(40px);
  border-radius: 28px;
  padding: 60px 70px 50px;
  min-width: 580px;
  max-width: 680px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(255,255,255,0.04),
    0 0 120px rgba(120,80,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(255,255,255,0.04);
}

/* card shimmer */
.card-face::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255,255,255,0.04) 45deg,
    transparent 90deg,
    rgba(255,255,255,0.03) 135deg,
    transparent 180deg,
    rgba(255,255,255,0.04) 225deg,
    transparent 270deg,
    rgba(255,255,255,0.02) 315deg,
    transparent 360deg
  );
  animation: shimmerSpin 8s linear infinite;
  pointer-events: none;
}
.card-face::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
@keyframes shimmerSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== GLITCH TITLE ===== */
.glitch-wrap { position: relative; display: inline-block; margin-bottom: 6px; }

.main-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #e0e0f0 30%,
    rgba(255,255,255,0.6) 70%,
    rgba(200,200,255,0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0 12px rgba(255,255,255,0.9))
    drop-shadow(0 0 30px rgba(255,255,255,0.6))
    drop-shadow(0 0 60px rgba(200,180,255,0.4))
    drop-shadow(0 0 100px rgba(150,120,255,0.2));
  animation: titlePulse 4s ease-in-out infinite;
}

.main-title.glitch::before,
.main-title.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.main-title.glitch::before {
  left: 2px;
  filter: drop-shadow(0 0 8px rgba(100,200,255,0.8));
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitchTop 5s infinite;
}
.main-title.glitch::after {
  left: -2px;
  filter: drop-shadow(0 0 8px rgba(200,100,255,0.8));
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitchBot 5s infinite;
}

@keyframes titlePulse {
  0%,100% { filter: drop-shadow(0 0 12px rgba(255,255,255,0.9)) drop-shadow(0 0 30px rgba(255,255,255,0.6)) drop-shadow(0 0 60px rgba(200,180,255,0.4)); }
  50%      { filter: drop-shadow(0 0 20px rgba(255,255,255,1)) drop-shadow(0 0 50px rgba(255,255,255,0.8)) drop-shadow(0 0 100px rgba(200,180,255,0.6)); }
}
@keyframes glitchTop {
  0%,90%,100% { transform: none; opacity: 0; }
  91%         { transform: translate(-2px,0); opacity: 0.7; }
  93%         { transform: translate(2px,0); opacity: 0.4; }
  95%         { transform: translate(-1px,0); opacity: 0.6; }
  97%         { transform: none; opacity: 0; }
}
@keyframes glitchBot {
  0%,85%,100% { transform: none; opacity: 0; }
  86%         { transform: translate(2px,0); opacity: 0.6; }
  88%         { transform: translate(-2px,0); opacity: 0.5; }
  90%         { transform: none; opacity: 0; }
}

/* ===== DESC BADGES ===== */
.desc-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin: 24px 0 36px;
}
.badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
  box-shadow: 0 0 12px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: badgeIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.badge-1 { animation-delay: 0.7s; }
.badge-2 { animation-delay: 0.85s; }
.badge-3 { animation-delay: 1.0s; }

.badge::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: badgeShimmer 3s ease-in-out infinite;
}
.badge-1::before { animation-delay: 0s; }
.badge-2::before { animation-delay: 1s; }
.badge-3::before { animation-delay: 2s; }
@keyframes badgeShimmer {
  0% { left: -100%; }
  50%,100% { left: 100%; }
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== JOIN BUTTON ===== */
.join-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.5) 0%,
    rgba(180,160,255,0.4) 50%,
    rgba(255,255,255,0.3) 100%);
  animation: btnIn 0.6s cubic-bezier(0.16,1,0.3,1) 1.1s both;
  transition: transform 0.2s ease;
}
.join-btn:hover { transform: translateY(-3px) scale(1.02); }
.join-btn:hover .btn-glow { opacity: 1; }

.btn-inner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #0d0d1a 0%, #111128 100%);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 14px;
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 25px rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}
.btn-glow {
  position: absolute; inset: -4px;
  border-radius: 20px;
  background: radial-gradient(ellipse, rgba(200,180,255,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(12px);
}
@keyframes btnIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== STATS ===== */
.stats-float {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  animation: fadeScaleIn 0.8s cubic-bezier(0.16,1,0.3,1) 1.3s both;
}
.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px 28px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: floatStat 3s ease-in-out infinite;
  animation-delay: var(--d);
  box-shadow: 0 0 20px rgba(255,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.1);
}
.stat-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}
@keyframes floatStat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 25px rgba(255,255,255,0.5);
  line-height: 1;
}
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ===== SOCIALS ===== */
.socials-bar {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  animation: fadeScaleIn 0.8s cubic-bezier(0.16,1,0.3,1) 1.5s both;
  margin-top: 4px;
}
.social-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { color: rgba(255,255,255,1); transform: translateY(-5px); }
.social-link:hover .social-icon { box-shadow: 0 0 25px rgba(255,255,255,0.3), 0 0 50px rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.social-link:hover .social-icon svg { filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)); }

.social-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.social-icon::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
}
.social-icon svg { width: 20px; height: 20px; position: relative; z-index: 1; }

.social-link span {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* ===== PLATFORM COLORS on hover ===== */
.social-link[data-platform="tiktok"]:hover .social-icon { background: rgba(0,0,0,0.3); border-color: rgba(105,201,208,0.6); }
.social-link[data-platform="youtube"]:hover .social-icon { background: rgba(255,0,0,0.1); border-color: rgba(255,80,80,0.5); }
.social-link[data-platform="discord"]:hover .social-icon { background: rgba(88,101,242,0.15); border-color: rgba(88,101,242,0.6); }
.social-link[data-platform="telegram"]:hover .social-icon { background: rgba(0,136,204,0.12); border-color: rgba(0,136,204,0.5); }

/* ===== SHARED ANIMATIONS ===== */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== SCAN LINE ===== */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.008) 2px,
    rgba(255,255,255,0.008) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ===== DISCORD POPUP ===== */
.discord-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 500;
  animation: fadeIn 0.2s ease;
}
.discord-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 600;
  background: linear-gradient(145deg, #0e0e1c, #111128);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 32px 36px 28px;
  min-width: 320px;
  box-shadow:
    0 0 60px rgba(88,101,242,0.25),
    0 0 120px rgba(88,101,242,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: popupIn 0.28s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes popupIn {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.88); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.popup-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.popup-close:hover { color: rgba(255,255,255,0.9); }
.popup-logo {
  display: flex; justify-content: center;
  margin-bottom: 22px;
  color: #5865f2;
  filter: drop-shadow(0 0 12px rgba(88,101,242,0.8));
}
.popup-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
}
.popup-key {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  width: 72px;
  flex-shrink: 0;
}
.popup-val {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
  flex: 1;
  letter-spacing: 0.03em;
}
.popup-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 2px 0;
}
.copy-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.4);
  color: rgba(255,255,255,0.7);
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.copy-btn:hover {
  background: rgba(88,101,242,0.35);
  color: #fff;
  box-shadow: 0 0 12px rgba(88,101,242,0.4);
}
.copy-btn.copied {
  background: rgba(80,200,120,0.2);
  border-color: rgba(80,200,120,0.5);
  color: #7fffb0;
}
@media (max-width: 660px) {
  .card-face { min-width: 0; width: 90vw; padding: 40px 28px 36px; }
  .main-title { font-size: clamp(3rem, 14vw, 5rem); }
  .stats-float { gap: 12px; }
  .stat-item { padding: 12px 18px; }
  .socials-bar { gap: 10px; bottom: 20px; }
  .social-icon { width: 44px; height: 44px; }
}
