/* Sigmastra — système de design. Thème sombre par défaut, thème clair par bascule.
   Polices système uniquement : la politique de sécurité du site n'autorise aucune ressource externe. */
:root{
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Segoe UI",Roboto,Inter,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --bg:#081323;--bg-2:#0b182a;--surface:#11223a;--surface-2:#172c47;--surface-3:#203853;
  --line:rgba(255,255,255,.08);--line-2:rgba(255,255,255,.14);
  --text:#eef4fc;--text-2:#c1d2e7;--muted:#9badc6;
  --accent:#8fbce9;--accent-2:#c4ddf7;--accent-ink:#0b2038;--accent-soft:rgba(143,188,233,.14);
  --copper:#a8c8e8;--danger:#f08a76;--ok:#6fd3a8;
  --radius:20px;--radius-s:12px;--pill:980px;
  --ease:cubic-bezier(.2,.8,.2,1);--ease-out:cubic-bezier(.16,1,.3,1);
  --shadow:0 30px 80px -40px rgba(0,0,0,.7);
  --wrap:1120px;
  color-scheme:dark;
}
html[data-theme=light]{
  --bg:#eef3fa;--bg-2:#ffffff;--surface:#ffffff;--surface-2:#e7eef7;--surface-3:#dce6f2;
  --line:rgba(0,0,0,.08);--line-2:rgba(0,0,0,.14);
  --text:#1b2e46;--text-2:#425c79;--muted:#526881;
  --accent:#285b91;--accent-2:#193e67;--accent-ink:#ffffff;--accent-soft:rgba(40,91,145,.1);
  --copper:#48698f;--danger:#c24f36;--ok:#1f8a5f;
  --shadow:0 30px 70px -40px rgba(16,21,19,.35);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;scroll-behavior:smooth;scroll-padding-top:72px;font-synthesis:none}
body{margin:0;font-size:17px;line-height:1.5;min-height:100%;transition:background .35s,color .35s}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:3px solid var(--accent-soft);outline-offset:3px;border-radius:6px}
::selection{background:var(--accent-soft);color:var(--text)}
[hidden]{display:none!important}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:24px}
.skip{position:fixed;top:-120px;left:16px;z-index:50;padding:10px 14px;background:var(--surface);border:1px solid var(--line-2);border-radius:10px}
.skip:focus{top:12px}

/* Texte */
h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.03em;line-height:1.04;text-wrap:balance}
h1{font-size:clamp(40px,6.2vw,80px);letter-spacing:-.04em}
h2{font-size:clamp(30px,4.4vw,54px)}
h3{font-size:clamp(20px,2.2vw,24px);letter-spacing:-.02em;line-height:1.2}
p{margin:0}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.lead{font-size:clamp(18px,1.6vw,21px);line-height:1.45;color:var(--text-2);text-wrap:pretty}
.muted{color:var(--muted)}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.small{font-size:14px;line-height:1.5}

/* Navigation */
.nav{position:sticky;top:0;z-index:40;height:52px;background:color-mix(in srgb,var(--bg) 74%,transparent);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--line)}
.nav .wrap{height:100%;display:flex;align-items:center;gap:28px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:650;letter-spacing:-.01em;font-size:17px}
.brand svg{width:24px;height:24px}
.logo{overflow:visible}
.logo-loop{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linejoin:round}
.logo-node{fill:currentColor;transform-box:fill-box;transform-origin:center;animation:logo-pulse 4.5s var(--ease) infinite}
.logo-node:nth-of-type(2){animation-delay:1.5s}
.logo-node:nth-of-type(3){animation-delay:3s}
.logo-dot{fill:var(--accent);offset-path:path('M24,7.5 C36,9 43,22 39,33 C36,41 12,41 9,33 C5,22 12,9 24,7.5 Z');animation:logo-travel 4.5s linear infinite}
@keyframes logo-travel{to{offset-distance:100%}}
@keyframes logo-pulse{0%,9%,100%{transform:scale(1)}3.5%{transform:scale(1.4)}}
.nav-links{display:flex;gap:26px;margin-left:auto;font-size:14px;color:var(--text-2)}
.nav-links a{position:relative;padding:4px 0;transition:color .18s}
.nav-links a:hover{color:var(--text)}
.nav-actions{display:flex;align-items:center;gap:10px;margin-left:14px}
.icon-btn{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:var(--text-2);transition:background .18s,color .18s}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.icon-btn svg{width:18px;height:18px}
.theme-icon-sun{display:none}
html[data-theme=light] .theme-icon-sun{display:block}
html[data-theme=light] .theme-icon-moon{display:none}

