.watch-demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 55px;
  padding: .85rem 1.4rem;
  border: 1px solid #369eff;
  border-radius: 3px;
  background: transparent;
  color: #f5f8fc;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.watch-demo-button::before {
  content: "▶";
  color: #369eff;
  font-size: .78em;
}

.watch-demo-button:hover,
.watch-demo-button:focus-visible {
  background: rgba(54, 158, 255, .12);
  outline: 2px solid transparent;
  transform: translateY(-1px);
}

.watch-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.watch-demo-modal.is-open { display: flex; }

.watch-demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 14, .88);
  backdrop-filter: blur(6px);
}

.watch-demo-dialog {
  position: relative;
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid #344456;
  border-radius: 10px;
  background: #0d141c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}

.watch-demo-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(8, 13, 19, .86);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.watch-demo-close:hover,
.watch-demo-close:focus-visible {
  background: #369eff;
  color: #07111c;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.watch-demo-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

@media (max-width: 640px) {
  .watch-demo-button { width: 100%; }
  .watch-demo-modal { padding: .6rem; }
  .watch-demo-close { top: .4rem; right: .4rem; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .watch-demo-button { transition: none; }
}
