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

:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a12;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(147,51,234,0.4);

  --purple: #9333ea;
  --purple-light: #a855f7;
  --purple-dim: rgba(147,51,234,0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.15);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --pink: #f472b6;
  --pink-dim: rgba(244,114,182,0.12);
  --orange: #f97316;
  --cyan: #06b6d4;
  --neon-glow: #00fff7;

  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-purple: 0 0 40px rgba(147,51,234,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);

  /* Gaming neon gradient */
  --gaming-gradient: linear-gradient(135deg, #9333ea 0%, #06b6d4 40%, #f472b6 70%, #a855f7 100%);
  --gaming-glow-1: rgba(6,182,212,0.5);
  --gaming-glow-2: rgba(147,51,234,0.5);
  --gaming-glow-3: rgba(244,114,182,0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

#site-header.scrolled {
  background: rgba(5,5,8,0.95);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.header-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.header-logo-text {
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.logo-accent {
  color: var(--purple-light);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-link.active {
  color: var(--purple-light);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.star-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--purple-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.star-btn:hover {
  background: var(--purple-dim);
  border-color: var(--purple);
  transform: rotate(20deg) scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.nav-link-mobile {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-link-mobile:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 40px;
  perspective: 1000px;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(147,51,234,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(6,182,212,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 85%, rgba(244,114,182,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 80% 10%, rgba(6,182,212,0.1) 0%, transparent 55%);
  pointer-events: none;
}

/* Gaming scanline grid overlay */
.hero-bg-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Floating neon particles */
.hero-section::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    120px 200px 0 #9333ea,
    300px 80px 0 #f472b6,
    540px 350px 0 #06b6d4,
    80px 500px 0 #a855f7,
    460px 180px 0 #f472b6,
    220px 420px 0 #06b6d4,
    680px 300px 0 #9333ea,
    380px 60px 0 #06b6d4;
  animation: float-particles 12s ease-in-out infinite alternate;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

@keyframes float-particles {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(15px); }
  100% { transform: translateY(-15px) translateX(-10px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 600px;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.08s linear;
  will-change: transform;
}

.hero-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 8px;
  animation: logo-entrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-style: preserve-3d;
  cursor: pointer;
  /* 3D depth layer — logo sits closer to viewer */
  transform: translateZ(40px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-wrap:hover {
  transform: translateZ(70px) scale(1.08);
}

.hero-logo-wrap:hover .hero-logo {
  box-shadow:
    0 0 0 3px rgba(6,182,212,0.9),
    0 0 50px rgba(6,182,212,1),
    0 0 100px rgba(147,51,234,0.7),
    0 0 150px rgba(244,114,182,0.5),
    0 30px 60px rgba(0,0,0,0.6);
}

@keyframes logo-entrance {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-15deg);
    filter: blur(20px) brightness(3);
  }
  40% {
    opacity: 1;
    transform: scale(1.15) rotate(3deg);
    filter: blur(0) brightness(1.6);
  }
  70% {
    transform: scale(0.95) rotate(-1deg);
    filter: brightness(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 3px rgba(147,51,234,0.5),
    0 0 30px rgba(147,51,234,0.6),
    0 0 60px rgba(6,182,212,0.3),
    0 0 90px rgba(244,114,182,0.2);
  animation: logo-idle-float 4s ease-in-out infinite 1.2s,
             logo-glow-pulse 3s ease-in-out infinite 1.2s;
}

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

@keyframes logo-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(147,51,234,0.5),
      0 0 30px rgba(147,51,234,0.6),
      0 0 60px rgba(6,182,212,0.3),
      0 0 90px rgba(244,114,182,0.2);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(6,182,212,0.7),
      0 0 40px rgba(6,182,212,0.8),
      0 0 80px rgba(147,51,234,0.5),
      0 0 120px rgba(244,114,182,0.3);
  }
}

/* Rotating rainbow border behind logo */
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #9333ea, #06b6d4, #f472b6, #a855f7, #3b82f6, #06b6d4, #9333ea
  );
  z-index: 1;
  animation: rainbow-spin 4s linear infinite;
  opacity: 0;
  animation-delay: 1.2s;
  animation-fill-mode: both;
}

@keyframes rainbow-spin {
  0% { transform: rotate(0deg); opacity: 0.8; }
  50% { opacity: 1; }
  100% { transform: rotate(360deg); opacity: 0.8; }
}

/* White circle mask to produce border-only effect */
.hero-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--bg-primary);
  z-index: 1;
  animation: mask-appear 1.2s both;
}

@keyframes mask-appear {
  0% { opacity: 0; }
  40% { opacity: 1; }
  100% { opacity: 1; }
}

.hero-logo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px solid rgba(6,182,212,0.5);
  z-index: 0;
  animation: ring-pulse-1 2.8s ease-in-out infinite 1.4s;
}

/* Second and third rings */
.hero-logo-ring-2 {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(147,51,234,0.35);
  z-index: 0;
  animation: ring-pulse-2 3.2s ease-in-out infinite 1.6s;
}

.hero-logo-ring-3 {
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  border: 1px solid rgba(244,114,182,0.25);
  z-index: 0;
  animation: ring-pulse-3 3.8s ease-in-out infinite 1.8s;
}

@keyframes ring-pulse-1 {
  0% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 8px rgba(6,182,212,0.4); }
  50% { transform: scale(1.06); opacity: 0.2; box-shadow: 0 0 20px rgba(6,182,212,0.2); }
  100% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 8px rgba(6,182,212,0.4); }
}

@keyframes ring-pulse-2 {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.5; }
}

