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

:root {
  --purple:    #6c63ff;
  --purple-dim: rgba(108,99,255,0.18);
  --purple-glow: rgba(108,99,255,0.35);
  --bg:        #0b0b0f;
  --bg-card:   rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-accent: rgba(108,99,255,0.4);
  --text:      #e8e6f0;
  --text-dim:  rgba(232,230,240,0.55);
  --text-muted: rgba(232,230,240,0.35);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:    12px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── CANVAS BACKGROUND ─────────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── TYPOGRAPHY HELPERS ────────────────────────── */
.mono { font-family: var(--font-mono); }
.accent { color: var(--purple); }

/* ─── NAV ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(11,11,15,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  user-select: none;
}
.logo-r { color: var(--purple); }
.logo-egency { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--purple-dim);
  color: var(--purple) !important;
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--purple) !important;
  color: #fff !important;
}

/* ─── HERO ──────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--purple);
  border: 1px solid var(--border-accent);
  background: var(--purple-dim);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}
.badge-dot.pulse {
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--purple); }
  50% { opacity: 0.4; box-shadow: 0 0 3px var(--purple); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 900px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--purple), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

/* ─── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 24px var(--purple-glow);
}
.btn-primary:hover {
  background: #7c74ff;
  box-shadow: 0 0 36px var(--purple-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  box-shadow: 0 0 28px rgba(88,101,242,0.4);
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 0 40px rgba(88,101,242,0.5);
}
.discord-icon { width: 20px; height: 20px; }

/* ─── HERO STATS ────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  gap: 0.25rem;
}
.stat-val {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── SECTIONS ──────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.section-label {
  font-size: 0.7rem;
  color: var(--purple);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ─── CARDS ─────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }

.card-icon { font-size: 1.75rem; margin-bottom: 0.85rem; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.card-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ─── DISCORD SECTION ───────────────────────────── */
.section-discord { overflow: hidden; }

.discord-block {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.discord-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--purple-dim) 0%, transparent 70%);
  pointer-events: none;
}

.discord-content { position: relative; z-index: 1; max-width: 520px; }
.discord-content .section-desc { margin-bottom: 2rem; }

.discord-badge-large {
  position: absolute;
  top: 2rem; right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--purple);
  border: 1px solid var(--border-accent);
  background: var(--purple-dim);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.1em;
}

/* ─── INFO GRID ─────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-block {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.info-block:hover { background: var(--bg-card); }

.info-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.info-text {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── FOOTER ────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.footer-logo { font-size: 1rem; }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat { padding: 0.75rem 1.25rem; }
  .stat-divider { display: none; }
  .discord-badge-large { display: none; }
  .info-grid { grid-template-columns: 1fr; }
}
