/* Product Demo — overlay mode (does not alter main deck slides) */

/* Highlighted topbar CTA */
.topbar-btn--demo,
.topbar-btn--partner {
  color: #ecfeff;
  border-color: rgba(20, 184, 166, 0.55);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(2, 123, 255, 0.22));
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.18), 0 6px 18px rgba(2, 123, 255, 0.18);
}
.topbar-btn--demo:hover,
.topbar-btn--partner:hover {
  color: #fff;
  border-color: rgba(20, 184, 166, 0.75);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.4), rgba(2, 123, 255, 0.32));
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.28), 0 8px 22px rgba(2, 123, 255, 0.28);
}
.topbar-btn--partner {
  border-color: rgba(2, 123, 255, 0.6);
  background: linear-gradient(135deg, rgba(2, 123, 255, 0.32), rgba(20, 184, 166, 0.2));
}

body.product-demo-active .deck,
body.product-demo-active .nav-controls,
body.product-demo-active .keyboard-hint {
  visibility: hidden;
  pointer-events: none;
}

.product-demo {
  display: none;
  position: fixed;
  inset: var(--topbar-h, 54px) 0 0;
  z-index: 80;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(2, 123, 255, 0.12), transparent 50%),
    #070b14;
  flex-direction: column;
  min-height: 0;
}

.product-demo.is-open {
  display: flex;
}

.product-demo__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
}

.product-demo__bar-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.product-demo__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.product-demo__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.product-demo__stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 12px;
}
.product-demo__stage:has(.pd-view) {
  overflow: hidden;
}

/* Hub */
.pd-hub {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 8px 40px;
}

.pd-hub__kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14b8a6;
}

.pd-hub__title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.pd-hub__sub {
  margin: 0 0 28px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pd-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pd-hub__card {
  text-align: left;
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.72);
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pd-hub__card:hover {
  transform: translateY(-3px);
}

.pd-hub__card--teal {
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.pd-hub__card--teal:hover {
  box-shadow: 0 20px 48px rgba(20, 184, 166, 0.18);
}

.pd-hub__card--blue {
  border-color: rgba(2, 123, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.pd-hub__card--blue:hover {
  box-shadow: 0 20px 48px rgba(2, 123, 255, 0.2);
}

.pd-hub__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pd-hub__card--teal .pd-hub__badge { color: #14b8a6; }
.pd-hub__card--blue .pd-hub__badge { color: #60a5fa; }

.pd-hub__name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
}

.pd-hub__count {
  font-size: 0.85rem;
  color: #94a3b8;
}

.pd-hub__cta {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.pd-hub__hint {
  margin: 22px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

/* Slide view — compact so prev/next stay on screen */
.pd-view {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.pd-view__toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-tabs {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.pd-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.pd-tab.is-active.pd-tab--teal {
  color: #042f2e;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border-color: transparent;
}

.pd-tab.is-active.pd-tab--blue {
  color: #eff6ff;
  background: linear-gradient(135deg, #027bff, #0369d9);
  border-color: transparent;
}

.pd-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.pd-btn--ghost:hover,
.pd-btn--link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pd-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.75fr);
  gap: 12px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.pd-slide__media {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1220;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.pd-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0b1220;
}

.pd-slide__copy {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.75);
  padding: 14px 14px 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.pd-view--teal .pd-slide__copy { border-color: rgba(20, 184, 166, 0.28); }
.pd-view--blue .pd-slide__copy { border-color: rgba(2, 123, 255, 0.28); }

.pd-slide__kicker {
  margin: 0 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pd-view--teal .pd-slide__kicker { color: #14b8a6; }
.pd-view--blue .pd-slide__kicker { color: #60a5fa; }

.pd-slide__title {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.2;
}

.pd-slide__summary {
  margin: 0 0 10px;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
}

.pd-slide__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-slide__list li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.pd-check {
  flex: none;
  font-weight: 800;
  margin-top: 1px;
}

.pd-view--teal .pd-check { color: #14b8a6; }
.pd-view--blue .pd-check { color: #60a5fa; }

.pd-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 0 2px;
}

.pd-nav__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.pd-nav__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pd-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  max-width: min(520px, 70vw);
}

.pd-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.pd-dot.is-active {
  width: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, #14b8a6, #027bff);
}

@media (max-width: 900px) {
  .pd-hub__grid { grid-template-columns: 1fr; }
  .product-demo__stage {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 10px;
  }
  .product-demo__stage:has(.pd-view) {
    overflow: auto;
  }
  .pd-view {
    gap: 6px;
    flex: none;
    min-height: auto;
    height: auto;
  }
  .pd-view__toolbar {
    padding: 0 10px;
    flex: none;
  }
  .pd-slide {
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 8px;
    flex: none;
    min-height: auto;
  }
  .pd-slide__media {
    width: 100%;
    max-width: none;
    margin: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow: visible;
    display: block;
    box-shadow: none;
  }
  .pd-slide__media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }
  .pd-slide__copy {
    max-height: none;
    margin: 0 10px;
    border-radius: 12px;
    flex: none;
  }
  .pd-nav {
    padding: 4px 10px 2px;
    flex: none;
  }
  .pd-tabs { order: 3; width: 100%; justify-content: flex-start; }
  .pd-slide__title { font-size: 1.05rem; }
  .pd-slide__summary { font-size: 0.76rem; }
  .pd-slide__list li { font-size: 0.74rem; }
}

@media (max-width: 480px) {
  .product-demo__stage {
    padding: 4px 0 8px;
  }
  .pd-slide__copy {
    margin: 0 8px;
    padding: 12px;
  }
}
