/* ============================================
   ON THE DAY — Design Tokens
   The living design language
   ============================================ */

:root {
  /* ── Green Spectrum ── */
  --otd-green-950: #052e16;
  --otd-green-900: #14532d;
  --otd-green-800: #166534;
  --otd-green-700: #15803d;
  --otd-green-600: #16a34a;
  --otd-green-500: #22c55e;
  --otd-green-400: #4ade80;
  --otd-green-300: #86efac;
  --otd-green-200: #bbf7d0;
  --otd-green-100: #dcfce7;
  --otd-green-50:  #f0fdf4;

  /* ── Brand Aliases (backward compat) ── */
  --primary:       #4CAF50;
  --primary-dark:  #388E3C;
  --primary-light: #81C784;
  --primary-pale:  #E8F5E9;
  --secondary:     #2E7D32;
  --accent:        #00C853;

  /* ── Aurora Accents ── */
  --aurora-cyan:    #22d3ee;
  --aurora-emerald: #34d399;
  --aurora-teal:    #2dd4bf;
  --aurora-violet:  #8b5cf6;
  --aurora-rose:    #f43f5e;
  --aurora-amber:   #f59e0b;
  --aurora-sky:     #0ea5e9;

  /* ── Dark Foundation ── */
  --dark-bg:       #0a0a0a;
  --dark-surface:  #141414;
  --dark-elevated: #1a1a1a;
  --dark-border:   rgba(255, 255, 255, 0.08);
  --dark-text:     #fafafa;
  --dark-text-secondary: #a1a1aa;
  --dark-text-muted: #71717a;

  /* ── Slate Scale (richer than gray) ── */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* ── Neutrals (backward compat) ── */
  --white:    #FFFFFF;
  --gray-50:  #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  /* ── Semantic Colors ── */
  --success:  #22c55e;
  --warning:  #f59e0b;
  --error:    #ef4444;
  --info:     #3b82f6;
  --success-pale: #dcfce7;
  --warning-pale: #fef3c7;
  --error-pale:   #fee2e2;
  --info-pale:    #dbeafe;

  /* ── Status Pairs (bg + text for badges/pills) ── */
  --status-success-bg:   #dcfce7;
  --status-success-text: #166534;
  --status-warning-bg:   #fef3c7;
  --status-warning-text: #92400e;
  --status-error-bg:     #fee2e2;
  --status-error-text:   #dc2626;
  --status-info-bg:      #dbeafe;
  --status-info-text:    #1d4ed8;
  --status-purple-bg:    #ede9fe;
  --status-purple-text:  #7c3aed;
  --status-muted-bg:     #f3f4f6;
  --status-muted-text:   #6b7280;

  /* ── Icon Accent Pairs ── */
  --icon-green-bg:  var(--status-success-bg);
  --icon-green:     var(--status-success-text);
  --icon-blue-bg:   var(--status-info-bg);
  --icon-blue:      #3b82f6;
  --icon-orange-bg: var(--status-warning-bg);
  --icon-orange:    #f59e0b;
  --icon-purple-bg: var(--status-purple-bg);
  --icon-purple:    #8b5cf6;
  --icon-red-bg:    var(--status-error-bg);
  --icon-red:       var(--status-error-text);

  /* ── Background ── */
  --bg-primary:   #FFFFFF;
  --bg-secondary: #F8FBF8;
  --bg-dark:      #1B5E20;

  /* ── Text ── */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-light:     #FFFFFF;

  /* ── Typography ── */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* backward compat */
  --font-primary: var(--font-body);

  /* ── 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;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;

  /* ── Font Weights ── */
  --font-light:    300;
  --font-normal:   400;
  --font-medium:   500;
  --font-semibold: 600;
  --font-bold:     700;
  --font-black:    900;

  /* ── Spacing ── */
  --space-px: 1px;
  --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-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* ── Border Radius ── */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-3xl:  2rem;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl:   0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow:  0 0 20px rgba(74, 222, 128, 0.15), 0 0 60px rgba(74, 222, 128, 0.05);
  --shadow-green: 0 4px 14px rgba(76, 175, 80, 0.3);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);

  /* ── Easings ── */
  --ease-out-expo:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-quint:  cubic-bezier(0.83, 0, 0.17, 1);
  --ease-elastic:       cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring:        cubic-bezier(0.22, 1.4, 0.36, 1);
  --ease-smooth:        cubic-bezier(0.4, 0, 0, 1);
  --ease-bounce:        cubic-bezier(0.34, 1.8, 0.64, 1);

  /* backward compat */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* ── Durations ── */
  --duration-instant: 100ms;
  --duration-fast:    200ms;
  --duration-normal:  400ms;
  --duration-slow:    600ms;
  --duration-slower:  800ms;
  --duration-cinematic: 1200ms;

  /* ── Z-Index Scale ── */
  --z-behind:    -1;
  --z-base:       0;
  --z-raised:    10;
  --z-dropdown:  20;
  --z-sticky:    30;
  --z-overlay:   40;
  --z-modal:     50;
  --z-toast:     60;
  --z-cursor:    70;
  --z-grain:     80;

  /* ── Container ── */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --container-padding: 1.5rem;

  /* ── Warm Palette (light homepage) ── */
  --warm-bg:          #FAFAF8;
  --warm-bg-alt:      #F5F3EF;
  --warm-green-strip: #e8f8ec;
  --warm-border:      #E8E5E0;
  --warm-text:        #1a1a1a;
  --warm-text-secondary: #5a5a5a;
  --warm-text-muted:  #8a8a8a;

  /* ── Cursor (driven by JS) ── */
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  --scroll-velocity: 0;
}

/* ── @property for animated gradients ── */
@property --aurora-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-pos {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}
