/**
 * ProTechnologies Design Tokens
 * Dark-first design system with high-contrast, polished light theme support.
 */

:root {
  /* Brand Core Palette */
  --color-primary: #2F6BFF;
  --color-primary-hover: #1D52DF;
  --color-primary-glow: rgba(47, 107, 255, 0.25);
  --color-secondary: #22D3EE;
  --color-secondary-hover: #06B6D4;
  --color-secondary-glow: rgba(34, 211, 238, 0.2);

  /* Dark Theme Surfaces (Default) */
  --bg-app: #050816;
  --bg-surface: #0A1128;
  --bg-surface-elevated: #101B3B;
  --bg-surface-subtle: #15224A;
  --bg-surface-glass: rgba(10, 17, 40, 0.85);

  /* Typography Colors */
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-inverse: #050816;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(47, 107, 255, 0.6);
  --border-highlight: rgba(34, 211, 238, 0.3);

  /* Status Colors */
  --color-success: #10B981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-warning: #F59E0B;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-info: #3B82F6;
  --color-info-bg: rgba(59, 130, 246, 0.12);
  --color-concept: #A855F7;
  --color-concept-bg: rgba(168, 85, 247, 0.12);

  /* Spacing Scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

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

  /* Fluid Typography Scale */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.1vw, 2.35rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  --text-hero: clamp(2.5rem, 2.1rem + 2.2vw, 4.25rem);

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 35px var(--color-primary-glow);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-app: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-surface-subtle: #E2E8F0;
  --bg-surface-glass: rgba(255, 255, 255, 0.9);

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --text-inverse: #FFFFFF;

  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-focus: rgba(47, 107, 255, 0.8);
  --border-highlight: rgba(34, 211, 238, 0.5);

  --shadow-subtle: 0 4px 15px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 30px rgba(47, 107, 255, 0.15);
}
