.smart-section.smart-demo-section {
  display: block;
  width: min(1280px, calc(100% - 40px));
  padding-top: 88px;
  padding-bottom: 112px;
}

.smart-demo-hero {
  position: relative;
  min-height: min(78vw, 900px);
  aspect-ratio: 3 / 4;
  max-height: 900px;
  overflow: hidden;
  border-radius: 34px;
  background: #171c19;
  box-shadow: 0 35px 90px rgb(20 32 25 / 16%);
  isolation: isolate;
}

.smart-demo-images,
.smart-demo-images img,
.smart-demo-shade {
  position: absolute;
  inset: 0;
}

.smart-demo-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.002);
  transition: opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.smart-demo-images img.is-active {
  opacity: 1;
}

.smart-demo-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(8 13 10 / 50%) 0%, transparent 35%),
    linear-gradient(0deg, rgb(8 13 10 / 50%) 0%, transparent 34%);
}

.smart-demo-heading {
  position: absolute;
  z-index: 2;
  top: clamp(26px, 4vw, 54px);
  left: clamp(24px, 4.5vw, 58px);
  max-width: 620px;
  color: #fff;
  text-shadow: 0 2px 22px rgb(0 0 0 / 30%);
}

.smart-demo-heading .eyebrow {
  margin-bottom: 14px;
  color: rgb(255 255 255 / 76%);
}

.smart-demo-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 6.4vw, 6.8rem);
  line-height: 0.9;
}

.smart-demo-heading > span {
  display: inline-block;
  margin-top: 18px;
  color: rgb(255 255 255 / 78%);
  font-size: 0.82rem;
  font-weight: 740;
}

.smart-scene-dock {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 3vw, 38px);
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 27px;
  background: rgb(18 23 20 / 22%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 22%);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.smart-scene-dock button {
  min-width: 0;
  min-height: 104px;
  padding: 15px 14px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: rgb(255 255 255 / 78%);
  background: rgb(255 255 255 / 7%);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 110ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.smart-scene-dock button:hover {
  background: rgb(255 255 255 / 12%);
}
.smart-scene-dock button:active {
  transform: scale(0.965);
}

.smart-scene-dock button.is-active {
  color: #fff;
  border-color: rgb(255 255 255 / 32%);
  background: rgb(255 255 255 / 18%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}

.smart-scene-dock button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.smart-scene-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.smart-scene-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-scene-dock strong {
  font-size: 0.86rem;
  letter-spacing: -0.015em;
}

.smart-demo-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  padding: 58px 12px 0;
}

.smart-demo-copy h3 {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.smart-demo-explainer {
  max-width: 610px;
}

.smart-demo-explainer p {
  margin: 0 0 16px;
  color: rgb(29 38 33 / 66%);
  font-size: 1rem;
  line-height: 1.7;
}

.smart-demo-explainer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #1d2621;
  font-size: 0.82rem;
  font-weight: 820;
  text-decoration: none;
}

.smart-demo-explainer a span {
  transition: transform 160ms ease;
}
.smart-demo-explainer a:hover span {
  transform: translateX(3px);
}

@media (min-width: 900px) {
  .smart-demo-hero {
    aspect-ratio: 16 / 10;
    min-height: 650px;
    max-height: 860px;
  }
}

@media (max-width: 700px) {
  .smart-section.smart-demo-section {
    width: min(100% - 28px, 1280px);
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .smart-demo-hero {
    min-height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
  }

  .smart-demo-heading {
    top: 24px;
    left: 22px;
    right: 22px;
  }

  .smart-demo-heading h2 {
    font-size: clamp(2.7rem, 14vw, 4.7rem);
  }

  .smart-scene-dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 6px;
    padding: 7px;
    border-radius: 21px;
  }

  .smart-scene-dock button {
    min-height: 83px;
    padding: 11px 8px;
    gap: 7px;
    border-radius: 16px;
  }

  .smart-scene-icon,
  .smart-scene-icon svg {
    width: 23px;
    height: 23px;
  }
  .smart-scene-dock strong {
    font-size: 0.7rem;
  }

  .smart-demo-copy {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 8px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-demo-images img,
  .smart-scene-dock button,
  .smart-demo-explainer a span {
    transition-duration: 0.01ms !important;
  }
}
