/* ==========================================================================
   Maxer Photonics — Design Tokens
   Palette grounded in the company's actual product world: graphite/near-black
   instrument housings, warm lab white, and a blue→cyan pair drawn from the
   broad emission spectrum of a superluminescent diode (SLED) — Maxer's own
   flagship source technology — rather than a generic single accent.
   ========================================================================== */

:root {
  /* ---- Color: dark (default surface) ---- */
  --ink-0: #07080b;       /* page background */
  --ink-1: #0e1015;       /* section / elevated background */
  --ink-2: #161a21;       /* card surface */
  --ink-3: #1f2430;       /* card hover / active surface */
  --line-0: #21262f;      /* hairline border on dark */
  --line-1: #2c323d;      /* stronger hairline on dark */

  /* ---- Color: light (inverted surface) ---- */
  --paper-0: #f4f2ec;     /* warm white background */
  --paper-1: #ebe8e0;     /* elevated warm surface */
  --paper-line: #d8d4c9;  /* hairline border on paper */

  /* ---- Color: text ---- */
  --text-on-dark: #eef0f3;
  --text-on-dark-dim: #99a1b0;
  --text-on-dark-faint: #757d8a; /* kept ≥4.5:1 on --ink-0 for small text (WCAG AA) */
  --text-on-paper: #14171c;
  --text-on-paper-dim: #5b6270;

  /* ---- Color: accent (SLED spectrum duo) ---- */
  --accent-blue: #3968ff;
  --accent-blue-strong: #5b81ff;
  --accent-cyan: #45e6cf;
  --accent-blue-dim: rgba(57, 104, 255, 0.14);
  --accent-cyan-dim: rgba(69, 230, 207, 0.14);
  --spectrum-gradient: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);

  /* ---- Type families ---- */
  --font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* ---- Type scale (fluid) ---- */
  --fs-hero: clamp(2.2rem, 3.6vw, 3.9rem); /* sized for the longer "Engineered for the Real World." line at ~45% column width */
  --fs-h1: clamp(2.1rem, 3.8vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 2.8vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.78rem;

  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.6;

  /* ---- Spacing ---- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: clamp(4rem, 8vw, 7rem);
  --space-section: clamp(5rem, 9vw, 8.5rem);

  /* ---- Layout ---- */
  --container-max: 1360px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --grid-gap: clamp(1.25rem, 2vw, 2rem);

  /* ---- Radius (deliberately restrained — instrument-panel edges, not app bubbles) ---- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-btn: 8px; /* buttons only — Scale.com-inspired, rounder than the site's instrument-panel default */

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* decelerate — entrances, reveals */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);   /* micro-interactions — hover, nav, buttons */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 200ms;
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;
  --dur-cinematic: 900ms;

  /* ---- Elevation ---- */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --glow-accent: 0 0 48px -12px rgba(69, 230, 207, 0.35);
}
