/* Self-hosted webfonts (SIL OFL 1.1; licenses in /fonts/OFL-*.txt). Latin subset covers en/pt-BR/es/fr/de. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/dm-sans.woff2") format("woff2");
}

/* VyMetric design tokens: dark & premium (approved style 1).
   Palette values are fixed by the brand; do not add new hues. */
:root {
  /* Backgrounds, darkest to lightest */
  --bg-0: #080808; /* page */
  --bg-1: #0f1318; /* raised surface */
  --bg-2: #161c24; /* card / panel */
  --bg-3: #1e2530; /* hairlines, inputs */

  /* Chrome text, brightest to quietest */
  --chrome-1: #e8eef2; /* headings, primary text  (18.6:1 on bg-0) */
  --chrome-2: #c8d2d8; /* body text               (14.1:1 on bg-0) */
  --chrome-3: #8a9ba8; /* secondary, captions     (7.2:1 on bg-0, 5.7:1 on bg-3) */

  /* Glow accents, lightest to deepest */
  --glow-1: #a8d8f0; /* hover, highlights */
  --glow-2: #5bb8e8; /* primary accent, buttons (9.6:1 with bg-0 text) */
  --glow-3: #2980b9; /* decorative lines, focus halo base; not for small text */

  /* Semantic aliases */
  --color-bg: var(--bg-0);
  --color-surface: var(--bg-1);
  --color-panel: var(--bg-2);
  --color-line: var(--bg-3);
  --color-text: var(--chrome-2);
  --color-heading: var(--chrome-1);
  --color-muted: var(--chrome-3);
  --color-accent: var(--glow-2);
  --color-accent-hover: var(--glow-1);
  --color-on-accent: var(--bg-0);
  --color-focus: var(--glow-1);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.8125rem;                                 /* 13px meta */
  --text-sm: 0.9375rem;                                 /* 15px nav, captions */
  --text-base: 1.0625rem;                               /* 17px body */
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);       /* h3 */
  --text-2xl: clamp(2rem, 1.6rem + 1.8vw, 3rem);        /* h2 */
  --text-3xl: clamp(2.75rem, 2rem + 3.4vw, 5rem);       /* h1 / display */
  --text-stat: clamp(2.5rem, 2rem + 2.4vw, 4rem);

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.65;
  --tracking-display: -0.015em;
  --tracking-caps: 0.08em;
  --measure: 66ch;

  /* Space (4px base, generous separations) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-pad: clamp(var(--space-8), 6vw + 2rem, var(--space-10));

  /* Layout */
  --wrap-max: 76rem;
  --wrap-pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 5rem;        /* 48px logo + padding (desktop) */
  --header-h-mobile: 4rem; /* 40px logo + padding (mobile) */

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Depth: offset + soft blur, tinted by the page black */
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 48px -20px rgb(0 0 0 / 0.75);
  /* Reserved for the hero phone frame (approved mockup); not for buttons or cards */
  --glow-soft: 0 10px 40px -12px rgb(91 184 232 / 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* exponential ease-out */
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 600ms;
}
