/* ============================================
   SANPAR Design Tokens — Track A
   Brand Principle: Precise, Proven, Commanding
   ============================================ */

:root {
  /* --- A1: Colour Palette --- */
  --color-primary: #060097;
  --color-primary-dark: #04006b;
  --color-primary-light: #1a10b0;
  --color-secondary: #7c3aed;
  --color-accent: #ffcd57;
  --color-accent-dark: #e6b84d;

  /* Neutral Grey Scale (10 steps) */
  --grey-0: #ffffff;
  --grey-1: #f8f9fa;
  --grey-2: #f1f3f5;
  --grey-3: #e9ecef;
  --grey-4: #dee2e6;
  --grey-5: #adb5bd;
  --grey-6: #868e96;
  --grey-7: #495057;
  --grey-8: #343a40;
  --grey-9: #1a1a2e;

  /* Semantic Colours */
  --color-success: #0f9d58;
  --color-success-bg: #ecf9f2;
  --color-warning: #f5a623;
  --color-warning-bg: #fef8ec;
  --color-error: #d93025;
  --color-error-bg: #fce8e6;
  --color-info: #1a73e8;
  --color-info-bg: #e8f0fe;

  /* Text Colours */
  --text-primary: #1a1a2e;
  --text-secondary: #495057;
  --text-tertiary: #868e96;
  --text-inverse: #ffffff;
  --text-link: #060097;

  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-subtle: #f1f3f5;
  --bg-dark: #1a1a2e;
  --bg-hero-overlay: rgba(6, 0, 80, 0.75);

  /* --- A2: Typography Scale --- */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.75rem;   /* 28px */
  --text-4xl: 2rem;      /* 32px */
  --text-5xl: 2.5rem;    /* 40px */
  --text-6xl: 3rem;      /* 48px */
  --text-7xl: 3.5rem;    /* 56px */
  --text-8xl: 4rem;      /* 64px */

  --leading-tight: 1.2;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;

  /* --- A3: Spacing Scale --- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Section padding by type */
  --section-hero: 8rem;
  --section-feature: 6rem;
  --section-content: 4rem;

  /* --- A4: Shadow & Elevation --- */
  --shadow-subtle: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-pronounced: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);

  /* --- A5: Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* --- A6: Motion / Easing --- */
  --duration-micro: 150ms;
  --duration-state: 250ms;
  --duration-entrance: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* --- A7: Z-Index Scale --- */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* --- Layout --- */
  --container-max: 1200px;
  --container-narrow: 800px;
  --grid-columns: 12;
  --grid-gap: 1.5rem;
}

/* Responsive token overrides */
@media (max-width: 921px) {
  :root {
    --section-hero: 5rem;
    --section-feature: 4rem;
    --section-content: 3rem;
    --grid-gap: 1rem;
  }
}

@media (max-width: 544px) {
  :root {
    --section-hero: 4rem;
    --section-feature: 3rem;
    --section-content: 2.5rem;
    --grid-gap: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-micro: 0ms;
    --duration-state: 0ms;
    --duration-entrance: 0ms;
  }
}
