/* tokens.css — Design tokens (CSS Custom Properties)
   Mỗi giá trị dưới đây là "nguồn sự thật" cho màu sắc, typography, spacing.
   Toàn bộ phần style khác phải tham chiếu qua var(--token-...) thay vì hardcode.
*/

:root {
  /* ===== Color: nền và bề mặt ===== */
  --color-bg: #ffffff;
  --color-surface: #f7f8fb;
  --color-surface-2: #eef1f7;
  --color-border: #dde2ec;

  /* ===== Color: navy primary (theo mockup) ===== */
  --color-navy-950: #071936;
  --color-navy-900: #0a1f44;
  --color-navy-800: #0e2348;
  --color-navy-700: #15315f;
  --color-navy-600: #1d3f78;
  --color-navy-500: #2a548f;

  /* ===== Color: accent gold ===== */
  --color-gold-600: #d99a00;
  --color-gold-500: #f5b400;
  --color-gold-400: #ffc93d;
  --color-gold-300: #ffd96b;

  /* ===== Color: text ===== */
  --color-text: #1a2238;
  --color-text-muted: #5a6479;
  --color-text-soft: #8a93a7;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: #b9c1d4;
  --color-text-on-dark-soft: #8b96b3;

  /* ===== Color: state ===== */
  --color-success: #1fa971;
  --color-danger: #d64545;
  --color-focus: #74a4ff;

  /* ===== Typography ===== */
  --font-sans:
    "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

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

  --text-xs: 0.75rem;     /* 12 */
  --text-sm: 0.875rem;    /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-lg: 1.125rem;    /* 18 */
  --text-xl: 1.25rem;     /* 20 */
  --text-2xl: 1.5rem;     /* 24 */
  --text-3xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --text-4xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --text-hero: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;

  /* ===== Spacing ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --space-container: clamp(1.25rem, 1rem + 1vw, 2rem);

  /* ===== Layout ===== */
  --container-max: 1180px;
  --container-narrow: 880px;

  /* ===== Radius ===== */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ===== Shadow ===== */
  --shadow-xs: 0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 10px 28px rgba(10, 31, 68, 0.12);
  --shadow-lg: 0 22px 50px rgba(10, 31, 68, 0.16);
  --shadow-gold: 0 14px 28px rgba(245, 180, 0, 0.32);

  /* ===== Motion ===== */
  --duration-instant: 100ms;
  --duration-fast: 180ms;
  --duration-normal: 280ms;
  --duration-slow: 480ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ===== z-index ===== */
  --z-base: 1;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
}
