/* ============================================================
   Misovex — "Jet Noir + Cuivre Patiné"
   Luxury dark design system: jet black ground, copper accents,
   burgundy featured surfaces. LTR only (fr root + /en/).
   Authored in CSS logical properties.
   ============================================================ */

:root {
  /* base — jet black */
  --mx-bg: #070605;
  --mx-bg-2: #0d0a08;
  --mx-coal-1: #14100c;
  --mx-coal-2: #1c1611;

  /* burgundy depths — featured surfaces */
  --mx-wine-1: #2a0f14;
  --mx-wine-2: #4a1622;
  --mx-burg: #6d2032;
  --mx-burg-hi: #9c3247;

  /* accent — copper, sampled from the Misovex mark */
  --mx-acc: #b87333;
  --mx-acc-hi: #e0a06a;
  --mx-acc-dp: #8c5324;

  /* Decorative gradient: runs all the way into burgundy. Never put text on it. */
  --mx-grad: linear-gradient(135deg, #e8b587 0%, #b87333 46%, #6d2032 100%);
  /* Interactive fills that carry dark ink stay inside the copper range, so the
     contrast ratio holds across the whole sweep. */
  --mx-grad-warm: linear-gradient(135deg, #e8b587 0%, #c98c4e 55%, #b87333 100%);
  --mx-ink: #1a0e06;

  /* text — warm bone */
  --mx-tx: rgba(242, 235, 226, .74);
  --mx-tx-strong: #f6f0e8;
  --mx-muted: #b3a496;
  --mx-dim: #7a6b5e;

  /* market signals — verdigris (copper's patina) against wine */
  --mx-up: #6fb28d;
  --mx-down: #d4566b;

  /* lines / glass */
  --mx-line: rgba(224, 160, 106, .14);
  --mx-line-soft: rgba(242, 235, 226, .06);
  --mx-glass: rgba(242, 235, 226, .028);
  --mx-glass-2: rgba(242, 235, 226, .05);

  /* radii */
  --mxr-sm: 10px;
  --mxr-md: 16px;
  --mxr-lg: 26px;
  --mxr-xl: 34px;
  --mxr-pill: 9999px;

  /* shadow / glow */
  --mxs-sh: 0 30px 80px -30px rgba(0, 0, 0, .9);
  --mxs-glow: 0 0 44px -8px rgba(184, 115, 51, .45);
  --mxs-glow-wine: 0 0 46px -8px rgba(109, 32, 50, .5);

  /* fonts
     Cormorant Garamond is reserved for large display type — at component sizes
     its small optical scale reads as weak. Card titles, buttons and questions
     stay on Inter; figures use Inter's tabular numerals rather than the serif's
     old-style ones, which would sit unevenly in a stat row. */
  --mxf-disp: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --mxf-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mxf-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --mx-mw: 1240px;
  --mx-nav-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mxf-body);
  background: var(--mx-bg);
  color: var(--mx-tx);
  line-height: 1.75;
  padding-block-start: var(--mx-nav-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---- copper light over jet black ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(224, 160, 106, .16), transparent 55%),
    radial-gradient(90% 60% at 100% 8%, rgba(109, 32, 50, .22), transparent 60%),
    linear-gradient(180deg, #0b0908 0%, #070605 40%, #040303 100%);
}
/* raking light shaft */
body::after {
  content: "";
  position: fixed;
  top: -10%;
  inset-inline-start: 50%;
  width: 46vw;
  height: 120%;
  transform: translateX(-50%) rotate(4deg);
  z-index: -2;
  background: linear-gradient(180deg, rgba(232, 181, 135, .08), rgba(232, 181, 135, .02) 30%, transparent 70%);
  filter: blur(38px);
  pointer-events: none;
  opacity: .75;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--mx-mw); margin-inline: auto; padding-inline: 24px; }

/* a11y helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-block-start: -60px; inset-inline-start: 16px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 0 0 var(--mxr-sm) var(--mxr-sm);
  background: var(--mx-acc-hi); color: var(--mx-ink);
  font-family: var(--mxf-body); font-weight: 600; font-size: .9rem;
  transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 0; }

/* ---- typography ---- */
h1, h2, h3, h4 {
  font-family: var(--mxf-body);
  color: var(--mx-tx-strong);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
/* The serif is the brand voice — display headlines only. */
.display {
  font-family: var(--mxf-disp);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--mx-tx-strong);
}
.display b { font-weight: 600; }
.display .hi { font-weight: 400; font-style: italic; color: var(--mx-acc-hi); }
h1.display { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2.display { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }

.eyebrow {
  font-family: var(--mxf-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mx-muted);
}
.eyebrow.acc { color: var(--mx-acc-hi); }

.lede { color: var(--mx-muted); font-size: 1.02rem; max-width: 48ch; }

/* Large figures: Inter light with tabular numerals — the serif's old-style
   figures would ride the baseline unevenly in a row of statistics. */
.fig {
  font-family: var(--mxf-body);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--mx-tx-strong);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mxf-body);
  font-weight: 500;
  font-size: .92rem;
  padding: 13px 26px;
  border-radius: var(--mxr-pill);
  border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--mx-grad-warm); color: var(--mx-ink); font-weight: 600; box-shadow: var(--mxs-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px -4px rgba(224, 160, 106, .6); }
