/* ===================================
   FRANCISCO LABS — DESIGN TOKENS
   Dark-first premium tech consultancy
   =================================== */

:root {
  /* ---- Type Scale ---- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Layout ---- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1280px;

  /* ---- Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Fonts ---- */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ===========================
   DARK MODE (PRIMARY)
   =========================== */
:root,
[data-theme="dark"] {
  /* Surfaces */
  --color-bg:              #0a0a0b;
  --color-surface:         #111113;
  --color-surface-2:       #161618;
  --color-surface-3:       #1c1c1f;
  --color-border:          #2a2a2e;
  --color-border-subtle:   #1e1e22;
  --color-divider:         #1a1a1e;

  /* Text */
  --color-text:            #f0f0f2;
  --color-text-muted:      #8a8a95;
  --color-text-faint:      #4a4a55;
  --color-text-inverse:    #0a0a0b;

  /* Brand Blue Accent */
  --color-primary:         #2563EB;
  --color-primary-bright:  #3b82f6;
  --color-primary-hover:   #1d4ed8;
  --color-primary-glow:    rgba(37, 99, 235, 0.15);
  --color-primary-glow-strong: rgba(37, 99, 235, 0.3);

  /* Supporting */
  --color-support:         #64748B;
  --color-success:         #22c55e;
  --color-warning:         #f59e0b;
  --color-error:           #ef4444;

  /* Glass */
  --glass-bg:              rgba(17, 17, 19, 0.7);
  --glass-border:          rgba(255, 255, 255, 0.06);
  --glass-hover:           rgba(255, 255, 255, 0.04);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.6);
  --shadow-blue: 0 0 30px rgba(37, 99, 235, 0.2);
  --shadow-blue-strong: 0 0 60px rgba(37, 99, 235, 0.35);
}

/* ===========================
   LIGHT MODE
   =========================== */
[data-theme="light"] {
  --color-bg:              #ffffff;
  --color-surface:         #f8f9fc;
  --color-surface-2:       #f1f3f8;
  --color-surface-3:       #e8ecf4;
  --color-border:          #d1d8e8;
  --color-border-subtle:   #e2e8f0;
  --color-divider:         #e5eaf4;

  --color-text:            #0f1629;
  --color-text-muted:      #4a5568;
  --color-text-faint:      #94a3b8;
  --color-text-inverse:    #ffffff;

  --color-primary:         #2563EB;
  --color-primary-bright:  #1d4ed8;
  --color-primary-hover:   #1e40af;
  --color-primary-glow:    rgba(37, 99, 235, 0.08);
  --color-primary-glow-strong: rgba(37, 99, 235, 0.18);

  --color-support:         #64748B;
  --color-success:         #16a34a;
  --color-warning:         #d97706;
  --color-error:           #dc2626;

  --glass-bg:              rgba(255, 255, 255, 0.8);
  --glass-border:          rgba(0, 0, 0, 0.07);
  --glass-hover:           rgba(0, 0, 0, 0.03);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
  --shadow-blue: 0 0 30px rgba(37, 99, 235, 0.1);
  --shadow-blue-strong: 0 0 60px rgba(37, 99, 235, 0.2);
}
