/* ============================================================
   TAVEO — Landing v3
   Scroll-driven animations (CSS animation-timeline)
   White + #1788FD. Techniques inspired by
   scroll-driven-animations.style
   ============================================================ */

/* ---------- Registered custom props (for scrubbed counters) ---------- */
@property --count-hours { syntax: "<integer>"; initial-value: 0; inherits: false; }
@property --count-pct   { syntax: "<integer>"; initial-value: 0; inherits: false; }
@property --count-days  { syntax: "<integer>"; initial-value: 0; inherits: false; }

/* ---------- Reset / tokens ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1788FD;
  --blue-ink:    #0E6FE0;
  --blue-deep:   #0A4FA8;
  --blue-tint:   #EAF3FE;
  --blue-tint-2: #F4F9FF;
  --blue-glow:   rgba(23, 136, 253, .35);

  --ink:   #0A1626;
  --ink-2: #38465B;
  --mute:  #7C899B;
  --line:  #E7EDF4;
  --line-2:#F0F4F9;
  --white: #FFFFFF;

  --green: #18A957;
  --red:   #E5484D;
  --amber: #F08C00;

  --container: 1320px;
  --pad: clamp(20px, 4.5vw, 72px);
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 24px 60px -24px rgba(10, 79, 168, .28);
  --shadow-sm: 0 10px 30px -12px rgba(10, 22, 38, .18);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.script { font-family: 'Sacramento', cursive; }

/* ============================================================
   SCROLL PROGRESS BAR (scroll-driven)
   ============================================================ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), #59abff);
  transform: scaleX(0);
  animation: grow-progress linear both;
  animation-timeline: scroll(root);
}
@keyframes grow-progress { to { transform: scaleX(1); } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--white) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav > .nav-brand { justify-self: start; }
.nav > .nav-links { justify-self: center; }
.nav > .nav-actions { justify-self: end; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-brand { display: inline-flex; align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; }
.nav-brand .brand-logo { transform: scale(1.25); transform-origin: left center; }
.footer-logo { height: 46px; }
.nav-brand .script { font-size: 42px; line-height: 1; color: var(--ink); }
.nav-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 16px; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 600;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px var(--blue-glow); }
.btn-primary:hover { background: var(--blue-ink); transform: translateY(-2px); box-shadow: 0 16px 32px -10px var(--blue-glow); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 20px 36px; font-size: 18px; }
.btn-light { background: #fff; color: var(--blue-ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(0,0,0,.25); }

.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(72px, 9vh, 110px) 0 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 0%, var(--blue-tint) 0%, transparent 70%),
    linear-gradient(180deg, var(--blue-tint-2), #fff 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 55% at 50% 35%, #000 0%, transparent 75%);
  opacity: .55;
}
.hero-inner { position: relative; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.pill b { color: var(--blue-ink); font-weight: 600; }
.pill .tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue-ink); background: var(--blue-tint);
  padding: 3px 9px; border-radius: 999px;
}

.hero-title {
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.045em;
  margin: 20px auto 0;
  text-wrap: balance;
  max-width: 14ch;
}
.hero-title .grad {
  background: linear-gradient(115deg, var(--blue) 10%, #5cb0ff 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--ink-2);
  max-width: 50ch;
  margin: 18px auto 0;
  text-wrap: balance;
}
.hero-cta { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--mute); display: flex; gap: 8px; justify-content: center; align-items: center; }
.hero-note .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(24,169,87,.5); animation: live 2s var(--ease) infinite; }
@keyframes live { 0%{ box-shadow:0 0 0 0 rgba(24,169,87,.5);} 70%{ box-shadow:0 0 0 8px rgba(24,169,87,0);} 100%{ box-shadow:0 0 0 0 rgba(24,169,87,0);} }

/* ----- Hero mock dashboard (parallax via scroll) ----- */
.hero-stage {
  position: relative;
  margin: 56px auto 0;
  max-width: 940px;
  perspective: 1400px;
}
.hero-dash {
  position: relative;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: 50% 0%;
  animation: hero-rise linear both;
  animation-timeline: view();
  animation-range: cover 0% cover 60%;
}
@keyframes hero-rise {
  from { transform: rotateX(16deg) scale(.94); opacity: .4; }
  to   { transform: rotateX(0deg) scale(1); opacity: 1; }
}
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); background: var(--blue-tint-2); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dash-dots i:nth-child(1){ background:#ff5f57; } .dash-dots i:nth-child(2){ background:#febc2e; } .dash-dots i:nth-child(3){ background:#28c840; }
.dash-url { margin-left: 8px; font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 7px; }
.dash-url .lock { width: 11px; height: 11px; color: var(--green); }
.dash-body { display: grid; grid-template-columns: 200px 1fr; min-height: 360px; }
.dash-side { border-right: 1px solid var(--line-2); padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.dash-side .ds-logo { height: 20px; width: auto; display: block; margin: 2px 6px 14px; }
.ds-item { display:flex; align-items:center; gap:10px; padding: 9px 11px; border-radius: 10px; font-size: 13px; font-weight:500; color: var(--ink-2); }
.ds-item .ic { width: 16px; height: 16px; color: var(--mute); }
.ds-item.on { background: var(--blue-tint); color: var(--blue-ink); }
.ds-item.on .ic { color: var(--blue); }
.dash-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.dm-head { display: flex; justify-content: space-between; align-items: flex-end; }
.dm-title { font-size: 16px; font-weight: 600; }
.dm-sub { font-size: 12px; color: var(--mute); }
.dm-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.dm-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.dm-card .lbl { font-size: 11px; color: var(--mute); display:flex; align-items:center; gap:6px; }
.dm-card .lbl .d { width:7px; height:7px; border-radius:50%; }
.dm-card .val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.dm-card .chg { font-size: 11px; font-weight: 600; margin-top: 2px; }
.chg.up { color: var(--green); } .chg.down { color: var(--red); }
.dm-chart { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display:flex; flex-direction:column; gap:12px; min-height: 150px; }
.dm-chart .ch-head { display:flex; justify-content:space-between; align-items:center; font-size:12px; color: var(--mute); }
.dm-chart svg { width: 100%; height: 96px; }

/* floating chips around the hero dashboard (parallax) */
.float {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 14px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
  animation: float-y linear both;
  animation-timeline: scroll(root);
  animation-range: 0 600px;
}
.float .fic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.float small { display:block; font-size: 11px; font-weight: 500; color: var(--mute); }
.float-1 { top: 8%; left: -3%; --shift: -54px; }
.float-2 { top: 30%; right: -4%; --shift: -90px; }
.float-3 { bottom: 12%; left: -5%; --shift: -120px; }
.float-4 { bottom: 22%; right: -2%; --shift: -150px; }
@keyframes float-y { to { transform: translateY(var(--shift)); } }
@media (max-width: 980px) { .float { display: none; } }

/* ----- marquee logos ----- */
.trust { margin-top: 64px; text-align: center; }
.trust p { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.trust-row {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; align-items: center;
}
.trust-row .lg {
  display:inline-flex; align-items:center; gap:9px;
  font-size: 16px; font-weight: 700; color: var(--ink-2); opacity: .72;
  filter: grayscale(1); transition: opacity .25s, filter .25s;
}
.trust-row .lg:hover { opacity: 1; filter: none; }
.trust-row .lg .sq { width: 22px; height: 22px; border-radius: 6px; background: currentColor; opacity:.85; }

/* ============================================================
   GENERIC SECTION + REVEAL ON VIEW (scroll-driven)
   ============================================================ */
.section { padding: clamp(96px, 13vh, 180px) 0; }
.section-head { max-width: 880px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-ink);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }
.h2 {
  font-size: clamp(44px, 6.6vw, 104px);
  font-weight: 600; line-height: .96; letter-spacing: -.045em;
  margin-top: 16px; text-wrap: balance;
}
.lead { font-size: clamp(19px, 1.7vw, 27px); color: var(--ink-2); margin-top: 22px; max-width: 50ch; }
.section-head.center .lead { margin-inline: auto; }

/* reveal-on-view utility */
.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 32%;
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-soft {
  animation: reveal-fade linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 40%;
}
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   CONSTAT + RÉPONSE — one light tile, scroll-revealed text
   ============================================================ */
.reveal-block { background: #fff; }
.rb-tile {
  max-width: 1080px; margin-inline: auto;
  background: var(--blue-tint-2);
  border: 1px solid var(--line);
  border-radius: clamp(22px, 3vw, 40px);
  padding: clamp(40px, 6vw, 100px);
  display: flex; flex-direction: column; gap: clamp(36px, 5vw, 68px);
}
.rb-line {
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.035em;
  margin-top: 20px; text-wrap: balance;
}
.rb-line .w {
  color: #c6d4e4; /* light, dim — fills in on scroll */
  animation: word-on linear both;
  animation-timeline: view(block);
  animation-range: entry 22% cover 56%;
}
@keyframes word-on { to { color: var(--ink); } }
.rb-response .w.hl { animation-name: word-on-hl; }
@keyframes word-on-hl { to { color: var(--blue); } }

.rb-figure { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); margin-top: clamp(28px, 3.5vw, 52px); flex-wrap: wrap; }
.rb-num {
  font-weight: 600; letter-spacing: -.05em; line-height: .82;
  font-size: clamp(76px, 11vw, 156px); color: var(--blue);
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: flex-start;
}
.rb-count { font-variant-numeric: tabular-nums; }
.rb-u { font-size: .32em; font-weight: 600; margin-top: .28em; color: #7cb8ff; }
.rb-cap { font-size: clamp(15px, 1.25vw, 19px); color: var(--mute); max-width: 30ch; line-height: 1.55; }
.rb-sep { height: 1px; background: var(--line); }

/* ============================================================
   METHODE — sticky stacking cards (scroll-driven)
   ============================================================ */
.methode .section-head { margin-bottom: 18px; }
.stack { --cards: 4; }
.stack-card {
  position: sticky;
  top: clamp(90px, 14vh, 130px);
  margin-bottom: 26px;
}
.stack-card .card-in {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: clamp(26px, 3.4vw, 48px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: 50% 0;
  animation: card-shrink linear both;
  animation-timeline: view();
  animation-range: exit -10% exit 80%;
}
@keyframes card-shrink {
  to { transform: scale(.93); filter: brightness(.97); }
}
.stack-card:last-child .card-in { animation: none; }
.card-meta { display: flex; align-items: center; gap: 14px; }
.card-num { font-size: 15px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.card-rail { flex: 1; height: 1px; background: var(--line); }
.card-tag { font-size: 12px; font-weight: 600; color: var(--mute); }
.card-h { font-size: clamp(36px, 4.4vw, 72px); font-weight: 600; letter-spacing: -.04em; margin-top: 20px; }
.card-p { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 21px); margin-top: 16px; max-width: 40ch; }
.card-feat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.card-feat span { font-size: 13px; font-weight: 500; color: var(--blue-ink); background: var(--blue-tint); padding: 6px 12px; border-radius: 999px; }
.card-visual { position: relative; border-radius: var(--r-sm); background: var(--blue-tint-2); border: 1px solid var(--line); min-height: 280px; overflow: hidden; }

/* visual: audit chart */
.v-audit { padding: 20px; display:flex; flex-direction:column; gap: 14px; }
.v-audit .row { display:flex; justify-content:space-between; align-items:center; }
.v-audit .lab { font-size: 12px; color: var(--mute); }
.v-audit .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.v-audit svg { width: 100%; height: 130px; margin-top: auto; }
.v-audit .yb { display:flex; gap: 6px; align-items:flex-end; height: 130px; margin-top: auto; }
.v-audit .yb i { flex:1; background: linear-gradient(180deg, var(--blue), #7cb8ff); border-radius: 6px 6px 0 0; opacity:.9; }

/* visual: production hub + orbit */
.v-prod { position: relative; display:grid; place-items:center; overflow:hidden; }
.v-prod .orbit-ring { position:absolute; width: min(240px, 64%); aspect-ratio: 1; border-radius:50%; border:1.5px dashed color-mix(in srgb, var(--blue) 32%, transparent); animation: spin 26s linear infinite; }
.v-prod .orbit-ring::after { content:''; position:absolute; top:50%; left:50%; width:62%; height:62%; transform:translate(-50%,-50%); border-radius:50%; border:1px dashed var(--line); }
@keyframes spin { to { transform: rotate(360deg); } }
.v-prod .hub { position:relative; z-index:2; width: 124px; height:124px; border-radius:30px; background:#fff; border:1px solid var(--line); box-shadow: var(--shadow); display:grid; place-items:center; }
.v-prod .hub img { width: 82px; height:auto; display:block; }
.v-prod .hub::after { content:''; position:absolute; inset:-12px; border-radius:38px; border:2px solid var(--blue-glow); animation: ring 2.8s var(--ease) infinite; }
@keyframes ring { 0%{ transform:scale(1); opacity:.7;} 100%{ transform:scale(1.45); opacity:0; } }
.v-prod .chip { position:absolute; z-index:3; font-size:13px; font-weight:600; background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 14px; box-shadow: var(--shadow-sm); white-space:nowrap; }
.v-prod .c1 { top: 7%; left:50%; transform:translateX(-50%); }
.v-prod .c2 { top:50%; right: 5%; transform:translateY(-50%); }
.v-prod .c3 { bottom: 7%; left:50%; transform:translateX(-50%); }
.v-prod .c4 { top:50%; left: 5%; transform:translateY(-50%); }

/* visual: suivi apps */
.v-suivi { padding: 22px; display:flex; flex-direction:column; gap: 12px; justify-content:center; }
.v-app { display:flex; align-items:center; gap: 12px; background:#fff; border:1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.v-app .ico { width: 34px; height: 34px; border-radius: 9px; display:grid; place-items:center; color:#fff; font-weight:700; font-size: 13px; }
.v-app .nm { font-size: 14px; font-weight: 600; flex:1; }
.v-app .pc { font-size: 13px; font-weight: 700; }
.pc.up { color: var(--green); } .pc.down { color: var(--red); }

/* visual: scalabilité */
.v-scale { padding: 22px; display:flex; flex-direction:column; gap: 16px; justify-content:center; }
.v-scale .tagk { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; }
.v-scale .tagk b { color: var(--green); }
.v-scale svg { width: 100%; height: 120px; }
.v-scale .bubble { background:#fff; border:1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--ink-2); box-shadow: var(--shadow-sm); display:flex; align-items:center; gap:10px; }
.v-scale .bubble .av { width: 26px; height:26px; border-radius:50%; background: var(--blue-tint); }

/* ============================================================
   EXEMPLES — pinned horizontal scroll (scroll-driven)
   ============================================================ */
.gallery { position: relative; height: 320vh; background: var(--blue-tint-2); }
.gallery-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.gallery-top { padding: clamp(40px, 8vh, 90px) var(--pad) 0; max-width: var(--container); margin-inline: auto; width: 100%; }
/* ghost index behind the stack */
.gallery-ghost {
  position: absolute; right: clamp(-10px, 2vw, 40px); top: 54%;
  transform: translateY(-50%);
  font-size: clamp(200px, 34vw, 520px); font-weight: 600; line-height: .8;
  letter-spacing: -.05em; color: var(--blue); opacity: .06; z-index: 0;
  pointer-events: none; font-variant-numeric: tabular-nums; user-select: none;
}
.gallery-ghost.pop { animation: ghostpop .55s var(--ease); }
@keyframes ghostpop { from { opacity: 0; transform: translateY(-50%) scale(.92) translateX(20px); } to { opacity: .06; transform: translateY(-50%) scale(1); } }

/* segmented stepper */
.gallery-steps { position: relative; display: flex; gap: 8px; margin-top: 26px; }
.step { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 4px 0;
  text-align: left; border-top: 2px solid var(--line); cursor: pointer;
  transition: border-color .45s var(--ease); }
.step .step-n { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
  background: var(--line-2); color: var(--mute); font-variant-numeric: tabular-nums;
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease); }
.step .step-t { font-size: 17px; font-weight: 600; color: var(--mute); transition: color .45s var(--ease); }
.step.is-active { border-top-color: var(--blue); }
.step.is-active .step-n { background: var(--blue); color: #fff; box-shadow: 0 8px 18px -5px var(--blue-glow); transform: scale(1.06); }
.step.is-active .step-t { color: var(--ink); }
.step:hover .step-t { color: var(--ink-2); }

/* in-place vertical switcher — cards share one grid cell, JS slides them vertically */
.track-viewport { flex: 1; position: relative; overflow: clip; }
.track { position: absolute; inset: 0; display: grid; place-items: center;
  padding: 0 var(--pad) clamp(24px, 6vh, 64px); }
.ex-card {
  grid-area: 1 / 1;
  width: min(1180px, 94vw);
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 1.04fr .96fr; min-height: min(64vh, 580px);
  opacity: 1; will-change: transform; backface-visibility: hidden;
}
.ex-text { padding: clamp(34px, 3.8vw, 68px); display: flex; flex-direction: column; }
.ex-idx { font-size: 16px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.ex-h { font-size: clamp(38px, 4.4vw, 68px); font-weight: 600; line-height: .98; letter-spacing: -.04em; margin-top: 18px; text-wrap: balance; }
.ex-p { color: var(--ink-2); font-size: clamp(18px, 1.5vw, 24px); margin-top: 18px; }
.ex-list { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
.ex-list li { list-style: none; display:flex; align-items:center; gap:12px; font-size: 17px; color: var(--ink-2); }
.ex-list .ck { width: 20px; height: 20px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-ink); display:grid; place-items:center; flex-shrink:0; }
.ex-visual { background: var(--blue-tint-2); border-left: 1px solid var(--line); padding: 22px; display:flex; align-items:center; justify-content:center; }

/* CRM mock */
.crm { width: 100%; background:#fff; border:1px solid var(--line); border-radius: 14px; overflow:hidden; box-shadow: var(--shadow-sm); font-size: 12px; }
.crm-top { display:flex; gap: 4px; padding: 10px 12px; border-bottom:1px solid var(--line-2); }
.crm-top span { font-size:11px; font-weight:600; color: var(--mute); padding: 5px 11px; border-radius: 8px; }
.crm-top span.on { background: var(--blue-tint); color: var(--blue-ink); }
.crm-r { display:grid; grid-template-columns: 1.6fr .9fr .7fr; gap: 8px; align-items:center; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.crm-r:last-child { border-bottom:none; }
.crm-r .who { display:flex; align-items:center; gap:9px; }
.crm-r .av { width: 26px; height: 26px; border-radius:50%; flex-shrink:0; }
.crm-r b { font-size: 12px; font-weight: 600; display:block; }
.crm-r small { color: var(--mute); font-size: 10px; }
.pill-s { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill-green { background:#e6f7ee; color: var(--green); }
.pill-amber { background:#fff1de; color: var(--amber); }
.pill-blue { background: var(--blue-tint); color: var(--blue-ink); }
.crm-r .val { font-weight: 700; text-align: right; }

/* IA orbit mock */
.orbit { position: relative; width: 260px; height: 260px; display:grid; place-items:center; }
.orbit .ring { position:absolute; border:1px solid var(--line); border-radius:50%; }
.orbit .ring.r1 { inset: 0; } .orbit .ring.r2 { inset: 38px; }
.orbit .center { width: 96px; height:96px; border-radius:50%; background: var(--blue); display:grid; place-items:center; color:#fff; font-weight:700; font-size: 22px; box-shadow: 0 16px 36px -10px var(--blue-glow); position:relative; }
.orbit .center::after { content:''; position:absolute; inset:-12px; border-radius:50%; border:2px solid var(--blue-glow); animation: ring 2.6s var(--ease) infinite; }
.orbit .blip { position:absolute; width: 36px; height:36px; border-radius:12px; background:#fff; border:1px solid var(--line); display:grid; place-items:center; box-shadow: var(--shadow-sm); color: var(--blue); }
.orbit .b1 { top: 4px; left: 50%; transform: translateX(-50%); }
.orbit .b2 { bottom: 28px; left: 6px; }
.orbit .b3 { bottom: 28px; right: 6px; }

/* Prio mock */
.prio { width:100%; display:grid; gap: 10px; }
.prio-col { background:#fff; border:1px solid var(--line); border-radius: 12px; padding: 12px 14px; display:flex; align-items:center; gap: 12px; box-shadow: var(--shadow-sm); }
.prio-col .bar { width: 4px; align-self:stretch; border-radius: 4px; }
.prio-col .bar.red{ background: var(--red);} .prio-col .bar.amber{ background: var(--amber);} .prio-col .bar.green{ background: var(--green);}
.prio-col b { font-size: 13px; }
.prio-col small { color: var(--mute); font-size: 11px; display:block; }
.prio-col .lvl { margin-left:auto; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* ============================================================
   BENEFICES
   ============================================================ */
.ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.ben {
  border: 1px solid var(--line); border-radius: var(--r); padding: 36px;
  background: #fff; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% cover 30%;
}
.ben:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow); }
.ben-ic { width: 58px; height: 58px; border-radius: 16px; background: var(--blue-tint); color: var(--blue-ink); display:grid; place-items:center; }
.ben h4 { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-top: 22px; }
.ben p { color: var(--ink-2); font-size: 17.5px; margin-top: 12px; }

/* ============================================================
   COMPARE
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 46px; }
.cp { border-radius: var(--r); padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); }
.cp--muted { background: var(--line-2); }
.cp--accent { background: linear-gradient(165deg, var(--blue) 0%, var(--blue-ink) 100%); color:#fff; border-color: transparent; box-shadow: var(--shadow); }
.cp h4 { font-size: 27px; font-weight: 700; letter-spacing:-.02em; }
.cp--muted h4 { color: var(--ink-2); }
.cp ul { list-style:none; margin-top: 22px; display:grid; gap: 14px; }
.cp li { display:flex; gap: 12px; align-items:flex-start; font-size: 18px; }
.cp--muted li { color: var(--ink-2); }
.cp .mk { width: 22px; height:22px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; font-size: 12px; font-weight:700; }
.cp--muted .mk { background:#fff; color: var(--mute); border:1px solid var(--line); }
.cp--accent .mk { background: rgba(255,255,255,.2); color:#fff; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: clamp(20px, 2.2vw, 30px); font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-tog { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: background .2s, border-color .2s; }
.faq-tog::before, .faq-tog::after { content:''; position:absolute; top:50%; left:50%; width:11px; height:2px; background: var(--ink); border-radius:2px; transform: translate(-50%,-50%); transition: transform .25s var(--ease), background .2s; }
.faq-tog::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-tog { background: var(--blue); border-color: var(--blue); }
.faq-item[open] .faq-tog::before, .faq-item[open] .faq-tog::after { background:#fff; }
.faq-item[open] .faq-tog::after { transform: translate(-50%,-50%) rotate(0); }
.faq-body { color: var(--ink-2); font-size: 18px; line-height: 1.6; padding: 0 60px 28px 0; max-width: 60ch; }
.faq-aside { align-self: start; position: sticky; top: 120px; }
.faq-aside .h2 { margin-top: 14px; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 3vw, 34px);
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; text-align: center;
  padding: clamp(54px, 8vw, 110px) var(--pad);
  box-shadow: var(--shadow);
}
.cta::before, .cta::after {
  content:''; position:absolute; border-radius:50%;
  border: 40px solid rgba(255,255,255,.10);
}
.cta::before { width: 360px; height: 360px; top: -160px; left: -120px; }
.cta::after { width: 420px; height: 420px; bottom: -220px; right: -120px; }
.cta-in { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(48px, 7vw, 116px); font-weight: 600; letter-spacing: -.045em; line-height: .96; text-wrap: balance; }
.cta p { color: rgba(255,255,255,.85); font-size: clamp(19px,1.7vw,27px); margin: 24px auto 0; max-width: 46ch; }
.cta .hero-cta { margin-top: 34px; }

.footer { padding: 70px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand .script { font-size: 54px; line-height: 1; }
.footer-brand p { color: var(--ink-2); font-size: 14px; margin-top: 12px; max-width: 32ch; }
.footer-col h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.footer-col ul { list-style: none; margin-top: 16px; display:grid; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--mute); }
.footer-social { display:flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; border:1px solid var(--line); display:grid; place-items:center; color: var(--ink-2); transition: all .2s; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color:#fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .constat-grid { grid-template-columns: 1fr; gap: 40px; }
  .stack-card .card-in { grid-template-columns: 1fr; }
  .card-visual { order: -1; min-height: 220px; }
  .ben-grid { grid-template-columns: 1fr 1fr; }
  .ex-card { grid-template-columns: 1fr; }
  .ex-visual { display: none; }
  .ex-card { width: min(92vw, 560px); min-height: auto; }
  .step .step-t { display: none; }
  .gallery-steps { gap: 12px; }
  .gallery-ghost { font-size: clamp(160px, 40vw, 300px); opacity: .05; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ben-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .constat-stats { grid-template-columns: 1fr; }
  .cs { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
}

/* ============================================================
   FALLBACK — browsers without scroll-driven animation support
   Keep content visible & static.
   ============================================================ */
@supports not (animation-timeline: scroll()) {
  .reveal, .reveal-soft, .ben, .hero-dash, .float { animation: none !important; opacity: 1 !important; transform: none !important; }
  .manifesto-line .w { color: var(--ink) !important; }
  .manifesto-line .w.hl, .manifesto-line .w.script { color: var(--blue) !important; }
  .rb-line .w { color: var(--ink) !important; }
  .rb-response .w.hl { color: var(--blue) !important; }
  .counter-num::before { content: '12'; }
  .progress { display: none; }
  .stack-card { position: static; }
  .stack-card .card-in { animation: none !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .ex-idx, .ex-h, .ex-p, .ex-list, .ex-visual { transition-duration: .001s !important; }
  .rb-line .w { color: var(--ink) !important; }
  .rb-response .w.hl { color: var(--blue) !important; }
}