/* Boutons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 22px;border-radius:var(--pill);font-size:15px;font-weight:600;white-space:nowrap;border:1px solid transparent;transition:transform .18s var(--ease),background .18s,color .18s,border-color .18s,box-shadow .18s;will-change:transform}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.5;cursor:default;transform:none}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{background:var(--accent-2)}
html[data-theme=light] .btn-primary:hover{background:var(--accent-2)}
.btn-ghost{border-color:var(--line-2);color:var(--text)}
.btn-ghost:hover{background:var(--surface-2)}
.btn-sm{height:36px;padding:0 14px;font-size:14px}
.btn-block{width:100%}
.link{display:inline-flex;align-items:center;gap:6px;color:var(--accent);font-weight:500}
.link .chev{transition:transform .18s var(--ease)}
.link:hover .chev{transform:translateX(3px)}
.chev{width:14px;height:14px}

/* Formulaires */
.field{display:grid;gap:7px}
.field label{font-size:13px;font-weight:600;color:var(--text-2)}
.field input,.field select,.field textarea{width:100%;height:48px;padding:0 14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);color:var(--text);transition:border-color .18s,box-shadow .18s,background .18s}
.field textarea{height:auto;min-height:96px;padding:12px 14px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);background:var(--surface)}
.field input::placeholder{color:var(--muted)}
.field .hint{font-size:13px;color:var(--muted)}
.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.segmented{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px;padding:3px;background:var(--surface-2);border-radius:12px;width:100%}
.segmented button{height:38px;padding:0 14px;border-radius:9px;font-size:14px;font-weight:600;color:var(--muted);transition:background .22s var(--ease),color .22s,box-shadow .22s}
.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.25)}
html[data-theme=light] .segmented button[aria-pressed=true]{box-shadow:0 1px 3px rgba(0,0,0,.12)}
.notice{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.5;background:var(--surface-2);border:1px solid var(--line);color:var(--text-2);overflow-wrap:anywhere}
.notice.error{border-color:color-mix(in srgb,var(--danger) 40%,transparent);color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,var(--surface-2))}
.notice.success{border-color:color-mix(in srgb,var(--ok) 40%,transparent);color:var(--ok);background:color-mix(in srgb,var(--ok) 10%,var(--surface-2))}
.status{display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 10px;border-radius:var(--pill);font-size:13px;font-weight:600;background:var(--surface-2);border:1px solid var(--line);color:var(--text-2)}
.status::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--muted)}
.status.active::before,.status.admin::before{background:var(--ok)}
.status.pending::before{background:var(--copper)}
.status.rejected::before,.status.suspended::before,.status.expired::before{background:var(--danger)}

/* Cartes et cadres */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.frame{position:relative;border-radius:16px;border:1px solid var(--line-2);background:var(--surface);overflow:hidden;box-shadow:var(--shadow)}
.frame-bar{height:34px;display:flex;align-items:center;gap:6px;padding:0 14px;border-bottom:1px solid var(--line);background:var(--surface-2)}
.frame-bar i{width:10px;height:10px;border-radius:50%;background:var(--line-2)}
.frame-bar span{margin-left:10px;font-size:12px;color:var(--muted)}
.frame img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top left;background:var(--surface-2)}
.frame.pending img{display:none}
.frame .frame-empty{display:none;aspect-ratio:16/10;place-items:center;color:var(--muted);font-size:14px;background:repeating-linear-gradient(135deg,transparent 0 14px,var(--line) 14px 15px)}
.frame.pending .frame-empty{display:grid}

/* Mise en page */
.section{padding-block:clamp(72px,10vw,140px)}
.section-head{display:grid;gap:18px;max-width:760px;margin-bottom:clamp(36px,5vw,64px)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;align-items:center}
.grid-2 h2,.section-head h2{font-size:clamp(28px,3.8vw,46px)}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.hairline{height:1px;background:var(--line)}

