/* ============================================================
   AXIUM — Global Design System
   Font: Poppins (Google Fonts)
   Theme: ERM-inspired dark, Axium blue accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-0:   #080a10;
  --bg-1:   #0d0f1a;
  --bg-2:   #12141f;
  --bg-3:   #181a27;
  --bg-4:   #1e2130;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(79, 142, 247, 0.5);

  /* Brand */
  --blue:        #4f8ef7;
  --blue-hover:  #6ba3ff;
  --blue-dim:    rgba(79, 142, 247, 0.12);
  --blue-glow:   rgba(79, 142, 247, 0.25);

  /* Status */
  --green:       #22c55e;
  --green-dim:   rgba(34, 197, 94, 0.12);
  --green-border:rgba(34, 197, 94, 0.3);
  --red:         #ef4444;
  --red-dim:     rgba(239, 68, 68, 0.12);
  --red-border:  rgba(239, 68, 68, 0.3);
  --yellow:      #f59e0b;
  --yellow-dim:  rgba(245, 158, 11, 0.12);
  --yellow-border:rgba(245, 158, 11, 0.3);
  --purple:      #a855f7;
  --purple-dim:  rgba(168, 85, 247, 0.12);

  /* Text */
  --text:       #e2e8f0;
  --text-2:     #94a3b8;
  --text-3:     #4b5563;
  --text-white: #ffffff;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl:24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-blue: 0 4px 24px rgba(79,142,247,0.3);

  /* Transitions */
  --t: 160ms ease;
  --t-slow: 280ms cubic-bezier(.21,.62,.35,.98);

  /* Sidebar */
  --sidebar-w: 240px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Background mesh ────────────────────────────────────── */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-0);
  overflow: hidden;
}
.site-bg::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.07) 0%, transparent 70%);
  animation: floatA 20s ease-in-out infinite alternate;
}
.site-bg::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.05) 0%, transparent 70%);
  animation: floatB 18s ease-in-out infinite alternate;
}
@keyframes floatA { to { transform: translate(60px, 40px); } }
@keyframes floatB { to { transform: translate(-40px, 60px); } }

/* ── Cursor spotlight ───────────────────────────────────── */
.cursor-spotlight {
  position: fixed;
  pointer-events: none;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,0.06) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 200ms;
}

/* ═══════════════════════════════════════════════════════════
   MARKETING NAV
   ═══════════════════════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(8, 10, 16, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--t);
}
.site-nav.scrolled {
  background: rgba(8, 10, 16, 0.95);
  border-color: var(--border-hover);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand img {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t), background var(--t);
  border: none;
  background: none;
}
.nav-link:hover, .nav-link.active { color: var(--text-white); background: rgba(255,255,255,0.06); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.btn img { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(79,142,247,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--text-white); border-color: var(--border-hover); }
.btn-ghost {
  background: none;
  color: var(--text-2);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }
.btn-discord {
  background: #5865F2;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(88,101,242,0.35);
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: var(--red-border);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-success {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green-border);
}
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--r-sm); }
.btn-lg { padding: 12px 28px; font-size: 1rem; border-radius: var(--r-lg); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   MARKETING PAGES
   ═══════════════════════════════════════════════════════════ */

.marketing-main { padding-top: 64px; }

/* Hero */
.hero {
  padding: 100px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--blue-dim);
  border: 1px solid rgba(79,142,247,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 28px;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--blue) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-img {
  margin: 72px auto 0;
  max-width: 960px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(79,142,247,0.1);
  background: var(--bg-2);
}
.hero-img img { width: 100%; display: block; }
.hero-img-placeholder {
  height: 400px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.875rem;
}

/* Trusted by */
.trusted {
  padding: 60px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.trusted-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}
.trusted-logos {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.trusted-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-3);
  transition: color var(--t);
}
.trusted-logo:hover { color: var(--text-2); }

/* Features */
.features { padding: 100px 40px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.feature-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--blue-dim);
  border: 1px solid rgba(79,142,247,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon img { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: 0.9; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.feature-card p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

/* Stats bar */
.stats-bar { padding: 80px 40px; background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-bar-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.stat-num { font-size: 2.8rem; font-weight: 800; color: var(--text-white); letter-spacing: -0.04em; }
.stat-num span { color: var(--blue); }
.stat-desc { font-size: 0.875rem; color: var(--text-2); margin-top: 4px; }

/* CTA section */
.cta-section { padding: 120px 40px; text-align: center; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--text-white); letter-spacing: -0.04em; margin-bottom: 16px; }
.cta-section p  { font-size: 1rem; color: var(--text-2); margin-bottom: 36px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 48px 40px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand-name { font-size: 1rem; font-weight: 700; color: var(--text-white); }
.footer-tagline { font-size: 0.83rem; color: var(--text-3); max-width: 240px; line-height: 1.5; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: 0.04em; }
.footer-col a  { display: block; font-size: 0.83rem; color: var(--text-3); margin-bottom: 10px; transition: color var(--t); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════ */
.legal-page { padding: 120px 40px 80px; max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: 2rem; font-weight: 800; color: var(--text-white); margin-bottom: 6px; }
.legal-meta { font-size: 0.83rem; color: var(--text-3); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; font-weight: 700; color: var(--text-white); margin: 36px 0 10px; }
.legal-page p, .legal-page li { font-size: 0.9rem; color: var(--text-2); line-height: 1.8; }
.legal-page ul { padding-left: 1.4rem; margin-bottom: 14px; }
.legal-page li { margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(.21,.62,.35,.98);
}
.fade-up.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 60px 24px 48px; }
  .features { padding: 60px 24px; }
  .trusted { padding: 40px 24px; }
  .stats-bar-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
  .site-footer { padding: 40px 24px 24px; }
}
