/* ============================================================
   Design System - "Editorial Industrial" (template)
   Derived from reav-industry.com. Replace the brand tokens and the
   two font families; everything else follows from the tokens.
   ============================================================ */

/* --- Self-hosted fonts (GDPR: no Google Fonts CDN) --- */
@font-face { font-family: 'Display'; font-weight: 600; font-display: swap; src: url('/assets/fonts/display-600.woff2') format('woff2'); }
@font-face { font-family: 'Display'; font-weight: 700; font-display: swap; src: url('/assets/fonts/display-700.woff2') format('woff2'); }
@font-face { font-family: 'Display'; font-weight: 800; font-display: swap; src: url('/assets/fonts/display-800.woff2') format('woff2'); }
@font-face { font-family: 'Body'; font-weight: 400; font-display: swap; src: url('/assets/fonts/body-400.woff2') format('woff2'); }
@font-face { font-family: 'Body'; font-weight: 500; font-display: swap; src: url('/assets/fonts/body-500.woff2') format('woff2'); }

/* --- Tokens --- */
:root {
  /* Brand: one hue, six shades (see references/design-system.md for the HSL recipe) */
  --brand: #1F4FD8;
  --brand-dark: #173BA8;
  --brand-deeper: #0F2670;
  --brand-light: #EAF0FE;
  --brand-glow: #4F7BF5;
  --brand-soft: #8CABFA;
  --brand-rgb: 31, 79, 216;      /* for tinted shadows and glows */
  --glow-rgb: 79, 123, 245;

  /* Tinted neutrals - never pure grey, never pure black */
  --dark: #060E2B;
  --dark-card: #0D1840;
  --dark-border: #1B2A5E;
  --text: #0B1230;
  --text-secondary: #46507A;
  --surface: #F3F6FD;
  --border: #DCE3F4;
  --white: #FFFFFF;

  /* One semantic accent: proof, success, duration */
  --violet: #7C5CF0;      /* couleur de soutien, jamais en aplat principal */
  --violet-rgb: 124, 92, 240;
  --accent: #10B981;
  --accent-soft: #ECFDF5;

  --font-display: 'Display', system-ui, sans-serif;
  --font-body: 'Body', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1200px;
  --container-wide: 1400px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Inline links inside prose stay recognisable */
.prose a, p a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* --- Accessibility --- */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 10000;
  padding: 10px 18px; background: var(--brand); color: #fff; font-weight: 700;
  border-radius: var(--radius-sm); transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 3px; border-radius: 4px; }

/* --- Scroll progress --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 9999;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow), var(--brand-soft));
  transition: width .1s linear;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); overflow-wrap: break-word; }
h1, .h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; }
h2, .h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h3, .h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.subtitle { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-secondary); max-width: 55ch; line-height: 1.7; }
.subtitle-wide { max-width: 66ch; } /* opt-in only, 55ch stays the reading measure */
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
}
.text-secondary { color: var(--text-secondary); }

/* Gradient heading: a .gradient-text fragment colours the whole heading,
   so the title never reads as two colours. */
.gradient-text,
h1:has(.gradient-text), h2:has(.gradient-text), h3:has(.gradient-text) {
  background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-glow) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
:is(h1, h2, h3):has(.gradient-text) .gradient-text { background-image: none; }
.section-dark :is(h1, h2, h3):has(.gradient-text) {
  background-image: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-glow) 100%);
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: 24px; }

