:root {
  --bg: #0b0d12;
  --panel: #12151c;
  --panel-2: #161a23;
  --border: #232836;
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --accent: #e11d2e;
  --accent-2: #ff4d5e;
  --bubble-user: #1f2937;
  --bubble-bot: #171b24;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1420 0%, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 12px;
}

.hero {
  text-align: center;
  padding: 24px 8px 20px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-2);
}

.hero h1 {
  font-size: 28px;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #fff, #c9ccd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.chat-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 60vh;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg {
  display: flex;
  gap: 10px;
  max-width: 92%;
}

.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.msg.bot .avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.msg.user .avatar {
  background: #2a3242;
  color: var(--text);
}

.bubble {
  background: var(--bubble-bot);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius);
  line-height: 1.5;
  font-size: 14.5px;
}

.msg.user .bubble {
  background: var(--bubble-user);
}

.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble img {
  max-width: 100%;
  border-radius: 10px;
  margin: 6px 0;
  display: block;
}
.bubble a {
  color: #7db2ff;
}
.bubble ul, .bubble ol {
  margin: 6px 0;
  padding-left: 20px;
}
.bubble strong { color: #fff; }

.typing .bubble {
  color: var(--muted);
  font-style: italic;
}

.composer {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}

.composer input {
  flex: 1;
  background: #0f1218;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  outline: none;
}

.composer input:focus {
  border-color: var(--accent-2);
}

.composer button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14.5px;
}

.composer button:disabled {
  opacity: 0.6;
  cursor: default;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 14px 0 4px;
}