.btn-ghost {
  background: var(--mx-glass-2);
  color: var(--mx-tx-strong);
  border-color: var(--mx-line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--mx-acc); background: rgba(184, 115, 51, .15); }

/* ---- panel base ---- */
.panel {
  background: linear-gradient(180deg, var(--mx-glass-2), var(--mx-glass));
  border: 1px solid var(--mx-line);
  border-radius: var(--mxr-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--mxs-sh);
}

/* burgundy featured surface — reused by every highlighted panel */
.mx-lux {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(224, 160, 106, .26), transparent 60%),
    linear-gradient(155deg, var(--mx-wine-2), var(--mx-wine-1));
}

section { position: relative; }
.sect { padding-block: 84px; }
.sect-head { max-width: 660px; margin-inline: auto; margin-block-end: 46px; text-align: center; }
.sect-head .eyebrow { display: block; margin-block-end: 14px; }
.sect-head p { color: var(--mx-muted); margin-block-start: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--mx-nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(7, 6, 5, .72);
  backdrop-filter: blur(18px);
  border-block-end: 1px solid var(--mx-line-soft);
}
.nav-in {
  width: 100%;
  max-width: var(--mx-mw);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Brand: one word, one colour, one weight. Never split "Misovex". */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mxf-disp);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--mx-tx-strong);
  letter-spacing: .04em;
}
.brand img { width: 32px; height: 32px; flex-shrink: 0; }

.menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.menu a { font-size: .88rem; color: var(--mx-muted); transition: color .2s; }
.menu a:hover, .menu a.on { color: var(--mx-tx-strong); }
.menu .btn { padding: 9px 20px; font-size: .84rem; }
.menu a.btn-primary { color: var(--mx-ink); }

/* The menu, the language pill and the burger sit in one right-hand group so
   .nav-in keeps exactly two children and space-between stays honest.
   Never give .nav-right position/transform/filter/backdrop-filter/contain or
   overflow:hidden — any of those makes it the containing block for
   .nav.open .menu and collapses the full-bleed dropdown into a ~126px box. */
.nav-right { display: flex; align-items: center; gap: 22px; }

.burger {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; inline-size: 44px; block-size: 44px;
  background: none; border: none; padding: 0;
}
.burger span { width: 22px; height: 1.6px; background: var(--mx-tx); border-radius: 2px; transition: .3s; }