.section { padding: 120px 0; position: relative; }
.section--tight-top { padding-top: 60px; }
.section--flush-bottom { padding-bottom: 0; }
.section-surface { background: var(--surface); position: relative; overflow: hidden; }
.section-dark { background: var(--dark); color: var(--white); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .subtitle, .section-dark .text-secondary { color: rgba(255,255,255,.8); }
.section-dark .eyebrow { color: var(--brand-glow); }

.section-header { max-width: 600px; margin-bottom: 64px; position: relative; z-index: 1; }
.section-header .subtitle { margin-top: 20px; }
.section-header.centered { text-align: center; max-width: 680px; margin-inline: auto; }
.section-header.centered .eyebrow { justify-content: center; }
.section-header.centered .subtitle { margin-inline: auto; }

/* Wave divider: two paths on the same curve, top colour / bottom colour */
.divider { position: relative; width: 100%; overflow: hidden; line-height: 0; margin: -1px 0; z-index: 2; }
.divider svg { display: block; width: 100%; height: 70px; }

.grid { display: grid; gap: 24px; position: relative; z-index: 1; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-wide { grid-column: span 2; }

/* Asymmetric: sticky title left, stacked cards right */
.asym { display: grid; grid-template-columns: .4fr .6fr; gap: 80px; align-items: start; position: relative; z-index: 1; }
.asym-header { position: sticky; top: 120px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.flex { display: flex; } .flex-center { align-items: center; justify-content: center; } .flex-wrap { flex-wrap: wrap; }
.gap-16 { gap: 16px; } .text-center { text-align: center; }
.mt-24 { margin-top: 24px; } .mt-48 { margin-top: 48px; }

/* ============================================================
   MOTION - one curve everywhere: var(--ease)
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide-left { opacity: 0; transform: translateX(-60px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide-right { opacity: 0; transform: translateX(60px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.scale-in { opacity: 0; transform: scale(.9); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-up.visible, .slide-left.visible, .slide-right.visible, .scale-in.visible { opacity: 1; transform: none; }
.stagger > :nth-child(2) { transition-delay: 100ms; }
.stagger > :nth-child(3) { transition-delay: 200ms; }
.stagger > :nth-child(4) { transition-delay: 300ms; }
.stagger > :nth-child(5) { transition-delay: 400ms; }
.stagger > :nth-child(6) { transition-delay: 500ms; }

.text-reveal .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.text-reveal .word-inner { display: inline-block; transform: translateY(110%); transition: transform .6s var(--ease); }
.text-reveal.visible .word-inner { transform: none; }
.text-reveal .word:nth-child(n+2) .word-inner { transition-delay: .05s; }
.text-reveal .word:nth-child(n+3) .word-inner { transition-delay: .1s; }
.text-reveal .word:nth-child(n+4) .word-inner { transition-delay: .15s; }
.text-reveal .word:nth-child(n+5) .word-inner { transition-delay: .2s; }
.text-reveal .word:nth-child(n+6) .word-inner { transition-delay: .25s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes orb-drift { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.05); } 66% { transform: translate(-20px,15px) scale(.95); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Ambient decoration --- */
.ambient-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0;
  width: 400px; height: 400px; background: rgba(var(--brand-rgb), .08);
  animation: orb-drift 20s ease-in-out infinite;
}
.ambient-orb--a { top: 10%; right: -5%; }
.ambient-orb--b { width: 300px; height: 300px; bottom: 20%; left: -3%; background: rgba(var(--glow-rgb), .06); animation-delay: -7s; }

/* --- Spotlight (cursor glow) & glow border --- */
.spotlight { --spotlight-x: 50%; --spotlight-y: 50%; position: relative; overflow: hidden; }
.spotlight::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1;
  background: radial-gradient(350px circle at var(--spotlight-x) var(--spotlight-y), rgba(var(--brand-rgb), .08), transparent 60%);
  transition: opacity .4s;
}
.spotlight:hover::after { opacity: 1; }
.glow-border { position: relative; }
.glow-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; opacity: 0;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .4), transparent 50%, rgba(var(--glow-rgb), .3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .4s;
}
.glow-border:hover::before { opacity: 1; }

/* ============================================================
   COMPONENTS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.8rem; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  cursor: pointer; white-space: nowrap; position: relative;
  transition: all .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 2px 12px rgba(var(--brand-rgb), .25); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--brand-rgb), .35); }
.btn-secondary { background: transparent; color: var(--brand); border-color: rgba(var(--brand-rgb), .2); }
.btn-secondary:hover { background: var(--brand-light); border-color: var(--brand); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--brand); border-color: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; position: relative; display: flex; flex-direction: column; gap: 14px;
  transition: all .4s var(--ease);
}
/* Motion promises a click: only linked cards lift */
a.card:hover, .card.is-interactive:hover {
  transform: translateY(-4px); border-color: rgba(var(--brand-rgb), .15);
  box-shadow: 0 20px 60px rgba(var(--brand-rgb), .08), 0 8px 24px rgba(0,0,0,.04);
}
.card-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 8px 32px rgba(var(--brand-rgb), .12); transform: translateY(-8px); }
.card-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); color: var(--white); }
.card-dark p { color: rgba(255,255,255,.75); }
.card .card-cta { margin-top: auto; align-self: flex-start; }
.card-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: rgba(var(--brand-rgb), .55); }
.card-meta { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Top bar that unrolls on hover (phase / step cards) */
.card-bar { overflow: hidden; }
.card-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card-bar:hover::before { transform: scaleX(1); }

.icon-tile {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-glow));
}
.icon-tile svg { width: 22px; height: 22px; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; align-self: flex-start; }
.tag-brand { background: var(--brand-light); color: var(--brand); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.7); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.04); transition: all .4s var(--ease);
}
.header.scrolled { background: rgba(255,255,255,.95); box-shadow: 0 1px 20px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--text-secondary); position: relative; transition: color .25s; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px;
  background: var(--brand); border-radius: 2px; transform: translateX(-50%); transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--brand); }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 24px; height: 24px; color: var(--text); }

