.langbar{background:#12234a;color:#cfe1ff;text-align:center;padding:.55em 1em;font-size:.92rem}.langbar a{color:#7CF0C5;font-weight:600}
.talk-hero{padding:clamp(28px,5vw,64px) 0 36px}
.th-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(24px,4vw,56px);align-items:center}
@media(max-width:900px){.th-grid{grid-template-columns:1fr}}
.talk-btn{font-size:1.1rem;padding:1em 1.6em;animation:talkpulse 2.4s ease-out infinite}.talk-btn .mic{margin-right:.4em}
@keyframes talkpulse{0%{box-shadow:0 0 0 0 rgba(124,240,197,.55)}70%{box-shadow:0 0 0 18px rgba(124,240,197,0)}100%{box-shadow:0 0 0 0 rgba(124,240,197,0)}}
.geo-chip{margin-top:14px;font-size:.85rem;color:var(--muted)}
.sticky .btn{width:100%}

/* ---- console: robot + live chat ---- */
.console{position:relative;border:1px solid rgba(124,240,197,.35);border-radius:28px;background:radial-gradient(120% 70% at 50% 0%,rgba(76,102,255,.28),transparent 62%),linear-gradient(180deg,#10203f,#0b1526);box-shadow:0 30px 80px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.03) inset;overflow:hidden}
.cs-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.07);font-size:.82rem;color:var(--muted)}
.cs-top b{color:var(--ink);font-weight:600}
.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#7CF0C5;margin-right:8px;box-shadow:0 0 0 0 rgba(124,240,197,.7);animation:ping 2s infinite}
@keyframes ping{70%{box-shadow:0 0 0 9px rgba(124,240,197,0)}100%{box-shadow:0 0 0 0 rgba(124,240,197,0)}}
.lang-pill{border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:.2em .7em;color:var(--ink)}
.stage-bot{position:relative;display:flex;flex-direction:column;align-items:center;padding:14px 12px 4px}
#bot{width:min(230px,56vw);height:auto;overflow:visible;--out:0;--in:0}
.bot-status{margin-top:2px;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:#7CF0C5;min-height:1.2em}
.bot-status[data-s="thinking"]{color:#ffd37c}.bot-status[data-s="idle"]{color:var(--muted)}
.halo{position:absolute;top:22px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(124,240,197,.25),transparent 65%);filter:blur(10px);opacity:.55;transition:opacity .3s,transform .2s}
body[data-call="live"] .halo{opacity:.9}
/* robot parts */
#bot .rb-float{animation:botfloat 4.2s ease-in-out infinite;transform-origin:120px 150px}
@keyframes botfloat{50%{transform:translateY(-7px)}}
#bot .rb-shell{fill:url(#gHead);stroke:#7CF0C5;stroke-opacity:.55;stroke-width:2}
#bot .rb-body{fill:url(#gBody);stroke:#4C66FF;stroke-opacity:.7;stroke-width:2}
#bot .rb-visor{fill:#06101f;stroke:rgba(124,240,197,.4);stroke-width:1.5}
#bot .rb-eye{fill:#7CF0C5;filter:drop-shadow(0 0 6px #7CF0C5);transform-box:fill-box;transform-origin:center;animation:blink 5s infinite;transition:fill .3s}
@keyframes blink{0%,94%,100%{transform:scaleY(1)}97%{transform:scaleY(.08)}}
#bot.is-thinking .rb-eye{fill:#ffd37c;filter:drop-shadow(0 0 6px #ffd37c);animation:think .9s ease-in-out infinite}
@keyframes think{50%{transform:scaleX(.7)}}
#mouth rect{fill:#7CF0C5;transform-box:fill-box;transform-origin:center;transform:scaleY(.12);transition:transform .06s linear}
#bot .rb-ant{fill:#7CF0C5;filter:drop-shadow(0 0 8px #7CF0C5);animation:antp 2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes antp{50%{transform:scale(1.5);opacity:.6}}
#bot.is-listening .rb-ant{fill:#4C66FF;filter:drop-shadow(0 0 8px #4C66FF);animation-duration:1s}
#bot .rb-ear{fill:#16305e;stroke:#7CF0C5;stroke-opacity:.5}
#bot .rb-ring{fill:none;stroke:#4C66FF;stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center}
#bot.is-listening .rb-ring{animation:ear 1.6s ease-out infinite}#bot.is-listening .rb-ring.r2{animation-delay:.8s}
@keyframes ear{0%{opacity:.8;transform:scale(.6)}100%{opacity:0;transform:scale(1.7)}}
#bot .rb-chest{fill:#7CF0C5;filter:drop-shadow(0 0 7px #7CF0C5);transform-box:fill-box;transform-origin:center;transform:scale(calc(1 + var(--out)*.5))}
#bot .rb-arm{fill:url(#gBody);stroke:#4C66FF;stroke-opacity:.6;stroke-width:2;transform-box:view-box}
#bot .rb-hand{fill:#7CF0C5;filter:drop-shadow(0 0 5px #7CF0C5)}
#armL{transform-origin:78px 190px;animation:armidle 4s ease-in-out infinite}
#armR{transform-origin:162px 190px;animation:armidle 4s ease-in-out infinite reverse}
@keyframes armidle{50%{transform:rotate(5deg)}}
#bot.is-speaking #armL{animation:talkL .8s ease-in-out infinite}#bot.is-speaking #armR{animation:talkR 1.1s ease-in-out infinite}
@keyframes talkL{0%,100%{transform:rotate(0)}50%{transform:rotate(-26deg)}}
@keyframes talkR{0%,100%{transform:rotate(0)}50%{transform:rotate(22deg)}}
body[data-call="idle"] #bot.is-idle #armR{animation:wave 2.2s ease-in-out 1.2s 2}
@keyframes wave{0%,100%{transform:rotate(0)}20%{transform:rotate(-120deg)}40%{transform:rotate(-90deg)}60%{transform:rotate(-125deg)}80%{transform:rotate(-95deg)}}
#bot.is-speaking .rb-float{animation-duration:2.4s}

/* chat */
.chat{padding:10px 14px 0}
.chat-msgs{height:230px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:8px 2px 10px;scrollbar-width:thin;scrollbar-color:#27406f transparent}
.m{max-width:86%;padding:.55em .85em;border-radius:16px;font-size:.92rem;line-height:1.38;animation:pop .25s ease-out}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.m.in{align-self:flex-start;background:#17305f;color:#eaf1ff;border-bottom-left-radius:5px}
.m.out{align-self:flex-end;background:#7CF0C5;color:#06231a;border-bottom-right-radius:5px}
.m.sys{align-self:center;background:transparent;color:var(--muted);font-size:.78rem;text-align:center;border:1px dashed rgba(255,255,255,.14)}
.m.typing{display:flex;gap:4px;padding:.7em .9em}.typing i{width:6px;height:6px;border-radius:50%;background:#9fb4e8;animation:dot 1s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes dot{40%{transform:translateY(-4px);opacity:.5}}
.mini{padding:.4em .9em;font-size:.85rem;align-self:center}
.chat-form{display:flex;gap:8px;padding:6px 0 12px}
.chat-form input{flex:1;min-width:0;background:#0a1730;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:var(--ink);padding:.7em 1em;font:inherit;font-size:.92rem}
.chat-form input:focus{outline:2px solid #4C66FF;outline-offset:1px}
.chat-form button{border-radius:999px;border:0;padding:0 1.1em;background:#4C66FF;color:#fff;font-weight:600;cursor:pointer}
.cs-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding:0 14px 16px}
.cs-actions .btn{padding:.7em 1.2em;font-size:.95rem}
.cs-actions [data-show]{display:none}
body[data-call="idle"] [data-show~="idle"],body[data-call="ended"] [data-show~="idle"],body[data-call="live"] [data-show~="live"],body[data-call="connecting"] [data-show~="connecting"],body[data-call="ended"] [data-show~="ended"]{display:inline-flex}
body[data-call="idle"] #btn-text,body[data-call="ended"] #btn-text{display:inline-flex}
.cs-fine{font-size:.72rem;color:var(--muted);text-align:center;padding:0 18px 16px;margin:0}
.say{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}.say span{font-size:.85rem;border:1px solid var(--line);border-radius:999px;padding:.4em .8em;color:var(--ink);background:rgba(255,255,255,.03)}
.lead-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
@media (prefers-reduced-motion:reduce){.talk-btn,#bot .rb-float,#bot .rb-eye,#bot .rb-ant,#armL,#armR,.halo,.live-dot{animation:none!important}}
.cs-actions .btn-ghost{background:transparent;color:var(--ink);border:1.5px solid rgba(255,255,255,.35)}
.cs-actions .btn-ghost:hover{border-color:#7CF0C5;color:#7CF0C5}
.cs-actions .btn[disabled]{opacity:.6;cursor:wait}