/* Language switcher: two locales, so a segmented pair beats a dropdown — it
   shows the current language and the alternative at once, with no JS. */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 2px;
  border: 1px solid var(--mx-line);
  border-radius: var(--mxr-pill);
  background: var(--mx-glass);
  font-family: var(--mxf-mono);
  font-size: .66rem; letter-spacing: .1em; line-height: 1;
}
.lang-switch > * {
  display: inline-flex; align-items: center; justify-content: center;
  min-inline-size: 31px; padding: 8px 5px;
  border-radius: var(--mxr-pill);
  color: var(--mx-dim);
  transition: color .2s, background .2s;
}
.lang-cur { color: var(--mx-tx-strong); background: rgba(184, 115, 51, .16); }
.lang-alt { position: relative; }
.lang-alt:hover { color: var(--mx-acc-hi); }
.lang-alt:focus-visible { color: var(--mx-acc-hi); outline: 2px solid var(--mx-acc-hi); outline-offset: 2px; }
/* Pads the 31x27 pill half out to a 44px-tall tap target without visual bloat.
   Relies on .lang-switch having no overflow:hidden. */
.lang-alt::after { content: ""; position: absolute; inset-block: -9px; inset-inline: -2px; }
.burger:focus-visible { outline: 2px solid var(--mx-acc-hi); outline-offset: -4px; border-radius: var(--mxr-sm); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-block-end: 1px solid var(--mx-line-soft);
  background: rgba(242, 235, 226, .012);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 46px; padding-block: 11px; will-change: transform; }
.tk {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mxf-mono);
  font-size: .74rem;
  color: var(--mx-muted);
}
.tk b { color: var(--mx-tx-strong); font-weight: 500; }
.tk .px { color: var(--mx-tx); }
.tk .up { color: var(--mx-up); }
.tk .down { color: var(--mx-down); }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mx-acc-hi);
  box-shadow: 0 0 10px var(--mx-acc);
  animation: mxPulse 1.8s ease-in-out infinite;
}
@keyframes mxPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: 56px 60px; }
.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-radius: var(--mxr-xl);
  overflow: hidden;
  border: 1px solid var(--mx-line);
  box-shadow: var(--mxs-sh);
  position: relative;
}
.hero-left {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(184, 115, 51, .14), transparent 60%),
    linear-gradient(150deg, var(--mx-coal-2), var(--mx-coal-1) 70%, #0a0806);
  padding: 54px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--mxf-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mx-acc-hi);
  padding: 7px 14px;
  border: 1px solid var(--mx-line);
  border-radius: var(--mxr-pill);
  background: rgba(184, 115, 51, .12);
  margin-block-end: 24px;
}
.hero-chip svg { width: 13px; height: 13px; }
.hero h1 { margin-block-end: 20px; }
.hero-left .lede { margin-block-end: 32px; font-size: 1.05rem; }

.stat-rows { display: flex; flex-direction: column; }
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-block-start: 1px solid var(--mx-line-soft);
}
.stat-row:last-child { border-block-end: 1px solid var(--mx-line-soft); }
.stat-row .val {
  font-family: var(--mxf-body);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--mx-tx-strong);
}
.stat-row .lbl {
  font-family: var(--mxf-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mx-dim);
  text-align: end;
}

/* hero right — burgundy form panel */
.hero-right {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(224, 160, 106, .28), transparent 55%),
    linear-gradient(150deg, var(--mx-wine-2), var(--mx-wine-1) 75%);
  padding: 40px 40px 34px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(242, 235, 226, .11) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .3;
  mask-image: radial-gradient(120% 90% at 100% 0%, #000, transparent 70%);
}
.hero-right > * { position: relative; }

