/* ========================================
   COMMVIO — Design System Tokens
   All CSS custom properties
   ======================================== */

:root {
    /* ── Colors ── */

    /* Neutrals */
    --color-white: #ffffff;
    --color-off-white: #fafafa;
    --color-surface: #f5f5f7;
    --color-surface-alt: #eeeff1;
    --color-border: #e2e3e7;
    --color-border-light: #ececee;
    --color-muted: #8e8e93;
    --color-subtle: #6e6e73;
    --color-body: #48484a;
    --color-heading: #1d1d1f;
    --color-black: #0a0a0b;

    /* Accent — Electric Blue */
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: #eff6ff;
    --color-accent-muted: #93b4f6;

    /* Accent Alt — Violet */
    --color-violet: #7c3aed;
    --color-violet-light: #f3f0ff;

    /* Status */
    --color-success: #16a34a;
    --color-success-bg: #f0fdf4;
    --color-error: #dc2626;
    --color-error-bg: #fef2f2;

    /* ── Typography ── */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

    /* Type Scale (mobile-first, rem-based) */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-md: 1.125rem;
    /* 18px */
    --text-lg: 1.25rem;
    /* 20px */
    --text-xl: 1.5rem;
    /* 24px */
    --text-2xl: 2rem;
    /* 32px */
    --text-3xl: 2.5rem;
    /* 40px */
    --text-4xl: 3rem;
    /* 48px */
    --text-5xl: 3.75rem;
    /* 60px */
    --text-6xl: 4.5rem;
    /* 72px */
    --text-hero: clamp(2.5rem, 5vw + 1rem, 5rem);

    /* Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Font Weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Letter Spacing */
    --tracking-tighter: -0.04em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;

    /* ── Spacing Scale ── */
    --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 */
    --space-40: 10rem;
    /* 160px */

    /* Section Spacing (cinematic breathing) */
    --section-gap: clamp(5rem, 10vw, 10rem);
    --section-gap-sm: clamp(3rem, 6vw, 6rem);

    /* ── Layout ── */
    --container-max: 1600px; /* Expanded for a wider global layout */
    --container-narrow: 860px;
    --container-wide: 1680px; /* Pushed edge-to-edge on large screens */
    --container-pad: clamp(1.25rem, 4vw, 3rem);

    /* ── Borders & Radius ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-3xl: 40px;
    --radius-4xl: 48px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);

    /* ── Transitions ── */
    --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);

    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-reveal: 800ms;

    /* ── Z-Index ── */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 500;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-toast: 1100;
}