/* ============================================
   Granite Elite Intel — Design Tokens (LIGHT THEME)
   CSS Custom Properties for the full design system
   ============================================ */

:root {
  /* ---- Brand Colors (Light Theme) ---- */
  --color-black: #050608;
  --color-graphite: #ffffff;
  --color-graphite-light: #f5f7fa;
  --color-graphite-lighter: #edf0f4;
  --color-silver: #4a5568;
  --color-silver-light: #2d3748;
  --color-silver-dark: #718096;
  --color-blue: #0057b8;
  --color-blue-light: #1a6fce;
  --color-blue-dark: #003d82;
  --color-blue-glow: rgba(0, 87, 184, 0.1);
  --color-white: #1a202c;
  --color-white-pure: #ffffff;

  /* ---- Semantic Colors ---- */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5f7fa;
  --color-bg-tertiary: #edf0f4;
  --color-bg-card: rgba(255, 255, 255, 0.8);
  --color-bg-card-hover: rgba(245, 247, 250, 1);
  --color-text-primary: #1a202c;
  --color-text-secondary: #4a5568;
  --color-text-muted: #718096;
  --color-accent: var(--color-blue);
  --color-accent-hover: var(--color-blue-light);
  --color-accent-glow: var(--color-blue-glow);

  /* ---- Gradients ---- */
  --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #1e3045 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 250, 0.7) 100%);
  --gradient-blue: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 50%, var(--color-blue-light) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(5, 6, 8, 0.8) 0%, rgba(17, 21, 27, 0.4) 50%, rgba(17, 21, 27, 0.9) 100%);
  --gradient-text: linear-gradient(135deg, #1a202c 0%, #4a5568 100%);

  /* ---- Borders ---- */
  --border-subtle: 1px solid rgba(0, 0, 0, 0.06);
  --border-light: 1px solid rgba(0, 0, 0, 0.1);
  --border-medium: 1px solid rgba(0, 0, 0, 0.14);
  --border-accent: 1px solid rgba(0, 87, 184, 0.25);
  --border-accent-strong: 2px solid var(--color-blue);

  /* ---- Typography ---- */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes — fluid scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-md: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

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

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  --tracking-caps: 0.15em;

  /* ---- Spacing (8px base) ---- */
  --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 */
  --space-32: 8rem;      /* 128px */

  /* Section vertical padding */
  --section-padding: clamp(4rem, 6vw, 7rem);

  /* ---- Layout ---- */
  --max-width: 1280px;
  --max-width-narrow: 900px;
  --max-width-wide: 1440px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --grid-gap: clamp(1.25rem, 2vw, 2rem);

  /* ---- Breakpoints (for reference, used in media queries) ---- */
  /* --bp-mobile: 480px */
  /* --bp-tablet: 768px */
  /* --bp-desktop: 1024px */
  /* --bp-wide: 1280px */

  /* ---- Effects ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 24px rgba(0, 87, 184, 0.1);
  --shadow-glow-strong: 0 8px 40px rgba(0, 87, 184, 0.15);

  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
  --blur-xl: blur(24px);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-backdrop: blur(12px) saturate(150%);

  /* ---- Transitions ---- */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-Index Scale ---- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* ---- Header ---- */
  --header-height: 80px;
  --header-height-scrolled: 64px;
}
