/* =============================================================================
   Design Tokens — "Spice Lab" Palette
   -----------------------------------------------------------------------------
   Single source of truth for color, type, spacing, radius, motion, and effects.
   Mirrors docs/DESIGN_SYSTEM.md. Loaded BEFORE every other stylesheet.
   ========================================================================== */

:root {
    /* Brand --------------------------------------------------------------- */
    --color-primary: #ff6a3d;
    --color-primary-hover: #f0532e;
    --color-primary-soft: #ffd9c7;
    --color-primary-muted: #ffb59c;
    --color-accent-tint: #ffe4d6;
    --color-secondary: #14b8a6;
    --color-secondary-hover: #0d9488;
    --color-secondary-soft: #ccfbf1;
    --color-tertiary: #7c3aed;
    --color-tertiary-soft: #ede9fe;
    --color-link: #0ea5e9;

    /* Status -------------------------------------------------------------- */
    --color-success: #10b981;
    --color-success-soft: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-strong: #b45309;
    --color-warning-soft: #fef3c7;
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    --color-danger-soft: #fee2e2;

    /* Neutrals ------------------------------------------------------------ */
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-subtle: #9ca3af;
    --color-text-disabled: #d1d5db;
    --color-border: #e5e7eb;
    --color-border-soft: #f3f4f6;
    --color-surface: #ffffff;
    --color-surface-alt: #faf9f6;
    --color-bg: #f5f3ee;
    --color-on-primary: #ffffff;
    --color-black: #0b0f19;

    /* Subtle wash + info tints */
    --color-info-soft: #bae6fd;
    --color-primary-wash: #ffebdc;

    /* Glass surfaces (auth screens, modals) ------------------------------- */
    --color-glass-surface: rgba(255, 255, 255, 0.92);
    --color-glass-border: rgba(255, 255, 255, 0.5);
    --color-overlay-scrim: rgba(11, 15, 25, 0.45);
    --color-overlay-veil: rgba(0, 0, 0, 0.35);

    /* Gradients ----------------------------------------------------------- */
    --gradient-primary: linear-gradient(135deg, #ff6a3d 0%, #ff9b6e 100%);
    --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #67e8d5 100%);
    --gradient-tertiary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%);
    --gradient-warm: linear-gradient(135deg, #ff6a3d 0%, #f59e0b 100%);
    --gradient-cool: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
    --gradient-hero: linear-gradient(135deg, #ff6a3d 0%, #7c3aed 100%);
    --gradient-aurora: linear-gradient(135deg, #ff6a3d 0%, #f472b6 35%, #7c3aed 70%, #0ea5e9 100%);

    /* Typography ---------------------------------------------------------- */
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Josefin Sans', 'Nunito', sans-serif;
    --font-mono: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 17px;
    --font-size-xl: 20px;
    --font-size-2xl: 23px;
    --font-size-3xl: 28px;
    --font-size-4xl: 32px;
    --font-size-display: 36px;
    --font-size-hero: 42px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 600;
    --line-height-tight: 1.2;
    --line-height-base: 1.5;

    /* Radius -------------------------------------------------------------- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --radius-circle: 50%;

    /* Spacing ------------------------------------------------------------- */
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 22px;
    --space-xl: 36px;
    --space-2xl: 56px;
    --nav-width: 96px;

    /* Shadows ------------------------------------------------------------- */
    --shadow-nav: 10px 0 32px rgba(31, 41, 55, 0.06);
    --shadow-card: 0 8px 24px rgba(31, 41, 55, 0.06);
    --shadow-card-hover: 0 16px 40px rgba(31, 41, 55, 0.12);
    --shadow-modal: 0 24px 64px rgba(31, 41, 55, 0.24);
    --shadow-focus: 0 0 0 3px rgba(255, 106, 61, 0.3);
    --shadow-glow-primary: 0 12px 32px rgba(255, 106, 61, 0.35);
    --shadow-glow-primary-strong: 0 16px 36px rgba(255, 106, 61, 0.5);
    --shadow-glow-secondary: 0 12px 32px rgba(20, 184, 166, 0.3);
    --shadow-glow-secondary-strong: 0 16px 36px rgba(20, 184, 166, 0.5);
    --shadow-glow-tertiary: 0 12px 32px rgba(124, 58, 237, 0.3);

    /* Motion -------------------------------------------------------------- */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 120ms;
    --duration-base: 220ms;
    --duration-slow: 360ms;
}

/* Respect user preference for reduced motion -------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
