/* OneTone voice command showcase — below voice hero */

.qs-voice-command {
  --ot-cyan: #22d3ee;
  --ot-cyan-rgb: 34, 211, 238;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2.5rem;
}

.qs-voice-command .qs-zone-head {
  margin-bottom: 1.25rem;
}

.qs-voice-command[hidden] {
  display: none !important;
}

.ot-vc-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 2.5rem;
  border: 1px solid rgba(39, 39, 42, 0.8);
  background: rgba(19, 19, 21, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 80px -20px rgba(var(--ot-cyan-rgb), 0.1);
  color: #e4e4e7;
}

.ot-vc-glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(120px);
}

.ot-vc-glow-a {
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: rgba(8, 145, 178, 0.1);
  transform: translate(-50%, -50%);
}

.ot-vc-glow-b {
  right: 0;
  bottom: 0;
  width: 400px;
  height: 400px;
  background: rgba(79, 70, 229, 0.1);
  filter: blur(100px);
  transform: translate(33%, 33%);
}

.ot-vc-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.75rem;
}

.ot-vc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(63, 63, 70, 0.6);
  background: rgba(39, 39, 42, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #d4d4d8;
}

.ot-vc-badge-ping,
.ot-vc-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #06b6d4;
}

.ot-vc-badge-ping {
  position: absolute;
  animation: ot-vc-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

.ot-vc-badge {
  position: relative;
}

.ot-vc-badge-ping {
  left: 0.85rem;
}

.ot-vc-badge-dot {
  position: relative;
  flex-shrink: 0;
}

.ot-vc-lead {
  margin: 0 0 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #a1a1aa;
}

.ot-vc-lead strong {
  font-weight: 500;
  color: #e4e4e7;
}

.ot-vc-agents {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ot-vc-agents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
}

.ot-vc-wake {
  height: 1.75rem;
  overflow: hidden;
  width: 9rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ot-vc-wake-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(var(--ot-cyan-rgb), 0.2);
  background: rgba(var(--ot-cyan-rgb), 0.1);
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--ot-cyan);
  white-space: nowrap;
  animation: ot-vc-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ot-vc-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.ot-vc-agent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(39, 39, 42, 0.4);
  background: rgba(24, 24, 27, 0.3);
  color: #71717a;
  cursor: pointer;
  transition: all 0.5s ease;
  opacity: 0.6;
  filter: grayscale(0.8);
  scale: 1;
}

.ot-vc-agent:hover {
  opacity: 1;
  filter: grayscale(0);
}

.ot-vc-agent.is-active {
  z-index: 1;
  opacity: 1;
  filter: none;
  scale: 1.05;
  background: #18181b;
  color: #f4f4f5;
}

.ot-vc-agent[data-tone="cyan"].is-active {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 24px -8px rgba(6, 182, 212, 0.25);
}

.ot-vc-agent[data-tone="orange"].is-active {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 10px 24px -8px rgba(249, 115, 22, 0.25);
}

.ot-vc-agent[data-tone="indigo"].is-active {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.25);
}

.ot-vc-agent[data-tone="emerald"].is-active {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 24px -8px rgba(16, 185, 129, 0.25);
}

.ot-vc-agent.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.55;
}

.ot-vc-agent[data-tone="cyan"].is-active::before { background: rgba(6, 182, 212, 0.2); }
.ot-vc-agent[data-tone="orange"].is-active::before { background: rgba(249, 115, 22, 0.2); }
.ot-vc-agent[data-tone="indigo"].is-active::before { background: rgba(99, 102, 241, 0.2); }
.ot-vc-agent[data-tone="emerald"].is-active::before { background: rgba(16, 185, 129, 0.2); }

.ot-vc-agent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.75rem;
  background: rgba(39, 39, 42, 0.8);
  color: #71717a;
  transition: all 0.5s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.ot-vc-agent-icon img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  border-radius: 0.25rem;
}

.ot-vc-agent.is-active .ot-vc-agent-icon {
  scale: 1.1;
  background: rgba(255, 255, 255, 0.08);
}

.ot-vc-agent[data-tone="cyan"].is-active .ot-vc-agent-icon,
.ot-vc-agent[data-tone="orange"].is-active .ot-vc-agent-icon,
.ot-vc-agent[data-tone="indigo"].is-active .ot-vc-agent-icon,
.ot-vc-agent[data-tone="emerald"].is-active .ot-vc-agent-icon {
  background: rgba(255, 255, 255, 0.1);
}

.ot-vc-agent > span:last-child {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ot-vc-demo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 1.5rem;
  border-top: 1px solid rgba(39, 39, 42, 0.5);
  background: #09090b;
}

