/* Mirux brand tokens (from the Mirux landing page PDF + brand kit).
   Every color and font on the site and the CRM comes from here. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Readex+Pro:wght@300;400;500;600;700&display=swap");

:root {
  /* brand */
  --mx-orange: #F9461F;      /* primary: logo, buttons, highlights */
  --mx-orange-600: #F95A38;  /* hover */
  --mx-orange-400: #FA6F51;  /* charts, badges */
  --mx-orange-300: #FB836A;  /* soft accents */
  --mx-blush: #F5D1C9;       /* cards on blush sections */
  --mx-blush-2: #F5E3DF;     /* blush section background */
  --mx-paper: #F8F9F4;       /* page background */
  --mx-ink: #161616;         /* text, dark panels */
  --mx-grey: #E3E3E4;        /* placeholders */
  --mx-line: #D9D9D4;

  --brand: var(--mx-orange);
  --brand-2: var(--mx-orange-300);
  --brand-ink: #ffffff;

  /* crm (dark ink glass, Mirux orange glow) */
  --c-bg: #0d0d0d;
  --c-bg-2: #161616;
  --c-glass: rgba(248, 249, 244, 0.045);
  --c-glass-2: rgba(248, 249, 244, 0.08);
  --c-line: rgba(248, 249, 244, 0.10);
  --c-ink: #F8F9F4;
  --c-muted: rgba(248, 249, 244, 0.55);
  --c-good: #7ed69b;
  --c-bad: #F9461F;

  /* lead status colors (CRM), built on the Mirux orange scale */
  --st-new: #F8F9F4;
  --st-contacted: #F5D1C9;
  --st-qualified: #FB836A;
  --st-proposal: #F9461F;
  --st-won: #7ed69b;
  --st-lost: #7a7a76;

  /* type: Geist, the font style of the CRM reel */
  --font: "Geist", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* website font (v6): Readex Pro, a rounded geometric sans drawn for Latin and Arabic together */
  --site-font: "Readex Pro", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  /* type scale measured from the CRM reel: big medium-weight titles, large figures,
     small 11-13px UI text. Site sizes are the same scale stepped up for reading. */
  --fs-title: 42px;   /* page titles (Overview, Pipeline) */
  --fs-figure: 36px;  /* KPI numbers */
  --fs-head: 15px;    /* panel / card headings */
  --fs-body: 14px;    /* UI text, rows, nav */
  --fs-label: 12px;   /* labels, captions, tags */
  --fs-micro: 11px;   /* axis ticks, badges */
  --site-hero: clamp(38px, 3.9vw, 56px);
  --site-h1: clamp(36px, 3.6vw, 52px);
  --site-h2: clamp(30px, 3vw, 44px);
  --site-h3: 18px;
  --site-body: 16px;
  --site-small: 14px;
  --weight-title: 500;
  --radius: 18px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);     /* power3.out-like */
  --ease-inout: cubic-bezier(.65, 0, .35, 1);   /* power3.inOut-like */
}

/* website colours: light is the Mirux paper look, dark flips the page but keeps the brand orange.
   The CRM uses its own --c-* colours above. */
:root {
  --s-bg: var(--mx-paper);
  --s-ink: var(--mx-ink);
  --s-surface: #ffffff;
  --s-line: #cfcfca;
  --s-muted: #4a4442;
  --s-blush: var(--mx-blush);
  --s-blush-2: var(--mx-blush-2);
  --s-grey: var(--mx-grey);
}
html[data-theme="dark"] {
  --s-bg: #0e0c0b;
  --s-ink: #F8F9F4;
  --s-surface: #171413;
  --s-line: rgba(248, 249, 244, 0.16);
  --s-muted: rgba(248, 249, 244, 0.66);
  --s-blush: #2a1814;
  --s-blush-2: #1a110e;
  --s-grey: #24201f;
}

/* CRM light theme (Mirux paper + ink). Dark stays the default; the toggle in the CRM header switches. */
[data-theme="light"] {
  --c-bg: #F8F9F4;
  --c-bg-2: #ffffff;
  --c-glass: rgba(255, 255, 255, 0.62);
  --c-glass-2: rgba(255, 255, 255, 0.95);
  --c-line: rgba(22, 22, 22, 0.10);
  --c-ink: #161616;
  --c-muted: rgba(22, 22, 22, 0.56);
  --c-good: #2f9e5b;
  --st-new: #161616;
  --st-contacted: #d9826d;
  --st-qualified: #FA6F51;
  --st-won: #2f9e5b;
  --st-lost: #8a8a85;
  color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
