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

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

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

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(12px);
}

.demo-modal__card {
  position: relative;
  width: min(100%, 480px);
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(76, 134, 255, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(31, 37, 50, 0.98), rgba(16, 19, 26, 0.98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #eef2f9;
  animation: demo-modal-in 0.28s var(--ease) both;
}

.demo-modal__eyebrow {
  color: #9eb9ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.demo-modal__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 24px 0 16px;
  border: 1px solid rgba(140, 170, 255, 0.34);
  border-radius: 15px;
  background: rgba(76, 134, 255, 0.18);
  color: #9eb9ff;
  font-size: 24px;
}

.demo-modal h2 {
  margin: 0;
  font-size: clamp(23px, 4vw, 30px);
  letter-spacing: -0.04em;
}

.demo-modal__lead {
  margin: 10px 0 0;
  color: #b6bfce;
  font-size: 14px;
}

.demo-modal__notice {
  display: flex;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 13px 14px;
  border: 1px solid rgba(216, 172, 79, 0.28);
  border-radius: 14px;
  background: rgba(194, 132, 29, 0.12);
  color: #e9c77c;
  font-size: 12px;
  line-height: 1.65;
}

.demo-modal__notice i { flex: none; margin-top: 2px; font-size: 17px; }

.demo-modal__confirm { width: 100%; justify-content: center; }

@keyframes demo-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-modal__card { animation: none; }
}
