/* Heed — Demo section (the wrapper around the interactive demo) */

.demo-section {
  position: relative;
  padding: clamp(72px, 12vw, 128px) 0;
  background: #0c3830;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* The cream color applies only to the section's own copy, not anything inside the demo card */
.demo-section-head-copy {
  max-width: 640px;
  text-align: center;
  color: #f4f1ea;
}

/* The demo card content always uses the light-mode design tokens, regardless of the dark section around it */
.demo-section .demo-frame,
.demo-section .demo-frame .demo,
.demo-section .demo-frame h1,
.demo-section .demo-frame h2,
.demo-section .demo-frame h3,
.demo-section .demo-frame h4,
.demo-section .demo-frame p,
.demo-section .demo-frame div,
.demo-section .demo-frame span,
.demo-section .demo-frame button,
.demo-section .demo-frame label,
.demo-section .demo-frame input,
.demo-section .demo-frame textarea {
  color: var(--text-primary);
}

.demo-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(184, 134, 11, 0.08), transparent 60%);
}

.demo-section .container { position: relative; z-index: 1; }

.demo-section-head {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.demo-section .eyebrow {
  color: rgba(244, 241, 234, 0.55);
  margin-bottom: 16px;
  justify-content: center;
}
.demo-section .eyebrow::before { display: none; }

.demo-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0c361;
  box-shadow: 0 0 0 0 rgba(240, 195, 97, 0.5);
  animation: demoPulse 2s infinite;
}
@keyframes demoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 195, 97, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(240, 195, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 195, 97, 0); }
}

.demo-section-title {
  color: #f4f1ea;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.demo-section-title-soft {
  color: rgba(244, 241, 234, 0.55);
  font-weight: 500;
}

.demo-section-sub {
  color: rgba(244, 241, 234, 0.7);
  margin-top: 14px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.demo-section-cue {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #f0c361;
  padding-bottom: 8px;
  gap: 4px;
}
.demo-cue-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.demo-frame {
  position: relative;
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 80px -30px rgba(0, 0, 0, 0.5),
    0 8px 24px -12px rgba(0, 0, 0, 0.3);
}
.demo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.18), rgba(244, 241, 234, 0.04));
  z-index: -1;
}
.demo-frame .demo {
  border-radius: 12px;
  border-color: transparent;
}

.demo-section-foot {
  color: rgba(244, 241, 234, 0.45);
  margin-top: 18px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Mobile */
@media (max-width: 720px) {
  .demo-section { padding: 56px 0 64px; }
  .demo-section-head {
    margin-bottom: 24px;
  }
  .demo-section-title { font-size: clamp(26px, 7vw, 32px); }
  .demo-frame { padding: 6px; border-radius: 14px; }
  .demo-frame .demo { border-radius: 10px; }
}
