/* ============================================================
   DEMO PAGE — YourSalesMachine
   ============================================================ */

.demo-hero {
  padding: 80px 0 48px;
  text-align: center;
}

.demo-hero .label {
  margin-bottom: 16px;
}

.demo-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.demo-hero p {
  color: var(--text2);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── TABS ─────────────────────────────────────────────────── */
.demo-tabs-wrap {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.demo-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.demo-tabs::-webkit-scrollbar { display: none; }

.demo-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}

.demo-tab:hover {
  color: var(--text);
}

.demo-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.demo-tab-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── INTERACTIVE NOTICE ──────────────────────────────────── */
.demo-interactive-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(108, 71, 255, 0.08);
  border-bottom: 1px solid rgba(108, 71, 255, 0.15);
  color: var(--text2);
  font-size: 0.85rem;
  text-align: center;
}

.demo-interactive-notice strong {
  color: #ff2020;
  font-weight: 600;
}

.demo-interactive-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── IFRAME WRAPPER ───────────────────────────────────────── */
.demo-frame-section {
  background: #06040f;
  padding: 0;
}

.demo-frame-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 130px);
  min-height: 600px;
}

.demo-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.demo-frame-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06040f;
  color: var(--text2);
  font-size: 0.875rem;
  pointer-events: none;
  transition: opacity .3s;
}

.demo-frame-loader.hidden {
  opacity: 0;
}

.loader-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── CTA BELOW DEMO ───────────────────────────────────────── */
.demo-cta {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.demo-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.demo-cta p {
  color: var(--text2);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.demo-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .demo-hero {
    padding: 60px 0 32px;
  }
  .demo-tab {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
  .demo-frame-wrap {
    height: calc(100vh - 110px);
  }
}

/* ── Interactive Popup ─────────────────────────────────────── */
.demo-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity .2s;
}
.demo-popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.demo-popup {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 24px 20px;
  max-width: 280px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.demo-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s;
}
.demo-popup-close:hover { color: var(--text); }
.demo-popup h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.demo-popup-highlight { color: #ff2020; }
.demo-popup p {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.demo-popup-btn {
  width: 100%;
  justify-content: center;
}
