/* ============================================================
   FutureX Design Tokens
   Single source of truth for color, type, spacing, radius.
   Components and pages consume these — never hard-code values.
   ============================================================ */

:root {
    /* ----- Color: Light Surface ----- */
    --fx-bg: #ffffff;
    --fx-bg-elevated: #f8f9fb;
    --fx-bg-subtle: #f1f3f7;
    --fx-bg-emphasis: #e9ebf0;

    /* ----- Color: Dark Surface (Hero/Header) ----- */
    --fx-canvas: #0a0e1a;
    --fx-canvas-2: #131825;
    --fx-canvas-3: #1c2236;
    --fx-canvas-4: #020617;

    /* ----- Color: Text ----- */
    --fx-text: #0a0e1a;
    --fx-text-muted: #6b7280;
    --fx-text-subtle: #9ca3af;
    --fx-text-inverse: #ffffff;
    --fx-text-inverse-muted: rgba(255, 255, 255, 0.75);
    --fx-text-inverse-subtle: rgba(255, 255, 255, 0.55);

    /* ----- Color: Brand ----- */
    --fx-primary: #f97316;
    --fx-primary-hover: #ea580c;
    --fx-primary-active: #c2410c;
    --fx-primary-soft: rgba(249, 115, 22, 0.1);

    --fx-accent: #d90429;
    --fx-accent-hover: #b90322;
    --fx-accent-soft: rgba(217, 4, 41, 0.1);

    --fx-highlight: #fbbf24;
    --fx-highlight-soft: rgba(251, 191, 36, 0.15);

    /* ----- Color: State ----- */
    --fx-success: #10b981;
    --fx-success-bg: #d1fae5;
    --fx-success-soft: rgba(16, 185, 129, 0.1);

    --fx-warning: #f59e0b;
    --fx-warning-soft: rgba(245, 158, 11, 0.1);

    --fx-danger: #ef4444;
    --fx-danger-soft: rgba(239, 68, 68, 0.1);

    /* ----- Color: Border ----- */
    --fx-border: #e5e7eb;
    --fx-border-strong: #d1d5db;
    --fx-border-dark: rgba(255, 255, 255, 0.08);
    --fx-border-dark-strong: rgba(255, 255, 255, 0.16);

    /* ----- Color: Shadow ----- */
    --fx-shadow-color: 220 25% 25%;
    --fx-shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.06);
    --fx-shadow-md: 0 4px 12px rgba(10, 14, 26, 0.08);
    --fx-shadow-lg: 0 12px 32px rgba(10, 14, 26, 0.10);
    --fx-shadow-xl: 0 24px 60px rgba(10, 14, 26, 0.14);
    --fx-shadow-glow-primary: 0 12px 40px rgba(249, 115, 22, 0.25);
    --fx-shadow-glow-accent: 0 12px 40px rgba(217, 4, 41, 0.20);
    --fx-shadow-glow-dark: 0 30px 60px rgba(0, 0, 0, 0.4);

    /* ----- Typography ----- */
    --fx-font-display: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fx-font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fx-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

    /* Modular type scale (~1.25) */
    --fx-text-xs: 0.75rem;     /* 12 */
    --fx-text-sm: 0.875rem;    /* 14 */
    --fx-text-base: 1rem;      /* 16 */
    --fx-text-lg: 1.125rem;    /* 18 */
    --fx-text-xl: 1.25rem;     /* 20 */
    --fx-text-2xl: 1.5rem;     /* 24 */
    --fx-text-3xl: 2rem;        /* 32 */
    --fx-text-4xl: 2.75rem;     /* 44 */
    --fx-text-5xl: 3.5rem;      /* 56 */
    --fx-text-6xl: 4.5rem;      /* 72 */

    --fx-leading-tight: 1.05;
    --fx-leading-snug: 1.2;
    --fx-leading-normal: 1.5;
    --fx-leading-relaxed: 1.65;

    --fx-tracking-tighter: -0.04em;
    --fx-tracking-tight: -0.02em;
    --fx-tracking-normal: 0;
    --fx-tracking-wide: 0.05em;
    --fx-tracking-wider: 0.1em;

    /* ----- Spacing (4px base) ----- */
    --fx-space-1: 0.25rem;   /* 4 */
    --fx-space-2: 0.5rem;    /* 8 */
    --fx-space-3: 0.75rem;   /* 12 */
    --fx-space-4: 1rem;      /* 16 */
    --fx-space-5: 1.25rem;   /* 20 */
    --fx-space-6: 1.5rem;    /* 24 */
    --fx-space-8: 2rem;      /* 32 */
    --fx-space-10: 2.5rem;   /* 40 */
    --fx-space-12: 3rem;     /* 48 */
    --fx-space-16: 4rem;     /* 64 */
    --fx-space-20: 5rem;     /* 80 */
    --fx-space-24: 6rem;     /* 96 */
    --fx-space-30: 7.5rem;   /* 120 */

    /* ----- Radius ----- */
    --fx-radius-sm: 6px;
    --fx-radius-md: 10px;
    --fx-radius-lg: 14px;
    --fx-radius-xl: 20px;
    --fx-radius-2xl: 28px;
    --fx-radius-pill: 999px;

    /* ----- Container ----- */
    --fx-container-max: 1240px;
    --fx-container-padding: 24px;

    /* ----- Animation ----- */
    --fx-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fx-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --fx-ease-in: cubic-bezier(0.4, 0, 1, 1);
    --fx-duration-fast: 0.15s;
    --fx-duration-base: 0.25s;
    --fx-duration-slow: 0.4s;

    /* ----- Layers ----- */
    --fx-z-base: 1;
    --fx-z-dropdown: 100;
    --fx-z-sticky: 200;
    --fx-z-overlay: 900;
    --fx-z-modal: 1000;
    --fx-z-toast: 1100;
}