/* ---- registration form ---- */
.form-card h2 { font-weight: 600; font-size: 1.18rem; color: #fff; }
.form-card .note {
  font-family: var(--mxf-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mx-acc-hi);
  margin-block: 5px 16px;
}
.reg input[type="text"],
.reg input[type="email"],
.reg input[type="tel"] {
  width: 100%;
  background: rgba(10, 5, 6, .5);
  border: 1px solid rgba(242, 235, 226, .18);
  border-radius: var(--mxr-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--mxf-body);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.reg input::placeholder { color: rgba(242, 235, 226, .45); }
.reg input:focus { border-color: var(--mx-acc-hi); background: rgba(10, 5, 6, .72); }
.reg form > div { margin-block-end: 10px; }
.iti { width: 100%; }
.iti__dropdown-content { color: #111; }

#submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--mxr-sm);
  background: var(--mx-acc-hi);
  color: var(--mx-ink);
  font-family: var(--mxf-body);
  font-size: .98rem;
  font-weight: 700;
  margin-block-start: 4px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}
#submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(232, 181, 135, .45); }
.form-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: #ecdfd2;
  margin-block-start: 14px;
}
.form-tip svg { width: 16px; height: 16px; color: var(--mx-acc-hi); flex-shrink: 0; }

.form-card .trust { margin-block-start: 22px; border-block-start: 1px solid rgba(242, 235, 226, .15); }
.trust-item { display: flex; align-items: center; gap: 13px; padding-block: 14px; border-block-end: 1px solid rgba(242, 235, 226, .1); }
.trust-item:last-child { border-block-end: none; }
.trust-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(242, 235, 226, .13);
  border: 1px solid rgba(242, 235, 226, .17);
}
.trust-ico svg { width: 18px; height: 18px; color: var(--mx-acc-hi); }
.trust-item b { display: block; font-family: var(--mxf-body); font-weight: 600; font-size: .94rem; color: #fff; line-height: 1.4; }
.trust-item span { font-size: .76rem; color: #d8c9bc; }

/* ============================================================
   VOICES (testimonials)
   ============================================================ */
.voices-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice {
  display: flex;
  flex-direction: column;
  border-radius: var(--mxr-lg);
  border: 1px solid var(--mx-line);
  background: linear-gradient(180deg, var(--mx-glass-2), var(--mx-glass));
  padding: 30px 28px;
  transition: transform .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.voice:hover { transform: translateY(-5px); border-color: rgba(184, 115, 51, .5); }
.voice::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--mx-grad);
  opacity: .7;
}
.voice-mark { width: 34px; height: 34px; color: var(--mx-acc); opacity: .5; margin-block-end: 14px; }
.voice-mark svg { width: 100%; height: 100%; }
.voice .stars { margin-block-end: 14px; }
.voice-qt {
  font-family: var(--mxf-disp);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--mx-tx-strong);
  font-weight: 400;
  flex: 1;
  margin-block-end: 20px;
}
.voice-who { display: flex; align-items: center; gap: 13px; padding-block-start: 18px; border-block-start: 1px solid var(--mx-line-soft); }
.voice-av {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--mxf-body); font-weight: 700; font-size: .84rem;
  color: var(--mx-ink); background: var(--mx-grad-warm);
}
.voice-name { font-family: var(--mxf-body); font-weight: 600; font-size: .96rem; color: var(--mx-tx-strong); }
.voice-loc { font-family: var(--mxf-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-acc-hi); }

.stars { display: flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; color: var(--mx-acc); }

