.demo-showcase {
  position: relative;
  overflow: clip;
}

.demo-split {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.demo-copy {
  min-width: 0;
}

.demo-copy h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.04em;
  max-width: 720px;
  margin-top: 14px;
}

.demo-copy .section-intro {
  max-width: 650px;
  font-size: clamp(17px, 1.6vw, 20px);
}

.demo-handoff-title {
  margin: 28px 0 12px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  color: var(--navy);
}

.demo-highlight {
  display: inline-block;
  padding: 0 .09em .03em;
  color: #fff;
  background: var(--blue);
  line-height: 1.02;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.demo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 27px;
}

.demo-agent-shell {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(3, 88, 252, .2);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(232, 241, 255, .96));
  box-shadow: 0 28px 70px rgba(2, 33, 87, .16);
}

.demo-agent-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(3, 88, 252, .4), transparent 45%, rgba(20, 138, 91, .26));
  filter: blur(14px);
  opacity: .48;
}

.demo-agent-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 4px 8px 12px;
  color: var(--navy);
}

.demo-window-controls {
  display: flex;
  gap: 6px;
}

.demo-window-controls span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9d6e8;
}

.demo-window-controls span:first-child {
  background: #ff7e78;
}

.demo-window-controls span:nth-child(2) {
  background: #f4c85a;
}

.demo-window-controls span:last-child {
  background: #56c58a;
}

.demo-agent-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.demo-agent-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 750;
}

.demo-agent-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(20, 138, 91, .11);
}

.demo-agent-frame {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.demo-start-panel {
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
  background: linear-gradient(160deg, #fff, #eaf1ff);
}

.demo-start-panel h3 {
  color: var(--navy);
  font-size: 24px;
  margin: 0 0 24px;
}

.demo-agent-frame[hidden] {
  display: none;
}

.demo-voice .demo-copy {
  max-width: 1000px;
}

.demo-voice .demo-copy h2 {
  max-width: 980px;
}

.demo-translation .demo-copy,
.demo-translation .demo-copy .section-intro {
  max-width: none;
  width: 100%;
}

.demo-voice-frame {
  height: 720px;
}

.demo-voice .demo-agent-shell {
  margin-top: 38px;
  padding: 10px;
  border-radius: 24px;
}

@media (max-width: 920px) {
  .demo-split {
    grid-template-columns: 1fr;
  }

  .demo-copy h2 {
    max-width: 820px;
  }

  .demo-agent-frame {
    height: 680px;
  }
}

@media (max-width: 600px) {
  .demo-copy h2 {
    font-size: clamp(31px, 10vw, 43px);
  }

  .demo-actions .btn {
    width: 100%;
  }

  .demo-agent-shell,
  .demo-voice .demo-agent-shell {
    padding: 7px;
    border-radius: 18px;
  }

  .demo-agent-bar {
    min-height: 44px;
    padding: 4px 7px 10px;
  }

  .demo-agent-status {
    display: none;
  }

  .demo-agent-frame {
    height: 620px;
    border-radius: 13px;
  }

  .demo-voice-frame {
    height: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-agent-shell::before {
    filter: none;
  }
}
