/**
 * ╔══════════════════════════════════════╗
 * ║  KLUE DIGITAL — tokens.css           ║
 * ║  Design tokens / CSS Custom Props    ║
 * ║  Versão: 2.0.0 (Refactored)         ║
 * ╚══════════════════════════════════════╝
 */

:root {
  /* ── COLORS: Brand ── */
  --clr-primary: #912bff;          /* Violet primário */
  --clr-primary-2: #a423c5;        /* Roxo médio */
  --clr-primary-3: #7b1fe0;        /* Violet escuro */
  --clr-primary-light: rgba(145, 43, 255, 0.1);
  --clr-primary-border: rgba(145, 43, 255, 0.15);
  --clr-primary-glow: rgba(145, 43, 255, 0.2);

  /* ── COLORS: Backgrounds ── */
  --clr-bg: #07070f;              /* Preto deep */
  --clr-bg-2: #0e0d1a;            /* Preto com azul */
  --clr-bg-3: #16152a;            /* Preto-azul */
  --clr-bg-4: #1e1c35;            /* Preto-azul mais claro */
  
  /* ── COLORS: Greyscale ── */
  --clr-white: #f4f2ff;           /* Branco puro */
  --clr-grey-1: #2a2840;          /* Grey escuro */
  --clr-grey-2: #3d3a5c;          /* Grey médio-escuro */
  --clr-grey-3: #6b67a0;          /* Grey médio */
  --clr-grey-4: #9895c0;          /* Grey claro */
  --clr-grey-5: #c4c2d8;          /* Grey mais claro */
  
  /* ── COLORS: Semantic ── */
  --clr-text: var(--clr-white);
  --clr-text-muted: var(--clr-grey-4);
  --clr-text-secondary: var(--clr-grey-3);
  --clr-border: var(--clr-primary-border);
  --clr-surface: rgba(255, 255, 255, 0.05);

  /* ── TYPOGRAPHY ── */
  --font-sans: 'DM Sans', 'Roboto', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Roboto Mono', monospace;

  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md: 1.125rem;     /* 18px */
  --fs-lg: 1.25rem;      /* 20px */
  --fs-xl: 1.5rem;       /* 24px */
  --fs-2xl: 2rem;        /* 32px */
  --fs-3xl: clamp(2.4rem, 5vw, 3.5rem);
  --fs-4xl: clamp(2.8rem, 7vw, 5rem);
  --fs-hero: clamp(3.5rem, 9vw, 6rem);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.6;
  --lh-loose: 1.8;

  --ls-tight: -0.02em;
  --ls-normal: 0em;
  --ls-wide: 0.08em;

  /* ── SPACING ── */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
  --sp-48: 12rem;

  /* ── BORDER RADIUS ── */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* ── SHADOWS ── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(145, 43, 255, 0.2);
  --shadow-glow-strong: 0 0 60px rgba(145, 43, 255, 0.3);

  /* ── TRANSITIONS ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
  --dur-reveal: 700ms;

  /* ── LAYOUT ── */
  --container: 1160px;
  --container-px: 48px;
  --header-height: 72px;
  --section-py: clamp(4rem, 8vw, 8rem);

  /* ── Z-INDEXES ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 999;
  --z-modal: 9000;
  --z-cursor: 9999;
}

/* ── RESPONSIVE: Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-slow: 1ms;
    --dur-reveal: 1ms;
  }

  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