/* ============================================================
   SPLIT (image + copy)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: var(--mxr-xl);
  overflow: hidden;
}
.split-media { position: relative; min-height: 380px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent, rgba(42, 15, 20, .45));
}
.split-copy {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, var(--mx-coal-2), var(--mx-coal-1));
}
.split-copy .eyebrow { margin-block-end: 14px; }
.split-copy h2 { margin-block-end: 18px; }
.split-copy p { color: var(--mx-muted); margin-block-end: 14px; }
.split-copy p:last-child { margin-block-end: 0; }
.split.reverse .split-media { order: 2; }

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap {
  border-radius: var(--mxr-lg);
  border: 1px solid var(--mx-line);
  background: linear-gradient(180deg, var(--mx-glass-2), var(--mx-glass));
  padding: 30px 28px;
  transition: transform .3s, border-color .3s, background .3s;
  position: relative;
  overflow: hidden;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(184, 115, 51, .45); }
.cap.feat {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(224, 160, 106, .26), transparent 60%),
    linear-gradient(155deg, var(--mx-wine-2), var(--mx-wine-1));
  border-color: rgba(224, 160, 106, .38);
}
.cap-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  border: 1px solid var(--mx-line);
  background: rgba(184, 115, 51, .14);
  margin-block-end: 18px;
}
.cap.feat .cap-ico { background: rgba(242, 235, 226, .15); border-color: rgba(242, 235, 226, .24); }
.cap-ico svg { width: 22px; height: 22px; color: var(--mx-acc-hi); }
.cap.feat .cap-ico svg { color: var(--mx-acc-hi); }
.cap h3 { font-size: 1.1rem; font-weight: 600; margin-block-end: 10px; }
.cap p { color: var(--mx-muted); font-size: .92rem; line-height: 1.8; }
.cap.feat p { color: #e4d3d6; }

/* ============================================================
   METRICS
   ============================================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--mx-line);
  border-radius: var(--mxr-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--mx-glass-2), var(--mx-glass));
}
.metric { padding: 34px 26px; text-align: center; border-inline-end: 1px solid var(--mx-line-soft); }
.metric:last-child { border-inline-end: none; }
.metric .val {
  font-family: var(--mxf-body);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  color: var(--mx-tx-strong);
}
.metric .val b { font-weight: 300; color: var(--mx-acc-hi); }
.metric .lbl { font-family: var(--mxf-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mx-dim); margin-block-start: 8px; }

.agg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block-end: 30px; }
.agg { border: 1px solid var(--mx-line); border-radius: var(--mxr-md); padding: 26px 24px; background: var(--mx-glass); }
.agg .v { font-family: var(--mxf-body); font-weight: 300; font-variant-numeric: tabular-nums; font-size: 2.2rem; color: var(--mx-tx-strong); }
.agg .v b { color: var(--mx-acc-hi); font-weight: 300; }
.agg .l { color: var(--mx-muted); font-size: .88rem; margin-block-start: 6px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step {
  border: 1px solid var(--mx-line);
  border-radius: var(--mxr-lg);
  padding: 28px 26px;
  background: linear-gradient(180deg, var(--mx-glass-2), var(--mx-glass));
  position: relative;
}
.step-dot {
  position: absolute;
  inset-block-start: 28px;
  inset-inline-end: 26px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--mx-grad); box-shadow: var(--mxs-glow);
}
.step .num { font-family: var(--mxf-mono); font-size: .72rem; letter-spacing: .1em; color: var(--mx-acc-hi); }
.step h3 { font-size: 1.06rem; font-weight: 600; margin-block: 8px; }
.step p { color: var(--mx-muted); font-size: .9rem; }

/* ============================================================
   RESULTS CAROUSEL
   ============================================================ */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 20px; transition: transform .5s cubic-bezier(.6, .05, .1, 1); }
.gcard {
  flex: 0 0 calc((100% - 40px) / 3);
  border-radius: var(--mxr-lg);
  border: 1px solid var(--mx-line);
  background: linear-gradient(180deg, var(--mx-glass-2), var(--mx-glass));
  padding: 30px 28px;
  transition: border-color .3s, transform .3s;
}
.gcard.mid {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(224, 160, 106, .26), transparent 60%),
    linear-gradient(155deg, var(--mx-wine-2), var(--mx-wine-1));
  border-color: rgba(224, 160, 106, .42);
}
.gcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 16px; }
.gbadge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mxf-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mx-acc-hi);
  padding: 5px 10px;
  border-radius: var(--mxr-pill);
  border: 1px solid var(--mx-line);
  background: rgba(184, 115, 51, .13);
}
.gcard.mid .gbadge { color: #fff; border-color: rgba(242, 235, 226, .3); background: rgba(242, 235, 226, .15); }
.gbadge svg { width: 11px; height: 11px; }
.gcard .tagline { font-family: var(--mxf-mono); font-size: .64rem; color: var(--mx-dim); }
.gcard.mid .tagline { color: #ecdfd2; }
.gsum { font-family: var(--mxf-body); font-weight: 300; font-variant-numeric: tabular-nums; font-size: 2.5rem; color: var(--mx-tx-strong); }
.gper { font-family: var(--mxf-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mx-acc-hi); margin-block-end: 14px; }
.gspark { width: 100%; height: 40px; display: block; margin-block-end: 16px; }
.gspark .ln { fill: none; stroke: var(--mx-acc-hi); stroke-width: 2; }
.gcard.mid .gspark .ln { stroke: var(--mx-acc-hi); }
.gqt { font-size: .92rem; color: var(--mx-muted); line-height: 1.8; margin-block-end: 18px; }
.gcard.mid .gqt { color: #e8d8da; }
.gwho { display: flex; align-items: center; gap: 12px; }
.gav {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--mxf-body); font-weight: 700; font-size: .82rem;
  color: var(--mx-ink); background: var(--mx-grad-warm);
}
.gcard.mid .gav { background: rgba(242, 235, 226, .22); color: #fff; }
.gnm { font-family: var(--mxf-body); font-weight: 600; font-size: .94rem; color: var(--mx-tx-strong); }
.gcity { font-family: var(--mxf-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mx-dim); }
.gcard.mid .gcity { color: #ecdfd2; }

.gcta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-block-start: 20px;
  padding: 12px 20px;
  font-family: var(--mxf-body); font-weight: 600; font-size: .9rem;
  border-radius: var(--mxr-pill);
  border: 1px solid transparent;
  background: var(--mx-grad-warm);
  color: var(--mx-ink);
  box-shadow: var(--mxs-glow);
  transition: transform .25s, box-shadow .25s;
}
.gcta svg { width: 15px; height: 15px; }
.gcta:hover { transform: translateY(-2px); box-shadow: 0 0 50px -6px rgba(224, 160, 106, .65); }
.gcard.mid .gcta { background: var(--mx-acc-hi); color: var(--mx-ink); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45); }
.gcard.mid .gcta:hover { box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .6); }

.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-block-start: 32px; }
.cbtn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mx-glass-2);
  border: 1px solid var(--mx-line);
  color: var(--mx-tx-strong);
  transition: .25s;
}
.cbtn:hover { border-color: var(--mx-acc); background: rgba(184, 115, 51, .18); }
.cbtn svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mx-line); border: none; transition: .25s; padding: 0; }
.dot.on { width: 26px; border-radius: var(--mxr-pill); background: var(--mx-grad); }

