.pdemo{padding:clamp(48px,7vw,90px) 0;scroll-margin-top:90px}
.pdemo-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);align-items:end;gap:24px 56px;margin-bottom:28px}
.pdemo-head .eyebrow{color:var(--acc)}
.pdemo .pdemo-head h2{font-size:clamp(26px,3vw,42px);line-height:1.15;letter-spacing:-.025em;margin:12px 0 0;max-width:24ch}
.pdemo .pdemo-head p{font-size:16px;line-height:1.7;color:var(--tx-mut);margin:0;max-width:65ch}
.pdemo-lab{--copper:#fbb66b;--copper-muted:#a99a87;--iron:#211d19;border:1px solid #62503c;border-radius:24px;background:radial-gradient(ellipse at 50% -10%,#65422380,transparent 60%),linear-gradient(145deg,#211a14,#11100e 60%);color:#f6e9d6;padding:28px;box-shadow:inset 0 1px 0 #e5ba6f33,0 24px 60px #0002;overflow:hidden}
.pdemo-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:28px}
.pdemo-badge{font:500 12px/1.5 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:#e8b988;border:1px solid #705639;border-radius:999px;padding:6px 12px;background:#372719}
.pdemo-toolbar label{display:flex;align-items:center;gap:10px;font-size:14px;color:#d6c7b3}
.pdemo-toolbar select{background:#211d19;color:#f6e9d6;border:1px solid #68553f;border-radius:8px;padding:10px 32px 10px 12px;font:500 14px/1.4 var(--sans);min-height:44px;max-width:100%}
.pdemo-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;padding:20px 0 32px;position:relative}
.pdemo-station{position:relative;min-width:0}
.pdemo-machine{position:relative;display:grid;place-items:center;height:180px;border:2px solid #967853;border-radius:24px;background:linear-gradient(120deg,#3c352b,#66503b 26%,#332b23 55%,#251f18);box-shadow:inset 0 0 0 5px #181611,inset 0 0 0 7px #9b7c5040,inset 0 12px 32px #e8c69712,0 8px 0 #15120e,0 10px 0 #8f6a3d66,0 16px 24px #0007;transform:perspective(600px) rotateX(6deg);transition:border-color .3s,box-shadow .3s}
.pdemo-machine::before,.pdemo-machine::after{content:'';position:absolute;width:7px;height:7px;top:14px;border-radius:50%;background:linear-gradient(135deg,#cbb18a,#30271a);box-shadow:0 1px 2px #000,0 0 0 2px #21180d}
.pdemo-machine::before{left:14px}.pdemo-machine::after{right:14px}
.pdemo-machine svg{width:96px;height:96px;fill:none;stroke:#ccad83;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 3px 1px #0006)}
.pdemo-station[data-state=active] .pdemo-machine{border-color:#ffc779;box-shadow:inset 0 0 0 5px #181611,inset 0 0 0 7px #e5b06c66,0 8px 0 #15120e,0 10px 0 #a77730,0 16px 32px #f68f2826}
.pdemo-station[data-state=active] svg{stroke:#ffcd87;filter:drop-shadow(0 0 6px #ffad4266)}
.pdemo-station[data-state=done] .pdemo-machine{border-color:#a38758}.pdemo-station[data-state=error] .pdemo-machine{border-color:#f28a64}
.pdemo-station[data-state=error] svg{stroke:#ffa47f}
.pdemo-station:not(:last-child)::after{content:'';position:absolute;left:100%;top:91px;width:32px;height:10px;border:1px solid #987044;border-left:0;border-right:0;background:linear-gradient(#6e4e28,#dcaa61 46%,#5d3e19 72%);box-shadow:0 4px 6px #0008}
.pdemo-packet{position:absolute;left:calc(100% + 2px);top:92px;width:9px;height:8px;background:#ffd27a;border-radius:4px;box-shadow:0 0 10px #ffa932;opacity:0;z-index:1}
.pdemo.is-running .pdemo-station[data-state=active]:not(:last-child) .pdemo-packet{animation:pdemo-packet .8s ease-in-out infinite}
.pdemo.is-running .pdemo-station[data-state=active] .pdemo-gear{transform-origin:50px 50px;animation:pdemo-gear 5s linear infinite}
.pdemo.is-running .pdemo-station[data-state=active] .pdemo-document{animation:pdemo-document 1.2s ease-in-out infinite}
.pdemo.is-running .pdemo-station[data-state=active] .pdemo-scan{animation:pdemo-scan 1.4s ease-in-out infinite}
.pdemo-station h3{font-size:18px;font-weight:650;line-height:1.4;margin:24px 0 6px;color:#f6e9d6}
.pdemo-status{display:block;min-height:44px;font-size:14px;line-height:1.6;color:#bfb09a}
.pdemo-station[data-state=active] .pdemo-status{color:#ffd095}
.pdemo-station[data-state=error] .pdemo-status{color:#ffa47f}
.pdemo-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;border-top:1px solid #5a4832;padding-top:24px}
.pdemo-log{min-width:0}.pdemo .pdemo-log p{color:#e1d1ba;line-height:1.6;font-size:16px;margin:0;min-height:26px}.pdemo .pdemo-log small{display:block;font-size:13px;line-height:1.5;color:#baa78e;margin-top:8px}
.pdemo-actions{display:flex;gap:8px;flex-wrap:wrap}
.pdemo-actions button{font:600 14px/1.4 var(--sans);min-height:44px;padding:11px 16px;border-radius:10px;background:#352a1e;border:1px solid #8b6b40;color:#f4ddbc;cursor:pointer}
.pdemo-actions button[data-pdemo-run],.pdemo-actions button[data-pdemo-recover]{background:linear-gradient(#f6c587,#dd9c4e);color:#2b1b0c;border-color:#ffd8a3;box-shadow:inset 0 1px 0 #fff8,0 3px 10px #0004}
.pdemo-actions button:disabled{opacity:.5;cursor:default}
.pdemo :is(button,select):focus-visible{outline:2px solid #ffcc81;outline-offset:4px}
.pdemo-note{font-size:14px;line-height:1.65;color:var(--tx-mut);margin:18px 0 0;max-width:95ch}
.pdemo [hidden]{display:none!important}
@keyframes pdemo-packet{0%{opacity:0;transform:translateX(-3px)}30%{opacity:1}100%{opacity:0;transform:translateX(23px)}}
@keyframes pdemo-gear{to{transform:rotate(360deg)}}
@keyframes pdemo-document{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes pdemo-scan{0%,100%{transform:translateY(-12px)}50%{transform:translateY(12px)}}
@media(max-width:1000px){.pdemo-head{grid-template-columns:1fr;gap:16px}.pdemo-track{gap:20px}.pdemo-machine{height:150px}.pdemo-station:not(:last-child)::after{top:76px;width:20px}.pdemo-packet{top:77px}.pdemo-bottom{grid-template-columns:1fr}.pdemo-station h3{font-size:16px}}
@media(max-width:600px){.pdemo-lab{padding:16px;border-radius:16px}.pdemo-toolbar{align-items:flex-start;gap:16px;margin-bottom:12px}.pdemo-toolbar label{display:block;width:100%}.pdemo-toolbar select{display:block;width:100%;margin-top:8px}.pdemo-track{grid-template-columns:1fr;gap:24px;padding:12px 0 24px}.pdemo-station{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto;gap:0 18px;align-items:center}.pdemo-machine{height:92px;grid-row:1/3;border-radius:16px;transform:none}.pdemo-machine svg{width:58px;height:58px}.pdemo-machine::before,.pdemo-machine::after{width:5px;height:5px;top:9px}.pdemo-machine::before{left:9px}.pdemo-machine::after{right:9px}.pdemo-station h3{margin:4px 0 2px;align-self:end}.pdemo-status{align-self:start;min-height:0}.pdemo-station:not(:last-child)::after{left:42px;top:100%;width:10px;height:24px;border:1px solid #987044;border-top:0;border-bottom:0;background:linear-gradient(90deg,#6e4e28,#dcaa61 46%,#5d3e19 72%)}.pdemo-packet{left:43px;top:calc(100% + 3px);width:8px;height:8px}.pdemo.is-running .pdemo-station[data-state=active]:not(:last-child) .pdemo-packet{animation:pdemo-packet-y .8s ease-in-out infinite}.pdemo-actions{gap:8px}.pdemo-actions button{flex:1}.pdemo-log{min-height:82px}.pdemo .pdemo-head h2{font-size:28px}}
@keyframes pdemo-packet-y{0%{opacity:0;transform:translateY(-3px)}30%{opacity:1}100%{opacity:0;transform:translateY(18px)}}
@media(prefers-reduced-motion:reduce){.pdemo *{animation:none!important;transition:none!important}}
