/**
 * ZIMA Fleet Ops - Design System v2.1
 * Professional B2B SaaS Landing Page
 *
 * BRAND PHILOSOPHY:
 * - Минимализм и геометрия
 * - Профессионализм и надёжность
 * - Технологичность и инновации
 *
 * COLOR POLICY (ZIMA Brand Guidelines):
 * - ZIMA Blue (#00A0E9) - основной акцент, CTA кнопки
 * - Dark Navy (#0A1628) - глубокий фон
 * - Emerald (#27AE60) - позитивные метрики
 * - Warning Orange (#DD6B20) - проблемы, предупреждения
 * - White (#FFFFFF) - светлые элементы
 *
 * CRITICAL: NO RED COLORS - use orange for warnings
 */

:root {
  /* ==========================================
   * PRIMARY COLORS - ZIMA Brand (Updated)
   * ========================================== */

  /* ZIMA Blue - основной брендовый (используется везде) */
  --color-zima-blue: #00A0E9;
  --color-zima-blue-dark: #0088CC;
  --color-zima-blue-light: #5ABEE6;
  --color-zima-blue-rgb: 0, 160, 233;

  /* Primary (alias для ZIMA Blue) */
  --color-primary: #00A0E9;
  --color-primary-dark: #0088CC;
  --color-primary-light: #5ABEE6;

  /* Electric Blue - ТОЖЕ ZIMA Blue (для совместимости) */
  --color-electric: #00A0E9;
  --color-electric-dark: #0088CC;
  --color-electric-light: #5ABEE6;

  /* Dark Navy - глубокий фон */
  --color-navy: #0A1628;
  --color-navy-light: #1A2744;
  --color-navy-lighter: #2A3754;

  /* ==========================================
   * SEMANTIC COLORS
   * ========================================== */

  /* Success/Economy - зелёный */
  --color-success: #27AE60;
  --color-success-dark: #219653;
  --color-success-bg: #E8F5E9;
  --color-success-rgb: 39, 174, 96;

  /* Warning/Attention - оранжевый (NO RED - B2B friendly) */
  --color-warning: #DD6B20;
  --color-warning-bg: #FEF3E6;
  --color-warning-rgb: 221, 107, 32;

  /* Info - синий */
  --color-info: #00AEEF;
  --color-info-bg: #E6F7FF;

  /* ==========================================
   * NEUTRAL COLORS
   * ========================================== */

  /* Text */
  --color-text: #1E293B;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --color-text-inverse: #FFFFFF;

  /* Aliases for base.css */
  --color-text-primary: #1E293B;
  --color-error: #DD6B20;

  /* Background */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-blue: #EFF6FF;
  --color-bg-navy: #0A1628;
  --color-bg-gradient: linear-gradient(135deg, #0A1628 0%, #1A2744 100%);

  /* Aliases for base.css */
  --color-bg-tertiary: #F1F5F9;
  --color-bg-dark: #0A1628;
  --color-warning-light: rgba(221, 107, 32, 0.1);

  /* Borders */
  --color-border: #E2E8F0;
  --color-border-dark: #CBD5E0;
  --color-border-blue: rgba(0, 174, 239, 0.3);

  /* Aliases for base.css */
  --border-width: 1px;
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-full: 9999px;
  --color-border-light: #E2E8F0;
  --color-border-default: #CBD5E0;

  /* ==========================================
   * TYPOGRAPHY - Montserrat
   * ========================================== */

  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', var(--font-primary);
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'Consolas', 'Monaco', monospace;

  /* Font sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Aliases for base.css compatibility */
  --font-size-body: 1rem;
  --font-size-body-sm: 0.875rem;
  --font-size-body-lg: 1.125rem;
  --font-size-body-xs: 0.75rem;
  --font-size-h1: 3rem;
  --font-size-h2: 2.25rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-h5: 1.125rem;
  --font-size-h6: 1rem;

  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Aliases for base.css */
  --font-weight-regular: 400;
  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Aliases for base.css */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  /* Letter spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Aliases for base.css */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;

  /* ==========================================
   * SPACING - 8pt Grid
   * ========================================== */

  --space-0: 0;
  --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 */

  /* Aliases for layouts */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);
  --space-3xl: var(--space-16);
  --space-section: var(--space-20);
  --space-section-sm: var(--space-12);

  /* Grid gaps */
  --grid-gap-sm: var(--space-4);
  --grid-gap: var(--space-6);
  --grid-gap-lg: var(--space-8);

  /* Background colors aliases */
  --color-bg-primary: var(--color-bg);
  --color-bg-secondary: var(--color-bg-alt);

  /* ==========================================
   * BORDERS & SHADOWS
   * ========================================== */

  /* Border radius */
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius: 0.5rem;       /* 8px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-2xl: 2rem;     /* 32px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Colored shadows */
  --shadow-blue: 0 4px 20px rgba(0, 174, 239, 0.15);
  --shadow-blue-lg: 0 8px 30px rgba(0, 174, 239, 0.25);
  --shadow-electric: 0 4px 20px rgba(0, 102, 255, 0.2);
  --shadow-success: 0 4px 20px rgba(0, 200, 83, 0.15);

  /* ==========================================
   * ANIMATIONS
   * ========================================== */

  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;

  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --transition-fast: var(--duration-150) var(--ease-out);
  --transition: var(--duration-200) var(--ease-out);
  --transition-slow: var(--duration-300) var(--ease-out);

  /* ==========================================
   * LAYOUT
   * ========================================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;
  --container: var(--container-xl);

  --header-height: 72px;
  --container-padding: var(--space-6);

  /* ==========================================
   * Z-INDEX
   * ========================================== */

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ==========================================
 * RESPONSIVE VARIABLES
 * ========================================== */

@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
    --text-7xl: 3.5rem;
    --space-20: 4rem;
    --space-24: 5rem;
    --space-32: 6rem;
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 1.875rem;
    --text-5xl: 2.25rem;
    --text-6xl: 2.5rem;
    --text-7xl: 3rem;
    --space-20: 3rem;
    --space-24: 4rem;
    --space-32: 5rem;
    --header-height: 64px;
    --container-padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  :root {
    --text-3xl: 1.5rem;
    --text-4xl: 1.75rem;
    --text-5xl: 2rem;
    --text-6xl: 2.25rem;
    --space-16: 3rem;
    --space-20: 2.5rem;
  }
}
