/* Voice Bot & AI Agent — robotic precision × natural human warmth */

.voice-ai-page {
  --vai-tech: #5eead4;
  --vai-tech-dim: rgba(94, 234, 212, 0.14);
  --vai-tech-glow: rgba(94, 234, 212, 0.35);
  --vai-human: #fbbf7a;
  --vai-human-dim: rgba(251, 191, 122, 0.14);
  --vai-human-glow: rgba(251, 191, 122, 0.3);
  --vai-grid: rgba(255, 255, 255, 0.035);
}

.voice-ai-page--ai-agent {
  --vai-tech: #7dd3fc;
  --vai-tech-dim: rgba(125, 211, 252, 0.14);
  --vai-tech-glow: rgba(125, 211, 252, 0.35);
}

.voice-ai-page {
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(var(--vai-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--vai-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

.voice-ai-page .vc-hero {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.voice-ai-page .vc-hero-glow {
  background:
    radial-gradient(ellipse at 20% 0%, var(--vai-tech-dim), transparent 50%),
    radial-gradient(ellipse at 85% 20%, var(--vai-human-dim), transparent 45%);
}

.voice-ai-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  letter-spacing: 0.08em;
}

.voice-ai-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vai-tech), var(--vai-human));
  box-shadow: 0 0 10px var(--vai-tech-glow);
}

.voice-ai-page h1 {
  background: linear-gradient(135deg, var(--text) 0%, var(--vai-tech) 55%, var(--vai-human) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.voice-ai-page .vc-checklist li::before {
  background: linear-gradient(135deg, var(--vai-tech), var(--vai-human));
  box-shadow: 0 0 0 3px var(--vai-tech-dim);
}

/* ——— Hero bridge visual ——— */

.vai-bridge {
  position: relative;
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, rgba(15, 20, 28, 0.95), rgba(10, 14, 22, 0.98));
  border: 1px solid var(--border);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.vai-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--vai-tech-dim), transparent 55%);
  pointer-events: none;
}

.vai-bridge-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.vai-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}

.vai-node-face {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a2433, #0d1219);
  border: 1px solid rgba(94, 234, 212, 0.35);
  box-shadow: 0 0 24px var(--vai-tech-glow), inset 0 0 20px rgba(94, 234, 212, 0.06);
  display: grid;
  place-items: center;
}

.voice-ai-page--ai-agent .vai-node--bot .vai-node-face {
  border-radius: 50%;
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 28px var(--vai-tech-glow);
}

.vai-node-face--human {
  border-radius: 50%;
  border-color: rgba(251, 191, 122, 0.45);
  box-shadow: 0 0 24px var(--vai-human-glow), inset 0 0 16px rgba(251, 191, 122, 0.08);
  background: linear-gradient(160deg, #2a2218, #14110d);
}

.vai-human-hair {
  position: absolute;
  top: 14px;
  width: 36px;
  height: 18px;
  border-radius: 50% 50% 0 0;
  background: rgba(251, 191, 122, 0.25);
}

.vai-eye {
  position: absolute;
  top: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vai-tech);
  box-shadow: 0 0 8px var(--vai-tech);
  animation: vai-blink 4.5s ease-in-out infinite;
}

.vai-eye--l { left: 22px; }
.vai-eye--r { right: 22px; }

.vai-eye--human {
  background: var(--vai-human);
  box-shadow: 0 0 8px var(--vai-human-glow);
  top: 30px;
}

.vai-mouth {
  position: absolute;
  bottom: 18px;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(94, 234, 212, 0.5);
}

.vai-smile {
  position: absolute;
  bottom: 16px;
  width: 18px;
  height: 9px;
  border: 2px solid rgba(251, 191, 122, 0.65);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.vai-node-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.vai-node-tag--tech {
  color: var(--vai-tech);
  background: var(--vai-tech-dim);
  border: 1px solid rgba(94, 234, 212, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vai-node-tag--warm {
  color: var(--vai-human);
  background: var(--vai-human-dim);
  border: 1px solid rgba(251, 191, 122, 0.3);
}

.vai-node-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vai-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 88px;
}

.vai-waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 28px;
}

.vai-bar {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--vai-tech), var(--vai-human));
  animation: vai-wave 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
}