/* Accueil */
.hero{padding-block:clamp(72px,11vw,150px) clamp(48px,7vw,96px)}
.hero .grid-2{gap:clamp(32px,6vw,80px);align-items:center}
.hero h1{margin:18px 0 22px}
.hero .lead{max-width:540px}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:34px}
.hero-note{margin-top:18px;font-size:13px;color:var(--muted)}
.ft-stage{position:relative}
.ft-stage svg{width:100%;height:auto}
.ft-readout{display:inline-grid;gap:2px;margin:10px 0 0 auto;padding:10px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-size:12px;color:var(--muted);justify-self:end}
.ft-stage{display:grid}
.ft-readout strong{font-family:var(--mono);font-size:16px;color:var(--text);font-weight:600}
.standards{display:flex;flex-wrap:wrap;gap:10px 28px;padding-block:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px;color:var(--muted);font-family:var(--mono)}
.standards span:first-child{font-family:var(--font);letter-spacing:.12em;text-transform:uppercase;font-size:11px}

/* Modules */
.modules-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:3px;background:var(--surface-2);border-radius:14px;width:max-content;max-width:100%}
.modules-tabs::-webkit-scrollbar{display:none}
.modules-tabs button{flex:0 0 auto;height:40px;padding:0 16px;border-radius:11px;font-size:14px;font-weight:600;color:var(--muted);transition:background .22s var(--ease),color .22s,box-shadow .22s}
.modules-tabs button[aria-selected=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.module-panel{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);gap:clamp(28px,5vw,64px);align-items:center;margin-top:36px}
.module-copy{display:grid;gap:16px}
.module-copy .code{font-family:var(--mono);font-size:12px;color:var(--accent);letter-spacing:.06em}
.module-copy ul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:10px}
.module-copy li{position:relative;padding-left:22px;color:var(--text-2);font-size:15px;line-height:1.5}
.module-copy li::before{content:"";position:absolute;left:0;top:10px;width:10px;height:1.5px;background:var(--accent)}
.module-visual{transition:opacity .35s var(--ease),transform .35s var(--ease)}
.module-visual.switching{opacity:0;transform:translateY(8px)}

/* Courbes */
.curve-stage svg{width:100%;height:auto}
.curve-legend{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:14px;font-size:13px;color:var(--muted)}
.curve-legend i{display:inline-block;width:18px;height:2px;vertical-align:middle;margin-right:8px;background:var(--accent)}
.curve-legend i.avg{background:var(--copper)}
.curve-legend i.target{background:var(--muted);height:0;border-top:2px dashed var(--muted)}
.facts{display:grid;gap:18px;margin-top:28px}
.fact{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:baseline}
.fact b{font-family:var(--mono);font-size:22px;font-weight:600;color:var(--text);min-width:120px}
.fact span{color:var(--text-2);font-size:15px}

/* Modèles dynamiques */
.dyn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.dyn .card{padding:26px;display:grid;gap:18px}
.dyn h3{margin-top:4px}
.dyn p{color:var(--text-2);font-size:15px}
.dyn svg{width:100%;height:auto}

/* Essai */
.trial{border-radius:28px;background:var(--surface);border:1px solid var(--line);padding:clamp(28px,5vw,64px);display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(28px,5vw,64px);align-items:center;overflow:hidden;position:relative}
.trial::after{content:"";position:absolute;inset:auto -120px -220px auto;width:420px;height:420px;border-radius:50%;background:radial-gradient(closest-side,var(--accent-soft),transparent 70%);pointer-events:none}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:22px;counter-reset:s}
.steps li{display:grid;grid-template-columns:34px 1fr;gap:16px;align-items:start}
.steps li::before{counter-increment:s;content:counter(s,decimal-leading-zero);font-family:var(--mono);font-size:13px;color:var(--accent);padding-top:5px}
.steps strong{display:block;font-weight:600;margin-bottom:4px}
.steps p{color:var(--text-2);font-size:15px}