.disclaimer { font-size: .78rem; color: var(--mx-dim); text-align: center; max-width: 760px; margin-inline: auto; margin-block-start: 30px; line-height: 1.8; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
  border-radius: var(--mxr-xl);
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(224, 160, 106, .3), transparent 60%),
    linear-gradient(155deg, var(--mx-wine-2), var(--mx-wine-1));
  border: 1px solid rgba(224, 160, 106, .32);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(242, 235, 226, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(90% 90% at 50% 0%, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-block-end: 14px; }
.cta-band p { color: #e4d3d6; margin-inline: auto; margin-block-end: 28px; max-width: 48ch; }
.cta-band .btn-primary { background: var(--mx-acc-hi); color: var(--mx-ink); }
.cta-band .btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .6); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-block-start: 1px solid var(--mx-line-soft); padding-block-start: 68px; margin-block-start: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .brand { margin-block-end: 16px; }
.footer-brand p { color: var(--mx-muted); font-size: .9rem; max-width: 38ch; }
.footer-col h2 { font-family: var(--mxf-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mx-dim); font-weight: 500; margin-block-end: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--mx-muted); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--mx-acc-hi); }
.footer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-block-start: 1px solid var(--mx-line-soft);
  margin-block-start: 48px; padding-block: 22px;
  font-size: .82rem; color: var(--mx-dim);
}
.footer-bar .lnk { display: flex; gap: 20px; }
.footer-bar a:hover { color: var(--mx-acc-hi); }

.risk { background: rgba(242, 235, 226, .012); border-block-start: 1px solid var(--mx-line-soft); padding-block: 22px; }
.risk p { font-size: .76rem; color: var(--mx-dim); line-height: 1.8; max-width: var(--mx-mw); }

/* ============================================================
   REVEAL
   ============================================================ */
.mx-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.mx-reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mx-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   INNER PAGE COMPONENTS
   ============================================================ */
.page-head { text-align: center; max-width: 780px; margin-inline: auto; padding-block: 20px 8px; }
.page-head .eyebrow { display: block; margin-block-end: 14px; }
.page-head p { color: var(--mx-muted); margin-inline: auto; margin-block-start: 16px; max-width: 62ch; }
.page-head .updated { font-family: var(--mxf-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mx-dim); margin-block-start: 14px; }

