/* ============================================================
   PRISM — "HiddenQ" charte (faithful)
   Onest · royal-blue accent · floating pill nav
   Cool light-gray bg w/ light streaks · soft white rounded cards
   Two-tone headlines · icon tiles w/ corner dots
============================================================ */

:root {
  --bg:        #f3f5f8;     /* cool light-gray page base */
  --bg-card:   #ffffff;
  --panel:     #eef1f6;     /* mock / tinted panels */
  --panel-2:   #f7f8fb;

  --ink:       #16233f;     /* deep navy headings */
  --slate:     #8a93a8;     /* 2nd headline line / muted */
  --ink-2:     #5b6680;     /* body */
  --ink-3:     #8a93a8;     /* captions */
  --line:      #e6e9f0;
  --line-2:    #dadfe8;

  --accent:    #2563eb;     /* royal blue */
  --accent-2:  #1f57e6;
  --accent-lt: #3d78ff;
  --accent-soft: #eef3ff;

  --sans: 'Onest', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Onest', ui-sans-serif, system-ui, sans-serif;

  --max:    1180px;
  --r-lg:   28px;
  --r-md:   18px;
  --r-sm:   12px;
  --pill:   100px;

  --sh-sm:  0 1px 2px rgba(22,35,63,0.05);
  --sh:     0 14px 38px -18px rgba(22,35,63,0.18), 0 2px 8px -4px rgba(22,35,63,0.06);
  --sh-lg:  0 36px 70px -34px rgba(22,35,63,0.28);
  --sh-blue: 0 12px 26px -10px rgba(37,99,235,0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
/* diagonal light streaks over the whole page */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 26%),
    linear-gradient(118deg, rgba(255,255,255,0) 52%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0) 70%);
}
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.8rem; }

/* ============================================================
   Type
============================================================ */
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.1rem;
}
.h-section {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.03em; font-weight: 600;
  max-width: 20ch;
}
.h-section .mut { color: var(--slate); }
.h-section .dot { color: var(--accent); }
.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.6;
}

/* ============================================================
   Section rhythm
============================================================ */
.section { padding: 6.5rem 0; }
.section.soft { background: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.7); border-bottom: 1px solid var(--line); }
.section-head { max-width: 64ch; margin: 0 auto 3.4rem; text-align: center; }
.section-head .h-section { margin-left: auto; margin-right: auto; }
.section-head .lede { margin-left: auto; margin-right: auto; }

/* ============================================================
   Buttons — royal-blue pill (HiddenQ)
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 600;
  padding: 0.82rem 1.5rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .22s, color .22s, border-color .22s, transform .22s, box-shadow .22s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn-dark, .btn-accent {
  background: linear-gradient(180deg, var(--accent-lt), var(--accent-2));
  color: #fff; box-shadow: var(--sh-blue);
}
.btn-dark:hover, .btn-accent:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -10px rgba(37,99,235,0.62); }
.btn-dark:hover svg, .btn-accent:hover svg { transform: translateX(3px); }
.btn-light {
  background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-sm);
}
.btn-light:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ============================================================
   Icon tile (rounded square + corner dots)
============================================================ */
.tile {
  width: 50px; height: 50px; flex: none;
  border-radius: 15px;
  background-color: #fbfcfe;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background-image:
    radial-gradient(circle at 8px 8px, rgba(22,35,63,0.14) 1.1px, transparent 1.7px),
    radial-gradient(circle at calc(100% - 8px) 8px, rgba(22,35,63,0.14) 1.1px, transparent 1.7px),
    radial-gradient(circle at 8px calc(100% - 8px), rgba(22,35,63,0.14) 1.1px, transparent 1.7px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), rgba(22,35,63,0.14) 1.1px, transparent 1.7px);
}
.tile svg { width: 22px; height: 22px; }
.tile.sm { width: 40px; height: 40px; border-radius: 12px; }
.tile.sm svg { width: 19px; height: 19px; }

/* ============================================================
   NAV — floating centered pills
============================================================ */
.nav {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 70;
  display: flex; justify-content: center; align-items: center; gap: 0.7rem;
  pointer-events: none;
  transition: transform .3s ease;
}
.nav.hidden { transform: translateY(-130%); }
.nav-pill {
  pointer-events: auto;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-radius: var(--pill);
  box-shadow: 0 12px 30px -14px rgba(22,35,63,0.22), 0 1px 2px rgba(22,35,63,0.06);
  display: flex; align-items: center; gap: 1.1rem;
  padding: 0.5rem 0.6rem 0.5rem 1.2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); font-size: 1.06rem; letter-spacing: -0.02em; }
.brand .mark { width: 22px; height: 22px; flex: none; }
.nav-sep { width: 1px; height: 20px; background: var(--line-2); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; padding-right: 0.5rem; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--ink); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { pointer-events: auto; }
@media (max-width: 760px) {
  /* collapse the floating nav so brand + CTA always fit on phones */
  .nav { gap: 0.5rem; padding: 0 0.8rem; }
  .nav-links, .nav-sep { display: none; }
  .nav-pill { padding: 0.5rem 1.1rem; gap: 0; }
  .nav-cta { padding: 0.7rem 1.1rem; font-size: 0.9rem; }
}