/* Dropdown: icon tile + title + one-line description */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 22px; } /* hover bridge */
.nav-dropdown-toggle {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--text-secondary);
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 0; line-height: 1;
}
.nav-dropdown-toggle svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.nav-dropdown:is(:hover, :focus-within) .nav-dropdown-toggle { color: var(--brand); }
.nav-dropdown:is(:hover, :focus-within) .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -16px; margin-top: 20px; min-width: 340px; z-index: 120;
  background: rgba(255,255,255,.98); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(14,14,42,.16);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav-dropdown:is(:hover, :focus-within) .nav-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown-end .nav-dropdown-menu { left: auto; right: -16px; }
.nav-dropdown-menu a { display: flex; align-items: flex-start; gap: 13px; padding: 12px 14px; border-radius: var(--radius-md); transition: background .2s; }
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { background: var(--brand-light); }
.nav-dropdown-menu .icon-tile { width: 40px; height: 40px; border-radius: 11px; }
.nav-dropdown-text strong { display: block; font-family: var(--font-display); font-size: .94rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.nav-dropdown-text span { display: block; font-size: .78rem; color: var(--text-secondary); line-height: 1.4; margin-top: 2px; }

/* Language switch: both codes visible, current one is a filled pill (<span>) */
.lang-switch { display: flex; align-items: center; gap: 1px; font-family: var(--font-display); font-size: .66rem; font-weight: 700; letter-spacing: .03em; }
.lang-switch > * { padding: 3px 5px; border-radius: 5px; line-height: 1; }
.lang-switch > span { background: var(--brand); color: var(--white); }
.lang-switch > a { color: var(--text-secondary); transition: background .2s, color .2s; }
.lang-switch > a:hover { background: var(--surface); color: var(--brand); }
.nav-links .lang-switch a::after { content: none; }
.nav-links .lang-switch { margin-left: -18px; }

/* Mobile overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn) { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.mobile-nav a:not(.btn):hover { color: var(--brand); }
.mobile-nav .close-menu { position: absolute; top: 24px; right: 24px; background: none; border: none; cursor: pointer; }
.mobile-nav .close-menu svg { width: 28px; height: 28px; color: var(--text); }
.mobile-group { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-group-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--text-secondary); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 160px 0 80px; position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0; animation: orb-drift 25s ease-in-out infinite;
  background:
    radial-gradient(ellipse 800px 600px at 70% 30%, rgba(var(--brand-rgb), .06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 70%, rgba(var(--glow-rgb), .04) 0%, transparent 70%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(var(--brand-rgb), .03) 1px, transparent 1px), linear-gradient(rgba(var(--brand-rgb), .03) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 24px; }
.hero .subtitle { margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: var(--text-secondary); margin-top: 16px; }
.hero-media {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid rgba(var(--brand-rgb), .08);
  box-shadow: 0 40px 80px rgba(var(--brand-rgb), .1), 0 16px 40px rgba(0,0,0,.08);
}
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.95);
  border-radius: var(--radius-md); padding: 12px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.1);
  font-size: 14px; font-weight: 600; animation: float 6s ease-in-out infinite;
}
.hero-badge--tr { top: 20px; right: 20px; }
.hero-badge--bl { bottom: 20px; left: 20px; animation-delay: -2s; }

/* Inner page hero */
.page-hero { padding: 120px 0 80px; background: var(--surface); position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.page-hero-grid .hero-media { aspect-ratio: 16 / 9; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }
.breadcrumb-sep { color: var(--border); }

/* ============================================================
   LOGO MARQUEE & STATS
   ============================================================ */
.trust { padding: 40px 0; overflow: hidden; }
.trust-label { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-secondary); font-weight: 700; margin-bottom: 24px; }
.trust-track { display: flex; gap: 72px; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.trust-track > a { display: flex; align-items: center; flex-shrink: 0; }
.trust-track img { height: 36px; width: auto; max-width: 120px; object-fit: contain; opacity: .45; filter: grayscale(50%); transition: all .4s; }
.trust-track :is(a:hover, a:focus-visible) img { opacity: 1; filter: none; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--dark); border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.stats-row::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(var(--brand-rgb), .15) 0%, transparent 50%, rgba(var(--glow-rgb), .1) 100%); }
.stat-item { padding: 44px 28px; text-align: center; position: relative; z-index: 1; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.08); }
.stat-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 8px; }
.card .stat-value { color: var(--brand); }
.card .stat-label { color: var(--text-secondary); }
.stats-note { font-size: 12px; color: var(--text-secondary); margin-top: 10px; text-align: right; }

