/* Dedicated product-demo section. Kept separate so the real video can replace
 * only the media slot later without disturbing the core landing styles. */

.demo-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.demo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .55fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: 2.4rem;
}

.demo-intro h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5.6vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 650;
}

.demo-intro-copy {
  margin: 0 0 .3rem;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.7;
}

.demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(216,189,137,.10), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.012)),
    #0a0b0d;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}

.demo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
}

.demo-topline {
  position: absolute;
  z-index: 2;
  inset: 1.15rem 1.2rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.demo-label,
.demo-duration {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10,11,13,.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--muted-strong);
  font-size: .66rem;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-label::before {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 5px var(--champagne-soft);
}

.demo-center {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 4rem 1rem 5rem;
  text-align: center;
}

.demo-play {
  width: clamp(4.8rem, 8vw, 6.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(244,241,234,.95);
  color: #0b0c0e;
  box-shadow: 0 20px 55px rgba(0,0,0,.32), 0 0 0 10px rgba(255,255,255,.025);
}

.demo-play span {
  margin-left: .3rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}

.demo-center h3 {
  margin: 1.45rem 0 .45rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -.035em;
  font-weight: 650;
}

.demo-center p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: .86rem;
}

.demo-timeline {
  position: absolute;
  z-index: 2;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  color: #73757a;
  font: 680 .63rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.demo-track {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}

.demo-track::after {
  content: "";
  position: absolute;
  inset: 0 78% 0 0;
  border-radius: inherit;
  background: var(--champagne);
  opacity: .55;
}

.demo-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .9rem .15rem 0;
  color: #6d6f73;
  font-size: .72rem;
}

.demo-note strong {
  color: var(--champagne);
  font-weight: 720;
}

@media (max-width: 48rem) {
  .demo-intro { grid-template-columns: 1fr; align-items: start; }
  .demo-intro h2 { max-width: 12ch; font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .demo-frame { min-height: 18.5rem; border-radius: 22px; }
  .demo-topline { inset: .8rem .8rem auto; }
  .demo-duration { display: none; }
  .demo-timeline { left: .8rem; right: .8rem; bottom: .8rem; }
  .demo-note { flex-direction: column; }
}
