/* ==========================================================================
   STRALYNX SOLUTIONS — DESIGN TOKENS
   Single source of truth for colour, type, spacing, radius, shadow, motion.
   Never hardcode hex values in component or page CSS — reference these.
   ========================================================================== */

:root {
  /* ----- COLOUR ----- */
  --color-bg-primary: #0A0A0A;          /* Brand black, main dark sections */
  --color-bg-surface: #11162A;          /* card backgrounds on dark */
  --color-bg-elevated: #161C36;         /* elevated dark surfaces (hover, nested) */
  --color-bg-deepest: #06080F;          /* footer / deepest dark band */
  --color-bg-light: #FAF8F3;            /* Paper — light sections for break-up */
  --color-bg-light-surface: #FFFFFF;    /* cards on light sections */

  --color-text-primary: #F5F7FA;        /* near-white on dark */
  --color-text-primary-dark: #171513;   /* near-black on light */
  --color-text-secondary: #8B95B0;      /* muted blue-grey on dark */
  --color-text-secondary-dark: #7A766F; /* muted on light */
  --color-text-muted: #5A6385;          /* lowest-emphasis text on dark */

  --color-accent-primary: #F97316;          /* Lynx Orange (brand primary) */
  --color-accent-primary-hover: #EA580C;    /* Orange Deep */
  --color-accent-secondary: #F97316;        /* Lynx Orange — used for CTAs */
  --color-accent-secondary-hover: #EA580C;  /* Orange Deep */
  --color-accent-soft: #FED7AA;             /* Soft Orange highlight */
  --color-accent-glow: rgba(249, 115, 22, 0.3);
  --color-accent-glow-warm: rgba(249, 115, 22, 0.35);

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-border-light: rgba(0, 0, 0, 0.06);
  --color-border-light-strong: rgba(0, 0, 0, 0.12);
  --color-border-paper: #EEEBE3;        /* Soft brand border for paper surfaces */

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* ----- TYPOGRAPHY ----- */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 2.5vw, 2rem);
  --fs-h4: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.1;
  --lh-headline: 1.2;
  --lh-body: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --tracking-eyebrow: 0.12em;

  /* ----- SPACING ----- */
  --space-section-y: clamp(64px, 8vw, 120px);
  --space-container-x: 24px;
  --space-container-x-desktop: 48px;
  --space-card: 32px;
  --space-card-mobile: 24px;
  --space-stack-sm: 12px;
  --space-stack-md: 24px;
  --space-stack-lg: 48px;

  --max-w-container: 1280px;
  --max-w-prose: 720px;
  --max-w-hero-copy: 900px;
  --max-w-sub-copy: 700px;

  /* ----- RADIUS ----- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  /* ----- SHADOW ----- */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-cta: 0 8px 24px var(--color-accent-glow-warm);
  --shadow-cta-hover: 0 12px 32px var(--color-accent-glow-warm);
  --shadow-light-card: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-light-card-hover: 0 12px 32px rgba(15, 23, 42, 0.12);

  /* ----- HEADER ----- */
  --header-h: 80px;
  --header-h-mobile: 64px;
  --header-blur: blur(12px);
  --header-bg: rgba(10, 10, 10, 0.85);

  /* ----- MOTION ----- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 150ms;
  --t-base: 200ms;
  --t-slow: 400ms;
  --t-slower: 600ms;

  /* ----- Z-INDEX SCALE ----- */
  --z-base: 0;
  --z-elevated: 10;
  --z-header: 50;
  --z-overlay: 80;
  --z-modal: 100;
}

/* Disable all custom motion when the user prefers reduced motion. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-base: 0ms;
    --t-slow: 0ms;
    --t-slower: 0ms;
  }
}
