:root {
  --bg: #0a0f1f;
  --panel: rgba(12, 20, 42, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #edf2ff;
  --muted: #b4c0e0;
  --primary: #4f7cff;
  --primary-2: #7a5cff;
  --card: rgba(255, 255, 255, 0.05);
  --success: #3ddc97;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(79, 124, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #09101f 0%, #070b16 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.background-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: 0.28; pointer-events: none; }
.glow-1 { top: -120px; left: -80px; background: #4f7cff; }
.glow-2 { right: -120px; bottom: -120px; background: #7a5cff; }
.topbar { max-width: 1200px; margin: 0 auto; padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.12em; }
.topnav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 0.95rem; }
.hero { max-width: 980px; margin: 0 auto; padding: 72px 24px 80px; text-align: center; }
.badge { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: rgba(79, 124, 255, 0.14); border: 1px solid rgba(111, 145, 255, 0.3); color: #cfd9ff; font-size: 0.9rem; font-weight: 600; }
h1 { margin: 20px auto 16px; max-width: 820px; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -0.03em; }
.subtitle { max-width: 760px; margin: 0 auto 34px; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.chat-shell { max-width: 860px; margin: 0 auto; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 28px; backdrop-filter: blur(16px); box-shadow: 0 24px 80px rgba(0,0,0,0.35); padding: 22px; text-align: left; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.chat-header strong { display: block; font-size: 1rem; }
.chat-header span { color: var(--muted); font-size: 0.92rem; }
.status { display: inline-flex; align-items: center; gap: 8px; color: #dbe5ff; font-size: 0.9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.chat-messages { height: 430px; max-height: 430px; overflow-y: auto; padding: 22px 4px 12px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(143,176,255,.45) rgba(255,255,255,.04); }
.chat-messages::-webkit-scrollbar { width: 10px; }
.chat-messages::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 999px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(143,176,255,0.45); border-radius: 999px; border: 2px solid rgba(12, 20, 42, 0.82); }
.message { display: flex; gap: 12px; align-items: flex-start; }
.message.user { justify-content: flex-end; }
.message.user .avatar { order: 2; background: rgba(255,255,255,0.14); }
.message.user .bubble { background: linear-gradient(135deg, rgba(79,124,255,0.24), rgba(122,92,255,0.18)); border-top-right-radius: 8px; }
.message.assistant .bubble { border-top-left-radius: 8px; }
.avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); font-weight: 800; font-size: 0.88rem; }
.bubble { max-width: min(700px, calc(100% - 56px)); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); color: var(--text); padding: 14px 16px; border-radius: 18px; line-height: 1.72; font-size: 0.98rem; overflow-wrap: anywhere; word-break: break-word; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.bubble p { margin: 0 0 10px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: 6px 0 0; padding-left: 18px; }
.bubble li { margin: 6px 0; }
.bubble strong { color: #ffffff; font-weight: 700; }
.bubble a { color: #9fc0ff; text-decoration: underline; word-break: break-all; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.quick-prompts button { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--text); border-radius: 999px; padding: 10px 14px; cursor: pointer; font: inherit; }
.chat-form { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.chat-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 1rem; }
.chat-form input::placeholder { color: #93a0c5; }
.circle-button, .send-button { border: 0; cursor: pointer; font: inherit; }
.circle-button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.09); color: var(--text); font-size: 1.4rem; }
.send-button { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; padding: 12px 20px; border-radius: 999px; font-weight: 700; }
.footnote { margin: 14px 4px 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.footnote a { color: #d9e0ff; text-decoration: underline; }
.links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.link-card { text-align: left; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 22px; padding: 18px; transition: transform 0.2s ease, border-color 0.2s ease; }
.link-card:hover { transform: translateY(-2px); border-color: rgba(111,145,255,0.35); }
.link-card span { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.link-card strong { display: block; line-height: 1.5; }
@media (max-width: 900px) { .links-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .topbar { flex-direction: column; align-items: flex-start; } .hero { padding-top: 42px; } .chat-header { flex-direction: column; align-items: flex-start; } .chat-form { border-radius: 24px; } .chat-messages { height: 390px; max-height: 390px; } .bubble { max-width: calc(100% - 52px); } }
@media (max-width: 560px) { .hero { padding-left: 16px; padding-right: 16px; } .chat-shell { padding: 16px; border-radius: 22px; } .chat-form { display: grid; grid-template-columns: 44px 1fr; border-radius: 20px; } .chat-form input { grid-column: 1 / -1; order: -1; padding: 4px 2px 12px; } .send-button { justify-self: end; } .links-grid { grid-template-columns: 1fr; } .chat-messages { height: 360px; max-height: 360px; } .bubble { font-size: 0.95rem; line-height: 1.68; } }
