/* Base tokens */
:root{
  --bg: #0b0d0f;
  --panel: #111418;
  --ink: #e9eef2;
  --muted: #a9b5bf;
  --accent: #1db954; /* subtle green accent */
  --ring: rgba(29,185,84,.35);
  --radius: 14px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  height:100%;
  color:var(--ink);
  background: radial-gradient(1000px 600px at 50% -200px, #142126 0%, var(--bg) 60%);
  font: 400 16px/1.5 "Raleway", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.brand-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 22px;
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}

.brand-left{display:flex; align-items:center; gap:12px}
.brand-logo{width:40px; height:40px; border-radius:8px; background:linear-gradient(135deg,#2563eb,#10b981)}
.brand-title h1{margin:0; font-weight:700; letter-spacing:.3px; font-size:20px}
.brand-title .tagline{margin:0; color:var(--muted); font-size:12px}

.brand-right .brand-link{color:var(--muted); text-decoration:none}
.brand-right .brand-link:hover{color:var(--ink)}

.chat-shell{
  display:grid;
  place-items:center;
  min-height:calc(100dvh - 140px);
  padding:32px 16px;
}

.chat-card{
  width:min(840px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 18px;
}

.messages{
  height: min(60vh, 520px);
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding: 8px;
  scroll-behavior:smooth;
}

.msg{
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.msg.user{ align-self:flex-end; background: #1c2127; border:1px solid rgba(255,255,255,.05)}
.msg.bot{ align-self:flex-start; background:#0f1518; border:1px solid rgba(29,185,84,.25)}

.composer{
  margin-top: 14px;
  display:flex;
  gap:10px;
}

#prompt{
  flex:1;
  padding: 12px 14px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.1);
  background: #0b0f12;
  color: var(--ink);
  outline:none;
}

#prompt:focus{ border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring) }

#send{
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  font-weight:600;
  cursor:pointer;
  color:#0b0d0f;
  background: var(--accent);
}

#send:disabled{
  opacity:.7;
  cursor:not-allowed;
}

.status{ margin-top:8px; color:var(--muted); min-height:18px; }

.site-footer{
  text-align:center;
  padding: 12px;
  color: var(--muted);
  border-top:1px solid rgba(255,255,255,.06);
}

@media (max-width:600px){
  .msg{ max-width: 95%; }
}
