/* ==========================================================================
   ZIRA Design System - CSS Variables
   The First Continuous Coordination Field
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* === Color Palette === */
    
    /* Primary Brand Colors */
    --color-primary: #3B82F6;
    --color-primary-light: #60A5FA;
    --color-primary-dark: #2563EB;
    --color-primary-glow: rgba(59, 130, 246, 0.4);
    
    /* Secondary Colors */
    --color-secondary: #8B5CF6;
    --color-secondary-light: #A78BFA;
    --color-secondary-dark: #7C3AED;
    
    /* Accent Colors */
    --color-accent: #06B6D4;
    --color-accent-light: #22D3EE;
    --color-accent-dark: #0891B2;
    
    /* Gold (Class A) */
    --color-gold: #F59E0B;
    --color-gold-light: #FBBF24;
    --color-gold-dark: #D97706;
    --color-gold-glow: rgba(245, 158, 11, 0.4);
    
    /* Amber (Class B) */
    --color-amber: #F97316;
    --color-amber-light: #FB923C;
    --color-amber-dark: #EA580C;
    
    /* Teal (Class C) */
    --color-teal: #14B8A6;
    --color-teal-light: #2DD4BF;
    --color-teal-dark: #0D9488;
    
    /* Emerald (Class D) */
    --color-emerald: #10B981;
    --color-emerald-light: #34D399;
    --color-emerald-dark: #059669;
    
    /* Blue (Class E) */
    --color-blue: #3B82F6;
    --color-blue-light: #60A5FA;
    --color-blue-dark: #2563EB;
    
    /* Silver (Class F) */
    --color-silver: #94A3B8;
    --color-silver-light: #CBD5E1;
    --color-silver-dark: #64748B;
    
    /* Neutral Colors */
    --color-bg-primary: #030712;
    --color-bg-secondary: #0A0F1C;
    --color-bg-tertiary: #111827;
    --color-bg-card: rgba(17, 24, 39, 0.7);
    --color-bg-card-hover: rgba(17, 24, 39, 0.9);
    
    --color-text-primary: #F8FAFC;
    --color-text-secondary: #94A3B8;
    --color-text-tertiary: #64748B;
    --color-text-muted: #475569;
    
    /* Border Colors */
    --color-border: rgba(148, 163, 184, 0.1);
    --color-border-light: rgba(148, 163, 184, 0.15);
    --color-border-hover: rgba(148, 163, 184, 0.25);
    --color-border-glow: rgba(59, 130, 246, 0.3);
    
    /* Status Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    
    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-amber) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    --gradient-dark: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.4) 100%);
    --gradient-glow: radial-gradient(ellipse at center, var(--color-primary-glow) 0%, transparent 70%);
    
    /* === Typography === */
    
    /* Font Families */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, monospace;
    
    /* Font Sizes */
    --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;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* === Spacing Scale === */
    
    --space-0: 0;
    --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-56: 14rem;
    --space-64: 16rem;
    
    /* === Layout === */
    
    /* Container Widths */
    --container-xs: 20rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --container-lg: 32rem;
    --container-xl: 36rem;
    --container-2xl: 42rem;
    --container-3xl: 48rem;
    --container-4xl: 56rem;
    --container-5xl: 64rem;
    --container-6xl: 72rem;
    --container-7xl: 80rem;
    --container-full: 100%;
    
    /* Z-Index Scale */
    --z-base: 0;
    --z-raised: 10;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    
    /* === Borders & Radii === */
    
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Border Widths */
    --border-width-thin: 1px;
    --border-width-medium: 2px;
    --border-width-thick: 4px;
    
    /* === Shadows === */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px var(--color-primary-glow);
    --shadow-glow-strong: 0 0 40px var(--color-primary-glow), 0 0 80px var(--color-primary-glow);
    --shadow-gold-glow: 0 0 20px var(--color-gold-glow);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    
    /* === Transitions === */
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;
    --transition-slowest: 700ms ease;
    
    /* Easing Functions */
    --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);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* === Animation Durations === */
    
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 750ms;
    --duration-slowest: 1000ms;
    --duration-infinite: infinite;
    
    /* === Focus States === */
    
    --focus-ring: 0 0 0 3px var(--color-primary-glow);
    --focus-ring-offset: 0 0 0 3px var(--color-bg-primary), 0 0 0 6px var(--color-primary-glow);
    
    /* === Component Specific === */
    
    /* Header */
    --header-height: 5rem;
    --header-bg: rgba(3, 7, 18, 0.8);
    --header-backdrop: blur(20px);
    
    /* Hero */
    --hero-height: 100vh;
    --hero-min-height: 80vh;
    --hero-orb-size: 600px;
    --hero-field-opacity: 0.6;
    
    /* Cards */
    --card-padding: var(--space-6);
    --card-border-radius: var(--radius-xl);
    --card-bg: var(--color-bg-card);
    --card-border: var(--color-border);
    
    /* Buttons */
    --btn-height-sm: 2rem;
    --btn-height-md: 2.5rem;
    --btn-height-lg: 3rem;
    --btn-height-xl: 3.5rem;
    --btn-padding-x: var(--space-4);
    
    /* Form Elements */
    --input-height: 3rem;
    --input-padding: var(--space-3) var(--space-4);
    --input-border-radius: var(--radius-lg);
    
    /* Section Spacing */
    --section-padding-y: var(--space-24);
    --section-padding-x: var(--space-6);
    
    /* Grid */
    --grid-gap: var(--space-6);
    --grid-columns: 12;
}

/* --------------------------------------------------------------------------
   Dark Mode Overrides (already dark by default)
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: light) {
    :root {
        /* ZIRA is designed for dark mode, no changes needed */
    }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
        --transition-slower: 0ms;
        --transition-slowest: 0ms;
        
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
        --duration-slower: 0ms;
        --duration-slowest: 0ms;
    }
}

/* --------------------------------------------------------------------------
   Screen Reader Only
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
