.landing-demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 14, 0.82);
}

.landing-demo-overlay.is-hidden {
  display: none;
}

body.landing-demo-open {
  overflow: hidden;
}

.landing-demo-stage {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 48px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e0e0e;
  color: #f3f4f6;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.landing-demo-stage .landing-auth-close {
  z-index: 8;
  color: #f8fafc;
  background: rgba(2, 6, 14, 0.45);
}

.landing-demo-stage-body {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: stretch;
}

.landing-demo-root {
  width: 100%;
  min-height: 0;
  display: flex;
}

.landing-demo-session {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.landing-demo-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.landing-demo-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-demo-preview-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 14, 0.18) 0%,
    rgba(2, 6, 14, 0.42) 100%
  );
}

.landing-demo-preview-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.landing-demo-preview-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #f8fafc;
  cursor: pointer;
}

.landing-demo-preview-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.landing-demo-preview-play-icon svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.landing-demo-preview-start:hover .landing-demo-preview-play-icon,
.landing-demo-preview-start:focus-visible .landing-demo-preview-play-icon {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(248, 250, 252, 0.7);
}

.landing-demo-preview-start-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.landing-demo-contact {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 28px 32px;
  overflow: auto;
  background: #0e0e0e;
}

.landing-demo-contact-back {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
}

.landing-demo-contact-back svg {
  width: 18px;
  height: 18px;
}

.landing-demo-contact-back:hover,
.landing-demo-contact-back:focus-visible {
  background: rgba(148, 163, 184, 0.12);
}

.landing-demo-contact-title {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f8fafc;
  text-align: center;
}

.landing-demo-contact-subheading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.landing-demo-contact-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, 100%);
}

.landing-demo-contact-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(159, 176, 196, 0.06);
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-demo-contact-benefit-index {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 92, 112, 0.35);
  border: 1px solid rgba(45, 92, 112, 0.7);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.landing-demo-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(420px, 100%);
}

.landing-demo-contact-skip {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(159, 176, 196, 0.85);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-demo-contact-skip:hover,
.landing-demo-contact-skip:focus-visible {
  color: #f8fafc;
}

.landing-demo-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(420px, 100%);
}

.landing-demo-contact .contact-interest-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.landing-demo-contact .contact-interest-field input,
.landing-demo-contact .contact-interest-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  color: #f8fafc;
  background: rgba(2, 8, 18, 0.78);
  box-sizing: border-box;
  resize: vertical;
}

.landing-demo-contact .contact-interest-field input::placeholder,
.landing-demo-contact .contact-interest-field textarea::placeholder {
  color: rgba(159, 176, 196, 0.5);
}

.landing-demo-contact .contact-interest-field input:focus,
.landing-demo-contact .contact-interest-field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(4, 12, 24, 0.92);
}

.landing-demo-contact .contact-interest-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 500;
}

.landing-demo-contact-submit {
  width: 100%;
  margin-top: 2px;
}

.landing-demo-sdk {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.landing-demo-session.is-idle .landing-demo-sdk,
.landing-demo-session.is-contact .landing-demo-sdk {
  visibility: hidden;
  pointer-events: none;
}

@keyframes landing-demo-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.18);
  }
  50% {
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-demo-root .akapulu-loading-spinner {
    animation: none;
  }
}

.landing-demo-root .akapulu-conversation {
  width: 100%;
  height: 100%;
  min-height: 0;
  justify-items: center;
  align-content: center;
}

.landing-demo-root .akapulu-connected-layout {
  width: min(760px, 100%);
}

.landing-demo-root .akapulu-video-surface video {
  max-height: min(420px, 52vh);
  object-fit: cover;
}

@media (max-height: 700px) {
  .landing-demo-stage {
    aspect-ratio: auto;
    height: min(640px, calc(100vh - 32px));
  }
}
