/**
 * WChem Design Tokens
 * Generated: 2026-07-30 03:23:49 UTC
 * Hybrid approach: Kinetic Lab + ui-ux-pro-max recommendations
 */

:root {
  /* ========================================
     COLOR PALETTE - Hybrid System
     ======================================== */
  
  /* Primary - Discovery Green (Chemistry/Science) */
  --color-primary: #15803D;
  --color-primary-hover: #166534;
  --color-primary-light: #22C55E;
  --color-on-primary: #FFFFFF;
  
  /* Secondary - Science Blue (Keep from Kinetic Lab) */
  --color-secondary: #3f56bc;
  --color-secondary-hover: #233ca3;
  --color-secondary-light: #7f95ff;
  --color-on-secondary: #FFFFFF;
  
  /* Accent - Orange (High-visibility CTAs) */
  --color-accent: #D97706;
  --color-accent-hover: #B45309;
  --color-on-accent: #FFFFFF;
  
  /* Backgrounds */
  --color-background: #F0FDF4;
  --color-surface: rgba(255, 255, 255, 0.55);
  --color-surface-solid: #FFFFFF;
  --color-surface-dim: #cbdbf5;
  --color-surface-bright: #f8f9ff;
  
  /* Text */
  --color-foreground: #14532D;
  --color-on-surface: #0b1c30;
  --color-on-surface-variant: #444653;
  --color-muted: #757684;
  
  /* Borders */
  --color-border: #BBF7D0;
  --color-border-strong: #15803D;
  --color-outline: #757684;
  --color-outline-variant: #c5c5d5;
  
  /* Status Colors */
  --color-success: #22C55E;
  --color-error: #DC2626;
  --color-warning: #D97706;
  --color-info: #3f56bc;
  
  /* Interactive States */
  --color-hover: rgba(21, 128, 61, 0.08);
  --color-active: rgba(21, 128, 61, 0.14);
  --color-focus-ring: #15803D;
  
  /* ========================================
     TYPOGRAPHY SYSTEM
     ======================================== */
  
  /* Font Families */
  --font-heading: 'Exo', sans-serif;           /* Futuristic, science-focused */
  --font-body: 'Inter', sans-serif;            /* Readable, clean */
  --font-mono: 'Roboto Mono', monospace;       /* Technical data, formulas */
  --font-ui: 'Space Grotesk', sans-serif;      /* UI labels, buttons */
  
  /* Font Sizes - Mobile First */
  --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 */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  
  /* ========================================
     SPACING SYSTEM
     ======================================== */
  
  --space-0: 0;
  --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 */
  
  /* Semantic Spacing */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);
  --space-3xl: var(--space-16);
  
  /* ========================================
     SHADOW SYSTEM
     ======================================== */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Glassmorphism Shadow - Kinetic Lab */
  --shadow-glass: 0px 20px 40px rgba(127, 149, 255, 0.15);
  
  /* ========================================
     BORDER RADIUS
     ======================================== */
  
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */
  
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;
  
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Standard transition */
  --transition-base: all var(--duration-base) var(--ease-in-out);
  --transition-fast: all var(--duration-fast) var(--ease-in-out);
  --transition-slow: all var(--duration-slow) var(--ease-in-out);
  
  /* ========================================
     Z-INDEX LAYERS
     ======================================== */
  
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-notification: 1080;
  
  /* ========================================
     BREAKPOINTS (Reference Only)
     Use in media queries, not as CSS variables
     ======================================== */
  
  /* 
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  */
  
  /* ========================================
     TOUCH TARGETS
     ======================================== */
  
  --touch-target-min: 44px;  /* Minimum for accessibility */
  
  /* ========================================
     GLASSMORPHISM EFFECTS (Kinetic Lab)
     ======================================== */
  
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(20px);
  
  /* ========================================
     FOCUS RING (Accessibility)
     ======================================== */
  
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --focus-ring-color: var(--color-focus-ring);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

/* Tablet and up */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2rem;     /* 32px */
    --text-4xl: 2.5rem;   /* 40px */
    --text-5xl: 3.5rem;   /* 56px */
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  :root {
    --text-4xl: 2.75rem;  /* 44px */
    --text-5xl: 4rem;     /* 64px */
  }
}

/* ========================================
   REDUCED MOTION (Accessibility)
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Focus visible for accessibility */
*:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Smooth scrolling (respects reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Typography utilities */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }
.font-ui { font-family: var(--font-ui); }

/* ========================================
   COMPONENT EXAMPLES
   ======================================== */

/* Button Base */
.btn {
  font-family: var(--font-ui);
  font-weight: var(--font-semibold);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Button Primary - Discovery Green */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Button Accent - Orange CTA */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Button Secondary - Science Blue */
.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-hover);
}

/* Glass Panel - Kinetic Lab Style */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}
