.demo-main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: clamp(16px, 2.6vh, 28px) 0 24px;
}

.demo-hero {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.demo-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  width: min(1080px, 100%);
  margin: 0 auto clamp(18px, 2.8vh, 30px);
}

.demo-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.demo-heading p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.5;
}

.demo-player {
  position: relative;
  overflow: hidden;
  width: min(1080px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: clamp(14px, 2vw, 22px);
  background: #080c13;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.demo-player iframe,
.demo-play {
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-play {
  position: relative;
  display: block;
  padding: 0;
  color: #fff;
  background: #080c13;
  cursor: pointer;
}

.demo-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), filter 260ms ease;
}

.demo-play-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 7, 0) 45%, rgba(3, 3, 7, .72) 100%);
}

.demo-play-control {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: clamp(64px, 7vw, 88px);
  height: clamp(64px, 7vw, 88px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  background: rgba(13, 10, 23, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 16px 42px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transform: translate(-50%, -50%);
  transition: transform 200ms ease, background 200ms ease;
}

.demo-play-control svg {
  width: 48%;
  height: 48%;
  margin-left: 5%;
  fill: currentColor;
}

.demo-play-label {
  position: absolute;
  left: clamp(18px, 3vw, 38px);
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(15px, 2.4vw, 28px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.demo-play-label strong {
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.2;
}

.demo-play-label small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
}

.demo-play:hover img { transform: scale(1.008); filter: brightness(1.04); }
.demo-play:hover .demo-play-control { transform: translate(-50%, -50%) scale(1.05); background: rgba(155, 85, 255, .55); }
.demo-play:focus-visible { outline: 3px solid rgba(125, 228, 255, .9); outline-offset: -6px; }

.demo-after-video {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1080px, 100%);
  margin: 12px auto 0;
}

.demo-after-video p {
  margin: 0;
  color: rgba(253, 251, 255, .46);
  font-size: 12px;
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.demo-actions a {
  color: rgba(253, 251, 255, .72);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.demo-actions a:first-child { color: #fff; }
.demo-actions a:hover { color: #dfc7ff; }

@media (min-width: 821px) and (max-height: 850px) {
  .demo-main { padding-top: 6px; }
  .demo-heading { margin-bottom: 14px; }
  .demo-heading h1 { font-size: 44px; }
  .demo-heading p { font-size: 15px; }
  .demo-player,
  .demo-after-video { width: min(860px, 100%); }
}

@media (max-width: 820px) {
  .demo-main {
    width: min(100% - 28px, 680px);
    min-height: calc(100svh - 64px);
    padding: 22px 0 24px;
  }

  .demo-heading {
    display: block;
    margin-bottom: 20px;
  }

  .demo-heading h1 { font-size: clamp(42px, 12vw, 58px); }

  .demo-heading p {
    max-width: 600px;
    margin-top: 14px;
    font-size: 16px;
  }

  .demo-player { border-radius: 16px; }
  .demo-play-control { width: 58px; height: 58px; }
  .demo-after-video { align-items: flex-start; }
}

@media (max-width: 520px) {
  .demo-main { width: calc(100% - 24px); padding-top: 18px; }
  .demo-heading { margin-bottom: 17px; }
  .demo-heading h1 { font-size: 43px; }
  .demo-heading p { font-size: 15px; line-height: 1.45; }
  .demo-play-label { bottom: 12px; }
  .demo-play-label strong { font-size: 14px; }
  .demo-after-video { display: block; margin-top: 11px; }
  .demo-after-video p { max-width: 34ch; }
  .demo-actions { gap: 18px; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-play img,
  .demo-play-control { transition: none; }
}
