/* ==============================================================================
   DESIGN TOKENS - zeshannasir.com
   Precision Swiss-Tech & Systems Engineering Aesthetic
   ============================================================================== */

:root {
  /* --- Dark Palette (Default) --- */
  --bg-canvas: #0b0d11;
  --bg-surface: #11151c;
  --bg-surface-raised: #171d26;
  --bg-surface-active: #1f2734;
  --bg-surface-glass: rgba(17, 21, 28, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-active: rgba(20, 184, 166, 0.4);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #8896ab;
  --text-inverse: #0b0d11;

  --accent-teal: #14b8a6;
  --accent-teal-subtle: rgba(20, 184, 166, 0.12);
  --accent-teal-hover: #2dd4bf;
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);
  --accent-amber: #f59e0b;
  --accent-amber-subtle: rgba(245, 158, 11, 0.12);

  /* --- Spacing Scale --- */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4.5rem;   /* 72px */
  --space-4xl: 6rem;     /* 96px */

  /* --- Typography Fluid Scale --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-display: clamp(2.25rem, 4.5vw + 1rem, 4.25rem);
  --text-h1: clamp(1.85rem, 3.2vw + 0.8rem, 3rem);
  --text-h2: clamp(1.4rem, 2.2vw + 0.5rem, 2.15rem);
  --text-h3: clamp(1.15rem, 1.2vw + 0.5rem, 1.45rem);
  --text-body-lg: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* --- Radii & Geometry --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* --- Shadows & Depth --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* --- Motion & Transitions --- */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-spring);
  --transition-normal: 240ms var(--ease-spring);
  --transition-slow: 400ms var(--ease-spring);

  /* --- Layout Boundaries --- */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-canvas: #fbfbf9;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f3f3ee;
  --bg-surface-active: #eaeae3;
  --bg-surface-glass: rgba(255, 255, 255, 0.9);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --border-active: rgba(15, 118, 110, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #526173;
  --text-inverse: #ffffff;

  --accent-teal: #0f766e;
  --accent-teal-subtle: rgba(15, 118, 110, 0.09);
  --accent-teal-hover: #115e59;
  --accent-emerald: #059669;
  --accent-emerald-subtle: rgba(5, 150, 105, 0.1);
  --accent-amber: #d97706;
  --accent-amber-subtle: rgba(217, 119, 6, 0.1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
