/* ============================================================
   Capability detail pages + About + Contact
   ============================================================ */

.cap-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
  isolation: isolate;
  overflow: hidden;
}
.cap-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand-soft);
  opacity: 0.55;
  z-index: -1;
}
.cap-hero h1 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-5);
}
.cap-hero p.lede {
  font-size: var(--fs-md);
  color: var(--fg-muted);
  max-width: 56rem;
  margin-bottom: var(--space-6);
}

.cap-demo {
  background: var(--bg-1);
  border-block: 1px solid var(--line);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.cap-demo-frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-5);
}
.cap-list .card { padding: var(--space-5); }

/* Voice AI waveform demo */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 80px;
  padding: var(--space-4);
  background: rgba(0,0,0,0.4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.waveform .bar {
  flex: 1;
  background: var(--gradient-brand-vert);
  border-radius: 2px;
  transform-origin: center;
  animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.25); opacity: 0.6; }
  50%      { transform: scaleY(1);    opacity: 1; }
}
.waveform .bar:nth-child(2)  { animation-delay: 0.05s; }
.waveform .bar:nth-child(3)  { animation-delay: 0.10s; }
.waveform .bar:nth-child(4)  { animation-delay: 0.15s; }
.waveform .bar:nth-child(5)  { animation-delay: 0.20s; }
.waveform .bar:nth-child(6)  { animation-delay: 0.25s; }
.waveform .bar:nth-child(7)  { animation-delay: 0.30s; }
.waveform .bar:nth-child(8)  { animation-delay: 0.35s; }
.waveform .bar:nth-child(9)  { animation-delay: 0.40s; }
.waveform .bar:nth-child(10) { animation-delay: 0.45s; }
.waveform .bar:nth-child(11) { animation-delay: 0.50s; }
.waveform .bar:nth-child(12) { animation-delay: 0.55s; }
.waveform .bar:nth-child(13) { animation-delay: 0.60s; }
.waveform .bar:nth-child(14) { animation-delay: 0.65s; }
.waveform .bar:nth-child(15) { animation-delay: 0.70s; }
.waveform .bar:nth-child(16) { animation-delay: 0.75s; }
.waveform .bar:nth-child(17) { animation-delay: 0.80s; }
.waveform .bar:nth-child(18) { animation-delay: 0.85s; }
.waveform .bar:nth-child(19) { animation-delay: 0.90s; }
.waveform .bar:nth-child(20) { animation-delay: 0.95s; }
@media (prefers-reduced-motion: reduce) { .waveform .bar { animation: none; transform: scaleY(0.6); } }

/* Sample dialog bubbles */
.dialog {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.dialog .turn {
  max-width: 75%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.dialog .turn.user {
  align-self: flex-end;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.dialog .turn.ai {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(138,43,226,0.12));
  border: 1px solid rgba(0,229,255,0.25);
}
.dialog .turn .who {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-1);
}

/* GHL pipeline animation */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
}
.pipeline .stage {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-4);
  text-align: center;
  position: relative;
}
.pipeline .stage h5 {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--fg-muted);
}
.pipeline .stage .count {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-2xl);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 760px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
}

/* Hosting perf chart */
.perf-chart {
  height: 220px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.perf-chart svg { width: 100%; height: 100%; }
.perf-chart .baseline {
  position: absolute;
  inset: auto var(--space-5) var(--space-5) var(--space-5);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; } }
.about-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.calendly-inline {
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
}
