/* ========================================================
   EARNDALA - DESIGN SYSTEM & CORE STYLES
   ======================================================== */

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

:root {
  /* Brand Palette - Modern African Fintech */
  --clr-emerald-950: #042F2E;
  --clr-emerald-900: #064E3B;
  --clr-emerald-800: #065F46;
  --clr-emerald-700: #0F5A47;
  --clr-emerald-600: #059669;
  --clr-emerald-500: #10B981;
  --clr-emerald-400: #34D399;
  --clr-emerald-300: #6EE7B7;
  
  --clr-gold-500: #F59E0B;
  --clr-gold-400: #FBBF24;
  --clr-gold-300: #FCD34D;
  
  --clr-slate-950: #0B132B;
  --clr-slate-900: #0F172A;
  --clr-slate-850: #131C35;
  --clr-slate-800: #1E293B;
  --clr-slate-700: #334155;
  --clr-slate-600: #475569;
  --clr-slate-400: #94A3B8;
  --clr-slate-300: #CBD5E1;
  --clr-slate-100: #F1F5F9;
  --clr-white: #FFFFFF;
  
  --clr-danger-500: #EF4444;
  --clr-danger-400: #F87171;
  --clr-success-500: #10B981;
  --clr-warning-500: #F59E0B;
  --clr-info-500: #3B82F6;

  /* Glassmorphic Surfaces */
  --bg-dark: #070D1E;
  --bg-card: rgba(19, 28, 53, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-input: rgba(15, 23, 42, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(16, 185, 129, 0.25);
  --border-gold: rgba(245, 158, 11, 0.3);

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  --glow-gold: 0 0 20px rgba(245, 158, 11, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--clr-slate-100);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-white);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--clr-slate-300);
}

a {
  color: var(--clr-emerald-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--clr-emerald-300);
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 540px;
}

/* Text Gradient Helpers */
.text-gradient-emerald {
  background: linear-gradient(135deg, var(--clr-emerald-300) 0%, var(--clr-emerald-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--clr-gold-300) 0%, var(--clr-gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-slate-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-emerald-600);
}