/* ============================================================
   HERO
============================================================ */
.hero { padding: 9rem 0 4.5rem; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.8rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--pill); box-shadow: var(--sh-sm);
  font-size: 0.85rem; font-weight: 500; color: var(--ink-2);
}
.hero-badge .hb-tag {
  display: inline-flex; align-items: center;
  background: linear-gradient(180deg, var(--accent-lt), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 0.76rem; letter-spacing: 0.02em;
  padding: 0.32rem 0.7rem; border-radius: var(--pill); white-space: nowrap;
  box-shadow: 0 4px 10px -4px rgba(37,99,235,0.5);
}
.hero-badge .hb-txt { white-space: nowrap; }
@media (max-width: 430px) {
  .hero-badge { flex-direction: column; padding: 0.5rem 0.9rem; border-radius: var(--r-md); }
  .hero-badge .hb-txt { white-space: normal; text-align: center; }
}
.hero-marks { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.hero-marks svg { width: 30px; height: 30px; opacity: 0.9; }
.hero-marks svg:nth-child(2) { opacity: 0.55; }
.hero-marks svg:nth-child(3) { opacity: 0.3; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  letter-spacing: -0.035em; line-height: 1.02; font-weight: 600;
  max-width: 17ch; margin: 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: heroRise 0.85s cubic-bezier(.2,.7,.2,1) 0.1s both; }
  .hero h1 .mut { display: inline-block; animation: heroRise 0.85s cubic-bezier(.2,.7,.2,1) 0.34s both; }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero h1 .mut { color: var(--slate); }
.hero h1 .dot { color: var(--ink); }
.hero .lede { margin: 1.7rem auto 0; }
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }

/* hero product stage */
.hero-stage {
  margin-top: 4rem;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fbfcfe 0%, #eef1f6 100%);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  padding: 1.5rem;
  position: relative; overflow: hidden;
}
.hero-stage::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% -10%, rgba(37,99,235,0.10), transparent 60%);
  pointer-events: none;
}
.stage-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 1.2rem; position: relative; z-index: 1; }
@media (max-width: 760px) { .stage-grid { grid-template-columns: 1fr; } }