.vai-link-track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.vai-link-pulse {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--vai-tech), var(--vai-human), transparent);
  animation: vai-travel 2.2s ease-in-out infinite;
}

.vai-link-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
  max-width: 7rem;
  line-height: 1.3;
}

.vai-transcript {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vai-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.vai-bubble-who {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.vai-bubble p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-style: italic;
}

.vai-bubble--human {
  align-self: flex-start;
  max-width: 92%;
  background: var(--vai-human-dim);
  border-color: rgba(251, 191, 122, 0.25);
}

.vai-bubble--human .vai-bubble-who {
  color: var(--vai-human);
}

.vai-bubble--bot {
  align-self: flex-end;
  max-width: 92%;
  background: var(--vai-tech-dim);
  border-color: rgba(94, 234, 212, 0.2);
}

.vai-bubble--bot .vai-bubble-who {
  color: var(--vai-tech);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vai-bridge-caption {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ——— Dual strip ——— */

.vai-dual-strip {
  padding: clamp(1.5rem, 4vw, 2.25rem) 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, var(--vai-tech-dim), transparent 50%, var(--vai-human-dim));
}

.vai-dual-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .vai-dual-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }
}

.vai-pillar {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.vai-pillar--machine {
  border-color: rgba(94, 234, 212, 0.2);
  box-shadow: inset 3px 0 0 var(--vai-tech);
}

.vai-pillar--human {
  border-color: rgba(251, 191, 122, 0.22);
  box-shadow: inset 3px 0 0 var(--vai-human);
}

.vai-pillar-icon {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: var(--vai-tech);
}

.vai-pillar--human .vai-pillar-icon {
  color: var(--vai-human);
}

.vai-pillar-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.vai-pillar-lead {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.vai-pillar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.vai-pillar-list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--text);
}

.vai-pillar--machine .vai-pillar-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--vai-tech);
  font-size: 0.75rem;
}

.vai-pillar--human .vai-pillar-list li::before {
  content: "♥";
  position: absolute;
  left: 0;
  color: var(--vai-human);
  font-size: 0.65rem;
  top: 0.15rem;
}

.vai-dual-connector {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .vai-dual-connector {
    display: flex;
  }
}

/* ——— Themed feature cards ——— */

.voice-ai-page .vc-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.voice-ai-page .vc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--vai-tech), var(--vai-human));
  opacity: 0.55;
}

.voice-ai-page .vc-card:hover {
  border-color: rgba(94, 234, 212, 0.25);
  transform: translateY(-2px);
}

.voice-ai-page .vc-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voice-ai-page .vc-strip {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.voice-ai-page .vc-strip p {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.voice-ai-page .compare-table thead th:last-child {
  color: var(--vai-human);
}

.voice-ai-page .compare-table thead th:nth-child(2) {
  color: var(--vai-tech);
}

/* ——— Animations ——— */

@keyframes vai-blink {
  0%, 42%, 58%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.15); opacity: 0.6; }
}

@keyframes vai-wave {
  0%, 100% { height: 6px; opacity: 0.45; }
  50% { height: 22px; opacity: 1; }
}

@keyframes vai-travel {
  0% { left: -35%; }
  100% { left: 105%; }
}

@media (prefers-reduced-motion: reduce) {
  .vai-eye,
  .vai-bar,
  .vai-link-pulse {
    animation: none;
  }

  .voice-ai-page h1 {
    color: var(--text);
    background: none;
    -webkit-background-clip: unset;
  }
}

@media (max-width: 640px) {
  .vai-bridge-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vai-link {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .vai-link-track {
    flex: 1;
    min-width: 120px;
  }

  .vai-node-face {
    width: 64px;
    height: 64px;
  }
}
