:root {
  color-scheme: dark;
  --ink: #07101f;
  --panel: #0d192b;
  --panel-soft: #13233a;
  --line: rgba(255,255,255,.11);
  --text: #f5f7fb;
  --muted: #98a6bb;
  --lime: #c9ff4b;
  --cyan: #52d9ff;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 12% 8%, rgba(82,217,255,.12), transparent 30%), radial-gradient(circle at 90% 38%, rgba(201,255,75,.08), transparent 28%), var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--ink); background: var(--lime); font-weight: 950; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 13px; letter-spacing: .13em; }
.brand small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.back-link { color: #c4ccda; font-size: 12px; font-weight: 750; }
main { display: grid; grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr); gap: clamp(38px, 7vw, 100px); align-items: center; width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 160px); margin: 0 auto; padding: 58px 0 70px; }
.intro { max-width: 530px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #a9b5c8; font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(201,255,75,.65); }
h1 { max-width: 600px; margin: 24px 0 22px; font-size: clamp(48px, 6.2vw, 86px); line-height: .96; letter-spacing: -.07em; }
h1 em { display: block; color: var(--lime); font-style: normal; }
.intro > p { max-width: 520px; color: #b8c2d1; font-size: 17px; line-height: 1.75; }
.trust-row { display: grid; gap: 12px; margin-top: 34px; color: #aab6c8; font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 10px; }
.trust-row span::before { content: ""; width: 6px; height: 6px; border: 2px solid var(--lime); border-radius: 50%; }
.chat-shell { overflow: hidden; min-height: 610px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(19,35,58,.98), rgba(9,18,32,.98)); box-shadow: 0 34px 90px rgba(0,0,0,.34); }
.chat-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lisa-avatar { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 15px; background: linear-gradient(145deg, var(--cyan), var(--lime)); color: var(--ink); font-size: 17px; font-weight: 950; }
.chat-head > div:nth-child(2) { display: grid; gap: 5px; }
.chat-head strong { font-size: 14px; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.chat-head small i { width: 6px; height: 6px; border-radius: 50%; background: #61e596; }
.public-badge { padding: 7px 9px; border: 1px solid rgba(201,255,75,.28); border-radius: 999px; color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.messages { display: flex; flex-direction: column; gap: 16px; height: 415px; padding: 24px; overflow-y: auto; scrollbar-color: #3b4d65 transparent; }
.message { max-width: 84%; padding: 15px 17px; border-radius: 17px; }
.message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.62; }
.message-label { display: block; margin-bottom: 7px; color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.lisa-message { align-self: flex-start; border: 1px solid var(--line); background: rgba(255,255,255,.045); border-top-left-radius: 5px; }
.user-message { align-self: flex-end; color: var(--ink); background: var(--lime); border-top-right-radius: 5px; }
.user-message .message-label { color: #42531b; }
.typing p { color: var(--muted); }
.composer { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; margin: 0 18px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); }
textarea { width: 100%; min-height: 50px; max-height: 130px; resize: none; border: 0; outline: 0; padding: 13px 12px; color: var(--text); background: transparent; font: inherit; font-size: 14px; line-height: 1.45; }
textarea::placeholder { color: #718096; }
button { align-self: end; min-width: 82px; height: 48px; border: 0; border-radius: 13px; color: var(--ink); background: var(--lime); font-weight: 900; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.voice-button { min-width: 72px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #dce7f7; background: rgba(82,217,255,.1); border: 1px solid rgba(82,217,255,.25); transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.voice-button:hover { color: #fff; background: rgba(82,217,255,.17); border-color: rgba(82,217,255,.5); }
.voice-button:focus-visible, #send-button:focus-visible { outline: 3px solid rgba(82,217,255,.35); outline-offset: 2px; }
.voice-icon { position: relative; width: 15px; height: 19px; display: inline-flex; justify-content: center; border: 2px solid currentColor; border-radius: 8px; }
.voice-icon::before { content: ""; position: absolute; right: -5px; bottom: 2px; left: -5px; height: 8px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 10px 10px; }
.voice-icon::after { content: ""; position: absolute; bottom: -6px; width: 8px; height: 2px; background: currentColor; border-radius: 2px; }
.voice-icon i { width: 2px; height: 7px; margin-top: 3px; background: currentColor; border-radius: 2px; }
.voice-text { font-size: 11px; }
.voice-button.is-recording { color: var(--ink); background: #ff718e; border-color: #ff718e; animation: voicePulse 1.2s ease-in-out infinite; }
.voice-button.is-processing { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.voice-status { margin: 10px 22px 0; color: #8fa1b8; text-align: center; font-size: 9px; line-height: 1.5; }
.voice-status.is-active { color: var(--cyan); }
.voice-status.is-error { color: #ff9caf; }
.privacy-note { margin: 5px 22px 16px; color: #74839a; text-align: center; font-size: 9px; line-height: 1.5; }
body.voice-speaking .lisa-avatar { box-shadow: 0 0 0 6px rgba(82,217,255,.08), 0 0 34px rgba(82,217,255,.32); }
@keyframes voicePulse { 50% { transform: scale(.96); box-shadow: 0 0 0 7px rgba(255,113,142,.1); } }
footer { display: flex; justify-content: space-between; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 26px; color: #74839a; font-size: 10px; }
footer a { color: #b5c0d0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  main { grid-template-columns: 1fr; min-height: auto; padding-top: 44px; }
  .intro { max-width: 700px; }
  h1 em { display: inline; }
  .chat-shell { min-height: 570px; }
}
@media (max-width: 560px) {
  .topbar, main, footer { width: min(100% - 24px, 1180px); }
  .back-link { font-size: 0; }
  .back-link span { font-size: 18px; }
  main { gap: 34px; padding: 38px 0 48px; }
  h1 { font-size: 51px; }
  .intro > p { font-size: 15px; }
  .chat-shell { min-height: 550px; border-radius: 21px; }
  .messages { height: 360px; padding: 17px; }
  .message { max-width: 92%; }
  .composer { margin: 0 12px; grid-template-columns: 48px 1fr 56px; gap: 6px; padding: 8px; }
  .voice-button, #send-button { min-width: 0; width: 100%; padding: 0; }
  .voice-text, #send-button { font-size: 0; }
  #send-button span { font-size: 19px; }
  .voice-status { margin-right: 14px; margin-left: 14px; }
  footer { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; } }