/* trust */
.trust { margin-top: 3.4rem; }
.trust .label { font-size: 0.8rem; color: var(--ink-3); margin-bottom: 1rem; }
.trust .names { display: flex; gap: 2.4rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust .names span { font-weight: 700; color: var(--ink); opacity: 0.5; font-size: 1.05rem; }

/* ============================================================
   Mock-UI (light product surface)
============================================================ */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); padding: 1.1rem 1.2rem; width: 100%;
}
.mock-bar { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.mock-bar .dot3 { display: flex; gap: 0.35rem; }
.mock-bar .dot3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.mock-bar .ttl { font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.01em; }
.mock-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; }
.mock-sub { font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 0.7rem; padding-bottom: 0.2rem; }
.mock-sub:first-of-type { margin-top: 0.2rem; }
.mock-row + .mock-row { border-top: 1px dashed var(--line); }
.mock-row .st { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.st.ok { background: #1f9d57; } .st.run { background: var(--accent); } .st.wait { background: #c9ad2e; }
.mock-row .nm { font-size: 0.86rem; color: var(--ink); font-weight: 500; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .gw { flex: 1; height: 7px; border-radius: var(--pill); background: var(--panel); overflow: hidden; }
.mock-row .gw > i { display: block; height: 100%; border-radius: var(--pill); background: var(--accent); }
.mock-row .vv { font-size: 0.8rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; flex: none; }
.mock-row .vv.pos { color: #1f9d57; } .mock-row .vv.neg { color: #d24b4b; }

/* ============================================================
   VALUE GRID (HiddenQ "We create value")
============================================================ */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.vcell {
  background: var(--bg-card); padding: 1.8rem 1.6rem; border-radius: var(--r-md);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.vcell:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-2); }
.vcell .tile { margin-bottom: 1.3rem; }
.vcell h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.vcell p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 940px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .vgrid { grid-template-columns: 1fr; } }

.foot-note { margin-top: 2rem; font-size: 1.05rem; color: var(--ink); max-width: 70ch; text-align: center; margin-left: auto; margin-right: auto; }
.foot-note b { color: var(--accent); font-weight: 600; }

/* strong contrast statement (Le constat) */
.contrast {
  margin: 2.2rem auto 0; max-width: 680px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh); padding: 1.5rem 1.8rem;
}
.contrast-lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-align: center; max-width: 36ch; margin: 0 auto 1.3rem; line-height: 1.25; }
.cbar-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 0.9rem; padding: 0.4rem 0; }
.cbar-label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.cbar-track { height: 10px; background: var(--panel); border-radius: var(--pill); overflow: hidden; }
.cbar-fill { display: block; height: 100%; border-radius: var(--pill); width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.cbar-fill.calc { background: var(--line-2); }
.cbar-fill.close { background: linear-gradient(90deg, var(--accent-lt), var(--accent-2)); }
.reveal.in .cbar-fill.calc { width: 3%; }
.reveal.in .cbar-fill.close { width: 100%; }
.cbar-val { font-size: 0.86rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; min-width: 8.5ch; text-align: right; }
.cbar-val.strong { color: var(--accent); }
@media (max-width: 540px) {
  .contrast { padding: 1.3rem 1.2rem; }
  .cbar-row { grid-template-columns: 70px 1fr; gap: 0.5rem 0.7rem; }
  .cbar-val { grid-column: 2 / 3; text-align: left; min-width: 0; margin-top: -0.15rem; font-size: 0.8rem; }
}

/* ============================================================
   TWO-CARD (Pourquoi Prism) — both light
============================================================ */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.bigcard {
  border-radius: var(--r-lg); padding: 2.2rem; background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: var(--sh); display: flex; flex-direction: column;
}
.bigcard.accent { background: linear-gradient(180deg, #f3f7ff, #ffffff); border-color: #d4e2ff; }
.bigcard .tag { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem; color: var(--accent); }
.bigcard.muted .tag { color: var(--slate); }
.bigcard h3 { font-size: 1.42rem; margin-bottom: 0.6rem; }
.bigcard > p { font-size: 0.98rem; color: var(--ink-2); }
@media (min-width: 821px) { .bigcard > p { min-height: 6.5em; } }
.bigcard ul { list-style: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.75rem; }
.bigcard li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.94rem; color: var(--ink-2); }
.bigcard li svg { width: 18px; height: 18px; flex: none; margin-top: 0.12rem; }
.bigcard.accent li svg { color: var(--accent); }
.bigcard.muted li svg { color: var(--slate); }
@media (max-width: 820px) { .twocol { grid-template-columns: 1fr; } }

/* ============================================================
   TABS (signature component)
============================================================ */
.tabs { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 1.6rem; align-items: stretch; }
.tablist { display: flex; flex-direction: column; gap: 0.6rem; }
.tab {
  text-align: left; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.2rem 1.3rem; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s;
}
.tab:hover { border-color: var(--line-2); }
.tab.active { border-color: #cdd9f2; box-shadow: var(--sh); }
.tab .tk { display: flex; align-items: center; gap: 0.8rem; }
.tab .tk .tt { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.tab .tk .tnum { margin-left: auto; font-size: 0.74rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0.02em; }
.tab.active .tk .tile { border-color: #cdd9f2; background-color: var(--accent-soft); color: var(--accent); }
.tab .td { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.8rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease, margin-top .3s; }
.tab.active .td { max-height: 200px; opacity: 1; }
.tab .tmeta { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); margin-top: 0.9rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s; }
.tab.active .tmeta { max-height: 60px; opacity: 1; }

.tabpanel-wrap {
  border-radius: var(--r-lg); background: linear-gradient(180deg, #fbfcfe, #edf0f5);
  border: 1px solid var(--line); box-shadow: var(--sh); padding: 1.7rem; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 380px;
}
.tabpanel-wrap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 0%, rgba(37,99,235,0.08), transparent 60%); pointer-events: none; }
.tabpanel { display: none; width: 100%; position: relative; z-index: 1; }
.tabpanel.active { display: block; animation: panelin .4s ease; }
@keyframes panelin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 880px) { .tabs { grid-template-columns: 1fr; } .tabpanel-wrap { min-height: 300px; order: -1; } }

.doc-mock .ln { height: 9px; border-radius: var(--pill); background: var(--panel); margin: 0.55rem 0; }
.doc-mock .ln.s1 { width: 70%; } .doc-mock .ln.s2 { width: 90%; } .doc-mock .ln.s3 { width: 50%; }
.doc-mock .ln.h { height: 13px; width: 45%; background: var(--ink); opacity: 0.85; }

/* slide COMEX + narratif draft mock */
.slide-mock .slide { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, #f8fafd); padding: 0.9rem 1rem; box-shadow: var(--sh-sm); }
.slide-mock .slide-t { font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.85rem; }
.slide-mock .slide-body { display: grid; grid-template-columns: 0.85fr 1fr; gap: 1rem; align-items: end; }
.slide-mock .slide-chart { display: flex; align-items: flex-end; gap: 0.4rem; height: 64px; }
.slide-mock .slide-chart i { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--accent-lt), var(--accent)); opacity: 0.9; }
.slide-mock .slide-chart i:nth-child(3) { background: linear-gradient(180deg, #9cc0ff, #6f9eed); }
.slide-mock .slide-bullets { display: flex; flex-direction: column; gap: 0.5rem; }
.slide-mock .slide-bullets b { height: 7px; border-radius: var(--pill); background: var(--panel); position: relative; padding-left: 0; }
.slide-mock .slide-bullets b::before { content: ''; position: absolute; left: -12px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.55; }
.slide-mock .slide-bullets { padding-left: 12px; }
.slide-mock .narr { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.slide-mock .narr-tag { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 0.7rem; }
.slide-mock .narr .ln { height: 9px; border-radius: var(--pill); background: var(--panel); margin: 0.5rem 0; }
.slide-mock .narr .ln.s1 { width: 88%; } .slide-mock .narr .ln.s2 { width: 96%; } .slide-mock .narr .ln.s3 { width: 54%; }
@media (prefers-reduced-motion: no-preference) {
  .slide-mock .narr .ln.typing { animation: typingln 2.4s ease-in-out infinite; transform-origin: left center; }
}
@keyframes typingln { 0%, 100% { width: 30%; } 50% { width: 64%; } }

/* SCR decomposition ring (Agent III — premium data viz) */
.viz-mock { display: flex; flex-direction: column; }
.scr-viz { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: center; padding: 0.4rem 0.2rem 0.1rem; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(0deg); }
.ring-bg { fill: none; stroke: var(--panel); stroke-width: 11; }
.ring-seg { fill: none; stroke-width: 11; stroke-linecap: round; transform-origin: 50% 50%;
  stroke-dasharray: var(--len) 251.3; stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1); }
.acard-big.in .ring-seg { stroke-dashoffset: 0; }
.ring-seg.s1 { stroke: #1748a8; --len: 113.6; transform: rotate(-90deg); transition-delay: .05s; }
.ring-seg.s2 { stroke: #2563eb; --len: 78.4;  transform: rotate(75.6deg);  transition-delay: .17s; }
.ring-seg.s3 { stroke: #6f9eed; --len: 28.2;  transform: rotate(190.8deg); transition-delay: .29s; }
.ring-seg.s4 { stroke: #b8ccf5; --len: 23.1;  transform: rotate(234deg);   transition-delay: .41s; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-center b { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.ring-center span { margin-top: 0.2rem; font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); line-height: 1.25; }
.scr-legend { display: flex; flex-direction: column; gap: 0.34rem; min-width: 0; }
.scr-cap { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 0.25rem; }
.scr-item { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 0.55rem; font-size: 0.82rem; color: var(--ink); }
.scr-item i { width: 10px; height: 10px; border-radius: 3px; }
.scr-item i.d1 { background: #1748a8; } .scr-item i.d2 { background: #2563eb; } .scr-item i.d3 { background: #6f9eed; } .scr-item i.d4 { background: #b8ccf5; }
.scr-item em { font-style: normal; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scr-div { display: flex; align-items: center; justify-content: space-between; gap: 0.55rem; margin-top: 0.3rem; padding-top: 0.45rem; border-top: 1px dashed var(--line); font-size: 0.78rem; color: var(--ink-3); }
.scr-div em { font-style: normal; font-weight: 600; }
.scr-div em.pos { color: #1f9d57; }
@media (max-width: 420px) {
  .scr-viz { grid-template-columns: 1fr; justify-items: center; gap: 1rem; }
  .scr-legend { width: 100%; max-width: 260px; }
}
.ver-mock .vrow { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0; }
.ver-mock .vrow .vd { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; flex: none; }
.ver-mock .vrow.done .vd { background: var(--accent); }
.ver-mock .vline { width: 2px; background: var(--line-2); height: 14px; margin-left: 4px; }
.ver-mock .vrow .vt { font-size: 0.86rem; color: var(--ink); font-weight: 500; }
.ver-mock .vrow .vh { font-size: 0.74rem; color: var(--ink-3); margin-left: auto; }

/* ============================================================
   AGENT STACK (HiddenQ "How we work" — sticky stacked cards)
============================================================ */
.agent-stack { position: relative; }
.acard-big {
  position: sticky;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  padding: 2.6rem;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 2.6rem;
  align-items: center;
  margin-bottom: 2.2rem;
}
.acard-big:nth-child(1) { top: 104px; }
.acard-big:nth-child(2) { top: 122px; }
.acard-big:nth-child(3) { top: 140px; }
.acard-big:nth-child(4) { top: 158px; }
.acard-big:last-child { margin-bottom: 0; }
.acard-big .ab-media { order: 2; }
.acard-big.flip .ab-copy { order: 2; }
.acard-big.flip .ab-media { order: 1; }
.ab-copy .tile { margin-bottom: 1.5rem; }
.ab-num { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
.ab-copy h3 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); letter-spacing: -0.025em; margin-bottom: 0.8rem; }
.ab-copy p { font-size: 1.02rem; color: var(--ink-2); line-height: 1.62; max-width: 42ch; }
.ab-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.6rem; font-size: 0.95rem; font-weight: 600; color: var(--accent); transition: gap .2s; }
.ab-link svg { width: 15px; height: 15px; }
.ab-link:hover { gap: 0.65rem; }
.ab-meta { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em; color: var(--ink-3); }
.ab-media {
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fbfcfe, #edf0f5);
  border: 1px solid var(--line);
  padding: 1.9rem;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ab-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 0%, rgba(37,99,235,0.07), transparent 62%); pointer-events: none; }
.ab-media .mock { box-shadow: var(--sh); position: relative; z-index: 1; width: 100%; max-width: 380px; }
@media (max-width: 860px) {
  /* mobile: horizontal swipe carousel instead of a very long sticky stack */
  .agent-stack {
    display: flex; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1.2rem;
    margin: 0 -1.2rem; padding: 0.4rem 1.2rem 0.6rem;
    scrollbar-width: none;
  }
  .agent-stack::-webkit-scrollbar { display: none; }
  .acard-big {
    grid-template-columns: 1fr; gap: 1.3rem;
    position: relative; top: 0 !important;
    padding: 1.6rem; margin-bottom: 0; box-shadow: var(--sh);
    flex: 0 0 86%; scroll-snap-align: center;
    opacity: 1 !important; transform: none !important;
  }
  .acard-big .ab-media, .acard-big.flip .ab-media { order: 2; min-height: 0; padding: 1.1rem; }
  .acard-big .ab-media .mock { max-width: 100%; }
  .acard-big .ab-copy, .acard-big.flip .ab-copy { order: 1; }
  .acard-big .ab-copy .tile { margin-bottom: 1rem; }
  .acard-big .ab-copy p { font-size: 0.95rem; }
  .acard-big .ab-link { margin-top: 1.1rem; }
  .acard-big .ab-meta { margin-top: 1.1rem; padding-top: 0.9rem; }
  .agent-hint { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 1rem; font-size: 0.78rem; color: var(--ink-3); }
  .agent-hint svg { width: 15px; height: 15px; }
  .agent-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
  .agent-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: background .2s, transform .2s; }
  .agent-dots button.active { background: var(--accent); transform: scale(1.25); }
}
@media (min-width: 861px) {
  .agent-dots { display: none; }
  .agent-hint { display: none; }
}

/* ============================================================
   SEGMENTED TABS (Périmètre — HiddenQ capabilities switcher)
============================================================ */
.segtabs { position: relative; }
.segbar {
  display: flex; align-items: stretch; gap: 0.2rem;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--pill); box-shadow: var(--sh-sm);
  padding: 0.45rem; margin-bottom: 1.8rem;
}
.segbtn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 0.8rem; border-radius: var(--pill); border: 0; background: transparent;
  cursor: pointer; font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--ink-3);
  position: relative; transition: color .22s, background .22s, box-shadow .22s; white-space: nowrap;
}
.segbtn svg { width: 19px; height: 19px; opacity: 0.85; }
.segbtn:not(.active):hover { color: var(--ink); }
.segbtn.active { background: var(--panel); color: var(--ink); box-shadow: var(--sh-sm); }
.segpanel {
  display: none;
  grid-template-columns: 1fr 1.12fr; gap: 2.6rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 2.6rem;
}
.segpanel.active { display: grid; animation: panelin .42s ease; }
@media (max-width: 860px) {
  .segbar { overflow-x: auto; border-radius: var(--r-md); }
  .segbtn { flex: 0 0 auto; }
  .segpanel { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.7rem; }
  .segpanel .ab-copy { order: 1; }
  .segpanel .ab-media { order: 2; }
}
@media (max-width: 560px) {
  .segbtn span.lbl { display: none; }
  .segbtn { padding: 0.8rem; flex: 1; }
  .segbar { overflow-x: visible; }
}

/* ============================================================
   STEPS (Périmètre / How we work) alternating
============================================================ */
.steps { display: flex; flex-direction: column; gap: 1.4rem; }
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem; box-shadow: var(--sh-sm);
}
.step .step-media {
  border-radius: var(--r-md); background: linear-gradient(180deg, #fbfcfe, #edf0f5);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 1.5rem; min-height: 230px;
}
.step:nth-child(even) .step-media { order: 2; }
.step .step-copy { padding: 0.8rem 1.2rem; }
.step .step-copy .tile { margin-bottom: 1.2rem; }
.step .step-sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.4rem; }
.step h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.step ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.step li { font-size: 0.95rem; color: var(--ink-2); padding-left: 1.1rem; position: relative; }
.step li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-media { order: 0; }
  .step .step-media { order: -1; }
}

/* ============================================================
   KPI
============================================================ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.kcard { padding: 2rem 1.7rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-card); box-shadow: var(--sh-sm); }
.kcard .klabel { font-size: 0.8rem; color: var(--ink-3); }
.kcard .kfig { font-size: clamp(2.5rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin: 0.7rem 0 0.5rem; display: flex; align-items: baseline; gap: 0.04em; }
.kcard .kfig .ksym { color: var(--accent); font-size: 0.6em; }
.kcard .kfig .ksuf { font-size: 0.32em; font-weight: 500; color: var(--ink-3); margin-left: 0.15em; }
.kcard .kfig .kword { font-size: 0.7em; }
.kcard .kfig .ksuf.blue, .kcard .kfig .kword.blue { color: var(--accent); }
.kcard .kunit { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 940px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpi-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONFORMITÉ rows
============================================================ */
.rows { display: flex; flex-direction: column; gap: 1.2rem; }
.row {
  display: grid; grid-template-columns: 60px 1fr 1.5fr; gap: 1.6rem; align-items: start;
  padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-card); box-shadow: var(--sh-sm);
}
.row .rmk { font-size: 0.74rem; font-weight: 600; color: var(--accent); margin-bottom: 0.35rem; letter-spacing: 0.02em; }
.row h3 { font-size: 1.2rem; }
.row .rdesc { font-size: 0.96rem; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 760px) { .row { grid-template-columns: 50px 1fr; } .row > :last-child { grid-column: 1 / -1; } }

