:root {
  color-scheme: dark;
  --bg: #100d1e;
  --panel: #19152b;
  --panel2: #211b38;
  --text: #f8f5ff;
  --muted: #aaa3bf;
  --accent: #c2a5ff;
  --accent2: #8e6be5;
  --line: rgba(255,255,255,.09);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(111,77,173,.24), transparent 42%),
    radial-gradient(ellipse at 10% 90%, rgba(66,45,110,.18), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
button { font: inherit; }
.app {
  width: min(100% - 32px, 680px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  color: #201633; font: 800 22px Arial, sans-serif;
  background: linear-gradient(145deg, #e4d6ff, #a98ce9);
  box-shadow: 0 6px 22px rgba(172,140,238,.24);
}
.brand-name { font: 800 14px Arial, sans-serif; letter-spacing: .16em; }
.brand-subtitle { margin-top: 3px; color: var(--muted); font-size: 11px; }
.privacy-tag {
  margin-left: auto; border: 1px solid var(--line); color: #c9c1d9;
  border-radius: 99px; padding: 7px 10px; font-size: 10px;
}
.hero {
  flex: 1; min-height: 570px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 32px 0 24px;
}
.orb-wrap { position: relative; width: 208px; height: 208px; display: grid; place-items: center; margin-bottom: 22px; }
.orb-glow {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: #8d69d7; filter: blur(58px); opacity: .38;
}
.orb {
  position: relative; width: 164px; height: 164px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #cdb9ff 0%, #8c69d6 48%, #44336f 100%);
  box-shadow: inset 0 3px 12px rgba(255,255,255,.42), 0 18px 55px rgba(119,85,186,.35);
  transition: transform .3s ease, filter .3s ease;
}
.orb::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.27);
}
.orb-core {
  width: 112px; height: 112px; border-radius: 50%; position: relative;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.34), rgba(45,29,78,.5));
  border: 1px solid rgba(255,255,255,.18);
}
.orb-letter { font: 800 58px Arial, sans-serif; color: rgba(255,255,255,.92); text-shadow: 0 4px 20px rgba(31,19,55,.35); }
.orb-wave { position: absolute; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; inset: 20px; opacity: 0; }
.eyebrow { color: #bba6e7; font-size: 10px; font-weight: 700; letter-spacing: .2em; margin: 0 0 10px; }
h1 { font: 700 clamp(28px, 6vw, 38px) Arial, sans-serif; margin: 0; letter-spacing: -.04em; }
h1 span { color: var(--accent); }
.intro { color: var(--muted); font-size: 14px; margin: 12px 0 20px; line-height: 1.6; }
.status {
  display: flex; align-items: center; gap: 8px; color: #c7bfd8;
  font-size: 12px; min-height: 24px; margin-bottom: 16px;
}
.status-dot { width: 7px; height: 7px; background: #8c83a1; border-radius: 50%; }
.status.active .status-dot { background: #77d9ad; box-shadow: 0 0 12px #77d9ad; }
.status.busy .status-dot { background: #e9c77d; box-shadow: 0 0 12px #e9c77d; }
.main-button {
  width: min(100%, 290px); min-height: 58px; border: 0; border-radius: 18px;
  color: #211832; font-weight: 700; font-size: 15px; cursor: pointer;
  background: linear-gradient(100deg, #e1d3ff, #b99af2);
  box-shadow: 0 10px 30px rgba(153,116,220,.22);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .18s ease, filter .18s ease;
}
.main-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.main-button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-icon { font-size: 19px; }
.stop-button {
  margin-top: 12px; border: 1px solid rgba(255,255,255,.16); color: #eee8fa;
  background: rgba(255,255,255,.05); padding: 11px 18px; border-radius: 13px;
  cursor: pointer; font-size: 12px;
}
.stop-button:hover { background: rgba(255,255,255,.1); }
.hint { color: #9188a8; font-size: 11px; margin: 16px 0 0; }
.hint strong { color: #d4c3f6; }
.quick-help {
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; margin: 0 0 24px;
}
.quick-title { color: #d8d0e8; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.suggestions { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.suggestion {
  background: var(--panel2); border: 1px solid var(--line); color: #ddd6eb;
  padding: 12px 8px; border-radius: 13px; cursor: pointer; font-size: 11px;
  line-height: 1.5; min-height: 62px;
}
.suggestion span { display: block; font-size: 17px; margin-bottom: 4px; }
.suggestion:hover { border-color: rgba(194,165,255,.5); }
.suggestion:disabled { opacity: .4; cursor: not-allowed; }
.note { color: #807791; font-size: 10px; margin: 11px 0 0; }
.footer {
  min-height: 54px; border-top: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; gap: 10px;
  color: #827992; font-size: 10px; letter-spacing: .03em;
}
.footer span:first-child { letter-spacing: .16em; font-weight: 700; }
body.listening .orb { animation: breathe 2.4s ease-in-out infinite; }
body.talking .orb { animation: pulse 1.2s ease-in-out infinite; }
body.listening .wave-one, body.talking .wave-one { animation: wave 1.8s ease-out infinite; }
body.listening .wave-two, body.talking .wave-two { animation: wave 1.8s ease-out .8s infinite; }
@keyframes breathe { 50% { transform: scale(1.035); filter: brightness(1.12); } }
@keyframes pulse { 50% { transform: scale(1.065); filter: brightness(1.18); } }
@keyframes wave { 0% { transform: scale(.7); opacity: .65; } 100% { transform: scale(2.1); opacity: 0; } }
@media (max-width: 480px) {
  .app { width: min(100% - 24px, 680px); }
  .hero { min-height: 540px; }
  .orb-wrap { width: 184px; height: 184px; }
  .orb { width: 148px; height: 148px; }
  .orb-core { width: 102px; height: 102px; }
  .suggestions { grid-template-columns: 1fr; }
  .suggestion { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .suggestion span { display: inline; margin: 0; }
  .footer { font-size: 9px; }
}
