*{box-sizing:border-box}
html,body{margin:0}
body{font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#111;background:#fff;-webkit-font-smoothing:antialiased}
.accent{color:var(--accent)}
.hidden{display:none!important}

.top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 40px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.brand img{max-height:44px;max-width:200px;display:block}
.brand-word{font-weight:700;font-size:26px;letter-spacing:-.5px}
.headline{text-align:right}
.headline .h1{font-weight:700;font-size:28px;line-height:1.15}
.headline .h2{font-size:24px;color:#666;line-height:1.3}

.demo{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:48px;max-width:1100px;margin:0 auto;padding:40px 40px 24px;align-items:center}
.pitch h1{font-size:44px;line-height:1.15;margin:0 0 28px;font-weight:700}
.pitch p{font-size:19px;line-height:1.55;margin:0 0 22px}
.pitch .fine{font-size:16px;color:#666;font-style:italic}
.pitch .voice a{color:var(--accent);font-weight:500;text-decoration:none}
.cta{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;font-weight:500;padding:14px 26px;border-radius:999px;font-size:17px}
.cta:hover{filter:brightness(1.08)}

.phone{width:370px;height:760px;border:14px solid #111;border-radius:56px;position:relative;background:#111;box-shadow:0 30px 60px rgba(0,0,0,.18)}
.notch{position:absolute;top:0;left:0;right:0;height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;color:#111;background:#fff;border-radius:42px 42px 0 0;z-index:5;font-size:13px;font-weight:500}
.notch .cam{position:absolute;left:50%;top:9px;transform:translateX(-50%);width:110px;height:30px;background:#111;border-radius:20px}
.notch .icons{font-size:11px;letter-spacing:1px}
.screen{position:absolute;inset:0;border-radius:42px;overflow:hidden;background:#fff}

.site{position:absolute;inset:46px 0 0 0;overflow:hidden;background:#f4f5f7}
.site iframe{border:0;width:390px;height:1600px;transform:scale(.88);transform-origin:0 0;pointer-events:none;background:#fff}
.site-fallback{position:absolute;inset:0;background:#f4f5f7}
.sf-bar{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#fff;font-size:12px;color:#555;border-bottom:1px solid #e6e6e6}
.sf-bar img{width:18px;height:18px;border-radius:4px}
.sf-hero{height:230px;background:linear-gradient(135deg,var(--site,#334),#000);background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:18px}
.sf-title{color:#fff;font-weight:700;font-size:22px;text-shadow:0 2px 10px rgba(0,0,0,.5)}
.sf-lines{padding:18px}
.sf-lines i{display:block;height:12px;background:#e2e4e8;border-radius:6px;margin:0 0 12px}
.sf-lines i.short{width:60%}

.loading{position:absolute;left:16px;right:16px;bottom:24px;background:#fff;border-radius:18px;padding:22px 18px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.18);z-index:4}
.spinner{width:34px;height:34px;border:4px solid #e5e7eb;border-top-color:var(--accent);border-radius:50%;margin:0 auto 12px;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.ltext{font-weight:500;font-size:15px;line-height:1.4}
.lsub{font-size:12px;color:#777;margin-top:6px}
.loading.err .spinner{display:none}

.chat{position:absolute;left:10px;right:10px;bottom:10px;top:120px;background:#fff;border-radius:20px;display:flex;flex-direction:column;box-shadow:0 12px 36px rgba(0,0,0,.25);z-index:4;overflow:hidden;animation:up .35s ease-out}
@keyframes up{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.chat-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--accent);color:#fff}
.avatar{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover;background:#fff}
.cname{font-weight:500;font-size:14px;line-height:1.2;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cstatus{font-size:11px;opacity:.9}
.cstatus .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5df28a;margin-right:5px}
.min{margin-left:auto;background:none;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:0 4px}
.msgs{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:8px;background:#f7f8fa}
.m{max-width:82%;padding:9px 12px;border-radius:16px;font-size:14px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}
.m.bot{background:#fff;border:1px solid #e8e8ec;align-self:flex-start;border-bottom-left-radius:4px}
.m.me{background:var(--accent);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.m.note{align-self:center;background:none;color:#888;font-size:12px;text-align:center;padding:2px 8px}
.typing{display:inline-flex;gap:4px}
.typing i{width:6px;height:6px;border-radius:50%;background:#aaa;animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
.chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px;background:#f7f8fa}
.chips button{border:1px solid var(--accent);color:var(--accent);background:#fff;border-radius:999px;padding:6px 10px;font:inherit;font-size:12px;cursor:pointer}
.send{display:flex;gap:6px;padding:10px;border-top:1px solid #eee;background:#fff}
.send input{flex:1;border:1px solid #ddd;border-radius:999px;padding:10px 14px;font:inherit;font-size:14px;outline:none}
.send input:focus{border-color:var(--accent)}
.send button{width:42px;border:0;border-radius:50%;background:var(--accent);color:#fff;font-size:16px;cursor:pointer}
.send button:disabled{opacity:.5;cursor:default}
.bubble{position:absolute;right:18px;bottom:22px;width:58px;height:58px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:24px;box-shadow:0 8px 24px rgba(0,0,0,.25);cursor:pointer;z-index:4}

.start{max-width:560px;margin:60px auto;padding:0 24px;text-align:center}
.start h1{font-size:36px}
.start-form{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.start-form input{padding:13px 16px;border:1px solid #ccc;border-radius:12px;font:inherit}
.start-form button{padding:13px;border:0;border-radius:12px;background:var(--accent);color:#fff;font:inherit;font-weight:500;cursor:pointer}
.foot{text-align:center;color:#999;font-size:12px;padding:20px}

@media (max-width:900px){
  .top{flex-direction:column;align-items:flex-start;padding:14px 20px}
  .headline{text-align:left}.headline .h1{font-size:22px}.headline .h2{font-size:18px}
  .demo{grid-template-columns:1fr;padding:24px 20px;gap:28px}
  .pitch h1{font-size:32px;margin-bottom:16px}.pitch p{font-size:17px}
  .device{order:-1;display:flex;justify-content:center}
  .phone{width:340px;height:680px}
}
@media (max-width:380px){.phone{width:300px;height:620px;border-width:10px}}
