/* ==========================================================================
   Design tokens
   Single source of truth for colour, type, spacing, surfaces and motion.
   Values mirror the Figma file "Medgo — Revamp" (Homepage, 1440 frame).
   ========================================================================== */

:root {
  /* ---------- Colour: brand ---------- */
  --color-brand-600: #385aa4;
  --color-brand-700: #2c4a8c;
  --color-teal-500: #3977a8;
  --color-indigo-500: #3a45e0;
  --color-periwinkle-200: #c4d3f1;

  /* ---------- Colour: neutrals ---------- */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-ink-900: #0d0d0d;
  --color-ink-700: #3a3a3a;
  --color-ink-650: #434343;
  --color-ink-600: #4f4f4f;
  --color-ink-550: #5e5e5e;
  --color-ink-500: #6a6a6a;
  --color-mist-400: #aaaaaa;
  --color-mist-300: #bebebe;
  --color-mist-280: #bdbdbd;
  --color-mist-250: #c1c1c1;
  --color-mist-200: #cccccc;
  --color-mist-100: #e9e9e9;
  --color-graphite-500: #525252;
  --color-night-900: #0f161a;
  --color-night-800: #101111;
  --color-night-700: #161718;

  /* ---------- Colour: feedback ---------- */
  --color-danger-400: #f08a8a;
  --color-success-300: #9fd8b5;

  /* ---------- Gradients ---------- */
  --gradient-tab-active: linear-gradient(135deg, #95afe6 13.33%, #adcce5 123.03%);
  --gradient-glow: linear-gradient(180deg, var(--color-teal-500), var(--color-indigo-500));
  --gradient-portrait: linear-gradient(104deg, rgb(57 89 164 / 0.3) 14.2%, rgb(60 119 159 / 0.3) 111.2%);

  /* ---------- Surfaces ---------- */
  --surface-page: var(--color-white);
  --surface-dark: var(--color-night-900);
  --surface-glass: rgb(255 255 255 / 0.4);
  --surface-glass-border: var(--color-white);
  --surface-card-dark: rgb(0 0 0 / 0.4);
  --surface-card-dark-border: var(--color-night-700);
  --surface-card-dark-border-hover: #23272b;
  --surface-nav: var(--color-night-800);
  --surface-nav-divider: rgb(212 212 212 / 0.33);
  --surface-chip-dark: rgb(255 255 255 / 0.11);
  --surface-footer: var(--color-white);
  --surface-field: rgb(255 255 255 / 0.06);
  --surface-field-border: var(--color-graphite-500);
  --surface-field-border-hover: #7a7a7a;
  --surface-field-focus-ring: rgb(196 211 241 / 0.16);
  --surface-field-error-ring: rgb(240 138 138 / 0.18);

  /* ---------- Typography: families ---------- */
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---------- Typography: weights ---------- */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;

  /* ---------- Typography: fluid scale (mobile → 1440 desktop) ---------- */
  --text-display: clamp(2.75rem, 1.55rem + 4.6vw, 5rem);         /* 80px */
  --text-heading-xl: clamp(2.5rem, 1.95rem + 2.3vw, 3.625rem);   /* 58px */
  --text-heading-lg: clamp(2rem, 1.65rem + 1.4vw, 2.625rem);     /* 42px */
  --text-statement: clamp(1.5rem, 1rem + 2vw, 2.625rem);         /* 42px */
  --text-eyebrow: clamp(1.5rem, 1.25rem + 1vw, 2rem);            /* 32px */
  --text-tab: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);          /* 24px */
  --text-lead: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);      /* 20px */
  --text-lead-lg: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);      /* 24px */
  --text-body: 1.125rem;                                          /* 18px */
  --text-button: 1.125rem;                                        /* 18px */
  --text-nav: 0.875rem;                                           /* 14px */

  --leading-tight: 1.2;
  --leading-statement: 1.5;
  --leading-body: 1.5;

  --tracking-tight: -0.01em;

  /* ---------- Spacing ---------- */
  --space-3xs: 0.25rem;  /*  4 */
  --space-2xs: 0.5rem;   /*  8 */
  --space-xs: 0.625rem;  /* 10 */
  --space-sm: 0.75rem;   /* 12 */
  --space-md: 1rem;      /* 16 */
  --space-lg: 1.5rem;    /* 24 */
  --space-xl: 2rem;      /* 32 */
  --space-2xl: 2.5rem;   /* 40 */
  --space-3xl: 2.875rem; /* 46 */
  --space-4xl: 4rem;     /* 64 */
  --space-section: clamp(4rem, 2.8rem + 5vw, 5.625rem); /* 90 */

  /* ---------- Layout ---------- */
  --container-max: 75rem;                     /* 1200 */
  --container-gutter: clamp(1.25rem, 4vw, 2rem);
  --nav-offset: clamp(1rem, 2.2vw, 2rem);     /* 32 */
  --nav-height: 4rem;                         /* 64 */

  /* ---------- Shape ---------- */
  --radius-sm: 0.5rem;   /* 8 */
  --radius-sm-plus: 0.75rem; /* 12 */
  --radius-md: 1.5rem;   /* 24 */
  --radius-pill: 999px;
  --border-hairline: 0.5px;
  --border-thick: 3px;

  /* ---------- Effects ---------- */
  --shadow-nav: 0 0 14px rgb(0 0 0 / 0.13);
  --blur-glass: 24px;
  --blur-glow: 162px;

  /* ---------- Motion ---------- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --duration-instant: 120ms;
  --duration-fast: 240ms;
  --duration-base: 420ms;
  --duration-slow: 800ms;
  --duration-reveal: 1000ms;
  --duration-intro: 1400ms;

  --stagger-step: 110ms;

  /* ---------- Layers ---------- */
  --z-base: 0;
  --z-raised: 1;
  --z-nav: 100;
  --z-skip-link: 200;
}