@keyframes ring-pulse-3 {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.04); opacity: 0.08; }
  100% { transform: scale(1); opacity: 0.4; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 35%, #f472b6 65%, #a855f7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  animation: title-entrance 1s ease both 0.5s, gaming-shimmer 4s linear infinite 1.5s;
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.5));
  /* 3D depth — title slightly behind logo */
  transform: translateZ(20px);
  transition: filter 0.3s ease;
}

.hero-title:hover {
  filter: drop-shadow(0 0 35px rgba(6,182,212,0.9)) drop-shadow(0 0 15px rgba(244,114,182,0.6));
}

@keyframes title-entrance {
  0% { opacity: 0; transform: translateY(20px); filter: drop-shadow(0 0 40px rgba(6,182,212,0.8)); }
  100% { opacity: 1; transform: translateY(0); filter: drop-shadow(0 0 20px rgba(168,85,247,0.5)); }
}

@keyframes gaming-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  perspective: 600px;
  transform-style: preserve-3d;
  transform: translateZ(10px);
}

.tag {
  padding: 5px 14px;
  background: rgba(147,51,234,0.15);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  position: relative;
  background-clip: padding-box;
  animation: tag-entrance 0.8s ease both;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, background 0.25s ease;
  transform-origin: center bottom;
}

.tag::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  padding: 1px;
  background: linear-gradient(135deg, #9333ea, #06b6d4, #f472b6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.tag:nth-child(1) { animation-delay: 0.9s; color: #a855f7; }
.tag:nth-child(2) { animation-delay: 1.0s; color: #06b6d4; }
.tag:nth-child(3) { animation-delay: 1.1s; color: #f472b6; }

.tag:hover {
  transform: translateY(-4px) translateZ(20px) scale(1.08);
  box-shadow:
    0 8px 24px rgba(147,51,234,0.5),
    0 0 16px rgba(6,182,212,0.3);
  background: rgba(147,51,234,0.25);
}

@keyframes tag-entrance {
  0% { opacity: 0; transform: translateY(10px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.social-btn:hover {
  background: var(--purple-dim);
  border-color: var(--cyan);
  color: var(--text-primary);
  transform: translateY(-6px) translateZ(16px) scale(1.15);
  box-shadow:
    0 12px 28px rgba(6,182,212,0.4),
    0 0 20px rgba(147,51,234,0.5),
    0 20px 40px rgba(0,0,0,0.4);
}

.scroll-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.scroll-arrow-wrap {
  display: flex;
  justify-content: center;
}

.scroll-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== TRUST ===== */
.trust-section {
  background: linear-gradient(180deg, transparent 0%, rgba(147,51,234,0.03) 50%, transparent 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.trust-card:hover {
  transform: translateY(-6px);
  border-color: rgba(147,51,234,0.3);
  box-shadow: var(--shadow-purple);
  background: var(--bg-card-hover);
}

.trust-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.trust-icon-wrap.purple {
  background: var(--purple-dim);
  color: var(--purple-light);
  border: 1px solid rgba(147,51,234,0.2);
}

.trust-icon-wrap.blue {
  background: var(--blue-dim);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}

.trust-icon-wrap.pink {
  background: var(--pink-dim);
  color: var(--pink);
  border: 1px solid rgba(244,114,182,0.2);
}

.trust-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.trust-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== STATS ===== */
.stats-section {
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card.green {
  background: var(--green-dim);
  border-color: rgba(34,197,94,0.2);
}

.stat-card.purple {
  background: var(--purple-dim);
  border-color: rgba(147,51,234,0.2);
}

.stat-card.pink {
  background: var(--pink-dim);
  border-color: rgba(244,114,182,0.2);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.green-text { color: var(--green); }
.purple-text { color: var(--purple-light); }
.pink-text { color: var(--pink); }

.stat-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== COMMUNITY ===== */
.community-section {
  position: relative;
  /* Perspective lives on the SECTION so the card itself tilts in 3D space */
  perspective: 1200px;
  perspective-origin: center center;
}

/* ── wrapper that we actually rotate ── */
.community-card-perspective {
  transform-style: preserve-3d;
  transition: transform 0.12s linear;
  will-change: transform;
  border-radius: 28px;
}

.community-card {
  position: relative;
  background: rgba(10, 8, 20, 0.75);
  border-radius: 28px;
  overflow: hidden;
  transform-style: preserve-3d;
  /* Animated gradient border via pseudo-element */
  isolation: isolate;
}

/* Rotating gradient border */
.community-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: conic-gradient(
    from var(--card-border-angle, 0deg),
    #9333ea 0%,
    #3b82f6 25%,
    #f472b6 50%,
    #06b6d4 75%,
    #9333ea 100%
  );
  animation: card-border-spin 5s linear infinite;
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.community-card-perspective:hover .community-card::before {
  opacity: 1;
  animation-duration: 2.5s;
}

@property --card-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes card-border-spin {
  to { --card-border-angle: 360deg; }
}

/* Thin inset border mask to show only the edge */
.community-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: rgba(9, 7, 18, 0.92);
  z-index: 0;
  pointer-events: none;
}

/* Ambient glow top */
.community-glow-top {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(147,51,234,0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.community-glow-bottom {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* Floating orbs inside the card */
.community-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  animation: orb-float 8s ease-in-out infinite;
}

.community-orb-1 {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -40px;
  background: rgba(147,51,234,0.25);
  animation-delay: 0s;
}

.community-orb-2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: -30px;
  background: rgba(59,130,246,0.2);
  animation-delay: -3s;
}

.community-orb-3 {
  width: 140px;
  height: 140px;
  top: 50%;
  right: 10%;
  background: rgba(244,114,182,0.15);
  animation-delay: -5s;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-20px) scale(1.05); }
  66%       { transform: translateY(10px) scale(0.97); }
}

.community-inner {
  position: relative;
  z-index: 2;          /* above card::after backdrop */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 48px;
  gap: 20px;
  transform-style: preserve-3d;
}

/* ── Individual elements at different Z depths for parallax ── */
.community-icon-wrap {
  width: 68px;
  height: 68px;
  background: rgba(147,51,234,0.2);
  border: 1px solid rgba(147,51,234,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  transform: translateZ(40px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  box-shadow: 0 0 0 0 rgba(147,51,234,0);
}

.community-card-perspective:hover .community-icon-wrap {
  transform: translateZ(56px) scale(1.08);
  box-shadow: 0 0 28px rgba(147,51,234,0.7), 0 0 60px rgba(6,182,212,0.3);
}

.community-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  transform: translateZ(28px);
  background: linear-gradient(135deg, #fff 0%, #d8b4fe 60%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.community-card-perspective:hover .community-title {
  transform: translateZ(40px);
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.6));
}

.community-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  transform: translateZ(18px);
  transition: transform 0.3s ease;
}

.community-card-perspective:hover .community-subtitle {
  transform: translateZ(26px);
}

.community-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  transform: translateZ(22px);
  transition: transform 0.3s ease;
}

.community-card-perspective:hover .community-badges {
  transform: translateZ(34px);
}

.badge {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
  transition: background 0.2s, border-color 0.2s;
}

.community-card-perspective:hover .badge {
  background: rgba(147,51,234,0.15);
  border-color: rgba(147,51,234,0.35);
}

.join-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 8px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, opacity 0.2s;
  box-shadow: 0 4px 24px rgba(147,51,234,0.4);
  transform: translateZ(50px);
}

.join-btn:hover {
  opacity: 0.95;
  transform: translateZ(60px) translateY(-3px) scale(1.04);
  box-shadow:
    0 12px 40px rgba(147,51,234,0.6),
    0 4px 16px rgba(59,130,246,0.4),
    0 0 60px rgba(147,51,234,0.3);
}

/* Shine sweep on hover */
.join-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  border-radius: inherit;
  transition: left 0.5s ease;
}

.join-btn {
  position: relative;
  overflow: hidden;
}

.join-btn:hover::after {
  left: 140%;
}

/* ===== CONNECT ===== */
.connect-section {
  background: linear-gradient(180deg, transparent 0%, rgba(147,51,234,0.03) 50%, transparent 100%);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.connect-card:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.connect-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.telegram-color { background: rgba(34,144,197,0.15); color: #22b8cf; border: 1px solid rgba(34,144,197,0.2); }
.youtube-color { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.purple-color { background: var(--purple-dim); color: var(--purple-light); border: 1px solid rgba(147,51,234,0.2); }
.green-color { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.twitter-color { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--border); }
.orange-color { background: rgba(249,115,22,0.12); color: var(--orange); border: 1px solid rgba(249,115,22,0.2); }

.connect-info { flex: 1; }

.connect-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.connect-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.connect-link-btn {
  font-size: 12px;
  color: var(--purple-light);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== ABOUT ===== */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.about-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--purple-dim);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.about-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-role {
  font-size: 15px;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 20px;
}

.about-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 32px;
}

.about-stats-row {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.about-stat { text-align: center; }

.about-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: -0.5px;
}

.about-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.contact-owner-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(147,51,234,0.35);
}

.contact-owner-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(147,51,234,0.45);
}

.about-image-wrap {
  position: relative;
}

.about-img-glow {
  position: absolute;
  inset: -20px;
  border-radius: 28px;
  background: radial-gradient(ellipse, rgba(147,51,234,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.about-img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 3/4;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(147,51,234,0.2);
}

.about-verified-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* ===== CONTACT ===== */
.contact-section {
  background: linear-gradient(180deg, transparent 0%, rgba(147,51,234,0.03) 50%, transparent 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-title,
.contact-form-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--purple-dim);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.contact-item-val {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.contact-item-val:hover {
  color: var(--purple-light);
}

.response-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 8px;
}

.response-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.response-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  background: rgba(147,51,234,0.06);
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  width: 100%;
  box-shadow: 0 4px 20px rgba(147,51,234,0.35);
}

.form-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(147,51,234,0.45);
}

.form-success {
  padding: 12px 16px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--green);
  text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(5,5,8,0.98);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 700;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-social-btn:hover {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: var(--text-primary);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.black-mafia-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}

.black-mafia-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(147,51,234,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(147,51,234,0.5);
}

/* ===== SCROLL REVEAL ===== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 360px;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .trust-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .about-img {
    aspect-ratio: 4/3;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .community-inner {
    padding: 48px 24px;
  }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .community-title { font-size: 26px; }
  .about-stats-row { gap: 20px; }
  .back-to-top { bottom: 20px; right: 20px; }
}
