:root {
  --bg: #05070f;
  --bg2: #0a0f1e;
  --cyan: #35e0ff;
  --cyan-dim: rgba(53, 224, 255, .25);
  --text: #e8f4ff;
  --muted: #8fa3c0;
  --bubble-me: #12324a;
  --bubble-ai: #0d1626;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: radial-gradient(1200px 800px at 50% -10%, #0b1430 0%, var(--bg) 60%);
  color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
}
#app { display: flex; flex-direction: column; height: 100dvh; max-width: 560px; margin: 0 auto; }
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.brand { font-weight: 800; letter-spacing: 3px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan); animation: blink 2.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.actions button, #btn-mic, #btn-send {
  background: #0e1830; border: 1px solid #1d2c4e; color: var(--text);
  border-radius: 12px; font-size: 18px; padding: 8px 10px; cursor: pointer;
}
.actions button.on { border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan-dim); }
#stage { display: flex; flex-direction: column; align-items: center; padding: 6px 0 2px; }
#orb { filter: drop-shadow(0 0 18px rgba(53,224,255,.35)); }
#status { color: var(--muted); font-size: 13px; margin-top: 2px; min-height: 20px; text-align: center; padding: 0 20px; }
#chat { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45;
  animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.msg.me { align-self: flex-end; background: var(--bubble-me); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--bubble-ai); border: 1px solid #16233d; border-bottom-left-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
#composer {
  display: flex; gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5,7,15,.85); backdrop-filter: blur(8px); border-top: 1px solid #101a30;
}
#input {
  flex: 1; background: #0b1322; border: 1px solid #1d2c4e; color: var(--text);
  border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none;
}
#input:focus { border-color: var(--cyan); }
#btn-mic.listening { background: #3a1020; border-color: #ff5d7a; box-shadow: 0 0 12px rgba(255,93,122,.5); }
#pitch { position: fixed; inset: 0; background: rgba(2,4,10,.8); display: flex; align-items: center;
  justify-content: center; padding: 20px; z-index: 50; }
#pitch.hidden { display: none; }
.pitch-card { background: var(--bg2); border: 1px solid #1d2c4e; border-radius: 20px; padding: 26px 22px;
  max-width: 440px; max-height: 85dvh; overflow-y: auto; position: relative;
  box-shadow: 0 0 40px rgba(53,224,255,.12); }
.pitch-card h2 { margin: 0; letter-spacing: 4px; color: var(--cyan); }
.pitch-card .tagline { color: var(--muted); }
.pitch-card h3 { color: var(--cyan); font-size: 14px; letter-spacing: 1px; margin: 18px 0 6px; }
.pitch-card ul { margin: 0; padding-left: 20px; color: var(--text); font-size: 14px; line-height: 1.6; }
.pitch-card .ask { margin-top: 18px; padding: 12px; background: #0b1a30; border-radius: 12px;
  border: 1px solid var(--cyan-dim); font-size: 14px; }
#pitch-close { position: absolute; top: 10px; right: 10px; background: none; border: none;
  color: var(--muted); font-size: 18px; cursor: pointer; }
