/* =====================================================================
   MLP DESIGN SYSTEM — Light (v2.0)
   White is the base, violet the only accent, ink for text.
   One dark surface ("night") per page for contrast.
   Replaces the dark, multi-colour cockpit system (v1) for marketing pages.
   ===================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* ---------- Neutral surfaces (slightly violet-tinted) ---------- */
  --white: #ffffff;
  --paper: #f7f6fb;        /* alternating sections */
  --mist: #efecf7;         /* tinted surfaces, hover on white */
  --line: #e6e3ef;         /* default borders */
  --line-strong: #d4d0e1;  /* inputs, secondary buttons */

  /* ---------- Ink (text) ---------- */
  --ink: #15121f;          /* headlines                    — 18.4:1 on white */
  --ink-2: #403c4e;        /* body text                    — 10.6:1 */
  --ink-3: #6b6779;        /* meta, captions               —  5.5:1 */
  --ink-4: #a29eb0;        /* decorative / disabled only */

  /* ---------- Violet (the only accent) ---------- */
  --violet-50: #f5f2ff;
  --violet-100: #ebe5ff;
  --violet-200: #d8ccff;
  --violet-300: #b7a3fb;
  --violet-400: #9378f5;
  --violet-500: #7556ea;
  --violet-600: #5b3cdd;   /* primary: buttons, accent words — 6.6:1 on white */
  --violet-700: #4a2dc0;   /* hover, text on tinted surfaces */
  --violet-800: #35208f;
  --violet-900: #1f1458;

  /* ---------- Night (one dark section per page + footer) ---------- */
  --night: #110e1d;
  --night-2: #1a1630;      /* raised surface on night */
  --night-line: rgba(255, 255, 255, 0.09);
  --on-night: #f4f2fa;
  --on-night-2: #bdb8cc;
  --on-night-3: #8f8aa3;

  /* ---------- Functional (use sparingly) ---------- */
  --positive: #16825a;
  --positive-soft: #e7f6ef;

  /* ---------- Semantic aliases ---------- */
  --bg: var(--white);
  --bg-alt: var(--paper);
  --surface: var(--white);
  --text: var(--ink-2);
  --heading: var(--ink);
  --muted: var(--ink-3);
  --accent: var(--violet-600);
  --accent-hover: var(--violet-700);
  --accent-soft: var(--violet-50);
  --focus: var(--violet-500);

  /* ---------- Typography ---------- */
  --font-sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.55rem + 3.6vw, 4.25rem);  /* 40 → 68 */
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 3rem);              /* 32 → 48 */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem);       /* 20 → 23 */
  --fs-h4: 1.125rem;                                         /* 18 */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);    /* 18 → 21 */
  --fs-body: 1.0625rem;                                      /* 17 */
  --fs-small: 1rem;                                          /* 16 */
  --fs-xs: 0.8125rem;                                        /* 13 */

  --lh-tight: 1.06;
  --lh-heading: 1.15;
  --lh-body: 1.65;

  --ls-display: -0.035em;
  --ls-heading: -0.025em;
  --ls-label: 0.08em;

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

  /* ---------- Spacing (4 px grid) ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(80px, 9vw, 128px);
  --gutter: 24px;

  --container: 1200px;
  --container-narrow: 780px;

  /* ---------- Radius ---------- */
  --r-sm: 8px;      /* chips, small tags */
  --r-md: 12px;     /* buttons, inputs, icon tiles */
  --r-lg: 20px;     /* cards */
  --r-xl: 28px;     /* large image/video areas, panels */
  --r-pill: 999px;

  /* ---------- Shadows (ink-tinted, soft) ---------- */
  --shadow-xs: 0 1px 2px rgba(21, 18, 31, 0.05);
  --shadow-sm: 0 1px 2px rgba(21, 18, 31, 0.04), 0 4px 14px rgba(21, 18, 31, 0.05);
  --shadow-md: 0 2px 4px rgba(21, 18, 31, 0.04), 0 14px 36px rgba(21, 18, 31, 0.08);
  --shadow-lg: 0 4px 10px rgba(21, 18, 31, 0.05), 0 28px 70px rgba(21, 18, 31, 0.13);
  --shadow-accent: 0 10px 26px rgba(91, 60, 221, 0.28);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 500ms;

  /* ---------- Layers ---------- */
  --z-header: 50;
  --z-overlay: 100;
}