/* Capped at the photo's intrinsic 800px so the image fills the frame exactly —
   a wider frame would leave a bare strip at the inline end. */
.media-frame { max-width: 800px; margin-inline: auto; border-radius: var(--mxr-xl); overflow: hidden; border: 1px solid var(--mx-line); box-shadow: var(--mxs-sh); position: relative; }
.media-frame img { width: 100%; }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent, rgba(42, 15, 20, .38)); pointer-events: none; }

.city-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.city-chip { font-family: var(--mxf-mono); font-size: .74rem; letter-spacing: .06em; color: var(--mx-muted); padding: 9px 20px; border-radius: var(--mxr-pill); border: 1px solid var(--mx-line); background: var(--mx-glass); }

.cap.team { text-align: center; }
.cap.team .role { font-family: var(--mxf-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mx-acc-hi); display: block; margin-block-end: 10px; }
.cap.team .av {
  width: 58px; height: 58px; border-radius: 50%;
  margin-inline: auto; margin-block-end: 16px;
  display: grid; place-items: center;
  font-family: var(--mxf-body); font-weight: 700; color: var(--mx-ink);
  background: var(--mx-grad-warm); box-shadow: var(--mxs-glow);
}

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post { display: flex; flex-direction: column; border-radius: var(--mxr-lg); border: 1px solid var(--mx-line); background: linear-gradient(180deg, var(--mx-glass-2), var(--mx-glass)); padding: 28px 26px; transition: transform .3s, border-color .3s; }
.post:hover { transform: translateY(-4px); border-color: rgba(184, 115, 51, .45); }
.post-tag { align-self: flex-start; font-family: var(--mxf-mono); font-size: .6rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--mxr-pill); margin-block-end: 14px; border: 1px solid var(--mx-line); }
.post-tag.ai { color: var(--mx-acc-hi); background: rgba(184, 115, 51, .14); border-color: rgba(184, 115, 51, .28); }
.post-tag.crypto { color: #e08298; background: rgba(156, 50, 71, .16); border-color: rgba(156, 50, 71, .34); }
.post h2 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; margin-block-end: 10px; }
.post p { color: var(--mx-muted); font-size: .92rem; line-height: 1.8; flex: 1; }
.post-meta { display: flex; justify-content: space-between; gap: 12px; margin-block-start: 16px; padding-block-start: 14px; border-block-start: 1px solid var(--mx-line-soft); font-family: var(--mxf-mono); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mx-dim); }

/* FAQ accordion — real buttons, keyboard accessible */
.faq-list { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--mx-line); border-radius: var(--mxr-md); background: linear-gradient(180deg, var(--mx-glass-2), var(--mx-glass)); overflow: hidden; transition: border-color .3s; }
.faq-item:hover { border-color: rgba(184, 115, 51, .4); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%;
  padding: 20px 24px;
  background: none; border: none;
  text-align: start;
}
.faq-q h2 { font-family: var(--mxf-body); font-size: 1rem; font-weight: 500; color: var(--mx-tx-strong); line-height: 1.6; }
.faq-q:focus-visible { outline: 2px solid var(--mx-acc-hi); outline-offset: -3px; }
.faq-q svg { width: 18px; height: 18px; color: var(--mx-acc-hi); flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { padding: 0 24px 20px; color: var(--mx-muted); font-size: .94rem; line-height: 1.9; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.info-col { display: flex; flex-direction: column; gap: 20px; }
.info-media { border-radius: var(--mxr-lg); overflow: hidden; border: 1px solid var(--mx-line); }
.info-row { display: flex; align-items: flex-start; gap: 14px; }
.info-ico { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--mx-line); background: rgba(184, 115, 51, .13); }
.info-ico svg { width: 20px; height: 20px; color: var(--mx-acc-hi); }
.info-row h3 { font-size: 1rem; font-weight: 600; margin-block-end: 3px; }
.info-row p { color: var(--mx-muted); font-size: .9rem; }
.reg-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.reg-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--mx-muted); font-size: .95rem; }
.reg-list svg { width: 20px; height: 20px; color: var(--mx-acc-hi); flex-shrink: 0; margin-block-start: 4px; }

