/* ============================================
   BRIGHTPATH ASCEND GROUP — Unified Design System
   Canonical Token File — Synced to all 6 properties
   ============================================ */

/* ========== LAYER 1: PRIMITIVES ========== */
:root {
    /* Core Darks */
    --color-obsidian: #0a0a0b;
    --color-carbon: #111113;
    --color-graphite: #18181b;
    --color-slate: #27272a;
    --color-zinc: #3f3f46;
    --color-silver: #9ca3af;
    --color-pearl: #d1d5db;
    --color-snow: #fafafa;

    /* Division Accents */
    --color-personal: #0d9488;
    --color-business: #3b82f6;
    --color-capital: #f59e0b;

    /* Status Colors */
    --color-success: #22c55e;
    --color-success-dim: rgba(34, 197, 94, 0.15);
    --color-warning: #eab308;
    --color-warning-dim: rgba(234, 179, 8, 0.15);
    --color-danger: #ef4444;
    --color-danger-dim: rgba(239, 68, 68, 0.15);
    --color-info: #3b82f6;
    --color-info-dim: rgba(59, 130, 246, 0.15);

    /* ========== LAYER 2: SEMANTICS (Dark Default) ========== */

    /* Accent — overridden by data-division */
    --accent: var(--color-personal);
    --accent-dim: rgba(13, 148, 136, 0.15);

    /* Backgrounds */
    --bg-primary: var(--color-obsidian);
    --bg-secondary: var(--color-carbon);
    --bg-tertiary: var(--color-graphite);
    --bg-elevated: var(--color-slate);

    /* Text */
    --text-primary: var(--color-snow);
    --text-secondary: var(--color-pearl);
    --text-muted: var(--color-silver);

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-focus: var(--accent);

    /* Surfaces */
    --card-bg: var(--color-carbon);
    --card-border: rgba(255, 255, 255, 0.06);

    --input-bg: var(--color-obsidian);
    --input-border: var(--color-zinc);
    --input-text: var(--color-snow);
    --input-placeholder: var(--color-silver);
    --input-focus-ring: rgba(13, 148, 136, 0.25);

    --table-header-bg: var(--color-graphite);
    --table-row-hover: var(--color-graphite);
    --table-border: rgba(255, 255, 255, 0.06);

    --modal-bg: var(--color-carbon);
    --overlay: rgba(0, 0, 0, 0.7);

    /* Sidebar */
    --sidebar-bg: var(--color-obsidian);
    --sidebar-text: #e2e8f0;
    --sidebar-text-muted: #94a3b8;
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --sidebar-hover: rgba(255, 255, 255, 0.06);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.15);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-obsidian) 0%, var(--color-graphite) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 80%, black) 100%);

    /* ========== LAYER 3: TYPOGRAPHY ========== */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;
    --text-9xl: 8rem;
    --text-hero: clamp(4rem, 12vw, 10rem);

    --weight-thin: 100;
    --weight-extralight: 200;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;

    --tracking-tighter: -0.04em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* ========== LAYER 3: SPACING ========== */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    --space-48: 12rem;
    --space-64: 16rem;

    /* ========== LAYER 3: LAYOUT ========== */
    --container-max: 1400px;
    --container-tight: 900px;
    --container-narrow: 800px;
    --container-text: 700px;

    /* ========== LAYER 3: EFFECTS ========== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --duration-instant: 100ms;
    --duration-fast: 200ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    --z-base: 1;
    --z-nav: 100;
    --z-modal: 200;

    /* Marketing site aliases (maps variables.css names to canonical tokens) */
    --color-text-primary: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-text-muted: var(--text-muted);
    --color-accent: var(--accent);
    --color-accent-dim: var(--accent-dim);
    --color-white: #ffffff;
    --color-border: var(--border);
    --color-border-hover: var(--border-hover);
    --shadow-subtle: var(--shadow-sm);
    --shadow-elevated: var(--shadow-md);
}

/* ========== LIGHT MODE ========== */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-elevated: #ffffff;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    --border: #e5e7eb;
    --border-hover: #d1d5db;
    --border-focus: var(--accent);

    --card-bg: #ffffff;
    --card-border: #e5e7eb;

    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --input-text: #111827;
    --input-placeholder: #9ca3af;
    --input-focus-ring: rgba(13, 148, 136, 0.2);

    --table-header-bg: #f9fafb;
    --table-row-hover: #f3f4f6;
    --table-border: #e5e7eb;

    --modal-bg: #ffffff;
    --overlay: rgba(0, 0, 0, 0.5);

    --sidebar-bg: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    --sidebar-text: #e2e8f0;
    --sidebar-text-muted: #94a3b8;
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --sidebar-hover: rgba(255, 255, 255, 0.05);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.1);

    --gradient-hero: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%);
}

/* ========== DIVISION OVERRIDES ========== */
[data-division="personal"] {
    --accent: #0d9488;
    --accent-dim: rgba(13, 148, 136, 0.15);
    --input-focus-ring: rgba(13, 148, 136, 0.25);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.15);
}

[data-division="business"] {
    --accent: #3b82f6;
    --accent-dim: rgba(59, 130, 246, 0.15);
    --input-focus-ring: rgba(59, 130, 246, 0.25);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
}

[data-division="capital"] {
    --accent: #f59e0b;
    --accent-dim: rgba(245, 158, 11, 0.15);
    --input-focus-ring: rgba(245, 158, 11, 0.25);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);
}
