/* ==========================================================================
   CLICK ENTREGAS — Design System Tokens (Premium Organic)
   ========================================================================== */

:root {
  /* --------------------------------------------------------------------------
     COLOR PALETTE — Organic Vibrant Palette
     -------------------------------------------------------------------------- */
  --color-brand-50: #fff4ed;
  --color-brand-100: #ffe8d0;
  --color-brand-200: #ffd1a1;
  --color-brand-300: #ffb067;
  --color-brand-400: #ff8a36;
  --color-brand-500: #ff6b00;      /* Primary — Vibrant Orange */
  --color-brand-600: #e85d00;
  --color-brand-700: #c44d00;
  --color-brand-800: #9d3d00;
  --color-brand-900: #7a3000;

  --color-brand-contrast: #ffffff;

  /* Accent Colors — Organic Complementary */
  --color-accent-500: #00d4aa;      /* Teal/Mint */
  --color-accent-600: #00b894;
  --color-accent-700: #009c7a;
  
  --color-accent-warm: #ff6b35;     /* Coral */
  --color-accent-cool: #00c9ff;     /* Sky Blue */

  /* --------------------------------------------------------------------------
     NEUTRALS — Deep & Sophisticated
     -------------------------------------------------------------------------- */
  --color-neutral-0: #ffffff;
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;
  --color-neutral-950: #0a0a0a;
  --color-neutral-975: #050505;

  /* --------------------------------------------------------------------------
     SEMANTIC COLORS — Mapped for Usage
     -------------------------------------------------------------------------- */
  /* Light Theme (Default) */
  --color-bg-primary: var(--color-neutral-0);
  --color-bg-secondary: var(--color-neutral-50);
  --color-bg-tertiary: var(--color-neutral-100);
  --color-bg-inverse: var(--color-neutral-950);
  --color-bg-brand: var(--color-brand-500);
  --color-bg-brand-hover: var(--color-brand-600);
  
  --color-text-primary: var(--color-neutral-950);
  --color-text-secondary: var(--color-neutral-700);
  --color-text-tertiary: var(--color-neutral-500);
  --color-text-inverse: var(--color-neutral-0);
  --color-text-brand: var(--color-brand-600);
  --color-text-link: var(--color-brand-600);

  --color-border-light: var(--color-neutral-200);
  --color-border-medium: var(--color-neutral-300);
  --color-border-dark: var(--color-neutral-400);
  --color-border-focus: var(--color-brand-500);

  --color-success-50: #f0fdf4;
  --color-success-500: #22c55e;
  --color-success-600: #16a34a;
  
  --color-warning-50: #fffbeb;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;

  --color-error-50: #fef2f2;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;

  --color-info-50: #eff6ff;
  --color-info-500: #3b82f6;
  --color-info-600: #2563eb;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-blur: blur(20px);

  /* --------------------------------------------------------------------------
     TYPOGRAPHY — Inter + Display
     -------------------------------------------------------------------------- */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */
  --font-size-7xl: 4.5rem;    /* 72px */
  --font-size-8xl: 6rem;      /* 96px */
  --font-size-9xl: 8rem;      /* 128px */

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --line-height-tight: 1.05;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;

  /* --------------------------------------------------------------------------
     SPACING — Generous Organic Scale
     -------------------------------------------------------------------------- */
  --space-0: 0;
  --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 */

  /* --------------------------------------------------------------------------
     BORDERS & RADIUS — Organic Rounded
     -------------------------------------------------------------------------- */
  --radius-none: 0;
  --radius-sm: 0.375rem;    /* 6px */
  --radius-md: 0.5rem;      /* 8px */
  --radius-lg: 0.75rem;     /* 12px */
  --radius-xl: 1rem;        /* 16px */
  --radius-2xl: 1.5rem;     /* 24px */
  --radius-3xl: 2rem;       /* 32px */
  --radius-4xl: 3rem;       /* 48px */
  --radius-full: 9999px;

  --border-width-thin: 1px;
  --border-width-medium: 2px;

  /* --------------------------------------------------------------------------
     SHADOWS — Soft Organic Depth
     -------------------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  
  --shadow-brand: 0 8px 30px rgba(255, 107, 0, 0.25);
  --shadow-accent: 0 8px 30px rgba(0, 212, 170, 0.25);
  --shadow-glow: 0 0 60px rgba(255, 107, 0, 0.15);
  
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glass-strong: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* --------------------------------------------------------------------------
     TRANSITIONS — Organic Motion
     -------------------------------------------------------------------------- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-elastic: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* --------------------------------------------------------------------------
     Z-INDEX
     -------------------------------------------------------------------------- */
  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-fixed: 300;
  --z-index-modal-backdrop: 400;
  --z-index-modal: 500;
  --z-index-popover: 600;
  --z-index-tooltip: 700;
  --z-index-toast: 800;
  --z-index-mesh-bg: -10;

  /* --------------------------------------------------------------------------
     BREAKPOINTS
     -------------------------------------------------------------------------- */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  /* --------------------------------------------------------------------------
     CONTAINER
     -------------------------------------------------------------------------- */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  --container-padding-lg: var(--space-8);

  /* --------------------------------------------------------------------------
     HEADER
     -------------------------------------------------------------------------- */
  --header-height: 4.5rem;     /* 72px */
  --header-height-sm: 4rem;    /* 64px mobile */
}

/* ==========================================================================
   DARK MODE — Premium Dark Theme
   ========================================================================== */
[data-theme="dark"] {
  --color-bg-primary: var(--color-neutral-975);
  --color-bg-secondary: var(--color-neutral-950);
  --color-bg-tertiary: var(--color-neutral-900);
  --color-bg-inverse: var(--color-neutral-0);

  --color-text-primary: var(--color-neutral-50);
  --color-text-secondary: var(--color-neutral-400);
  --color-text-tertiary: var(--color-neutral-500);
  --color-text-inverse: var(--color-neutral-950);
  --color-text-brand: var(--color-brand-400);
  --color-text-link: var(--color-brand-400);

  --color-border-light: var(--color-neutral-800);
  --color-border-medium: var(--color-neutral-700);
  --color-border-dark: var(--color-neutral-600);
  --color-border-focus: var(--color-brand-400);

  --glass-bg: rgba(0, 0, 0, 0.3);
  --glass-bg-strong: rgba(0, 0, 0, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  --shadow-brand: 0 8px 30px rgba(255, 107, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(255, 107, 0, 0.2);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
    --transition-spring: 0ms;
    --transition-elastic: 0ms;
  }
}