/* ============================================================
   FAQ, CTA, FOOTER
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; transition: all .3s; }
.faq-item:hover { border-color: rgba(var(--brand-rgb), .2); }
.faq-item.open { border-color: var(--brand); box-shadow: 0 4px 20px rgba(var(--brand-rgb), .06); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 22px 24px; background: var(--white); border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text);
}
.faq-question:hover { background: var(--surface); }
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-secondary); transition: transform .4s var(--ease); }
.faq-item.open .faq-question { color: var(--brand); }
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--brand); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 24px; color: var(--text-secondary); line-height: 1.7; transition: max-height .4s var(--ease), padding .4s; }
.faq-item.open .faq-answer { max-height: 1000px; padding: 0 24px 22px; }

.cta-section { text-align: center; padding: 120px 0; }
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; animation: orb-drift 20s ease-in-out infinite;
  background: radial-gradient(ellipse 600px 400px at 20% 60%, rgba(var(--glow-rgb), .12), transparent), radial-gradient(ellipse 500px 300px at 80% 70%, rgba(var(--brand-rgb), .1), transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%); mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 18px; }
.cta-section .subtitle { margin: 0 auto 40px; }
.cta-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.65); }
.cta-contact a { color: rgba(255,255,255,.85); }

.footer { padding: 40px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; max-width: 640px; }
.footer-links a, .footer-legal a { font-size: 14px; color: var(--text-secondary); transition: color .2s; }
.footer-links a:hover, .footer-legal a:hover { color: var(--brand); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--text-secondary); }
.footer-contact a:first-child { color: var(--brand); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; font-size: 13px; color: var(--text-secondary); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* Long-form content (legal, articles) */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: var(--text-secondary); }
.prose h2 { font-size: 1.55rem; margin: 56px 0 18px; }
.prose h3 { margin: 32px 0 12px; }
.prose p + p { margin-top: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Burger threshold: measure the longest nav (most verbose locale), do not guess */
@media (max-width: 1080px) {
  .nav-links a:not(.btn), .nav-dropdown, .header .lang-switch { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .bento { grid-template-columns: repeat(2, 1fr); }
  .asym { grid-template-columns: 1fr; gap: 40px; }
  .asym-header { position: static; }
  .card-featured { transform: none; }
}
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 40px; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-inner, .split-2, .grid-2, .grid-3, .grid-4, .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .hero-media--desktop { display: none; }
  .hero-bg::after { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius-lg); }
  .stat-item { padding: 28px 16px; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-value { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .page-hero { padding: 100px 0 40px; }
  .footer-grid { flex-direction: column; gap: 24px; }
  .footer-links { flex-direction: column; gap: 0; }
  .footer-links a { padding: 7px 0; } /* touch target >= 37px */
  h1 { font-size: clamp(2.2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
}
@media (max-width: 400px) {
  .btn { white-space: normal; max-width: 100%; padding: .8rem 1.3rem; }
  /* Chrome CTAs stay on one line: a wrapped header button outgrows the header */
  .header .btn, .mobile-nav .btn { white-space: nowrap; padding: .7rem 1.1rem; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-up, .slide-left, .slide-right, .scale-in { opacity: 1; transform: none; }
  .text-reveal .word-inner { transform: none; }
}
