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

:root {
  --bg: #04080d;
  --primary: #0376ab;
  --primary-glow: #05a6f0;
  --primary-dim: rgba(3, 118, 171, 0.18);
  --primary-border: rgba(3, 118, 171, 0.35);
  --foreground: #ffffff;
  --muted: rgba(255, 255, 255, 0.52);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(4, 8, 13, 0.72);
  --discord: #5865F2;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--foreground);
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 6px;
  height: 6px;
  background: var(--primary-glow);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(5, 166, 240, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

a:hover ~ .cursor-ring,
button:hover ~ .cursor-ring {
  width: 44px;
  height: 44px;
}

@media (max-width: 768px) {
  .cursor-dot,
  .cursor-ring { display: none; }

  body { cursor: auto; }
}

/* Ambient Orbs */
.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  opacity: 0.16;
  top: -10%;
  left: -8%;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--primary-glow);
  opacity: 0.10;
  bottom: -8%;
  right: -6%;
  animation: floatOrb 26s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  opacity: 0.08;
  top: 45%;
  right: 10%;
  filter: blur(100px);
  animation: floatOrb 33s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  from { transform: translate(0, 0); }
  to { transform: translate(60px, 70px); }
}

/* Navbar */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 16px;
  z-index: 100;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary-glow);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--foreground);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-cta a:hover {
  background: var(--primary-glow);
  box-shadow: 0 0 18px rgba(5, 166, 240, 0.4);
  transform: translateY(-1px);
}

.nav-cta a svg { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--foreground);
  transition: all 0.3s ease;
  transform-origin: center;
}

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 90px;
  left: 16px;
  right: 16px;
  z-index: 99;
  background: rgba(6, 12, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: var(--foreground);
  background: var(--glass-bg);
}

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

  .hamburger { display: flex; }
}

/* Shared */
section {
  position: relative;
  z-index: 1;
}

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

/* Hero */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-mouse-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 118, 171, 0.12) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.4s ease, top 0.4s ease;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(3, 118, 171, 0.12);
  border: 1px solid rgba(3, 118, 171, 0.3);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary-glow);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary-glow);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(5, 166, 240, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(5, 166, 240, 0); }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 14vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  background: linear-gradient(155deg, #ffffff 0%, #7fd4f5 45%, #0376ab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-glow);
  box-shadow: 0 0 28px rgba(5, 166, 240, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 9999px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-ghost:hover {
  border-color: rgba(3, 118, 171, 0.5);
  color: var(--foreground);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(3, 118, 171, 0.6), transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Features */
#features { padding: 100px 0; }

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

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-glow);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.section-title .grad {
  background: linear-gradient(135deg, var(--primary-glow), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--primary-glow));
  margin: 0 auto 18px;
  border-radius: 9999px;
}

.section-header p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

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

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-border);
  background: rgba(3, 118, 171, 0.06);
  box-shadow: 0 16px 40px rgba(3, 118, 171, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(3, 118, 171, 0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary-glow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.68;
  font-weight: 300;
}

/* Stats */
#stats { padding: 70px 0; }

.stats-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(3, 118, 171, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(3, 118, 171, 0.08), inset 0 1px 0 rgba(3, 118, 171, 0.3);
}

.stat-item {
  flex: 1;
  min-width: 160px;
  padding: 44px 28px;
  text-align: center;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--glass-border);
}

@media (max-width: 600px) {
  .stat-item + .stat-item::before { display: none; }
  .stats-wrapper { flex-direction: column; }
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Community */
#community { padding: 100px 0; }

.community-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.community-inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-border), transparent);
}

.discord-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.community-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  line-height: 1.1;
}

.community-inner h2 .grad {
  background: linear-gradient(135deg, var(--primary-glow), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.community-inner p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--discord);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.5);
  transform: translateY(-2px);
}

.discord-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }
