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

:root {
  --color-bg-primary: #09090b;
  --color-bg-secondary: #131316;
  --color-hotpink: #FF69B4;
  --color-hotpink-dim: rgba(255, 105, 180, 0.15);
  --color-hotpink-glow: rgba(255, 105, 180, 0.4);
  --color-babyblau: #89CFF0;
  --color-babyblau-dim: rgba(137, 207, 240, 0.15);
  --color-babyblau-glow: rgba(137, 207, 240, 0.4);
  --color-text-primary: #e4e4e7;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --glass-bg: rgba(24, 24, 27, 0.4);
  --glass-border: rgba(63, 63, 70, 0.3);
  --glass-blur: blur(20px) saturate(180%);
  --gradient-accent: linear-gradient(135deg, var(--color-babyblau), var(--color-hotpink));
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2;
}

h1 { letter-spacing: 6px; }
h2 { letter-spacing: 4px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ==========================================================================
   Background layers
   ========================================================================== */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

.orb-hotpink {
  background: var(--color-hotpink);
  width: 460px;
  height: 460px;
  top: 8%;
  right: -120px;
}

.orb-babyblau {
  background: var(--color-babyblau);
  width: 520px;
  height: 520px;
  bottom: 10%;
  left: -160px;
}

.orb-hotpink-alt {
  background: var(--color-hotpink);
  width: 360px;
  height: 360px;
  top: 55%;
  right: -80px;
}

main {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Glassmorphism utilities
   ========================================================================== */
.glass {
  background: rgba(39, 39, 42, 0.3);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease;
  position: relative;
}

/* Top shimmer line on hover */
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass:hover::before {
  opacity: 1;
}

/* Mouse-tracking glow */
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 180px at var(--mx, -500px) var(--my, -500px),
    rgba(255, 105, 180, 0.07),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass:hover::after {
  opacity: 1;
}

.glass:hover {
  border-color: rgba(255, 105, 180, 0.28);
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 2px;
  margin: 1.5rem auto;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  color: var(--color-hotpink);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.section-heading-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.85);
  border-bottom-color: var(--glass-border);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-logo img {
  height: 38px;
  width: auto;
}

.navbar-logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.05rem;
}

.navbar-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px var(--color-hotpink-glow));
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}

.navbar-links a {
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-hotpink);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-text-primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
  left: 0;
}

.discord-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: rgba(88, 101, 242, 0.04);
  border: 1px solid rgba(88, 101, 242, 0.12);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.discord-widget:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.28);
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.1);
}

.discord-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #7289da;
  font-size: 1.05rem;
}

.discord-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.discord-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.discord-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  flex-shrink: 0;
}

.discord-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #22c55e;
  opacity: 0.4;
  animation: discord-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes discord-ping {
  0%         { transform: scale(1);   opacity: 0.4; }
  75%, 100%  { transform: scale(2.2); opacity: 0;   }
}

.discord-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'Inter', system-ui, sans-serif;
}

.discord-count {
  font-size: 1.05rem;
  font-weight: 800;
  color: #e4e4e7;
  letter-spacing: -0.3px;
  font-family: 'Inter', system-ui, sans-serif;
}

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

.navbar-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-top img { height: 40px; }

.footer-brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--color-hotpink); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Reveal base (GSAP targets)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-logo { animation: none; }
}