/* Questions */
.faq{max-width:760px}
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;cursor:pointer;font-weight:600;font-size:17px}
.faq summary::-webkit-details-marker{display:none}
.faq summary svg{width:18px;height:18px;flex:none;color:var(--muted);transition:transform .25s var(--ease)}
.faq details[open] summary svg{transform:rotate(45deg)}
.faq details p{padding:0 40px 24px 0;color:var(--text-2);font-size:15px;line-height:1.6}

/* Pied */
.footer{padding:40px 0 56px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:24px;font-size:13px;color:var(--muted)}
.footer-links{display:flex;gap:22px;flex-wrap:wrap}
.footer a:hover{color:var(--text)}

/* Espace et administration */
.page{padding-block:clamp(56px,8vw,110px)}
.auth{display:grid;grid-template-columns:1fr 440px;gap:clamp(32px,6vw,96px);align-items:start}
.auth-intro{display:grid;gap:22px}
.auth-intro h1{font-size:clamp(38px,5vw,60px)}
.auth-points{display:grid;gap:14px;margin-top:10px}
.auth-points div{padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--text-2)}
.auth-card{padding:26px;display:grid;gap:18px;position:sticky;top:76px}
.auth-card form{display:grid;gap:14px}
.auth-card h2{font-size:26px}
.auth-card .btn{margin-top:4px}
.secret{display:grid;gap:12px;padding:18px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.secret code{font-family:var(--mono);font-size:22px;letter-spacing:.02em;word-break:break-all;color:var(--text)}
.secret .row{display:flex;gap:10px;flex-wrap:wrap}
.space{display:grid;gap:18px}
.space .row{display:flex;flex-wrap:wrap;gap:10px}
.kv{display:grid;gap:4px;font-size:14px;color:var(--text-2)}
.kv b{color:var(--text);font-weight:600}
.text-btn{font-size:14px;color:var(--accent);font-weight:500;text-decoration:underline;text-underline-offset:4px;text-decoration-color:transparent;transition:text-decoration-color .18s}
.text-btn:hover{text-decoration-color:currentColor}

.admin-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px}
.admin-head h1{font-size:clamp(32px,4vw,46px)}
.admin-tools{display:grid;grid-template-columns:1fr auto auto;gap:12px;margin-bottom:18px}
.admin-tools input,.admin-tools select{height:44px;padding:0 14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);color:var(--text)}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
table{border-collapse:collapse;width:100%;min-width:760px;font-size:14px}
th{text-align:left;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:14px 16px;border-bottom:1px solid var(--line);font-weight:600}
td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:0}
td strong{display:block;font-weight:600}
td small{display:block;color:var(--muted);margin-top:2px}
.empty{padding:48px 20px;text-align:center;color:var(--muted);font-size:14px}
dialog{max-width:520px;width:calc(100% - 32px);border:1px solid var(--line-2);border-radius:20px;padding:26px;background:var(--surface);color:var(--text)}
dialog::backdrop{background:rgba(0,0,0,.45);backdrop-filter:blur(6px)}
dialog form{display:grid;gap:14px}
dialog h2{font-size:24px}
.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:6px}
.legal{max-width:760px;display:grid;gap:18px}
.legal h1{font-size:clamp(36px,5vw,58px)}
.legal h2{font-size:24px;margin-top:22px}
.legal p,.legal li{color:var(--text-2);font-size:16px;line-height:1.65}

/* Utilitaires d'espacement (la politique de sécurité interdit les styles en ligne) */
.mt18{margin-top:18px}.mt14{margin-top:14px}.mt10{margin-top:10px}.mb28{margin-bottom:28px}.mt8-16{margin:8px 0 16px}.h2-gap{margin:18px 0 20px}.c2{color:var(--text-2)}.fs16{font-size:16px}

/* Révélation au défilement */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .75s var(--ease-out),transform .75s var(--ease-out)}
.reveal.in{opacity:1;transform:none}
.reveal[data-delay="1"]{transition-delay:.08s}
.reveal[data-delay="2"]{transition-delay:.16s}
.reveal[data-delay="3"]{transition-delay:.24s}

