/* Homepage Nexus demo: one job, start to finish, played once in real time.
   Scoped to .hd so the shared workforce styles and page-depth entrances don't touch it. */
body main.homepage .home-demo .hd-label{display:flex;align-items:center;gap:12px;margin:3rem 0 0;font:700 .75rem/1.4 var(--site-body,Inter,system-ui,sans-serif);letter-spacing:.14em;text-transform:uppercase;color:#14638f}
body main.homepage .home-demo .hd-label>span{width:28px;height:2px;background:#35b9e4}
body main.homepage .home-demo .home-demo-frame.hd{margin-top:14px;padding:8px!important;border-radius:22px}
.hd{--hd-ink:#202d32;--hd-muted:#606b70;--hd-line:#e3eaef;--hd-blue:#2180b8;--hd-action:#14638f;color:var(--hd-ink);font-family:var(--site-body,Inter,system-ui,sans-serif);text-align:left}
.hd *{box-sizing:border-box}
.hd p,.hd h3{margin:0}
.hd-window{border-radius:16px;overflow:hidden;background:linear-gradient(155deg,#fff 20%,#f7fbfe 100%)}
.hd-bar{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--hd-line)}
.hd-bar img{width:18px;height:18px}
.hd-bar b{font-size:15px;font-weight:650}
.hd-bar b span{color:#8a9aa6;font-weight:500;margin-right:3px}
.hd-members{font-size:12px;color:#66798a}
.hd-sample{margin-left:auto;font-size:11px;font-weight:600;color:#566b7b;border:1px solid #d8e2ea;border-radius:999px;padding:4px 10px;white-space:nowrap}
.hd-control{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 12px;border:1px solid #d8e2ea;border-radius:999px;background:#fff;color:#3d5262;font:600 12px/1 var(--site-body,Inter,sans-serif);cursor:pointer;transition:background-color 160ms ease-out,border-color 160ms ease-out}
.hd-control:hover{background:#f3f8fb;border-color:#c7d6e1}
.hd-control:focus-visible{outline:2px solid var(--hd-blue);outline-offset:3px}
.hd-control[hidden]{display:none}
.hd-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;padding:26px 28px 28px}
.hd-chat{display:flex;flex-direction:column;gap:22px;min-height:100%}
.hd-msg{display:flex;gap:12px}
.hd-avatar{flex:none;width:34px;height:34px;border-radius:8px;background:#eef4f8;display:grid;place-items:center;overflow:hidden}
.hd-avatar img{width:20px;height:16px;object-fit:contain}
.hd-avatar.hd-avatar-you img{width:100%;height:100%;object-fit:cover}
.hd-avatar-op{background:#f6e3c4;color:#7a4a06;font-size:11px;font-weight:800}
.hd-body{flex:1;min-width:0}
.hd-by{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.hd-by b{font-size:14px;font-weight:700}
.hd-by time{font-size:11px;color:#7a8a95}
.hd-app{font-size:9px;font-weight:700;letter-spacing:.04em;color:#566b7b;background:#eef3f7;border-radius:4px;padding:2px 5px}
.hd-text{position:relative;margin-top:4px!important;font-size:15px;line-height:1.65}
.hd-mention,.hd-mention-typed{background:#edf6fc;color:var(--hd-action);border-radius:4px;padding:0 3px;font-weight:500}
.hd-mention-typed:empty{padding:0}
.hd-ghost{visibility:hidden}
.hd-reading{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.hd-tool{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 7px 0 8px;border:1px solid #d8e2ea;border-radius:999px;background:#fff;font-size:12px;font-weight:600}
.hd-tool>img{width:14px;height:14px;object-fit:contain}
.hd-status{position:relative;width:15px;height:15px}
.hd-status>i{position:absolute;inset:0;border-radius:50%}
.hd-spin{border:2px solid #cfdde7;border-top-color:var(--hd-blue);opacity:0}
.hd-ok{background:#127550;display:grid;place-items:center}
.hd-msg-team{margin:-10px -12px;padding:10px 12px;border-radius:14px;background:rgba(253,246,234,var(--hd-team,1))}
.hd-call{font-size:11px;font-weight:700;color:#8a4d00;background:#fae3bf;border-radius:999px;padding:2px 9px}
.hd-dots{position:absolute;left:0;top:9px;display:flex;gap:5px;opacity:0}
.hd-dots i{width:7px;height:7px;border-radius:50%;background:#9a7a4f}
.hd-composer{margin-top:auto;display:flex;align-items:flex-end;gap:10px;min-height:50px;padding:8px 8px 8px 14px;border:1px solid #d8e2ea;border-radius:12px;background:#fff;font-size:14px;line-height:1.5;transition:border-color 160ms ease-out}
.hd-composer.is-typing{border-color:#9cc3df}
.hd-composer p{flex:1;min-width:0;padding:4px 0;position:relative;min-height:29px}
.hd-placeholder{position:absolute;left:0;top:4px;color:#8a9aa6}
.hd-caret{display:inline-block;width:2px;height:17px;margin-left:1px;vertical-align:-3px;background:var(--hd-blue);opacity:0}
.hd-send{flex:none;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:#c9d7e0;color:#fff;transition:background-color 160ms ease-out}
.hd-composer.is-typing .hd-send{background:var(--hd-action)}
.hd-output{display:flex;flex-direction:column;gap:12px;min-width:0}
.hd-card{border-radius:12px;overflow:hidden;background:linear-gradient(150deg,#fff 35%,#f4f9fc);box-shadow:0 12px 28px -17px #2459795c,0 0 0 1px #dbe3e9}
.hd-card-head{display:flex;gap:12px;align-items:center;padding:16px 18px;background:#f3f8fbc9;border-bottom:1px solid #e7edf1}
.hd-card-head>img{width:26px;height:26px;object-fit:contain}
.hd-card-head>div{flex:1;min-width:0}
.hd-card-head h3{font:600 17px/1.3 NexusManrope,Manrope,system-ui,sans-serif;letter-spacing:-.01em;color:var(--hd-ink)}
.hd-card-head p{margin-top:3px!important;font-size:11px;color:#66798a}
.hd-badge{flex:none;font-size:11px;font-weight:700;border-radius:999px;padding:4px 9px;color:#566b7b;background:#eef3f7}
.hd-badge.is-ready{color:#127550;background:#dff4e9}
.hd-card-body{padding:20px 18px 6px}
.hd-row{display:grid;grid-template-columns:64px minmax(0,1fr) 96px;gap:12px;align-items:center;font-size:13px}
.hd-row+.hd-row{margin-top:14px}
.hd-row>b{text-align:right;font-weight:600}
.hd-row small{font-weight:400;font-size:11px;color:#607482}
.hd-track{height:12px}
.hd-fill{height:12px;border-radius:3px;background:#d9e4eb;position:relative;overflow:hidden}
.hd-fill i{position:absolute;right:0;top:0;bottom:0;background:var(--hd-blue)}
.hd-key{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:16px!important;font-size:11px;color:#607482}
.hd-key i{display:inline-block;width:8px;height:8px;background:#d9e4eb}
.hd-key i:nth-of-type(2){background:var(--hd-blue);margin-left:8px}
.hd-rec{border-top:1px solid #dbe3e9;margin-top:18px;padding-top:18px}
.hd-rec strong{display:block;font-size:15px;font-weight:600;line-height:1.45}
.hd-rec p{margin-top:8px!important;font-size:13px;line-height:1.65;color:#596d79}
.hd-more{margin-top:12px}
.hd-more details{border-top:1px solid #e7edf1}
.hd-more summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;font-size:13px;color:var(--hd-action);cursor:pointer;list-style:none}
.hd-more summary::-webkit-details-marker{display:none}
.hd-more summary>span{transition:transform 200ms ease-out}
.hd-more details[open] summary>span{transform:rotate(45deg)}
.hd-more summary:focus-visible{outline:2px solid var(--hd-blue);outline-offset:3px;border-radius:4px}
.hd-more details>p{font-size:12px;line-height:1.65;color:#596d79;padding-bottom:12px}
.hd-table{overflow-x:auto}
.hd-table table{border-collapse:collapse;width:100%;min-width:300px;font-size:11px;margin-bottom:12px}
.hd-table caption{text-align:left;font-size:10px;color:#596d79;margin:4px 0 8px}
.hd-table td,.hd-table th{padding:7px 4px;text-align:right;border-bottom:1px solid #dbe3e9}
.hd-table th:first-child{text-align:left}
.hd-sources{padding:14px 18px 16px;border-top:1px solid #e7edf1;background:#fbfdfe}
.hd-sources>p{font-size:11px;font-weight:600;color:#607482;margin-bottom:8px!important}
.hd-sources>div{display:flex;flex-wrap:wrap;gap:6px}
.hd-sources span{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid #dbe3e9;border-radius:999px;background:#fff;font-size:11px;color:#3d5262}
.hd-sources img{width:14px;height:14px;object-fit:contain}
.hd-done{display:flex;gap:7px;align-items:center;font-size:13px;color:#2c6c53}
body main.homepage .home-demo .hd-close{margin:2.75rem 0 0;text-align:center;font:600 clamp(1.375rem,2.2vw,1.875rem)/1.25 NexusManrope,Manrope,system-ui,sans-serif;letter-spacing:-.02em;color:var(--site-ink,#202d32);text-wrap:balance}
body main.homepage .home-demo .hd-close em{font-style:normal;color:#2180b8}
body main.homepage .home-demo .hd-close+.home-links{margin-top:1.5rem}
@media(max-width:1100px){.hd-grid{gap:24px;padding:22px 20px 24px}.hd-row{grid-template-columns:58px minmax(0,1fr) 88px;gap:8px}}
@media(max-width:900px){
 .hd-grid{grid-template-columns:1fr;gap:28px;padding:22px 20px 22px}
 .hd-chat{min-height:0}
 .hd-composer{margin-top:4px}
 body main.homepage .home-demo .hd-label{margin-top:2.25rem}
 body main.homepage .home-demo .hd-close{text-align:left}
}
@media(max-width:640px){
 .hd-bar{gap:10px;padding:12px 14px;flex-wrap:wrap}
 .hd-members{display:none}
 .hd-grid{padding:18px 14px 18px}
 .hd-text{font-size:14px}
 .hd-msg-team{margin:-8px -8px;padding:8px}
 .hd-card-head{padding:14px}
 .hd-card-head h3{font-size:15px}
 .hd-card-body{padding:16px 14px 4px}
 .hd-row{grid-template-columns:54px minmax(0,1fr) 84px;font-size:12px}
 .hd-sources{padding:12px 14px 14px}
 body main.homepage .home-demo .home-demo-frame.hd{border-radius:18px;padding:6px!important}
 .hd-window{border-radius:13px}
}
@media(forced-colors:active){.hd-fill i,.hd-key i{forced-color-adjust:none}.hd-msg-team{outline:1px solid CanvasText}}
/* Shared site rules size every svg and style i and h3; reset them inside the demo. */
.hd i{font-style:normal}
.hd svg{flex:none;display:block}
.hd .hd-ok svg{width:10px;height:10px}
.hd .hd-control svg{width:12px;height:12px}
.hd .hd-send svg,.hd .hd-done svg{width:16px;height:16px}
.hd .hd-card-head h3{min-height:0;max-width:none;text-wrap:balance}
/* Before the review arrives, the output column says what will appear there. */
.hd-output{position:relative}
.hd-output::before{content:"Nexus's work appears here";position:absolute;inset:0 0 34px;display:grid;place-items:center;border-radius:12px;background:#f4f8fb;box-shadow:inset 0 0 0 1px #e6eef3;font-size:12px;font-weight:500;color:#8a9aa6;opacity:var(--hd-empty,0);pointer-events:none}
@media(max-width:900px){.hd-output::before{display:none}}
@media(max-width:640px){.hd-bar{flex-wrap:nowrap}.hd-control{width:32px;padding:0;justify-content:center}.hd-control span{display:none}}
