/* ============================================
   CSS Custom Properties - Commitment Ladder
   Light Magenta-Black Dark Mode Theme
   ============================================ */

:root {
  /* === COLORS === */

  /* Backgrounds */
  --bg-primary: #0a0a0b;
  --bg-secondary: #111114;
  --bg-tertiary: #18181c;
  --bg-elevated: #1f1f24;
  --bg-hover: #27272e;

  /* Magenta Accent Spectrum */
  --magenta-50: #fdf4ff;
  --magenta-100: #fae8ff;
  --magenta-200: #f5d0fe;
  --magenta-300: #f0abfc;
  --magenta-400: #e879f9;
  --magenta-500: #d946ef;
  --magenta-600: #c026d3;
  --magenta-700: #a21caf;
  --magenta-primary: #e91e8c;
  --magenta-light: #ff6bb3;
  --magenta-dark: #b8157a;
  --magenta-subtle: rgba(233, 30, 140, 0.08);
  --magenta-glow: rgba(233, 30, 140, 0.25);
  --magenta-glow-strong: rgba(233, 30, 140, 0.5);

  /* Text Colors */
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: var(--magenta-400);

  /* Border Colors */
  --border-primary: #27272a;
  --border-secondary: #3f3f46;
  --border-focus: var(--magenta-primary);

  /* Semantic Colors */
  --success: #22c55e;
  --success-muted: rgba(34, 197, 94, 0.15);
  --warning: #eab308;
  --warning-muted: rgba(234, 179, 8, 0.15);
  --danger: #ef4444;
  --danger-muted: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --info-muted: rgba(59, 130, 246, 0.15);

  /* Tier-Specific Colors */
  --tier-1: #6b7280;
  --tier-1-glow: rgba(107, 114, 128, 0.3);
  --tier-2: #3b82f6;
  --tier-2-glow: rgba(59, 130, 246, 0.3);
  --tier-3: #8b5cf6;
  --tier-3-glow: rgba(139, 92, 246, 0.3);
  --tier-4: #ec4899;
  --tier-4-glow: rgba(236, 72, 153, 0.3);
  --tier-5: #f59e0b;
  --tier-5-glow: rgba(245, 158, 11, 0.3);
  --tier-6: #e91e8c;
  --tier-6-glow: rgba(233, 30, 140, 0.3);
  --tier-bench: #9ca3af;
  --tier-bench-glow: rgba(156, 163, 175, 0.3);

  /* === TYPOGRAPHY === */

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* === SPACING === */

  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* === BORDERS === */

  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* === SHADOWS === */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--magenta-glow);
  --shadow-glow-lg: 0 0 40px var(--magenta-glow-strong);

  /* === TRANSITIONS === */

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;

  --ease-default: ease;
  --ease-in: ease-in;
  --ease-out: ease-out;
  --ease-in-out: ease-in-out;
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --transition-fast: var(--duration-fast) var(--ease-default);
  --transition-normal: var(--duration-normal) var(--ease-default);
  --transition-slow: var(--duration-slow) var(--ease-default);

  /* === Z-INDEX === */

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* === LAYOUT === */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-max: 1400px;

  --header-height: 4rem;
  --content-padding: var(--space-4);
}

/* Responsive adjustments */
@media (min-width: 640px) {
  :root {
    --content-padding: var(--space-6);
  }
}

@media (min-width: 1024px) {
  :root {
    --content-padding: var(--space-8);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}