/* ============================================================
   ENGINE cards
============================================================ */
.ecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ecard { padding: 1.9rem 1.7rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-card); box-shadow: var(--sh-sm); }
.ecard .tile { margin-bottom: 1.2rem; }
.ecard .er { font-size: 0.72rem; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 0.5rem; text-transform: uppercase; }
.ecard h3 { font-size: 1.16rem; margin-bottom: 0.5rem; }
.ecard p { font-size: 0.93rem; color: var(--ink-2); line-height: 1.55; }
.opt-chip { display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); border-radius: var(--pill); padding: 0.2rem 0.7rem; margin-left: 0.6rem; vertical-align: middle; text-transform: none; }
@media (max-width: 760px) { .ecards { grid-template-columns: 1fr; } }

/* ============================================================
   CTA — light w/ streaks (HiddenQ final)
============================================================ */
.cta-wrap { padding: 7rem 0 6rem; text-align: center; position: relative; overflow: hidden; }
.cta-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 30%, rgba(37,99,235,0.07), transparent 70%),
    linear-gradient(118deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 30%);
}
.cta-wrap .inner { position: relative; z-index: 1; }
.cta-wrap .eyebrow { color: var(--accent); }
.cta-wrap h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 16ch; margin: 0 auto; letter-spacing: -0.035em; font-weight: 600; }
.cta-wrap p { color: var(--ink-2); max-width: 50ch; margin: 1.3rem auto 2.4rem; font-size: 1.08rem; }

