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

.hero-actions .js-demo-button {
  box-shadow: 0 0 0 6px rgba(238, 112, 105, 0.18);
}

.hero-actions .js-demo-button:hover {
  box-shadow: 0 0 0 8px rgba(238, 112, 105, 0.23), 0 16px 34px rgba(33, 36, 43, 0.12);
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  place-items: center;
  padding: 24px;
}

.demo-modal.is-open {
  display: grid;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.demo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: #111317;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.48);
}

.demo-modal__video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 68px);
  border-radius: 20px;
  background: #060708;
}

.demo-modal__close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 3px solid #f6cbd5;
  border-radius: 50%;
  background: rgba(34, 36, 41, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.demo-modal__close::before,
.demo-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.demo-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.demo-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.demo-modal__close:hover {
  transform: scale(1.06);
  background: #ee7069;
}

.demo-modal__close:focus-visible,
.demo-modal__backdrop:focus-visible {
  outline: 3px solid #ffb04f;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hero-actions .js-demo-button {
    box-shadow: 0 0 0 4px rgba(238, 112, 105, 0.18);
  }

  .demo-modal {
    padding: 12px;
  }

  .demo-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 7px;
    border-radius: 24px;
  }

  .demo-modal__video {
    max-height: calc(100vh - 38px);
    border-radius: 18px;
  }

  .demo-modal__close {
    top: 17px;
    right: 17px;
    width: 44px;
    height: 44px;
  }
}
