:root {
  /* Colors - Dark Theme (Default) */
  --bg-primary: #090909;
  --bg-primary-rgb: 9, 9, 9;
  --bg-secondary: #121212;
  --bg-secondary-rgb: 18, 18, 18;
  --bg-tertiary: #181b20;

  --accent-orange: #f57c00;
  --accent-orange-rgb: 245, 124, 0;
  --accent-orange-hover: #e65100;
  --accent-orange-glow: rgba(245, 124, 0, 0.45);

  --steel-gray: #7b8a99;
  --steel-gray-rgb: 123, 138, 153;
  --steel-gray-dark: #2c3539;
  --steel-gray-light: #b0c4de;

  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;

  /* Glassmorphism & Surface Tokens */
  --glass-bg: rgba(14, 16, 20, 0.78);
  --glass-bg-card: linear-gradient(
    145deg,
    rgba(24, 27, 33, 0.85) 0%,
    rgba(13, 15, 18, 0.9) 100%
  );
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(245, 124, 0, 0.4);
  --glass-border-accent: rgba(245, 124, 0, 0.25);
  --glass-shadow: rgba(0, 0, 0, 0.6);
  --glass-shadow-hover:
    0 16px 36px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 124, 0, 0.12);

  --header-shrink-bg: rgba(9, 9, 9, 0.96);
  --header-shrink-border: rgba(255, 255, 255, 0.08);
  --card-bg: #121212;
  --card-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.12);
  --toggle-btn-bg: rgba(255, 255, 255, 0.08);
  --toggle-btn-border: rgba(255, 255, 255, 0.18);
  --toggle-btn-color: #ffffff;

  /* ECC Homepage Tokens */
  --eccAccent: #f57c00;
  --eccAccentHover: #ff9100;
  --eccDark: #090909;
  --eccDarker: #050505;
  --eccBlue: #121212;
  --eccCardBg: #121212;
  --eccBorder: rgba(255, 255, 255, 0.12);
  --eccTextMuted: #8fa5be;
}

/* =============================================================
   PREMIUM LIGHT THEME SYSTEM
   Ultra-refined architectural porcelain, deep slate text & warm orange
   ============================================================= */
[data-theme="light"] {
  /* Colors - Light Theme */
  --bg-primary: #f8fafc;
  --bg-primary-rgb: 248, 250, 252;
  --bg-secondary: #ffffff;
  --bg-secondary-rgb: 255, 255, 255;
  --bg-tertiary: #f1f5f9;

  --accent-orange: #ea580c;
  --accent-orange-rgb: 234, 88, 12;
  --accent-orange-hover: #c2410c;
  --accent-orange-glow: rgba(234, 88, 12, 0.25);

  --steel-gray: #64748b;
  --steel-gray-rgb: 100, 116, 139;
  --steel-gray-dark: #e2e8f0;
  --steel-gray-light: #334155;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Glassmorphism & Surface Tokens */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-bg-card: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.95) 100%
  );
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(234, 88, 12, 0.45);
  --glass-border-accent: rgba(234, 88, 12, 0.28);
  --glass-shadow: rgba(15, 23, 42, 0.06);
  --glass-shadow-hover:
    0 20px 38px rgba(15, 23, 42, 0.08), 0 0 20px rgba(234, 88, 12, 0.12);

  --header-shrink-bg: rgba(255, 255, 255, 0.98);
  --header-shrink-border: rgba(15, 23, 42, 0.08);
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.08);
  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.14);
  --toggle-btn-bg: rgba(15, 23, 42, 0.06);
  --toggle-btn-border: rgba(15, 23, 42, 0.15);
  --toggle-btn-color: #0f172a;

  /* ECC Homepage Tokens in Light Mode */
  --eccAccent: #ea580c;
  --eccAccentHover: #c2410c;
  --eccDark: #f8fafc;
  --eccDarker: #f1f5f9;
  --eccBlue: #ffffff;
  --eccCardBg: #ffffff;
  --eccBorder: rgba(15, 23, 42, 0.08);
  --eccTextMuted: #64748b;
}

:root {
  /* Typography Fonts */
  --font-headings:
    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display:
    "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

  /* Typography Sizes (Fluid using clamp) */
  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.25vw, 0.95rem);
  --text-base: clamp(0.92rem, 0.88rem + 0.3vw, 1.05rem);
  --text-lg: clamp(1.08rem, 1.02rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.6vw, 1.95rem);
  --text-3xl: clamp(1.95rem, 1.75rem + 0.9vw, 2.75rem);
  --text-4xl: clamp(2.6rem, 2.3rem + 1.2vw, 3.8rem);
  --text-display: clamp(3.8rem, 3.2rem + 2vw, 6rem);

  /* Layout Spacing (Clean, professional corporate proportions) */
  --space-xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.4rem);
  --space-sm: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-md: clamp(0.9rem, 0.8rem + 0.4vw, 1.25rem);
  --space-lg: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
  --space-xl: clamp(2.2rem, 1.8rem + 1.5vw, 3.2rem);

  /* Miscellaneous */
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  --z-index-back: -10;
  --z-index-hud: 10;
  --z-index-base: 20;
  --z-index-floating: 50;
  --z-index-nav: 1100;
  --z-index-modal: 200;
  --z-index-loader: 250;
}
