* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #030712;
  color: white;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.22), transparent 34%),
    linear-gradient(135deg, #020617, #050816 50%, #0b1120);
}

.glow { position: absolute; border-radius: 999px; filter: blur(80px); }
.one { width: 420px; height: 420px; background: rgba(34, 211, 238, 0.12); left: -120px; top: -120px; }
.two { width: 460px; height: 460px; background: rgba(37, 99, 235, 0.16); right: -120px; bottom: -160px; }

.demo-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.eyebrow {
  color: #22d3ee;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.65rem, 8vw, 5.6rem);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.06em;
}

.subhead {
  max-width: 760px;
  color: #a3b3cc;
  font-size: 1.2rem;
  line-height: 1.65;
  margin: 0;
}

.back-link {
  color: #dbeafe;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  padding: 12px 18px;
  white-space: nowrap;
}

.demo-grid { display: grid; grid-template-columns: 0.38fr 0.62fr; gap: 24px; }

.card, .cap-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.055);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.card { padding: 26px; }

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.card-head span { font-weight: 850; font-size: 1.16rem; }
.card-head small { color: #7dd3fc; }

.source {
  padding: 18px;
  border-radius: 20px;
  background: rgba(2,6,23,0.48);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.18s ease;
}

.source:hover, .source.active {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.08);
}

.source strong { display: block; margin-bottom: 5px; }
.source span { display: block; color: #8da2bf; font-size: 0.9rem; line-height: 1.4; }

.divider { height: 1px; background: rgba(255,255,255,0.1); margin: 22px 0; }
.sidebar-note { color: #a3b3cc; line-height: 1.62; margin: 0; font-size: 0.95rem; }

.chat-card { min-height: 660px; display: flex; flex-direction: column; }

.chat-window {
  background: rgba(2,6,23,0.54);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 22px;
  min-height: 500px;
  overflow: auto;
  flex: 1;
}

.message { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.message.user { flex-direction: row-reverse; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  color: #020617;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
}

.message.user .avatar { background: rgba(255,255,255,0.12); color: white; }

.bubble {
  max-width: 82%;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  color: #dbeafe;
  line-height: 1.62;
}

.message.user .bubble { background: rgba(34, 211, 238, 0.14); }
.bubble strong { color: white; }

.bubble .source-tag {
  display: inline-block;
  margin-top: 12px;
  color: #7dd3fc;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
}

.quick-question {
  display: block;
  width: fit-content;
  text-align: left;
  margin-top: 10px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.08);
  color: #dbeafe;
  border-radius: 999px;
  padding: 10px 13px;
  cursor: pointer;
}

.composer { display: flex; gap: 12px; margin-top: 18px; }

input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2,6,23,0.68);
  color: white;
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
  font: inherit;
}

button, #askBtn {
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  padding: 15px 22px;
  font-weight: 900;
  font-size: 1rem;
  color: #020617;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.2);
}

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.cap-card { padding: 24px; }
.cap-card strong { display: block; color: #67e8f9; margin-bottom: 10px; }
.cap-card p { color: #a3b3cc; line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .hero { display: block; }
  .back-link { display: inline-block; margin-top: 24px; }
  .demo-grid, .capabilities { grid-template-columns: 1fr; display: grid; }
  .composer { flex-direction: column; }
  .bubble { max-width: 100%; }
}