/* Arbre de défaillance animé (accueil) */
.ft-edge{fill:none;stroke:var(--muted);stroke-width:1.4;stroke-dasharray:1;stroke-dashoffset:1;animation:ft-draw .7s var(--ease) forwards;animation-delay:var(--d,0s)}
.ft-node{opacity:0;transform-origin:center;transform-box:fill-box;animation:ft-in .6s var(--ease) forwards;animation-delay:var(--d,0s)}
.ft-box{fill:var(--surface);stroke:var(--line-2);stroke-width:1.2}
.ft-gate{fill:var(--surface-2);stroke:var(--text-2);stroke-width:1.3}
.ft-event{fill:var(--surface);stroke:var(--text-2);stroke-width:1.3}
.ft-label{fill:var(--text);font:600 12px var(--font)}
.ft-sub{fill:var(--muted);font:11px var(--mono)}
.ft-top .ft-box{stroke:var(--accent)}
.ft-cut .ft-event{animation:ft-cut 12s var(--ease) infinite;animation-delay:var(--c,0s)}
.ft-cut .ft-sub{animation:ft-cut-text 12s var(--ease) infinite;animation-delay:var(--c,0s)}
.ft-path{fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:1;stroke-dashoffset:1;opacity:0;animation:ft-path 12s var(--ease) infinite;animation-delay:var(--c,0s)}
@keyframes ft-draw{to{stroke-dashoffset:0}}
@keyframes ft-in{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:none}}
@keyframes ft-cut{0%,14%,46%,100%{fill:var(--surface);stroke:var(--text-2)}20%,40%{fill:var(--accent-soft);stroke:var(--accent)}}
@keyframes ft-cut-text{0%,14%,46%,100%{fill:var(--muted)}20%,40%{fill:var(--accent)}}
@keyframes ft-path{0%,14%{opacity:0;stroke-dashoffset:1}20%{opacity:1;stroke-dashoffset:0}40%{opacity:1;stroke-dashoffset:0}46%,100%{opacity:0;stroke-dashoffset:0}}

/* Courbe PFD */
.curve-axis{stroke:var(--line-2);stroke-width:1}
.curve-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:2 4}
.curve-text{fill:var(--muted);font:11px var(--mono)}
.curve-pfd{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1}
.curve-avg{fill:none;stroke:var(--copper);stroke-width:1.6;stroke-dasharray:1;stroke-dashoffset:1}
.curve-target{fill:none;stroke:var(--muted);stroke-width:1.2;stroke-dasharray:3 5}
.curve-area{fill:var(--accent-soft);opacity:0;transition:opacity 1s .8s}
.in .curve-pfd{animation:curve-draw 2.6s var(--ease-out) forwards}
.in .curve-avg{animation:curve-draw 2.6s var(--ease-out) .5s forwards}
.in .curve-area{opacity:1}
.curve-test{fill:var(--copper);opacity:0}
.in .curve-test{animation:dot-in .4s var(--ease) forwards;animation-delay:var(--d,1s)}
@keyframes curve-draw{to{stroke-dashoffset:0}}
@keyframes dot-in{to{opacity:1}}

/* Markov */
.mk-state{fill:var(--surface-2);stroke:var(--line-2);stroke-width:1.2}
.mk-state.failed{stroke:var(--danger)}
.mk-label{fill:var(--text);font:600 13px var(--font)}
.mk-rate{fill:var(--muted);font:11px var(--mono)}
.mk-arc{fill:none;stroke:var(--line-2);stroke-width:1.2}
.mk-tok{fill:var(--accent);offset-rotate:0deg;animation:mk-move var(--t,4s) linear infinite;animation-delay:var(--d,0s)}
.mk-tok.back{fill:var(--copper)}
@keyframes mk-move{0%{offset-distance:0%;opacity:0}8%{opacity:1}92%{opacity:1}100%{offset-distance:100%;opacity:0}}

/* Monte-Carlo */
.mc-dot{fill:var(--text-2);opacity:0}
.mc-dot.fail{fill:var(--copper)}
.in .mc-dot{animation:mc-in .5s var(--ease) forwards;animation-delay:var(--d,0s)}
.mc-mean{fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:1;stroke-dashoffset:1}
.in .mc-mean{animation:curve-draw 3.4s linear .4s forwards}
.mc-true{stroke:var(--muted);stroke-dasharray:3 5}
@keyframes mc-in{to{opacity:.9}}

