/* ==========================================================================
   Design Tokens — Refractive
   ========================================================================== */

:root {
  /* ── Colors ── */
  --color-bg-primary: #212429;
  --color-bg-deep: #1a1a1f;
  --color-bg-card: #171717;
  --color-bg-card-hover: #1e1e24;
  --color-bg-surface: #2a2a32;
  --color-bg-nav: rgba(33, 36, 41, 0.92);

  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.4);

  --color-accent-blue: #43a9df;
  --color-accent-violet: #8e68ad;
  --color-accent-cyan: #c2dcd4;
  --color-accent-gradient: linear-gradient(135deg, #43a9df 0%, #8e68ad 100%);
  --color-accent-gradient-text: linear-gradient(135deg, #43a9df 0%, #8e68ad 50%, #c2dcd4 100%);
  --color-accent-gradient-full: linear-gradient(66deg, #fdfdf9 0%, #8e68ad 1%, #43a9df 61%, #c2dcd4 99%, #fdfdf9 100%);

  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);

  --color-success: #34d399;
  --color-error: #f87171;

  /* ── Typography ── */
  --font-display: 'adelphi-pe-variable', 'Archivo Black', sans-serif;
  --font-body: 'adelphi-pe-variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

  /* Responsive type scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.35rem, 1.1rem + 1.25vw, 2rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  --text-3xl: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --text-hero: clamp(2.8rem, 2rem + 4vw, 5.5rem);

  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.15em;

  /* ── Spacing ── */
  --space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  --space-md: clamp(1.25rem, 1rem + 1.25vw, 2rem);
  --space-lg: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --space-xl: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  --space-2xl: clamp(5rem, 3.5rem + 7.5vw, 10rem);

  /* ── Layout ── */
  --container-max: 1200px;
  --container-narrow: 760px;
  --container-wide: 1400px;
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;

  /* ── Border Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ── Z-index ── */
  --z-base: 1;
  --z-card: 10;
  --z-overlay: 50;
  --z-nav: 100;
  --z-modal: 200;
}
