:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09111f;
  color: #ecf4ff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(27, 105, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(0, 212, 166, 0.18), transparent 32rem),
    #09111f;
}

button {
  font: inherit;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #82f7d3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.subhead {
  max-width: 640px;
  margin: 20px 0 0;
  color: #acc0db;
  font-size: 1.08rem;
  line-height: 1.6;
}

.panel,
.conversation {
  border: 1px solid rgba(236, 244, 255, 0.16);
  border-radius: 28px;
  background: rgba(9, 17, 31, 0.72);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 24px;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #c9d7ed;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #82f7d3;
  box-shadow: 0 0 18px #82f7d3;
}

.status-dot.busy {
  background: #ffd166;
  box-shadow: 0 0 18px #ffd166;
}

.status-dot.error {
  background: #ff647c;
  box-shadow: 0 0 18px #ff647c;
}

button {
  min-height: 48px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 850;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.call-stage {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(130, 247, 211, 0.18), transparent 58%);
}

.signal-ring {
  position: absolute;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid rgba(130, 247, 211, 0.26);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

.ring-two {
  animation-delay: 1.2s;
}

.call-button {
  z-index: 1;
  display: inline-flex;
  min-width: 176px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #82f7d3;
  color: #07141f;
  box-shadow: 0 12px 36px rgba(130, 247, 211, 0.28);
}

.call-button.active {
  background: #ff647c;
  color: #fff;
  box-shadow: 0 12px 36px rgba(255, 100, 124, 0.28);
}

.call-icon {
  font-size: 0.8rem;
}

@keyframes pulse {
  from { opacity: 0.75; transform: scale(0.75); }
  to { opacity: 0; transform: scale(1.75); }
}

.hint {
  margin: 14px 0 0;
  color: #8fa4c4;
  font-size: 0.92rem;
}

.conversation {
  margin-top: 20px;
  padding: 24px;
}

h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.caption-label {
  margin-top: 16px;
  color: #82f7d3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.caption-label:first-child {
  margin-top: 0;
}

.caption {
  min-height: 2.8em;
  margin: 8px 0 0;
  color: #c9d7ed;
  font-size: 1.08rem;
  line-height: 1.55;
}

.caption.response {
  color: #ecf4ff;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 960px);
    padding: 32px 0;
  }

  .panel,
  .conversation {
    border-radius: 22px;
    padding: 18px;
  }

  .call-stage {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-ring { animation: none; opacity: 0.3; }
}
