/* =========================================================
   LEGALIZE GROUP — DESIGN TOKENS v3
   Paleta extraída do logo oficial:
   - Brand Blue #033F88 (68,6% do logo)
   - Brand Gray #6D6E70 (24,7% do logo)
   ========================================================= */

:root {
  /* Brand cores cruas */
  --brand-blue: #033F88;
  --brand-gray: #6D6E70;

  /* Escala de azul (217°) */
  --blue-50:  #EBF2FB;
  --blue-100: #C9DBF1;
  --blue-300: #3D8BF0;
  --blue-500: #033F88;
  --blue-700: #022858;
  --blue-900: #011533;

  /* Escala de cinza */
  --gray-50:  #F4F4F5;
  --gray-100: #E4E4E7;
  --gray-300: #A1A1A4;
  --gray-500: #6D6E70;
  --gray-700: #404045;
  --gray-900: #1F1F23;

  /* Cursor signature — exclusivo do efeito */
  --cursor-emerald: #00FFA3;
  --cursor-cyan:    #00E5FF;
  --cursor-violet:  #B794F6;

  /* Tipografia */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Espaçamento (4px system) */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-7: 28px;  --space-8: 32px;
  --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --space-24: 96px; --space-32: 128px; --space-40: 160px; --space-48: 192px;

  /* Raios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --glow-blue: 0 0 32px rgba(61, 139, 240, 0.22);

  /* Z-index */
  --z-base: 0;
  --z-content: 2;
  --z-elevated: 10;
  --z-nav: 100;
  --z-modal: 1000;
  --z-cursor: 9999;

  /* Motion */
  --dur-fast:   200ms;
  --dur-base:   350ms;
  --dur-slow:   600ms;
  --dur-slower: 1000ms;
  --ease-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

  /* Container */
  --container-max: 1280px;
  --container-pad: 48px;

  /* Gradientes (uso limitadíssimo) */
  --gradient-text-fade: linear-gradient(180deg, #FFF 0%, #FFF 60%, rgba(255,255,255,0.4) 100%);
  --gradient-mesh-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(3, 63, 136, 0.18), transparent 70%);
  --gradient-3d:        linear-gradient(135deg, var(--blue-300) 0%, var(--blue-500) 100%);
  --gradient-cursor: radial-gradient(circle,
                       rgba(0, 255, 163, 0.18) 0%,
                       rgba(0, 229, 255, 0.12) 30%,
                       rgba(183, 148, 246, 0.08) 60%,
                       transparent 80%);
}

/* ---------- DARK (default) ---------- */
:root,
:root[data-theme="dark"] {
  --bg-primary:    #0A0F1C;
  --bg-secondary:  #0E1424;
  --bg-elevated:   #131A2C;
  --surface:       rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(255, 255, 255, 0.04);

  --border:        rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-focus:  var(--blue-300);

  --text-primary:    #FFFFFF;
  --text-secondary:  rgba(255, 255, 255, 0.72);
  --text-tertiary:   rgba(255, 255, 255, 0.5);
  --text-quaternary: rgba(255, 255, 255, 0.3);
  --text-inverse:    #0A0F1C;

  --accent:        var(--blue-300);
  --accent-hover:  #5BA0F5;
  --accent-soft:   rgba(61, 139, 240, 0.10);
  --accent-strong: var(--blue-500);

  --neutral:      var(--gray-300);
  --neutral-soft: rgba(109, 110, 112, 0.15);

  --mesh-hero: var(--gradient-mesh-hero);
}

/* ---------- LIGHT ---------- */
:root[data-theme="light"] {
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #F9FAFB;
  --bg-elevated:   #FFFFFF;
  --surface:       rgba(3, 63, 136, 0.02);
  --surface-hover: rgba(3, 63, 136, 0.04);

  --border:        rgba(3, 63, 136, 0.10);
  --border-strong: rgba(3, 63, 136, 0.20);
  --border-focus:  var(--blue-500);

  --text-primary:    var(--gray-900);
  --text-secondary:  var(--gray-700);
  --text-tertiary:   #71717A;
  --text-quaternary: #A1A1A4;
  --text-inverse:    #FFFFFF;

  --accent:        var(--blue-500);
  --accent-hover:  var(--blue-700);
  --accent-soft:   rgba(3, 63, 136, 0.08);
  --accent-strong: var(--blue-500);

  --neutral:      var(--gray-500);
  --neutral-soft: rgba(109, 110, 112, 0.10);

  --gradient-text-fade: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-900) 60%, rgba(31,31,35,0.4) 100%);
}
