:root {
  --bg: #0a0a0e;
  --panel: #12121b;
  --panel-2: #0f0f16;
  --accent: #ffb100; /* gold neon */
  --accent-2: #ffd900; /* cyan neon */
  --text: #f7f7fb;
  --muted: #c9c9d6;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 15px 60px rgba(0,0,0,0.55);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,177,0,0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(0,242,255,0.1), transparent 28%),
    linear-gradient(135deg, #0a0a0e 0%, #0f0f16 40%, #0b0b0f 100%);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 16px 200px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #0e0e17 0%, #141428 40%, #0e0e17 100%);
  box-shadow: 0 4px 30px rgba(0,0,0,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 20;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent-2);
  opacity: 0.8;
}

h1 {
  margin: 6px 0;
  font-size: 28px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-shadow: 0 0 8px rgba(255, 174, 0, 0.6), 0 0 16px rgba(0,242,255,0.35);
}

.status-pill {
  background: rgba(244,177,0,0.18);
  border: 1px solid rgba(244,177,0,0.45);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  min-width: 160px;
  text-align: center;
}

.chat-shell {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 25px rgba(0,0,0,0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 520px;
  padding-bottom: 200px;
  backdrop-filter: blur(6px);
}

.chat-window {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.35), 0 0 18px rgba(244,177,0,0.15);
}

.bubble {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 15px;
}
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(244,177,0,0.55), rgba(255,207,109,0.35));
  border: 1px solid rgba(244,177,0,0.65);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(244,177,0,0.4), 0 0 24px rgba(244,177,0,0.25);
}
.bubble.bot {
  align-self: flex-start;
  background: #15151f;
  border: 1px solid rgba(244,177,0,0.5);
  box-shadow: 0 0 12px rgba(244,177,0,0.25);
}
.report-line {
  line-height: 1.5;
  margin-bottom: 4px;
}
.report-line.bullet,
.report-line.numbered {
  padding-left: 4px;
}
.bubble.error {
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.5);
  color: #ffdede;
}

.source-cards {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.source-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.25);
  font-size: 13px;
  color: var(--muted);
  box-shadow: 0 0 12px rgba(244,177,0,0.12);
}
.source-card strong { color: var(--text); }

.cta-link {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255,177,0,0.12);
  border: 1px solid rgba(255,177,0,0.35);
  border-radius: 10px;
  color: var(--text);
}
.cta-link a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.cta-link a:hover { text-decoration: underline; }

.chat-input-row {
  display: flex;
  gap: 10px;
  background: rgba(5,8,18,0.6);
  border-radius: var(--radius);
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

textarea {
  flex: 1;
  resize: none;
  background: #0f0f16;
  border: 1px solid rgba(244,177,0,0.55);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px;
  font-size: 15px;
  min-height: 48px;
  max-height: 160px;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.4), 0 0 12px rgba(244,177,0,0.22);
}
textarea:focus {
  outline: 2px solid rgba(244,177,0,0.5);
  box-shadow: 0 0 14px rgba(244,177,0,0.5);
}

button {
  background: linear-gradient(135deg, #ffb100, #ffcf6d);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  min-width: 88px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 0 12px rgba(244,177,0,0.4), 0 8px 25px rgba(0,0,0,0.35);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(244,177,0,0.5), 0 0 18px rgba(244,177,0,0.35);
}

.footnote {
  color: var(--muted);
  font-size: 12px;
}
.footnote code {
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 6px;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px 14px;
  background: linear-gradient(0deg, rgba(11,11,13,0.95) 0%, rgba(22,22,22,0.8) 100%);
  backdrop-filter: blur(10px);
  z-index: 20;
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
}
.dock .chat-input-row {
  width: min(980px, 100%);
}

@media (max-width: 640px) {
  .page { padding: 88px 12px 32px; }
  h1 { font-size: 22px; }
  .bubble { max-width: 100%; }
  button { padding: 0 14px; }
  .chat-shell { min-height: calc(100vh - 140px); }
  .topbar { padding-top: 8px; }
  .footer-nav { position: relative; }
}