.ot-vc-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  height: 420px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(39, 39, 42, 0.8);
  background: #151518;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.ot-vc-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(39, 39, 42, 0.8);
  background: #1a1a1e;
}

.ot-vc-traffic {
  display: flex;
  gap: 0.375rem;
}

.ot-vc-traffic span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
}

.ot-vc-traffic span:nth-child(1) { background: rgba(239, 68, 68, 0.8); }
.ot-vc-traffic span:nth-child(2) { background: rgba(234, 179, 8, 0.8); }
.ot-vc-traffic span:nth-child(3) { background: rgba(34, 197, 94, 0.8); }

.ot-vc-window-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding-right: 2.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #71717a;
}

.ot-vc-chat {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  overflow-y: auto;
}

.ot-vc-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #52525b;
  opacity: 0.8;
}

.ot-vc-empty p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.ot-vc-msgs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ot-vc-msg {
  display: flex;
  animation: ot-vc-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ot-vc-msg.is-user { justify-content: flex-end; }
.ot-vc-msg.is-ai { justify-content: flex-start; }

.ot-vc-bubble {
  max-width: 90%;
  padding: 0.625rem 1rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ot-vc-msg.is-user .ot-vc-bubble {
  border-radius: 1rem 0.25rem 1rem 1rem;
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #f4f4f5;
}

.ot-vc-msg.is-ai .ot-vc-bubble {
  background: transparent;
  color: #d4d4d8;
}

.ot-vc-code {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #27272a;
  background: #0d0d10;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #34d399;
}

.ot-vc-composer {
  padding: 1rem;
  border-top: 1px solid rgba(39, 39, 42, 0.8);
  background: #151518;
}

.ot-vc-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(39, 39, 42, 0.8);
  background: #09090b;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ot-vc-input.is-filled {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.ot-vc-input-text {
  flex: 1;
  min-width: 0;
  height: 1.25rem;
  padding: 0 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: #d4d4d8;
  display: flex;
  align-items: center;
}

.ot-vc-ph { color: #52525b; }

.ot-vc-send {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border-radius: 0.5rem;
  background: #1a1a1e;
  color: #52525b;
  transition: all 0.3s;
}

.ot-vc-input.is-filled .ot-vc-send {
  background: #06b6d4;
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.ot-vc-pill {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%) translateY(1.5rem) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom center;
  transition: all 0.5s ease;
}

.ot-vc-pill.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.ot-vc-pill-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem;
  border-radius: 9999px;
  border: 1px solid rgba(63, 63, 70, 0.8);
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
}

.ot-vc-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #27272a;
  color: #a1a1aa;
  transition: color 0.3s, background 0.3s;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ot-vc-mic.is-listening {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
}

.ot-vc-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 1rem;
}

.ot-vc-waves span {
  width: 3px;
  height: 4px;
  border-radius: 9999px;
  background: #22d3ee;
  animation: ot-vc-wave 0.8s ease-in-out infinite;
}

.ot-vc-waves span:nth-child(2) { animation-delay: 0.1s; }
.ot-vc-waves span:nth-child(3) { animation-delay: 0.2s; }
.ot-vc-waves span:nth-child(4) { animation-delay: 0.3s; }

.ot-vc-voice-text {
  min-width: 6.25rem;
  padding: 0 0.5rem 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.ot-vc-badge-intent {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.375rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid;
  font-size: 0.625rem;
  font-weight: 600;
  flex-shrink: 0;
}

.ot-vc-badge-intent[data-kind="send"] {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.ot-vc-badge-intent[data-kind="continue"] {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.ot-vc-badge-intent[data-kind="reset"] {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
}

@keyframes ot-vc-slide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ot-vc-wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

@keyframes ot-vc-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ot-vc-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@media (min-width: 1024px) {
  .qs-voice-command {
    padding: 2.5rem 1.5rem 3rem;
  }

  .ot-vc-shell {
    flex-direction: row;
  }

  .ot-vc-copy {
    width: 50%;
    padding: 4rem;
  }

  .ot-vc-demo {
    width: 50%;
    min-height: 480px;
    padding: 2.5rem;
    border-top: none;
    border-left: 1px solid rgba(39, 39, 42, 0.5);
  }

  .ot-vc-lead {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .ot-vc-agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ot-vc-agents-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ot-vc-wake {
    width: auto;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ot-vc-badge-ping,
  .ot-vc-wake-chip,
  .ot-vc-msg,
  .ot-vc-waves span {
    animation: none !important;
  }

  .ot-vc-pill,
  .ot-vc-agent,
  .ot-vc-agent-icon {
    transition: none !important;
  }
}