.form-card.solo {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(224, 160, 106, .26), transparent 55%),
    linear-gradient(150deg, var(--mx-wine-2), var(--mx-wine-1) 75%);
  border: 1px solid rgba(224, 160, 106, .32);
  border-radius: var(--mxr-lg);
  padding: 36px 34px;
  position: relative;
  overflow: hidden;
}
.form-card.solo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(242, 235, 226, .11) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .3;
  mask-image: radial-gradient(120% 90% at 100% 0%, #000, transparent 70%);
}
.form-card.solo > * { position: relative; }

.legal { max-width: 840px; margin-inline: auto; }
.legal h2 { font-family: var(--mxf-body); font-size: 1.26rem; font-weight: 600; color: var(--mx-tx-strong); margin-block: 34px 12px; }
.legal h2:first-child { margin-block-start: 0; }
.legal p { color: var(--mx-muted); font-size: .95rem; line-height: 1.95; margin-block-end: 12px; }
.legal ul { color: var(--mx-muted); font-size: .95rem; line-height: 1.95; margin-block-end: 12px; margin-inline-start: 20px; }

/* standalone centred notice (merci / thanks / 404) */
.notice { max-width: 620px; margin-inline: auto; text-align: center; padding-block: 60px; }
.notice .ico { width: 76px; height: 76px; margin-inline: auto; margin-block-end: 26px; display: grid; place-items: center; border-radius: 22px; background: rgba(184, 115, 51, .14); border: 1px solid var(--mx-line); }
.notice .ico svg { width: 34px; height: 34px; color: var(--mx-acc-hi); }
.notice p { color: var(--mx-muted); margin-block-start: 16px; }
.notice .btn { margin-block-start: 30px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* The nav collapses at 1080, not at the old 680: the French menu (7 links plus
   "Ouvrir un compte") needs ~929px on its own, so 681-930px was already
   clipping the CTA off-screen before the language pill was added. At 1081px the
   brand still clears the menu by ~62px. */
@media (max-width: 1080px) {
  .menu { display: none; }
  .burger { display: flex; }
  .nav-right { gap: 12px; }
  .nav.open .menu {
    display: flex;
    position: absolute;
    inset-block-start: var(--mx-nav-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 24px;
    /* The panel is absolute inside a fixed nav, so anything past the fold would
       be unreachable — at 1080 it can now open on a landscape phone. */
    max-block-size: calc(100dvh - var(--mx-nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(7, 6, 5, .97);
    backdrop-filter: blur(18px);
    border-block-end: 1px solid var(--mx-line);
  }
  .nav.open .menu a { padding-block: 10px; font-size: .96rem; }
  .nav.open .menu .btn { justify-content: center; margin-block-start: 8px; }
}

@media (max-width: 960px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-left { padding: 44px 34px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { min-height: 260px; }
  .voices-row { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-inline-end: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-block-end: 1px solid var(--mx-line-soft); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .agg-row { grid-template-columns: 1fr; }
  .gcard { flex: 0 0 calc((100% - 20px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .blog-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  /* Shorter bar on phones only; the 1080 block reads this via var() so the
     dropdown panel stays flush under the bar at either height. */
  :root { --mx-nav-h: 66px; }
  .sect { padding-block: 60px; }
  .hero-left { padding: 38px 26px; }
  .hero-right { padding: 30px 26px; }
  .caps-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-inline-end: none; border-block-end: 1px solid var(--mx-line-soft); }
  .metric:last-child { border-block-end: none; }
  .steps { grid-template-columns: 1fr; }
  .gcard { flex: 0 0 100%; }
  .split-copy { padding: 38px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bar { flex-direction: column; gap: 12px; text-align: center; }
  .cta-band { padding: 48px 26px; }
  .form-card.solo { padding: 30px 24px; }
}

/* Narrow phones: the bar carries brand + wordmark + pill + burger. Stepping the
   wordmark down keeps it (the house identity) visible to 280px. */
@media (max-width: 400px) {
  .nav-in { padding-inline: 16px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .nav-right { gap: 10px; }
}