/* ============================================================
   FOOTER
============================================================ */
.footer { background: rgba(255,255,255,0.55); border-top: 1px solid var(--line); padding: 3.6rem 0 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem; }
.footer .f-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 700; font-size: 1.12rem; margin-bottom: 0.9rem; }
.footer .f-brand .mark { width: 22px; height: 22px; }
.footer .f-tag { font-size: 0.92rem; color: var(--ink-2); max-width: 32ch; }
.footer .f-col h4 { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.95rem; text-transform: uppercase; }
.footer .f-col a, .footer .f-col span { display: block; font-size: 0.93rem; color: var(--ink); font-weight: 500; margin-bottom: 0.6rem; transition: color .2s; }
.footer .f-col a:hover { color: var(--accent); }
.footer-base { max-width: var(--max); margin: 2.8rem auto 0; padding: 1.7rem 1.8rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink-3); }
.footer-legal { max-width: var(--max); margin: 1rem auto 0; padding: 0 1.8rem; font-size: 0.78rem; line-height: 1.5; color: var(--ink-3); opacity: 0.85; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Reveal
============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .06s; }
.stagger.in > *:nth-child(3) { transition-delay: .12s; }
.stagger.in > *:nth-child(4) { transition-delay: .18s; }
.stagger.in > *:nth-child(5) { transition-delay: .24s; }
.stagger.in > *:nth-child(6) { transition-delay: .30s; }
.stagger.in > *:nth-child(7) { transition-delay: .36s; }
.stagger.in > *:nth-child(8) { transition-delay: .42s; }
/* ============================================================
   HERO — product dashboard "screenshot" (app window)
============================================================ */
.app { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg); overflow: hidden; text-align: left; }
.app-chrome { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; background: linear-gradient(180deg, #fbfcfe, #f2f5f9); border-bottom: 1px solid var(--line); }
.app-chrome .tl { display: flex; gap: 0.42rem; flex: none; }
.app-chrome .tl i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.app-chrome .tl i:nth-child(1) { background: #f0a4a0; }
.app-chrome .tl i:nth-child(2) { background: #f2cf8e; }
.app-chrome .tl i:nth-child(3) { background: #a9d8b0; }
.app-url { font-size: 0.76rem; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: 0.32rem 0.95rem; flex: 1; text-align: center; max-width: 360px; margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-chrome-r { margin-left: auto; flex: none; }
.live-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; color: #1f9d57; background: rgba(31,157,87,0.1); border-radius: var(--pill); padding: 0.26rem 0.62rem; }
.live-pill .lp-dot { width: 6px; height: 6px; border-radius: 50%; background: #1f9d57; animation: dotpulse 1.6s infinite; }
@keyframes dotpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.app-body { display: grid; grid-template-columns: 196px 1fr; }
.app-side { background: #fafbfd; border-right: 1px solid var(--line); padding: 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 1rem; }
.side-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); font-size: 1rem; padding: 0.2rem 0.45rem 0.6rem; }
.side-brand svg { width: 18px; height: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 0.12rem; }
.side-nav a { display: flex; align-items: center; gap: 0.6rem; font-size: 0.83rem; font-weight: 500; color: var(--ink-2); padding: 0.52rem 0.6rem; border-radius: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav a svg { width: 16px; height: 16px; opacity: 0.85; flex: none; }
.side-nav a.active { background: var(--accent-soft); color: var(--accent); }
.side-foot { margin-top: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.8rem; }
.sf-k { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.sf-v { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.app-main { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.app-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.app-h-t { font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.app-h-s { font-size: 0.8rem; color: var(--ink-3); margin-top: 0.15rem; }
.app-h-actions { display: flex; align-items: center; gap: 0.6rem; }
.chip-ok { font-size: 0.72rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: var(--pill); padding: 0.32rem 0.7rem; white-space: nowrap; }
.btn-mini { font-size: 0.76rem; font-weight: 600; color: #fff; background: linear-gradient(180deg, var(--accent-lt), var(--accent-2)); border-radius: var(--pill); padding: 0.42rem 0.8rem; box-shadow: var(--sh-blue); white-space: nowrap; }

.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.akpi { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 0.8rem 0.9rem; box-shadow: var(--sh-sm); }
.ak-k { font-size: 0.66rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-v { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 0.08rem; }
.ak-u { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); }
.ak-bar { height: 5px; border-radius: var(--pill); background: var(--panel); margin-top: 0.65rem; overflow: hidden; }
.ak-bar > i { display: block; height: 100%; width: 0; border-radius: var(--pill); background: linear-gradient(90deg, var(--accent-lt), var(--accent)); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.ak-tag { font-size: 0.66rem; font-weight: 600; margin-top: 0.6rem; display: inline-block; padding: 0.16rem 0.48rem; border-radius: var(--pill); }
.ak-tag.ok { color: #1f9d57; background: rgba(31,157,87,0.1); }
.ak-tag.warn { color: #b9881f; background: rgba(201,173,46,0.16); }

.app-grid2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0.8rem; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 0.95rem 1rem; box-shadow: var(--sh-sm); min-width: 0; }
.acard-h { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.ac-live { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; font-weight: 500; color: var(--ink-3); }
.ac-live span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dotpulse 1.6s infinite; }

/* agent activity log (live demo, hero) */
.agent-log {
  margin-top: 0.8rem; padding: 0.75rem 0.9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--sh-sm); min-width: 0;
}
.al-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.al-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; color: var(--ink); }
.al-live > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(37,99,235,0.45); animation: afpulse 1.8s infinite; }
.al-phase { font-size: 0.68rem; font-weight: 500; color: var(--ink-3); }
.al-list { display: flex; flex-direction: column; gap: 0.3rem; min-height: 84px; }
.al-row {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem;
  padding: 0.28rem 0; opacity: 0; transform: translateY(-4px);
  animation: alin .4s ease forwards;
}
.al-row .al-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--accent); }
.al-row.analyse .al-dot { background: #c9ad2e; }
.al-row.restitution .al-dot { background: #1f9d57; }
.al-row.audit .al-dot { background: var(--slate); }
.al-row .al-agent { font-weight: 600; color: var(--ink); flex: none; }
.al-row .al-msg { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.al-row .al-ok { margin-left: auto; flex: none; color: #1f9d57; font-weight: 600; font-size: 0.8rem; opacity: 0; transition: opacity .3s; }
.al-row.ok .al-ok { opacity: 1; }
.al-row .al-think { margin-left: auto; display: inline-flex; gap: 3px; flex: none; }
.al-row .al-think i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; animation: afthink 1.2s infinite; }
.al-row .al-think i:nth-child(2) { animation-delay: 0.18s; }
.al-row .al-think i:nth-child(3) { animation-delay: 0.36s; }
@keyframes alin { to { opacity: 1; transform: translateY(0); } }
@keyframes afpulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); } 70% { box-shadow: 0 0 0 6px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
@keyframes afthink { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 0.9; transform: translateY(-1.5px); } }

/* ============================================================
   CHAT SIM (hero) — Harvey-style agent console, live use case
============================================================ */
.chatsim { position: relative; max-width: 760px; margin: 0 auto; text-align: left; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.cs-prompt { margin: 1.1rem; padding: 0.95rem 1.05rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.cs-prompt-t { color: var(--ink-3); font-size: 0.96rem; line-height: 1.5; white-space: pre-wrap; }
.cs-prompt-t .cs-typed.ph { color: var(--ink-3); }
.chatsim.anim .cs-prompt-t .cs-typed { color: var(--ink); }
.chatsim.anim .cs-prompt-t .cs-typed.ph { color: var(--ink-3); }
.cs-caret { display: none; width: 2px; height: 1.05em; background: var(--accent); margin-left: 1px; vertical-align: -2px; }
.chatsim.anim .cs-prompt.typing .cs-caret { display: inline-block; animation: csblink 1s steps(1) infinite; }
@keyframes csblink { 50% { opacity: 0; } }
.cs-prompt-b { display: flex; align-items: center; gap: 1rem; margin-top: 0.85rem; }
.cs-prompt-b .pb-left { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; min-width: 0; }
.cs-prompt-b .pb-i { display: inline-flex; align-items: center; gap: 0.38rem; font-size: 0.84rem; color: var(--ink-3); }
.cs-prompt-b .pb-i svg { width: 16px; height: 16px; }
.pb-div { width: 1px; height: 18px; background: var(--line-2); flex: none; }
.pb-ctx { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: 0.3rem 0.55rem 0.3rem 0.6rem; white-space: nowrap; }
.pb-ctx .ic { width: 14px; height: 14px; color: var(--accent); flex: none; }
.pb-ctx .cv { width: 12px; height: 12px; color: var(--ink-3); flex: none; }
.cs-send { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; transition: transform 0.15s ease, filter 0.15s ease; }
.cs-send.pressed { transform: scale(0.9); filter: brightness(0.9); }
.cs-cursor { display: none; position: absolute; left: 44px; top: 64px; width: 22px; height: 22px; z-index: 20; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.28)); transition: left 0.9s cubic-bezier(.5,.05,.2,1), top 0.9s cubic-bezier(.5,.05,.2,1), opacity 0.4s ease, transform 0.15s ease; }
.chatsim.anim .cs-cursor { display: block; }
.cs-cursor svg { width: 22px; height: 22px; display: block; }
.cs-cursor.click { transform: scale(0.8); }
.cs-ripple { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,0.45), rgba(37,99,235,0) 70%); pointer-events: none; z-index: 6; display: none; }

/* scrubbing: kill transitions so seeking is instant */
.chatsim.scrubbing .cs-reveal, .chatsim.scrubbing .cs-inner, .chatsim.scrubbing .cs-prompt { transition: none !important; }

/* video-style control bar */
.cs-controls { max-width: 760px; margin: 0.7rem auto 0; display: flex; align-items: center; gap: 0.6rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--sh-sm); padding: 0.4rem 0.7rem; }
.csc-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; transition: background 0.15s ease, color 0.15s ease; }
.csc-btn:hover { background: var(--panel); color: var(--ink); }
.csc-btn svg { width: 18px; height: 18px; }
.csc-play { background: var(--accent); color: #fff; }
.csc-play:hover { background: var(--accent-2); color: #fff; }
.csc-range { flex: 1; min-width: 0; height: 4px; -webkit-appearance: none; appearance: none; background: var(--line-2); border-radius: var(--pill); cursor: pointer; }
.csc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); cursor: pointer; }
.csc-range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: pointer; }
.csc-time { font-size: 0.76rem; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; min-width: 74px; text-align: right; }
@media (max-width: 600px) { .cs-controls { gap: 0.4rem; } .csc-time { min-width: 62px; font-size: 0.72rem; } }
.cs-send svg { width: 17px; height: 17px; }

.cs-convo { padding: 0.2rem 1.2rem 1.3rem; }
.cs-inner { transform-origin: top left; transition: transform 1.2s cubic-bezier(.33,0,.2,1); }
.chatsim.anim { display: flex; flex-direction: column; }
.chatsim.anim.convo-mode { height: 472px; }
.chatsim.anim .cs-prompt { flex: none; transition: opacity 0.35s ease, transform 0.35s ease; }
.chatsim.anim .cs-prompt.gone { opacity: 0; transform: translateY(-8px); }
.chatsim.anim .cs-convo { flex: 1 1 auto; height: auto; min-height: 0; overflow: hidden; }
.chatsim.anim:not(.convo-mode) .cs-convo { display: none; }
.pb-i.pb-improve { cursor: pointer; border-radius: var(--pill); padding: 0.18rem 0.5rem 0.18rem 0.4rem; transition: background 0.15s ease, color 0.15s ease; }
.pb-i.pb-improve.active { background: rgba(37,99,235,0.1); color: var(--accent); }
.cs-msg.user { display: flex; justify-content: flex-start; align-items: flex-start; gap: 0.75rem; margin: 0.2rem 0 1.1rem; }
.cs-uava { width: 30px; height: 30px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.cs-uava svg { width: 17px; height: 17px; color: var(--ink-3); }
.cs-ubody { flex: 1; min-width: 0; }
.cs-utext { font-size: 0.95rem; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.cs-uactions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 0.65rem; }
.cs-uactions span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--ink-3); }
.cs-uactions svg { width: 13px; height: 13px; }

.cs-agent { display: flex; gap: 0.75rem; }
.cs-avatar { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; box-shadow: var(--sh-sm); }
.cs-avatar svg { width: 18px; height: 18px; }
.cs-agent-main { flex: 1; min-width: 0; }
.cs-agent-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.cs-agent-head .nm { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.cs-status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--ink-3); }
.cs-status .dots { display: none; gap: 3px; }
.cs-status .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.5; animation: afthink 1.2s infinite; }
.cs-status .dots i:nth-child(2) { animation-delay: 0.18s; }
.cs-status .dots i:nth-child(3) { animation-delay: 0.36s; }

.cs-steps { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.1rem 0 1rem; }
.cs-step { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; line-height: 1.4; }
.cs-step .ic { width: 19px; height: 19px; flex: none; margin-top: 1px; position: relative; }
.cs-step .ic svg { width: 19px; height: 19px; }
.cs-step .ic .spin { display: none; }
.cs-step .st { display: flex; flex-direction: column; gap: 0.12rem; color: var(--ink-2); min-width: 0; }
.cs-step .st .ln { color: var(--ink-2); }
.cs-step .st .sub { font-size: 0.8rem; color: var(--ink-3); line-height: 1.4; }
.chatsim.anim .cs-step .sub { opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.3s ease, max-height 0.3s ease; }
.chatsim.anim .cs-step.done .sub { opacity: 1; max-height: 3.2em; }
.cs-step .st b { color: var(--ink); font-weight: 600; }

.cs-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--sh-sm); padding: 0.9rem 1rem; margin: 0.1rem 0 0.9rem; }
.cs-card-h { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); margin-bottom: 0.65rem; }
.cs-op { display: flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0; font-size: 0.88rem; }
.cs-op .nm { color: var(--ink); font-weight: 500; }
.cs-op .dt { color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-op .ok { margin-left: auto; color: #1f9d57; font-weight: 600; flex: none; }

.cs-impact .cs-metric { display: flex; align-items: center; gap: 0.6rem; padding: 0.46rem 0; border-top: 1px solid var(--line); }
.cs-impact .cs-metric:first-of-type { border-top: 0; }
.cs-impact .cs-metric .nm { color: var(--ink); font-size: 0.9rem; }
.cs-impact .cs-metric .val { margin-left: auto; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.cs-impact .cs-metric .arr { font-size: 0.72rem; }
.cs-impact .cs-metric.up .val { color: #1f9d57; }
.cs-impact .cs-metric.down .val { color: #d24b4b; }
.cs-narr-h { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.9rem; margin-bottom: 0.55rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.cs-narr-h .spark { width: 15px; height: 15px; flex: none; }
.cs-narr { margin-top: 0; padding-left: 0.85rem; border-left: 2px solid var(--accent); font-size: 0.85rem; color: var(--ink); line-height: 1.48; }
.cs-narr p { margin: 0 0 0.5rem; }
.cs-narr p:last-child { margin-bottom: 0; }
.cs-narr .cs-reco { display: none; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); color: var(--accent); font-style: italic; }
.cs-narr .cs-reco.on { display: block; }
.cs-narr .cs-reco::before { content: "Proposition d’agent"; display: block; font-size: 0.62rem; font-weight: 600; font-style: normal; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.3rem; }
/* chip linking removed — no highlight */
.cs-chip { transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.cs-ops-line { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; }
.cs-ops-line .oh { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); flex: none; }
.cs-ops-line .ot { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-ops-line .ok { margin-left: auto; color: #1f9d57; font-weight: 600; flex: none; }
.cs-metrics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.cs-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--panel); font-size: 0.8rem; }
.cs-chip .k { color: var(--ink-2); }
.cs-chip .v { font-weight: 600; }
.cs-chip.up .v { color: #1f9d57; }
.cs-chip.down .v { color: #d24b4b; }

/* animation states (added only when JS drives it) */
.chatsim.anim .cs-reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; }
.chatsim.anim .cs-reveal.show { opacity: 1; transform: none; }
.chatsim.anim .cs-status .dots { display: inline-flex; }
.chatsim.anim .cs-step .ic .chk { display: none; }
.chatsim.anim .cs-step.done .ic .chk { display: block; }
.chatsim.anim .cs-step.running .ic .spin { display: block; animation: csspin 0.8s linear infinite; }
@keyframes csspin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .chatsim { border-radius: var(--r-md); }
  .cs-prompt { margin: 0.9rem; padding: 0.85rem 0.9rem; }
  .cs-convo { padding: 0.2rem 0.95rem 1.1rem; }
  .cs-msg.user .b { max-width: 88%; font-size: 0.88rem; }
  .cs-step { font-size: 0.85rem; }
  .cs-prompt-t { font-size: 0.9rem; }
}

/* run rows (reused) */
.runs { display: flex; flex-direction: column; }
.run { display: grid; grid-template-columns: 9px minmax(0,1fr) 58px 44px; align-items: center; gap: 0.5rem; padding: 0.5rem 0; min-width: 0; }
.run + .run { border-top: 1px dashed var(--line); }
.run-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.run.done .run-dot { background: #1f9d57; }
.run.live .run-dot { background: var(--accent); animation: dotpulse 1.6s infinite; }
.run.queue .run-dot { background: #c9ad2e; }
.run-nm { font-size: 0.82rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-bar { position: relative; height: 6px; border-radius: var(--pill); background: var(--panel); overflow: hidden; }
.run-bar > i { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: var(--pill); background: linear-gradient(90deg, var(--accent-lt), var(--accent)); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.run.done .run-bar > i { background: linear-gradient(90deg, #27b56a, #1f9d57); }
.run-bar.shimmer > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); transform: translateX(-100%); animation: barshimmer 1.8s infinite; }
@keyframes barshimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.run-v { font-size: 0.74rem; font-weight: 600; color: var(--ink-2); text-align: right; white-space: nowrap; }
.run.done .run-v { color: #1f9d57; }
.run.queue .run-v { color: var(--ink-3); }

/* Analyse de Mouvement — waterfall */
.aom { padding-top: 0.5rem; }
.aom-bars { display: flex; align-items: stretch; justify-content: space-between; gap: 0.5rem; height: 132px; }
.aom .bar { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.aom .bar .track { position: relative; flex: 1; width: 100%; }
.aom .bar b { position: absolute; left: 50%; transform: translateX(-50%); width: 100%; max-width: 26px; border-radius: 4px; height: 0; transition: height 0.9s cubic-bezier(.2,.7,.2,1); background: linear-gradient(180deg, #9db8f5, #2563eb); }
.aom .bar.pos b { background: linear-gradient(180deg, #7fd3a4, #1f9d57); }
.aom .bar.neg b { background: linear-gradient(180deg, #eba6a6, #d24b4b); }
.aom .bar em { font-style: normal; font-size: 0.6rem; color: var(--ink-3); white-space: nowrap; text-align: center; margin-top: 0.4rem; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 820px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-kpis { grid-template-columns: repeat(2, 1fr); }
  .app-grid2 { grid-template-columns: 1fr; }
}

/* SUPPORTED-BY logos */
.logos { display: flex; align-items: center; justify-content: center; gap: 2.6rem; flex-wrap: wrap; }
.logos img { width: auto; filter: brightness(0); opacity: 0.5; transition: opacity .2s; }
.logos img:hover { opacity: 0.8; }
.logo-sf { height: 20px; }
.logo-pi { height: 23px; }
.logo-ff { height: 21px; }
.logo-frt { height: 34px; transform: translateY(-9.5px); }
.logo-ovh { height: 40px; transform: translateY(-12.5px); }

/* OVH certification badges */
.certs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.cert { font-size: 0.7rem; font-weight: 600; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--pill); padding: 0.26rem 0.66rem; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .run-bar.shimmer > i::after, .live-pill .lp-dot, .run.live .run-dot, .ac-live span, .al-live > span, .al-row .al-think i { animation: none !important; }
  .al-row { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   MOBILE POLISH (phones)
============================================================ */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .container { padding: 0 1.2rem; }
  /* tighter vertical rhythm on phones */
  .section { padding: 4.2rem 0; }
  .hero { padding: 7rem 0 3.2rem; }
  .cta-wrap { padding: 4.6rem 0 4rem; }
  .section-head { margin-bottom: 2.4rem; }
  .hero-stage { margin-top: 2.4rem; }
  .trust { margin-top: 2.4rem; }
  /* logos: a bit smaller + tighter so 3 fit on one row */
  .logos { gap: 1.4rem; }
  .logo-sf { height: 14px; }
  .logo-pi { height: 16px; }
  .logo-ff { height: 15px; }
  .logo-frt { height: 25px; transform: translateY(-7px); }
  .logo-ovh { height: 28px; transform: translateY(-8.8px); }
  /* big cards / panels less padding */
  .bigcard, .acard-big, .segpanel, .row, .ecard, .vcell { padding: 1.4rem; }
  .row { gap: 0.9rem 1rem; }
  .step { padding: 1.4rem; }
  /* footer base stacks cleanly */
  .footer-base { flex-direction: column; gap: 0.4rem; }
  /* app window header keeps button from overflowing */
  .app-h-actions { width: 100%; }
}
@media (max-width: 400px) {
  /* app window inner: single-column KPIs avoid cramped 2-up */
  .app-kpis { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .akpi { padding: 0.65rem 0.7rem; }
  .app-main { padding: 1rem; }
}
