/* ============================================
   MONARCH LEAK — DESIGN SYSTEM
   globals.css — Variables, Reset, Typography
   ============================================ */

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

:root {
  /* Colors */
  --bg-base: #06070b;
  --bg-elevated: #0b0d14;
  --bg-card: #0f111a;
  --bg-card-hover: #141722;
  --bg-glass: rgba(15, 17, 26, 0.82);

  --accent: #7c3aed;
  --accent-hover: #9b6cff;
  --accent-bright: #a855f7;
  --accent-soft: rgba(124, 58, 237, 0.14);
  --accent-border: rgba(139, 92, 246, 0.28);

  --text-primary: #ffffff;
  --text-secondary: #a3a3b5;
  --text-muted: #66687a;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --discord: #5865F2;

  --border-soft: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(139, 92, 246, 0.24);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.25);

  /* Font */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--text-primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p { color: var(--text-secondary); }

::selection { background: var(--accent); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Utilities */
.container { max-width: 1500px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent-hover); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--danger); }
.hidden { display: none !important; }

/* Global Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.82rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #ffffff;
  border: 1px solid rgba(167, 139, 250, 0.2);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
  border-color: rgba(167, 139, 250, 0.35);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-discord {
  background: var(--discord);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 0.88rem;
  border-radius: 8px;
}
