.ucp-demo-page {
  min-height: 100vh;
}

.ucp-demo-page-grid {
  align-items: start;
}

.ucp-demo-intro article {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 22px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 58, 237, .18), transparent 28rem),
    rgba(7, 13, 24, .72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.ucp-demo-intro li {
  color: rgba(226, 232, 240, .82);
  line-height: 1.72;
}

.ucp-demo-intro ul {
  display: grid;
  gap: .7rem;
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
}

.ucp-demo-reminder {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.ucp-demo-reminder h3 {
  margin: 0 0 .85rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.ucp-demo-reminder ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem .95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ucp-demo-reminder li {
  position: relative;
  padding-left: 1.05rem;
}

.ucp-demo-reminder li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  background: #8b5cf6;
  box-shadow: 0 0 18px rgba(139, 92, 246, .55);
}

.ucp-demo-install-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  border: 1px solid var(--ucp-accent);
  border-radius: 999px;
  background: var(--ucp-accent);
  color: #05070f;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.ucp-demo-install-cta:hover,
.ucp-demo-install-cta:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #05070f;
  transform: translateY(-1px);
}

.ucp-demo-reminder + .ucp-demo-install-cta {
  margin-top: 1.2rem;
}

@media (max-width: 720px) {
  .ucp-demo-reminder ul {
    grid-template-columns: 1fr;
  }
}

.ucp-demo-root {
  position: relative;
  min-height: 11rem;
}

.ucp-demo-desktop-only {
  margin-top: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 1.2rem;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(124, 58, 237, .22), transparent 18rem),
    rgba(14, 14, 18, .9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
}

.ucp-demo-desktop-only h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.ucp-demo-desktop-only p {
  margin: 0;
  color: rgba(229, 231, 235, .78);
  line-height: 1.6;
}

.ucp-real-demo-manager-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 2vw, 1.5rem);
  background: rgba(0, 0, 0, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.ucp-real-demo-manager-shell.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ucp-real-demo-manager-frame {
  width: min(1560px, 98vw);
  height: min(910px, 94vh);
  border: 0;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .5);
}

.ucp-real-demo-dialog {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 2147483647;
  width: min(24rem, calc(100vw - 2rem));
  opacity: 0;
  transform: translate(-50%, .75rem);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.ucp-real-demo-dialog.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.ucp-real-demo-dialog__panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 1.15rem 3rem 1.15rem 1.2rem;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, .28), transparent 18rem),
    rgba(14, 14, 18, .96);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .36);
}

.ucp-real-demo-dialog__title {
  margin: 0 0 .45rem;
  font-size: 1rem;
}

.ucp-real-demo-dialog__text {
  margin: 0;
  color: rgba(229, 231, 235, .78);
  line-height: 1.55;
  font-size: .92rem;
}

.ucp-real-demo-dialog__install {
  margin-top: .95rem;
}

.ucp-real-demo-dialog__close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
}

@media (max-width: 760px) {
  .ucp-real-demo-manager-shell {
    padding: .35rem;
  }

  .ucp-real-demo-manager-frame {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .ucp-real-demo-dialog {
    left: 50%;
    width: auto;
    min-width: min(24rem, calc(100vw - 2rem));
  }
}
