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

:root {
  --purple: #7c3aed;
  --purple-light: #9d5cf6;
  --pink: #ec4899;
  --dark: #0a0a0f;
  --dark2: #0f0f1a;
  --dark3: #13131f;
  --card: #16162a;
  --border: #2a2a4a;
  --text: #e2e2f0;
  --muted: #8888aa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10,10,15,0.95);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--purple);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--purple-light); transform: scale(1.04); }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: auto;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('hero-bg.jpg') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.6) 0%, rgba(10,10,15,0.85) 60%, var(--dark) 100%);
}
.particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--purple-light);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 100px 24px 60px;
}
.hero-badge-top {
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--purple-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-logo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple);
  box-shadow: 0 0 30px rgba(124,58,237,0.5);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(124,58,237,0.5); }
  50% { box-shadow: 0 0 60px rgba(124,58,237,0.8), 0 0 100px rgba(236,72,153,0.3); }
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 30%, var(--purple-light) 70%, var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}
.hero-badges {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.badge {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.badge-dark { background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.badge-purple { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4); color: var(--purple-light); }
.status-dot { color: #22c55e; font-size: 0.6rem; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn-join {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-join:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 32px rgba(124,58,237,0.6); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--purple); background: rgba(124,58,237,0.1); }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION COMMON ===== */
.section-tag {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple-light);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag.center { display: block; text-align: center; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 12px; }
.section-title.center { text-align: center; }
.section-sub { color: var(--muted); font-size: 1rem; margin-bottom: 48px; }
.section-sub.center { text-align: center; }

/* ===== ABOUT ===== */
.about {
  padding: 100px 24px;
  background: var(--dark2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 20px; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; font-size: 1rem; }
.about-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.about-tags span {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--purple-light);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.about-card-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
}
.about-icon {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 16px;
  display: block;
}
.about-card-inner h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.about-card-inner ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about-card-inner li {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 10px;
}
.about-card-inner li i { color: var(--purple); font-size: 0.75rem; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  background: var(--dark);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(124,58,237,0.2);
}
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(124,58,237,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--purple-light);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* ===== ROLES ===== */
.roles {
  padding: 100px 24px;
  background: var(--dark2);
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.role-card:hover { transform: translateY(-5px); }
.role-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}
.role-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.role-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.role-owner .role-badge { background: rgba(251,191,36,0.15); color: #fbbf24; }
.role-owner { border-color: rgba(251,191,36,0.3); }
.role-owner:hover { box-shadow: 0 8px 24px rgba(251,191,36,0.15); }

.role-admin .role-badge { background: rgba(239,68,68,0.15); color: #ef4444; }
.role-admin { border-color: rgba(239,68,68,0.3); }
.role-admin:hover { box-shadow: 0 8px 24px rgba(239,68,68,0.15); }

.role-mod .role-badge { background: rgba(59,130,246,0.15); color: #3b82f6; }
.role-mod { border-color: rgba(59,130,246,0.3); }
.role-mod:hover { box-shadow: 0 8px 24px rgba(59,130,246,0.15); }

.role-vip .role-badge { background: rgba(236,72,153,0.15); color: var(--pink); }
.role-vip { border-color: rgba(236,72,153,0.3); }
.role-vip:hover { box-shadow: 0 8px 24px rgba(236,72,153,0.15); }

.role-active .role-badge { background: rgba(249,115,22,0.15); color: #f97316; }
.role-active { border-color: rgba(249,115,22,0.3); }
.role-active:hover { box-shadow: 0 8px 24px rgba(249,115,22,0.15); }

.role-member .role-badge { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.role-member { border-color: rgba(124,58,237,0.3); }
.role-member:hover { box-shadow: 0 8px 24px rgba(124,58,237,0.15); }

/* ===== STATS ===== */
.stats {
  padding: 100px 24px;
  background: linear-gradient(135deg, #0f0520 0%, var(--dark) 50%, #0a0a1a 100%);
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.stat-icon {
  width: 60px; height: 60px;
  background: rgba(124,58,237,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--pink);
  margin-bottom: 8px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-suffix {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
  margin-left: 2px;
}
.stat-label { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* ===== RULES ===== */
.rules {
  padding: 100px 24px;
  background: var(--dark3);
}
.rules-list {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 800px; margin: 0 auto;
}
.rule-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex; align-items: flex-start; gap: 20px;
  transition: border-color 0.2s;
}
.rule-item:hover { border-color: var(--purple); }
.rule-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(124,58,237,0.3);
  flex-shrink: 0;
  line-height: 1;
  min-width: 40px;
}
.rule-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.rule-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ===== FAQ ===== */
.faq {
  padding: 100px 24px;
  background: var(--dark2);
}
.faq-list {
  max-width: 750px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--purple); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: color 0.2s;
}
.faq-q i { transition: transform 0.3s; flex-shrink: 0; color: var(--muted); }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--purple-light); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-a p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 200px; }

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 120px 24px;
  background: url('hero-bg.jpg') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.85), rgba(236,72,153,0.7));
}
.cta-content { position: relative; z-index: 1; }
.cta-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.cta h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 14px; }
.cta p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; }

/* ===== FOOTER ===== */
footer {
  background: #060609;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem;
}
.footer-logo {
  width: 32px; height: 32px;
  border-radius: 50%; object-fit: cover;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-social {
  display: flex; gap: 14px;
}
.footer-social a {
  width: 38px; height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover {
  color: var(--purple-light);
  border-color: var(--purple);
  background: rgba(124,58,237,0.1);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom strong { color: var(--purple-light); }

/* ===== SCROLL ANIMATION ===== */
[data-aos] { opacity: 0; transform: translateY(24px); }
[data-aos].visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }

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