/* ============================================================
   MONEY FLOW FINANCIAL SERVICES LLC — DESIGN SYSTEM
   Premium Fintech Design Tokens & Base Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-deep-purple: #2D0A4F;
  --color-royal-purple: #4B1D7A;
  --color-gold: #D4AF37;
  --color-soft-gold: #F2D27A;
  --color-black: #000000;
  --color-off-white: #F8F8F8;

  /* Extended Palette */
  --color-purple-light: #6B3FA0;
  --color-purple-dark: #1A0630;
  --color-gold-dark: #B8941E;
  --color-gold-glow: rgba(212, 175, 55, 0.3);
  --color-purple-glow: rgba(75, 29, 122, 0.4);
  --color-success: #2ECC71;
  --color-error: #E74C3C;
  --color-warning: #F39C12;
  --color-info: #3498DB;

  /* Neutral Palette */
  --color-gray-900: #111111;
  --color-gray-800: #1A1A2E;
  --color-gray-700: #2A2A3E;
  --color-gray-600: #3A3A4E;
  --color-gray-500: #6B6B7B;
  --color-gray-400: #9B9BAB;
  --color-gray-300: #CBCBD5;
  --color-gray-200: #E5E5EB;
  --color-gray-100: #F0F0F5;

  /* Gradients */
  --gradient-purple: linear-gradient(135deg, var(--color-deep-purple) 0%, var(--color-royal-purple) 100%);
  --gradient-purple-dark: linear-gradient(135deg, var(--color-black) 0%, var(--color-deep-purple) 50%, var(--color-royal-purple) 100%);
  --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-soft-gold) 100%);
  --gradient-purple-gold: linear-gradient(135deg, var(--color-royal-purple) 0%, var(--color-gold) 100%);
  --gradient-hero: linear-gradient(160deg, var(--color-black) 0%, var(--color-deep-purple) 40%, var(--color-royal-purple) 70%, rgba(212,175,55,0.15) 100%);
  --gradient-card: linear-gradient(145deg, rgba(75,29,122,0.15) 0%, rgba(45,10,79,0.08) 100%);
  --gradient-gold-shimmer: linear-gradient(90deg, transparent 0%, var(--color-soft-gold) 50%, transparent 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes (fluid scale) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Spacing (4px base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-glow-gold: 0 0 20px rgba(212, 175, 55, 0.25), 0 0 40px rgba(212, 175, 55, 0.1);
  --shadow-glow-purple: 0 0 20px rgba(75, 29, 122, 0.3), 0 0 40px rgba(75, 29, 122, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
  --z-max: 9999;

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 960px;
  --nav-height: 72px;
  --sidebar-width: 280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-off-white);
  background-color: var(--color-black);
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Typography Base --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-off-white);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-relaxed);
  color: var(--color-gray-300);
}

a {
  color: var(--color-soft-gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--color-gold);
}

strong { font-weight: var(--weight-semibold); }

small { font-size: var(--text-sm); }

/* --- Selection --- */
::selection {
  background-color: rgba(75, 29, 122, 0.5);
  color: var(--color-soft-gold);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-900);
}

::-webkit-scrollbar-thumb {
  background: var(--color-royal-purple);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple-light);
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Text utilities */
.text-gold { color: var(--color-gold); }
.text-soft-gold { color: var(--color-soft-gold); }
.text-purple { color: var(--color-royal-purple); }
.text-white { color: var(--color-off-white); }
.text-muted { color: var(--color-gray-400); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: var(--tracking-wider); }

/* Gradient text */
.text-gradient {
  background: var(--gradient-purple-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Glassmorphism Utilities --- */
.glass {
  background: rgba(45, 10, 79, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass--light {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass--dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Image Reset --- */
img, svg {
  display: block;
  max-width: 100%;
}

/* --- List Reset --- */
ul, ol {
  list-style: none;
}

/* --- Button Reset --- */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- Input Reset --- */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* --- SR Only (Screen Reader) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
