/* ==========================================================================
   Komaki Roy EV - Global Variables (Premium Dark Theme)
   ========================================================================== */

:root {
  /* --- Core Brand Colors --- */
  --clr-primary: #f36422; /* Komaki Orange */
  --clr-primary-hover: #ff7b3c;
  --clr-primary-glow: rgba(243, 100, 34, 0.4);

  --clr-bg-base: #000000; /* Deep Black */
  --clr-bg-surface: #0a0a0a; /* Slightly elevated surface */
  --clr-bg-surface-light: #141414;
  --clr-bg-glass: rgba(0, 0, 0, 0.65); /* Glassmorphism base */

  /* --- Typography Colors --- */
  --clr-text-main: #ffffff;
  --clr-text-muted: #a1a1aa;
  --clr-text-inverse: #000000;

  /* --- UI Elements --- */
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-border-hover: rgba(255, 255, 255, 0.15);
  --clr-selection-bg: var(--clr-primary);
  --clr-selection-text: #ffffff;

  /* --- Fluid Typography (Scales automatically between 320px and 1280px) --- */
  --fs-xs: clamp(0.75rem, 0.71rem + 0.18vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.84rem + 0.18vw, 1rem);
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.36vw, 1.375rem);
  --fs-xl: clamp(1.25rem, 1.11rem + 0.71vw, 1.75rem);
  --fs-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.375rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --fs-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);

  /* --- Fluid Spacing --- */
  --space-xs: clamp(0.5rem, 0.43rem + 0.36vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.64rem + 0.54vw, 1.125rem);
  --space-md: clamp(1.125rem, 0.95rem + 0.89vw, 1.75rem);
  --space-lg: clamp(1.75rem, 1.46rem + 1.43vw, 2.75rem);
  --space-xl: clamp(2.75rem, 2.32rem + 2.14vw, 4.25rem);
  --space-2xl: clamp(4rem, 3.2rem + 3.5vw, 6rem);

  /* --- Layout Constraints --- */
  --container-max: 1280px;

  /* --- Border Radius --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* --- Smooth Transitions --- */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-Index Layers --- */
  --z-negative: -1;
  --z-normal: 1;
  --z-sticky: 100;
  --z-glass-header: 1000;
  --z-floating-widget: 9999;
}
