/* AI agents hero animation. Every name starts with ag-. Markup is inline in ai-agents.html; motion is ag-demo.js (GSAP). */
/* The page: the animation sits full width inside the dark hero, under the hero text. */
/* The text under the headline may run as wide as the headline. */
.page-hero.ag-band .lead{max-width:none}
.ag-band .ag-demo{margin-top:44px}
@media (max-width:640px){.page-hero.ag-band{padding-bottom:40px}.ag-band .ag-demo{margin-top:32px}}
/* Less empty space around the link under the hero and the "In short" paragraph. */
section.ag-link{padding:48px 0 0}
section.ag-short{padding:32px 0 0}
@media (max-width:640px){section.ag-link{padding-top:36px}section.ag-short{padding-top:24px}}
.ag-demo{--ag-sans:var(--font,Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif);--ag-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;position:relative;display:grid;gap:14px;min-width:0;font-family:var(--ag-sans);font-size:16px;line-height:1.45;color:#e6ebf5;text-align:left}
.ag-demo *{box-sizing:border-box}
.ag-demo svg{display:inline-block;max-width:none}
.ag-demo i{font-style:normal}
.ag-h{visibility:hidden}
.ag-grow{flex:1}
.ag-stage{position:relative;container-type:inline-size}
.ag-winwrap{position:relative;width:100%;aspect-ratio:972/608;overflow:hidden;container-type:inline-size;border-radius:10px;box-shadow:0 30px 70px -30px rgba(0,0,0,.85),0 0 0 1px rgba(140,232,189,.2)}
.ag-win{position:absolute;left:0;top:0;width:972px;height:608px;transform-origin:0 0;--ag-auto:tan(atan2(100cqw,972px));transform:scale(var(--ag-s,var(--ag-auto)));background:#070f0e;overflow:hidden;font-size:13px;line-height:1.45;color:#132a2c}
.ag-body{position:absolute;inset:0}
.ag-ptr{position:absolute;left:0;top:0;width:22px;height:22px;z-index:9;pointer-events:none}

/* the agent: a separate program, drawn as a plain chat window */
.ag-agent{position:absolute;left:10px;top:10px;width:344px;height:588px;border-radius:9px;overflow:hidden;background:#f7f8f5;color:#132a2c}
.ag-ah{position:absolute;left:0;right:0;top:0;height:42px;display:flex;align-items:center;gap:9px;padding:0 12px;background:#fff;border-bottom:1px solid #e3e8e3}
.ag-spark{width:18px;height:18px;flex:none}
.ag-an{display:grid;line-height:1.2}
.ag-an b{font-size:13px;font-weight:700;letter-spacing:-.01em}
.ag-an span{font-size:10.5px;color:#55706a}
.ag-conn{display:inline-flex;align-items:center;gap:6px;font-family:var(--ag-mono);font-size:10.5px;line-height:1;color:#35524b;border:1px solid #d6dfda;border-radius:999px;padding:5px 9px 5px 8px;white-space:nowrap}
.ag-conn i{width:6px;height:6px;border-radius:50%;background:#19c37d;display:block}
.ag-ab{position:absolute;left:0;right:0;top:42px;bottom:0}
.ag-th{position:absolute;left:0;right:0;top:0;bottom:0;padding:14px 13px 0;display:flex;flex-direction:column;align-items:flex-start;gap:9px;background:#f7f8f5}
.ag-um{align-self:flex-end;max-width:88%;padding:8px 11px;border-radius:12px 12px 3px 12px;background:#132a2c;color:#f2fbf6;font-size:12.5px;line-height:1.4}
.ag-tool{align-self:stretch;display:grid;gap:3px;padding:7px 10px 8px;border:1px solid #d6dfda;border-radius:8px;background:#fff;font-family:var(--ag-mono);font-size:11px;line-height:1.35}
.ag-tl{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ag-tn{font-weight:600;color:#132a2c;white-space:nowrap}
.ag-ta{color:#55706a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-ts{display:inline-flex;align-items:center;gap:5px;font-family:var(--ag-sans);font-size:10.5px;font-weight:600;line-height:1;color:#55706a;white-space:nowrap;padding:3px 0}
.ag-ts.ag-run::before{content:"";width:9px;height:9px;border-radius:50%;border:1.5px solid #b9c7bf;border-top-color:#08704e;animation:ag-spin .8s linear infinite}
.ag-ts.ag-ok{color:#08704e}
.ag-ts.ag-ok::before{content:"";width:8px;height:4px;margin:-3px 1px 0 0;border:solid #08704e;border-width:0 0 1.8px 1.8px;transform:rotate(-45deg)}
.ag-ts.ag-no{color:#a3271d;background:#fde9e6;border-radius:999px;padding:3px 8px}
.ag-ts.ag-wait{color:#7a5200;background:#fff1cc;border-radius:999px;padding:3px 8px}
.ag-res{align-self:stretch;display:grid;gap:5px;padding:8px 10px 9px;border-radius:8px;background:#0d1816;color:#8ce8bd}
.ag-rl{font-size:10.5px;font-weight:600;line-height:1;color:#a9c0b9}
.ag-rr{display:block;font-family:var(--ag-mono);font-size:10.8px;line-height:1.5;white-space:pre}
.ag-rrs{display:block}
.ag-rr b{font-weight:400;color:#f2fbf6}
.ag-tok{--ag-g:0;color:#f2c879;font-weight:600;border-radius:3px;box-shadow:0 0 0 calc(1.5px * var(--ag-g)) #f2c879;background:rgba(242,200,121,calc(.16 * var(--ag-g)))}
.ag-why{align-self:stretch;padding:8px 10px;border-left:3px solid #c9372c;border-radius:0 7px 7px 0;background:#fde9e6;color:#5f1710;font-size:11.5px;line-height:1.45}
.ag-am{font-size:13px;line-height:1.5;color:#132a2c;text-wrap:pretty}
.ag-am b{font-weight:600}
.ag-am .ag-mo{font-family:var(--ag-mono);font-size:11.5px;color:#7a5200;background:#fff1cc;border-radius:3px;padding:1px 4px}
.ag-comp{position:absolute;left:11px;right:11px;bottom:11px;min-height:38px;display:flex;align-items:center;padding:9px 44px 9px 12px;border:1px solid #cfd9d3;border-radius:11px;background:#fff;font-size:12.5px;line-height:1.4;color:#132a2c;box-shadow:0 -10px 14px 2px #f7f8f5}
.ag-comp.ag-ph{color:#8a9a94}
.ag-ct::after{content:"";display:inline-block;width:1px;height:14px;margin-left:1px;vertical-align:-2px;background:#132a2c;animation:ag-blink 1s steps(1) infinite}
.ag-ph .ag-ct::after{display:none}
.ag-cph{display:none}
.ag-ph .ag-cph{display:inline}
.ag-send{position:absolute;right:7px;bottom:6px;width:24px;height:24px;border-radius:50%;background:#132a2c;display:grid;place-items:center}
.ag-send svg{width:12px;height:12px}

/* WND Terminal */
.ag-term{--ag-act:0;position:absolute;left:364px;top:10px;width:598px;height:588px;border-radius:9px;overflow:hidden;background:#0d1816;box-shadow:0 0 0 1px #1c3334,0 0 0 calc(1px + 2px * var(--ag-act)) rgba(57,255,143,calc(.8 * var(--ag-act))),0 0 26px 0 rgba(57,255,143,calc(.28 * var(--ag-act)))}
.ag-bar{position:absolute;left:0;right:0;top:0;height:36px;display:flex;align-items:center;gap:8px;padding:0 11px;background:#132a2c}
.ag-logo{width:15px;height:15px;border-radius:5px;background:#19c37d;flex:none}
.ag-app{font-size:12.5px;font-weight:600;color:#f2fbf6;white-space:nowrap}
.ag-tab{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;line-height:1;color:#f2fbf6;background:#0d1816;border-radius:8px 8px 0 0;padding:9px 11px;align-self:flex-end;margin-left:6px;white-space:nowrap}
.ag-tab i{width:6px;height:6px;border-radius:50%;background:#19c37d;display:block}
.ag-mode{--ag-fr:0;--ag-fg:0;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;line-height:1;color:#cfe3dc;border:1px solid #2b4a4a;border-radius:999px;padding:6px 10px;white-space:nowrap;background:linear-gradient(rgba(255,157,138,calc(.34 * var(--ag-fr))),rgba(255,157,138,calc(.34 * var(--ag-fr)))),linear-gradient(rgba(57,255,143,calc(.3 * var(--ag-fg))),rgba(57,255,143,calc(.3 * var(--ag-fg))))}
.ag-mode b{font-weight:600;color:#f2fbf6}
.ag-who{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;color:#f2fbf6;white-space:nowrap;margin-left:4px}
.ag-av{width:21px;height:21px;border-radius:50%;background:#2b4a4a;color:#f2fbf6;font-size:9px;font-weight:700;display:grid;place-items:center}
.ag-status{position:absolute;left:0;right:0;bottom:0;height:22px;display:flex;align-items:center;gap:13px;padding:0 11px;background:#0a1413;border-top:1px solid #1c3334;font-size:10.5px;line-height:1;color:#a9c0b9;white-space:nowrap}
.ag-status b{font-weight:400;color:#8ce8bd}

/* the host screen: every piece of text sits on a row and a column */
.ag-scr{position:absolute;left:11px;top:58px;width:80ch;height:480px;font-family:var(--ag-mono);font-size:12px;line-height:20px;color:#8ce8bd}
.ag-t{position:absolute;white-space:pre}
.ag-w{color:#f2fbf6;font-weight:600}
.ag-v{color:#f2fbf6}
.ag-cy{color:#8fd6ff}
.ag-ul{position:absolute;height:1px;margin-top:18px;background:#3f6b5c}
.ag-st.ag-held{color:#f2c879}
.ag-card{--ag-g:0;border-radius:3px;box-shadow:0 0 0 calc(1.5px * var(--ag-g)) #f2c879;background:rgba(242,200,121,calc(.16 * var(--ag-g)))}
.ag-cur{position:absolute;left:0;top:0;width:1ch;height:15px;margin-top:2px;background:#8ce8bd;animation:ag-blink 1.1s steps(1) infinite}
.ag-key{position:absolute;left:404px;top:186px;z-index:4;display:inline-flex;align-items:center;font-family:var(--ag-mono);font-size:14px;font-weight:600;padding:8px 13px;border-radius:7px;border:1px solid #b9c7bf;border-bottom-width:3px;background:#fff;color:#132a2c;white-space:nowrap;box-shadow:0 12px 24px -8px rgba(0,0,0,.7)}
.ag-key.ag-no{border-color:#e0958c;background:#fde9e6;color:#a3271d}
@keyframes ag-blink{50%{opacity:0}}
@keyframes ag-spin{to{transform:rotate(360deg)}}
.ag-r0{top:0px}.ag-r2{top:40px}.ag-r5{top:100px}.ag-r7{top:140px}.ag-r8{top:160px}.ag-r9{top:180px}.ag-r10{top:200px}.ag-r11{top:220px}.ag-r13{top:260px}.ag-r14{top:280px}.ag-r15{top:300px}.ag-r16{top:320px}.ag-r17{top:340px}.ag-r18{top:360px}.ag-r21{top:420px}.ag-r23{top:460px}
.ag-c0{left:0ch}.ag-c9{left:9ch}.ag-c11{left:11ch}.ag-c13{left:13ch}.ag-c17{left:17ch}.ag-c24{left:24ch}.ag-c26{left:26ch}.ag-c28{left:28ch}.ag-c32{left:32ch}.ag-c38{left:38ch}.ag-c72{left:72ch}
.ag-w8{width:8ch}.ag-w10{width:10ch}

/* the question WND Terminal puts to the person at the computer */
.ag-dlg{position:absolute;left:0;right:0;top:36px;bottom:0;z-index:5;display:grid;place-items:center;background:rgba(5,12,11,.62)}
.ag-modal{width:432px;display:grid;gap:9px;padding:18px 20px 16px;border-radius:12px;background:#fbfcfa;color:#132a2c;font-size:12.5px;line-height:1.5;box-shadow:0 30px 60px -20px rgba(0,0,0,.8)}
.ag-mh{font-size:16px;font-weight:700;line-height:1.25;letter-spacing:-.015em}
.ag-modal b{font-weight:700}
.ag-md{padding:7px 10px;border-radius:7px;background:#eef2ef;color:#35524b}
.ag-ms{font-size:11px;line-height:1.45;color:#55706a}
.ag-mact{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}
.ag-b{display:inline-block;font-size:12.5px;font-weight:600;line-height:1;padding:9px 14px;border:1px solid #c7d4cd;border-radius:7px;background:#fff;color:#132a2c;white-space:nowrap}
.ag-b.ag-bp{background:#0f9f66;border-color:#0f9f66;color:#fff}

/* audit log */
.ag-audit{position:absolute;left:0;right:0;top:36px;bottom:0;z-index:6;padding:15px 16px 0;background:#fbfcfa;color:#132a2c;font-size:12px;line-height:1.4}
.ag-auh{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:12px}
.ag-auh b{display:block;color:#132a2c;font-size:17px;font-weight:700;line-height:1.2;letter-spacing:-.015em}
.ag-auh span{display:block;font-size:11.5px;color:#55706a;margin-top:2px}
.ag-auh .ag-flt{display:inline-block;margin:0;font-family:var(--ag-mono);font-size:10.5px;line-height:1;color:#35524b;border:1px solid #c7d4cd;border-radius:6px;padding:7px 9px;background:#fff}
.ag-row{display:grid;grid-template-columns:58px 168px 1fr 62px;gap:10px;align-items:start;padding:9px 2px;border-top:1px solid #e3eae6}
.ag-rh{padding:0 2px 7px;border-top:0;font-size:10.5px;font-weight:600;color:#55706a}
.ag-row>span{min-width:0}
.ag-tm{font-family:var(--ag-mono);font-size:11px;color:#55706a;padding-top:1px}
.ag-ev{font-family:var(--ag-mono);font-size:11px;font-weight:600;padding-top:1px}
.ag-pill{justify-self:start;display:inline-block;font-size:10.5px;font-weight:600;line-height:1;padding:4px 8px;border-radius:999px;background:#dff3e8;color:#075c40;white-space:nowrap}
.ag-pill.ag-no{background:#fde9e6;color:#a3271d}
.ag-pill.ag-wait{background:#fff1cc;color:#7a5200}

/* end card: real links, so it sits outside the inert window */
.ag-end{position:absolute;inset:0;z-index:5;display:grid;place-items:center;border-radius:10px;background:#0d1816;box-shadow:inset 0 0 0 1px rgba(140,232,189,.2)}
.ag-endi{display:grid;gap:clamp(8px,2.2cqw,16px);justify-items:center;text-align:center;padding:0 6cqw}
.ag-eh{font-size:clamp(20px,5.2cqw,56px);font-weight:800;line-height:1.06;letter-spacing:-.025em;color:#fff}
.ag-mask{display:block;overflow:hidden;padding-bottom:.1em}
.ag-ln{display:block}
.ag-ep{font-size:clamp(13px,2.1cqw,20px);line-height:1.45;color:#aab5c8;max-width:32em}
.ag-ecta{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.ag-en{font-size:12.5px;color:#aab5c8}

/* caption and chapters under the window */
.ag-foot{display:grid;gap:6px}
.ag-caps{display:grid;min-height:1.7em;padding-top:2px}
.ag-capn{grid-area:1/1;opacity:0;transform:translateY(6px);transition:opacity .3s ease,transform .3s ease}
.ag-capn.ag-on{opacity:1;transform:none}
.ag-cap{font-size:19px;font-weight:600;line-height:1.4;color:#f2f6fb;text-wrap:pretty}
.ag-navb{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap}
.ag-ch{display:flex;flex-wrap:wrap;gap:0 16px}
.ag-chb{font:inherit;font-size:13.5px;display:flex;align-items:center;gap:8px;padding:8px 0;border:0;background:none;color:#aab5c8;cursor:pointer;border-radius:4px}
.ag-chb:hover{color:#fff}
.ag-chb.ag-on{color:#fff;font-weight:600}
.ag-tk{width:14px;height:2px;border-radius:2px;background:#33435c;overflow:hidden;transition:width .3s ease}
.ag-tk i{display:block;height:100%;background:#19c37d;transform:scaleX(var(--ag-p,0));transform-origin:left center}
.ag-chb.ag-on .ag-tk{width:30px}
.ag-chb.ag-past{--ag-p:1}
.ag-fine{font-size:12px;color:#aab5c8}
.ag-pp{font:inherit;font-size:12.5px;font-weight:600;padding:6px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;cursor:pointer}
.ag-pp[hidden]{display:none}
.ag-chb:focus-visible,.ag-pp:focus-visible,.ag-end a:focus-visible{outline:2px solid #39ff8f;outline-offset:3px}
@media (max-width:900px){.ag-caps{min-height:3em}.ag-cap{font-size:17px}}
@media (max-width:560px){.ag-caps{min-height:4.4em}.ag-cap{font-size:15.5px}.ag-chb{padding:12px 0}.ag-ch{gap:0 13px}.ag-en{display:none}.ag-end .btn{padding:9px 14px;font-size:.88rem}}
@media (prefers-reduced-motion:reduce){.ag-capn,.ag-tk{transition:none}.ag-cur,.ag-ct::after,.ag-ts.ag-run::before{animation:none}}
