/* ============================================
   THE LOFT IT SOLUTIONS - DESIGN TOKENS
   Single source of truth for all design values
   ============================================ */

:root {
  /* ------------------------------------------
     COLORS
     ------------------------------------------ */
  /* Base */
  --color-bg-primary: #030712;
  --color-bg-secondary: #0f172a;
  --color-bg-tertiary: rgba(15, 23, 42, 0.7);
  --color-bg-glass: rgba(15, 23, 42, 0.65);
  --color-bg-glass-strong: rgba(15, 23, 42, 0.85);

  /* Text */
  --color-text-primary: #ffffff;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  /* Accent */
  --color-accent: #0ea5ff;
  --color-accent-secondary: #2563eb;
  --color-accent-light: #38bdf8;
  --color-accent-dark: #0284c7;

  /* Semantic */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(14, 165, 255, 0.25);
  --color-border-active: rgba(14, 165, 255, 0.4);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  --gradient-text: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-light));
  --gradient-glow: radial-gradient(circle, rgba(14, 165, 255, 0.15) 0%, transparent 70%);
  --gradient-glow-secondary: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);

  /* ------------------------------------------
     SPACING SCALE (8px base)
     ------------------------------------------ */
  --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 */

  /* Section padding */
  --section-padding-y: clamp(60px, 10vw, 100px);
  --section-padding-x: clamp(5%, 8%, 10%);

  /* ------------------------------------------
     TYPOGRAPHY SCALE
     ------------------------------------------ */
  --font-family: 'Poppins', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: clamp(2rem, 5vw, 3rem);      /* 48px fluid */
  --text-6xl: clamp(2.5rem, 6vw, 3.75rem);  /* 60px fluid */
  --text-7xl: clamp(3rem, 8vw, 4.5rem);     /* 72px fluid */

  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --leading-tight: 1.1;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* ------------------------------------------
     BORDER RADIUS SCALE
     ------------------------------------------ */
  --radius-sm: 0.5rem;    /* 8px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.25rem;   /* 20px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;

  /* ------------------------------------------
     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);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(14, 165, 255, 0.15);
  --shadow-glow-lg: 0 0 40px rgba(14, 165, 255, 0.2);
  --shadow-glow-xl: 0 0 60px rgba(14, 165, 255, 0.25);

  /* ------------------------------------------
     TRANSITIONS
     ------------------------------------------ */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ------------------------------------------
     Z-INDEX SCALE
     ------------------------------------------ */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-drawer: 400;
  --z-modal-backdrop: 500;
  --z-modal: 600;
  --z-popover: 700;
  --z-toast: 800;
  --z-tooltip: 900;
  --z-navbar: 1000;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms;
    --transition-base: 0.01ms;
    --transition-slow: 0.01ms;
    --transition-bounce: 0.01ms;
  }
}
