/* ==========================================================================
   MANGPECO.COM — INSIDE THE PE FACTORY
   Design Tokens (Brand Book v2.1) & Motion Tokens (Design Brief v1.0)
   ========================================================================== */

:root {
  /* Brand Palette — Brand Book v2.1 (WCAG 2.1 AA/AAA verified) */
  --color-cobalt: #165CC0;
  --color-cobalt-deep: #0D3B82;
  --color-cobalt-hover: #10489E;
  --color-white: #FFFFFF;
  --color-surface-light: #EFF5FD;
  --color-surface-subtle: #F7FAFE;
  --color-text: #111C2E;
  --color-text-muted: #42526B;
  --color-text-on-cobalt: #FFFFFF;
  --color-text-on-cobalt-muted: #E6F0FF;
  --color-border: #D0DFF2;
  --color-input-border: #5C718E;

  /* Semantic Status (KCS / Warnings) */
  --color-kcs-pass: #126B41;
  --color-kcs-bg: #E8F6EF;
  --color-warning: #9A4B00;
  --color-warning-bg: #FFF5E6;
  --color-error: #B42318;
  --color-error-bg: #FEF0EF;

  /* Typography */
  --font-display: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout & Geometry (Brand Book Lock: container 1200px, radius 8px) */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --header-height: 76px;
  --journey-height: 72px;

  /* Shadows — restrained industrial precision */
  --shadow-sm: 0 1px 3px rgba(13, 59, 130, 0.06), 0 1px 2px rgba(17, 28, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 59, 130, 0.08), 0 2px 6px rgba(17, 28, 46, 0.05);
  --shadow-lg: 0 18px 42px rgba(13, 59, 130, 0.14);

  /* Motion Tokens (Brief §04) */
  --motion-micro: 160ms;
  --motion-ui: 240ms;
  --motion-reveal: 500ms;
  --motion-scene: 700ms;
  --motion-intro: 1000ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.2, 0.65, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* Reduced Motion Override (System preference OR user manual toggle) */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-micro: 0ms;
    --motion-ui: 0ms;
    --motion-reveal: 0ms;
    --motion-scene: 0ms;
    --motion-intro: 0ms;
  }
}

html.reduced-motion {
  --motion-micro: 0ms;
  --motion-ui: 0ms;
  --motion-reveal: 0ms;
  --motion-scene: 0ms;
  --motion-intro: 0ms;
  scroll-behavior: auto !important;
}
