@font-face{font-family:Manrope;src:url("./assets/Manrope-Regular.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Manrope;src:url("./assets/Manrope-Medium.woff") format("woff");font-weight:500;font-display:swap}
@font-face{font-family:Manrope;src:url("./assets/Manrope-SemiBold.woff") format("woff");font-weight:600;font-display:swap}
@font-face{font-family:Manrope;src:url("./assets/Manrope-Bold.woff") format("woff");font-weight:700;font-display:swap}
:root{--ink:#0e1424;--deep:#0a0f1e;--purple:#7547eb;--lavender:#b092f6;--paper:#f7f8fc;--muted:#626a7b;--line:#dfe1e9;--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}html{background:var(--deep)}body{margin:0;color:#f7f6ff;font-family:Manrope,Arial,sans-serif;-webkit-font-smoothing:antialiased;background:radial-gradient(ellipse at 7% 50%,#6733cb3d 0,transparent 44%),radial-gradient(ellipse at 30% 105%,#3b2a7933 0,transparent 49%),var(--deep);min-height:100svh}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.58}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--lavender);outline-offset:5px}textarea:focus{outline:none}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex:none}.skip{position:fixed;top:-80px;left:20px;padding:14px 20px;background:white;color:var(--ink);z-index:20}.skip:focus{top:14px}.site-header{height:100px;padding:0 clamp(28px,4.7vw,80px);display:flex;align-items:center;justify-content:space-between;gap:28px;border-bottom:1px solid #ffffff0d;background:#0e142442}.brand{display:flex;align-items:center;flex:0 0 207px}.brand img{width:207px;height:auto;display:block}.page-label{display:flex;align-items:center;gap:18px;font-size:19px;letter-spacing:-.025em}.lab-badge{font-size:12px;color:#d4c1ff;border:1px solid #b092f6;border-radius:6px;line-height:1;padding:6px 11px;letter-spacing:.04em}.back-link{display:flex;align-items:center;justify-content:flex-end;gap:11px;font-size:14px;color:#e6e7f0;min-height:44px;flex:0 0 207px}.back-link:hover{color:var(--lavender)}.workspace{display:grid;grid-template-columns:minmax(310px,.8fr) minmax(480px,1.16fr);gap:clamp(36px,4vw,72px);max-width:1640px;padding:48px clamp(28px,4.7vw,80px) 36px;margin:auto;min-height:calc(100svh - 100px)}.agent-pane{display:flex;flex-direction:column;min-width:0;position:relative}.agent-identity{padding:15px 0 0 10px}.agent-identity h1{font-size:40px;line-height:1.2;letter-spacing:-.035em;font-weight:600}.agent-identity p{margin-top:5px;color:#c8b5ed;font-size:17px;letter-spacing:-.02em}.agent-stage{width:min(100%,560px);aspect-ratio:715/746;position:relative;margin:auto;overflow:hidden;flex:none;--agent-intensity:1}.agent-poster{position:absolute;inset:0;overflow:hidden;mix-blend-mode:screen;mask-image:radial-gradient(ellipse at center,#000 57%,transparent 75%);transition:opacity .3s}.agent-poster img{position:absolute;width:132.896%;max-width:none;left:-16.393%;top:-16.230%;height:auto}.agent-stage.is-ready .agent-poster{opacity:0}.agent-stage canvas{width:100%;height:100%;display:block;position:relative;opacity:0;transition:opacity .3s;filter:brightness(var(--agent-intensity))}.agent-stage.is-ready canvas{opacity:1}.agent-stage video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.agent-stage.is-error{--agent-intensity:.86}.agent-caption{text-align:center;padding:2px 0 8px}.agent-status{font-size:15px;display:flex;align-items:center;justify-content:center;gap:10px;min-height:24px}.status-dot{width:9px;height:9px;border-radius:50%;background:#c4a4ff;box-shadow:0 0 18px #b092f666}.agent-caption[data-state="error"] .status-dot{background:#eac28a}.motion-toolbar{display:flex;align-items:flex-start;justify-content:center;gap:18px;margin-top:17px;min-height:38px}.motion-toggle,.motion-tests summary{border:0;background:transparent;color:#9d9dbb;font-size:10px;display:inline-flex;gap:5px;align-items:center;min-height:30px;padding:4px 0}.motion-toggle .icon{width:12px;height:12px}.motion-tests{position:relative;text-align:left}.motion-tests summary{list-style:none;cursor:pointer}.motion-tests summary::-webkit-details-marker{display:none}.motion-tests summary .icon{width:13px;height:13px}.motion-options{position:absolute;z-index:5;bottom:36px;left:50%;transform:translateX(-50%);width:174px;padding:7px;background:#171d31;border:1px solid #c1b3f32b;border-radius:12px;box-shadow:0 12px 36px #0007}.motion-options button{display:block;text-align:left;border:0;background:transparent;color:#eeeaff;padding:10px 12px;width:100%;border-radius:6px;font-size:12px}.motion-options button:hover,.motion-options button:focus-visible{background:#b092f622}.chat-panel{background:var(--paper);border:1px solid #ffffff9e;border-radius:23px;color:var(--ink);display:flex;flex-direction:column;min-width:0;height:calc(100svh - 184px);min-height:610px;max-height:920px;box-shadow:0 18px 80px #00000012;overflow:hidden}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 30px;padding:20px 0 14px;border-bottom:1px solid #dadcea}.new-chat{background:transparent;border:1px solid #adb1c5;border-radius:10px;padding:11px 17px;color:var(--ink);font-size:13px;white-space:nowrap;min-height:42px;margin-top:4px}.new-chat:hover{background:white;border-color:var(--purple)}.connection-notice{margin:15px 30px 0;padding:10px 13px;border-radius:9px;background:#eee9f8;color:#655778;font-size:11px;line-height:1.7}.chat-body{padding:16px 30px 16px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;scroll-behavior:smooth}.suggestions button:hover{border-color:#b092f6;background:#eee9f84d}.suggestions button:active{background:#eae2fc}.composer-area{padding:10px 25px 23px;flex:none}.composer{background:white;border:1px solid #a079f1;border-radius:15px;padding:13px 16px 12px;box-shadow:0 0 0 1px #7547eb09;transition:box-shadow .15s}.composer:focus-within{border-color:var(--purple);box-shadow:0 0 0 3px #7547eb10}.composer textarea{display:block;background:transparent;border:0;resize:none;color:var(--ink);width:100%;min-height:68px;max-height:168px;font-size:15px;line-height:1.65;padding:0 2px 9px}.composer textarea::placeholder{color:#74768e;opacity:1}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:15px}.attach-button{background:transparent;border:0;color:#656b80;padding:7px 1px;display:flex;align-items:center;gap:8px;font-size:12px;min-height:38px}.attach-button .icon{width:20px;height:20px}.attach-button:hover{color:var(--purple)}.send-button{border:0;background:var(--purple);color:white;border-radius:9px;min-height:43px;padding:10px 21px;font-size:14px;font-weight:500;transition:background .15s,transform .15s}.send-button:hover{background:#6234d9}.send-button:active{transform:translateY(1px)}.composer-footer{display:flex;gap:12px;justify-content:space-between;padding:10px 6px 0;color:#7a7f90;font-size:9px;line-height:1.5}.desktop-hint{opacity:.84}.form-notice{background:#fff0db;color:#75572e;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.7;margin-top:10px}.attachments{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:7px}.attachment-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #d6c8f2;background:#f1eafa;border-radius:7px;padding:5px 5px 5px 9px;max-width:100%;font-size:10px}.attachment-chip>span{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-chip button{border:0;background:transparent;display:flex;padding:3px;color:#6e617b}.attachment-chip .icon{width:13px;height:13px}.messages{display:grid;gap:21px}.message{max-width:100%;font-size:14px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-wrap}.message .message-role{font-size:10px;font-weight:700;letter-spacing:.025em;margin-bottom:5px;display:block;color:var(--purple)}.message.user{background:#eae2f8;border-radius:13px 13px 3px 13px;padding:12px 16px;margin-left:11%;white-space:pre-wrap}.message.user .message-role{color:#6d627e}.message.assistant{padding-right:9px}.message.is-streaming .message-content:after{content:"";display:inline-block;width:5px;height:13px;background:#a180e2;margin-left:4px;vertical-align:baseline;animation:cursor 1s steps(2) infinite}.message .file-label{display:block;font-size:10px;color:#75688a;margin-top:5px}.no-js{position:fixed;bottom:10px;left:10px;right:10px;background:#fff;padding:15px;color:var(--ink);z-index:10}@keyframes cursor{50%{opacity:0}}
@media(min-width:1550px){.workspace{gap:80px}.agent-stage{width:560px}.chat-panel{min-height:720px}.composer textarea{min-height:95px}}
@media(max-width:1120px){.site-header{height:82px;padding:0 30px}.brand{flex-basis:170px}.brand img{width:170px}.page-label{font-size:16px}.back-link{font-size:12px;flex-basis:170px}.workspace{padding:30px;gap:25px;grid-template-columns:minmax(270px,.73fr) minmax(415px,1.13fr);min-height:calc(100svh - 82px)}.chat-panel{height:calc(100svh - 142px);min-height:625px}.chat-header{margin:0 23px}.new-chat{padding:9px 12px;font-size:11px}.chat-body{padding:16px 23px 14px}.connection-notice{margin-left:23px;margin-right:23px}.agent-identity h1{font-size:33px}.agent-identity p{font-size:14px}.composer-area{padding-left:19px;padding-right:19px}.desktop-hint{display:none}}
@media(max-width:820px){.site-header{height:75px;padding:0 22px;gap:16px}.brand{flex-basis:auto}.brand img{width:146px}.page-label{margin-left:auto;font-size:13px;gap:9px}.lab-badge{font-size:9px;padding:5px 7px}.back-link{flex-basis:auto;justify-content:center}.back-link span{display:none}.back-link .icon{width:20px}.workspace{display:block;padding:20px 18px 24px;min-height:calc(100svh - 75px);max-width:700px}.agent-pane{min-height:205px;padding-left:17px;justify-content:center;margin-bottom:16px;isolation:isolate}.agent-identity{padding:0;position:relative;z-index:2;max-width:52%}.agent-identity h1{font-size:30px}.agent-identity p{font-size:12px;line-height:1.5;max-width:170px}.agent-stage{position:absolute;right:5px;top:-11px;width:230px;height:240px;margin:0;z-index:-1}.agent-caption{text-align:left;padding:18px 0 0;max-width:52%}.agent-status{justify-content:flex-start;gap:7px;font-size:10px;line-height:1.4;min-height:20px}.status-dot{width:6px;height:6px}.motion-toolbar{justify-content:flex-start;gap:10px;margin-top:9px;flex-wrap:wrap}.motion-toggle,.motion-tests summary{font-size:10px;min-height:44px}.motion-tests{min-width:0}.motion-tests[open]{flex-basis:100%}.motion-options{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:calc(100vw - 70px);max-width:580px;margin-top:6px;transform:none}.motion-options button{min-height:44px;padding:8px 6px;text-align:center;font-size:11px}.chat-panel{height:auto;min-height:0;max-height:none;border-radius:20px;overflow:clip}.chat-header{margin:0 21px;padding:17px 0 12px}.new-chat{font-size:10px;padding:8px 10px;min-height:36px}.chat-body{padding:14px 21px 16px;flex:none;overflow:visible;overscroll-behavior:auto;max-height:none;min-height:0}.connection-notice{margin:13px 21px 0;font-size:10px}.composer-area{padding:10px 16px 18px}.composer{padding:12px 12px 10px}.composer textarea{font-size:16px;min-height:85px}.attach-button{font-size:10px;gap:5px}.send-button{font-size:12px;padding:9px 15px;min-height:39px}.composer-footer{font-size:8px;padding-left:2px;padding-right:2px}.message{font-size:13px}.attachment-chip>span{max-width:180px}}
@media(max-width:390px){.site-header{padding:0 17px;gap:12px}.brand img{width:132px}.page-label{font-size:11px}.agent-stage{width:210px;height:219px;right:-7px;top:-1px}.agent-identity{max-width:50%}.agent-identity h1{font-size:28px}.agent-identity p{max-width:140px}.agent-caption{max-width:48%}.motion-toolbar{gap:3px}.chat-header{gap:10px}.new-chat{font-size:9px}.chat-body{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.typing-indicator {
  margin-top: 21px;
  white-space: normal;
}
.typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 12px 12px 12px 4px;
  background: #eae2f8;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: nexa-typing 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .13s; }
.typing-dots span:nth-child(3) { animation-delay: .26s; }
@keyframes nexa-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.agent-stage.is-video-fallback{mask-image:radial-gradient(ellipse at center,#000 60%,transparent 76%)}
.agent-stage.is-video-fallback video{width:151.049%;height:auto;left:-25.455%;top:-20.912%;position:absolute;opacity:1;mix-blend-mode:screen;pointer-events:none}
.agent-stage.is-video-fallback canvas{opacity:0}

/* NEXA backdrop: remove the source frame's hard edges in every rendering mode. */
.agent-stage,.agent-stage.is-video-fallback{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(0deg,transparent,#000 4%,#000 96%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(0deg,transparent,#000 4%,#000 96%,transparent);
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
}

.chat-header h2 {
  min-width: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.04em;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suggestions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d4d6e5;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
}
.suggestions .icon {
  width: 18px;
  height: 18px;
  color: #64677e;
}

.nexa-lead {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dadcea;
  border-radius: 12px;
  background: #f1ecf9;
  color: var(--ink);
  white-space: normal;
}
.nexa-lead form {
  display: grid;
  gap: 9px;
}
.nexa-lead p { font-size: 14px; line-height: 1.5; }
.nexa-lead-question { font-weight: 700; }
.nexa-lead-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 8px;
}
.nexa-lead label {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
}
.nexa-lead input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #c7c9dc;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.nexa-lead input:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.nexa-lead .nexa-lead-purpose { margin: 3px 0; color: var(--muted); font-size: 12px; }
.nexa-lead .send-button { min-height: 44px; justify-self: start; }
.nexa-lead-status:empty { display: none; }