@media (max-width:980px){
  .grid-2,.module-panel,.dyn,.trial,.auth{grid-template-columns:1fr}
  .auth-card{position:static}
  .admin-tools{grid-template-columns:1fr}
  .nav-links{display:none}
  .hero{padding-top:56px}
  .footer{flex-direction:column}
}
@media (max-width:600px){
  .wrap{padding-inline:18px}
  body{font-size:16px}
  .hero-actions .link{width:100%}
  .fact{grid-template-columns:1fr}
  .fact b{min-width:0}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
  .ft-edge{stroke-dashoffset:0}.ft-node{opacity:1}
  .curve-pfd,.curve-avg,.mc-mean{stroke-dashoffset:0}
  .curve-area,.curve-test,.mc-dot{opacity:1}
  .ft-path{opacity:0}
}

/* DepenLoop · Graphite / Iris / Copper */
:root{--wrap:1280px}
.nav{height:66px}.brand img{width:32px;height:32px;border-radius:10px}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.14em;line-height:1.2}
.hero{padding-block:72px 40px}.hero-top{max-width:860px;margin:0 auto 42px;text-align:center}.hero-top .eyebrow{color:var(--accent)}.hero h1{font-size:clamp(44px,6vw,80px);line-height:1.04;font-weight:600}.hero h1 span{color:var(--accent)}.hero-top .lead{max-width:700px;margin:auto}.hero-actions{justify-content:center;margin-top:28px}.hero-note{font-size:12px}
.product-frame{border:1px solid var(--line-2);border-radius:15px;overflow:hidden;background:#0a1729;box-shadow:0 30px 70px -35px #0009}.product-frame img{width:100%;height:auto;display:block}.product-caption{display:flex;justify-content:space-between;gap:16px;padding:11px 16px;color:#afc2db;font-size:12px;border-top:1px solid #29415d;background:#11223a}.product-caption strong{font-weight:500;color:#e2edf9}.hero-screen{max-width:1160px;margin:auto;position:relative}.hero-screen::before{content:'';position:absolute;inset:-25px 18%;background:var(--accent);opacity:.08;filter:blur(55px);z-index:-1}.frame-bar{background:#172c47;color:#a6bed9;border-bottom:1px solid #29415d;padding:10px 14px}.frame-bar i{background:#557497}.frame-bar span{font-size:10px}
.section{padding-block:88px}.section-head{max-width:800px}.module-panel{grid-template-columns:minmax(230px,.7fr) minmax(0,1.65fr);gap:36px}.module-visual .frame{border-radius:12px}.module-copy h3{font-size:28px}.modules-tabs{gap:6px}.modules-tabs button{padding:9px 17px}.module-image-note{color:var(--muted);font-size:12px;margin-top:12px}
.live-demo{background:var(--surface);border:1px solid var(--line-2);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.demo-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}.demo-heading strong{font-size:14px;font-weight:550}.demo-heading span{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--accent)}.demo-body{display:grid;grid-template-columns:minmax(0,1fr) 235px;align-items:center}.demo-chart{padding:20px 14px;min-width:0}.demo-chart svg{width:100%;height:auto;overflow:visible}.demo-controls{align-self:stretch;padding:22px;border-left:1px solid var(--line);background:var(--bg-2);display:flex;flex-direction:column;gap:26px}.demo-control{display:grid;gap:9px;font-size:12px;color:var(--text-2)}.demo-control label{display:flex;justify-content:space-between;gap:8px}.demo-control output{color:var(--accent);font-variant-numeric:tabular-nums}.demo-control input{width:100%;height:4px;accent-color:var(--accent);cursor:pointer}.demo-result{padding-top:17px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.demo-result strong{display:block;color:var(--copper);font-size:23px;font-weight:500;margin-top:4px;font-variant-numeric:tabular-nums}.demo-controls button{font-size:12px;min-height:34px;border:1px solid var(--line-2);border-radius:8px}.demo-note{padding:13px 22px;border-top:1px solid var(--line);font-size:11px;line-height:1.55;color:var(--muted)}.demo-legend{display:flex;gap:18px;padding:0 20px 12px;font-size:10px;color:var(--muted)}.demo-legend span::before{content:'';display:inline-block;width:15px;height:2px;background:var(--accent);margin-right:7px;vertical-align:middle}.demo-legend span:nth-child(2)::before{background:var(--copper)}
#live-instant{fill:none;stroke:var(--accent);stroke-width:2.3;stroke-linejoin:round;stroke-linecap:round}#live-average{fill:none;stroke:var(--copper);stroke-width:1.8;stroke-dasharray:5 4}#live-area{fill:var(--accent-soft)}.demo-grid{stroke:var(--line);stroke-width:1}.demo-label{fill:var(--muted);font-size:11px;font-family:var(--mono)}
#courbes .section-head{margin-bottom:34px}.tree-showcase{display:grid;grid-template-columns:.8fr 1.2fr;gap:64px;align-items:center}.tree-showcase .lead{margin-top:22px}.ft-stage{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.ft-stage .ft-box{fill:var(--surface-2);stroke:var(--line-2)}.ft-stage .ft-label{font-size:12px;fill:var(--text)}.ft-stage .ft-sub{font-size:9px;fill:var(--muted)}.ft-stage .ft-gate{fill:var(--surface);stroke:var(--accent);stroke-width:1.4}.ft-stage .ft-edge{stroke:var(--muted);stroke-width:1.1;fill:none;stroke-dasharray:none;animation:none}.ft-readout{border-top:1px solid var(--line);font-size:11px;padding-top:12px}.ft-readout strong{color:var(--accent);font-size:12px}.standards{flex-wrap:wrap;gap:20px}.footer{font-size:13px}.edition{display:block;font-size:10px;color:var(--muted);margin-top:12px}
@media(max-width:980px){.module-panel,.tree-showcase{grid-template-columns:1fr;gap:28px}.hero{padding-top:52px}.nav-links{display:none}.nav-actions{margin-left:auto}.demo-body{grid-template-columns:1fr 215px}.module-copy{max-width:700px}.section{padding-block:60px}}
@media(max-width:600px){.demo-body{grid-template-columns:1fr}.demo-controls{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:20px}.demo-control{grid-column:1/-1}.demo-heading{padding:14px}.demo-heading span{display:none}.demo-note{padding:14px}.product-caption{font-size:9px}.product-caption>span{display:none}.hero h1{font-size:43px}.hero .lead{font-size:17px}.hero-top{margin-bottom:26px}.tree-showcase{gap:26px}.ft-stage{padding:12px}.nav .wrap{gap:10px}.brand{font-size:15px}.hero-actions .link{justify-content:center}.section-head h2{font-size:34px}.demo-result strong{font-size:19px}.wrap{padding-inline:18px}}

/* Public site: the same neutral default palette as the 1.0.28 workspace. */
:root,:root[data-theme=dark]{
  --bg:#17181c;--bg-2:#1b1c21;--surface:#24262c;--surface-2:#2b2e35;--surface-3:#333740;
  --line:#3c414c;--line-2:#646d7c;--text:#f1f2f5;--text-2:#b9bfcb;--muted:#b8c0ce;
  --accent:#84baff;--accent-2:#accdf5;--accent-ink:#17181c;--accent-soft:#263d5a;
  --copper:#b9bfcb;--danger:#ff9299;--ok:#7cdaa6;color-scheme:dark;
}
:root[data-theme=light]{
  --bg:#f4f5f7;--bg-2:#f6f7f9;--surface:#fff;--surface-2:#f6f7f9;--surface-3:#eceef2;
  --line:#dfe2e8;--line-2:#bcc2cd;--text:#20232a;--text-2:#59616e;--muted:#56606d;
  --accent:#0867cf;--accent-2:#075dbb;--accent-ink:#fff;--accent-soft:#eaf2ff;
  --copper:#59616e;--danger:#b62635;--ok:#15734a;color-scheme:light;
}
.nav{background:var(--bg-2);border-bottom-color:var(--line-2)}
.product-frame{background:var(--bg);border-color:var(--line-2)}
.frame-bar,.product-caption{background:var(--surface);color:var(--text-2);border-color:var(--line)}
.frame-bar i{background:var(--muted)}
.product-caption strong{color:var(--text)}
.section+.section{border-top:1px solid var(--line)}
.live-demo,.ft-stage,.table-wrap{border-color:var(--line-2)}
:focus-visible{outline-color:var(--accent)}

