:root {
  --accent: #4f6bff;
  --accent-2: #7c5cff;
  --bg: #0b0d12;
  --panel: #12151d;
  --panel-2: #171b25;
  --text: #e8ebf2;
  --muted: #9aa3b2;
  --line: #232838;
  --user-bubble: var(--accent);
  --bot-bubble: #1e2431;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.brand-line { display: flex; align-items: center; gap: 14px; }
.logo-dot {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent);
  display: grid; place-items: center; font-size: 22px;
}
h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

.switcher { display: flex; align-items: center; gap: 10px; }
.switcher label { color: var(--muted); font-size: 13px; }
select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; font-size: 14px; cursor: pointer;
}

.layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

.chat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.agent-name { font-weight: 600; }
.status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #37d67a; box-shadow: 0 0 0 3px rgba(55,214,122,0.2); }

.chat-body { height: 380px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45;
  animation: pop .18s ease; white-space: pre-wrap; word-wrap: break-word; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { align-self: flex-start; background: var(--bot-bubble); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--user-bubble); color: #fff; border-bottom-right-radius: 5px; }
.msg .time { display: block; margin-top: 4px; font-size: 10.5px; opacity: .6; }
.typing { align-self: flex-start; background: var(--bot-bubble); border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 5px; display: flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chip {
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.chip:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); transform: translateY(-1px); }

.composer { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--panel-2); }
.composer input {
  flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-size: 14.5px; outline: none;
}
.composer input:focus { border-color: var(--accent); }
.composer button {
  width: 46px; height: 46px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: grid; place-items: center;
}
.foot-note { text-align: center; color: var(--muted); font-size: 11.5px; padding: 0 0 14px; margin: 0; }

.info { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.info h2 { margin: 0 0 10px; font-size: 17px; }
.info p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.info code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
.cta {
  display: inline-block; text-decoration: none; color: #fff; font-weight: 600; font-size: 14px;
  padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent);
}
