/**
 * EB Solutions Design System Tokens
 */

:root {
  /* Brand Colors */
  --eb-brand-primary-h: 165;
  --eb-brand-primary-s: 60%;
  --eb-brand-primary-l: 35%;
  --eb-brand-primary: hsl(var(--eb-brand-primary-h), var(--eb-brand-primary-s), var(--eb-brand-primary-l)); /* Primary Emerald */
  --eb-brand-primary-hover: hsl(var(--eb-brand-primary-h), var(--eb-brand-primary-s), 28%);

  --eb-brand-accent-h: 38;
  --eb-brand-accent-s: 90%;
  --eb-brand-accent-l: 55%;
  --eb-brand-accent: hsl(var(--eb-brand-accent-h), var(--eb-brand-accent-s), var(--eb-brand-accent-l)); /* Warm Amber/Gold */
  --eb-brand-accent-hover: hsl(var(--eb-brand-accent-h), var(--eb-brand-accent-s), 45%);

  /* Semantic Colors */
  --eb-success: hsl(145, 63%, 42%);
  --eb-warning: hsl(35, 92%, 50%);
  --eb-error: hsl(354, 70%, 54%);
  --eb-info: hsl(200, 80%, 45%);

  /* Luminous Accent Glows */
  --eb-glow-primary: hsla(var(--eb-brand-primary-h), var(--eb-brand-primary-s), 50%, 0.15);
  --eb-glow-accent: hsla(var(--eb-brand-accent-h), var(--eb-brand-accent-s), 50%, 0.15);

  /* Default Spacing Scale (4px Base Grid) */
  --eb-space-1: 4px;
  --eb-space-2: 8px;
  --eb-space-3: 12px;
  --eb-space-4: 16px;
  --eb-space-5: 24px;
  --eb-space-6: 32px;
  --eb-space-7: 48px;
  --eb-space-8: 64px;

  /* Border Radius */
  --eb-radius-sm: 4px;
  --eb-radius-md: 8px;
  --eb-radius-lg: 12px;
  --eb-radius-xl: 16px;
  --eb-radius-full: 9999px;

  /* Elevation & Shadows */
  --eb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --eb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --eb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --eb-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
  --eb-border-glass: rgba(255, 255, 255, 0.08);

  /* Font Weights */
  --eb-weight-light: 300;
  --eb-weight-normal: 400;
  --eb-weight-medium: 500;
  --eb-weight-semibold: 600;
  --eb-weight-bold: 700;

  /* Font sizes (Fluid typographic scale using clamp) */
  --eb-font-xs: 0.75rem;
  --eb-font-sm: 0.875rem;
  --eb-font-base: 1rem;
  --eb-font-lg: 1.125rem;
  --eb-font-xl: 1.25rem;
  --eb-font-2xl: 1.5rem;
  --eb-font-3xl: 1.875rem;
  --eb-font-4xl: 2.25rem;
  --eb-font-5xl: 3rem;
  
  --eb-font-display: clamp(2.5rem, 5vw + 1.2rem, 4.5rem);
  --eb-font-h1: clamp(2rem, 4vw + 1rem, 3.5rem);
  --eb-font-h2: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  --eb-font-h3: clamp(1.5rem, 2vw + 1rem, 2rem);
  --eb-font-h4: clamp(1.25rem, 1.5vw + 1rem, 1.5rem);
  --eb-font-lead: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);

  /* Hero Section Tokens */
  --eb-hero-overlay: radial-gradient(circle at 50% 50%, rgba(var(--eb-brand-primary-h), var(--eb-brand-primary-s), 35%, 0.15), transparent 70%);
  --eb-hero-badge-bg: rgba(var(--eb-brand-accent-h), var(--eb-brand-accent-s), 55%, 0.08);
  --eb-hero-badge-border: rgba(var(--eb-brand-accent-h), var(--eb-brand-accent-s), 55%, 0.2);
  --eb-hero-subtitle-spacing: 1.5rem;

  /* Motion & Transition System */
  --eb-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --eb-transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --eb-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --eb-transition-magnetic: 200ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --eb-bg-1: hsl(165, 15%, 98%);
  --eb-bg-2: hsl(165, 20%, 95%);
  --eb-bg-3: hsl(165, 15%, 90%);
  
  --eb-text-bright: hsl(165, 30%, 5%);
  --eb-text-main: hsl(165, 30%, 15%);
  --eb-text-muted: hsl(165, 20%, 38%);
  --eb-border: hsl(165, 15%, 85%);
  
  --eb-glass-bg: rgba(255, 255, 255, 0.75);
  --eb-glass-border: rgba(0, 0, 0, 0.08);
  --eb-glass-blur: 16px;
}

/* Dark Theme Variables (Default) */
[data-theme="dark"], :root {
  --eb-bg-1: hsl(165, 45%, 4%);
  --eb-bg-2: hsl(165, 35%, 7%);
  --eb-bg-3: hsl(165, 25%, 12%);
  
  --eb-text-bright: hsl(0, 0%, 100%);
  --eb-text-main: hsl(165, 10%, 98%);
  --eb-text-muted: hsl(165, 10%, 82%); /* WCAG AA Contrast compliant */
  --eb-border: hsl(165, 25%, 16%);
  
  --eb-glass-bg: rgba(6, 17, 14, 0.85); /* Richer theme-matching glass background */
  --eb-glass-border: rgba(16, 185, 129, 0.22); /* Emerald tint border, thicker and more visible */
  --eb-glass-blur: 24px; /* Premium deeper blur */
}
