/* ============================================================
   demo.css — Product demo section (pinned scroll showcase)
   ============================================================ */
.demo-section {
  position: relative;
  z-index: var(--z-base);
  padding: 0 var(--space-lg);
  margin-top: -20px; /* overlap slightly with hero */
}

/* Tall wrapper that ScrollTrigger pins against */
.demo-pin-wrapper {
  min-height: 350vh;
  position: relative;
}

/* The actual visible container — gets pinned */
.demo-stage {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding-top: calc(var(--nav-height) + 24px);
  min-height: 100vh;
}

/* Demo glow behind the mockups */
.demo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, var(--glow-demo) 0%, transparent 65%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.demo-glow.visible { opacity: 1; }

/* ---- Worksheet window sizing ---- */
.demo-worksheet {
  width: 580px;
  flex-shrink: 0;
  opacity: 0.15;
  transform: translateY(40px);
}

/* ---- Overlay sizing / positioning ---- */
.demo-overlay {
  width: 420px;
  flex-shrink: 0;
  margin-left: -50px;
  margin-top: 48px;
  opacity: 0;
  transform: translateX(140px);
}
.demo-overlay .overlay-content-area {
  max-height: 440px;
}

/* ---- Streaming cursor (blinking caret for the typing effect) ---- */
.stream-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent-text);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
