.mission .mission__inner {
  grid-template-rows: auto auto;
  padding-bottom: clamp(24px, 4vw, 60px);
}

.device-demo {
  width: min(calc(100% - 48px), var(--hero-max-width, 1440px));
  margin: 0 auto;
  margin-bottom: clamp(24px, 3vw, 48px);
  padding: 0;
  border-radius: clamp(20px, 3vw, 40px);
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #ef8a69, #d95b4c 52%, #a8322b);
  color: #fff8f2;
}

@media (min-width: 901px) {
  .device-demo { margin-top: calc(clamp(-10svh, -6vw, -72px) - 5vh); }
}

/* Mirror the reference composition: large rear display, lower foreground phone. */
.device-demo__stage {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: clip;
}
.device-demo__unit { position: absolute; }
.device-demo__unit:first-child { width: 97%; left: -17.45%; top: -12%; }
.device-demo__unit:last-child { width: 55%; left: 51%; top: 26.7%; z-index: 2; pointer-events: none; }
.device-demo__laptop, .device-demo__hand { position: relative; }
.device-demo__laptop > img, .device-demo__hand > img { width: 100%; height: auto; display: block; }
.device-demo__laptop { filter: drop-shadow(0 14px 12px #641a1840); }
.device-demo__laptop-frame { mask: url(laptop-mask.svg) center / 100% 100% no-repeat; }
.device-demo__desktop-screen {
  position: absolute;
  left: 18%;
  top: 18.75%;
  width: 64.15%;
  height: 57.9%;
  overflow: hidden;
  background: #f7f4f0;
}
.device-demo__desktop-content {
  position: absolute;
  inset: 0;
}
.device-demo__desktop-content > img,
.device-demo__desktop-screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.device-demo__status:not(:empty) {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 8px;
  background: #29211e;
  color: #fff;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.device-demo__phone-screen {
  position: absolute;
  left: 33.53%;
  top: 5.58%;
  width: 35.68%;
  height: 71.05%;
  border-radius: 14% / 6.5%;
  overflow: hidden;
  background: #f5f7fb;
  container-type: size;
}
.device-demo__phone-screen iframe {
  display: block;
  pointer-events: auto;
  width: 320px;
  height: 694px;
  border: 0;
  transform-origin: top left;
  transform: scale(var(--demo-phone-scale, 0));
}
.showcase { height: auto; min-height: 0; }
.showcase .showcase__static {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(calc(100% - 48px), var(--hero-max-width, 1440px));
  margin: 0 auto;
  padding: 20px 0 44px;
}
.showcase .showcase__m-card { padding: 22px; border-radius: 16px; background: #fff; }
.showcase .showcase__m-card h3 { margin: 8px 0; }
.showcase .showcase__m-card p { margin: 0; color: #524940; }

@media (max-width: 680px) {
  .device-demo { width: calc(100% - 24px); }
  .showcase .showcase__static { grid-template-columns: 1fr; }
}

#device-demo-title { scroll-margin-top: 120px; }
.device-demo__ambient { position: absolute; inset: -2px; overflow: hidden; z-index: -1; pointer-events: none; }
.device-demo__hotspots, .device-demo__hit { position: absolute; }
.device-demo__hotspots:not([hidden]) { display: grid; }
.device-demo__sidebar {
  left: .8%; top: 11.6%; width: 16.3%; height: 18.7%;
  grid-template-rows: repeat(5, 1fr);
}
.device-demo__xiao-tabs {
  left: 53.5%; top: 1.4%; width: 8%; height: 4.2%;
  grid-template-columns: repeat(2, 1fr);
}
.device-demo__knowledge-tabs {
  left: 19.2%; top: 6%; width: 11%; height: 6%;
  grid-template-columns: 3fr 2fr;
}
.device-demo__pending { left: 76.2%; top: 92%; width: 9%; height: 6.4%; }
.device-demo__close { left: 94.3%; top: 31.2%; width: 3.6%; height: 5%; }
.device-demo__idea-first, .device-demo__idea-second { left: 79.4%; width: 5.7%; height: 4.4%; }
.device-demo__idea-first { top: 39.4%; }
.device-demo__idea-second { top: 55.3%; }
.device-demo__hotspots button, .device-demo__hit {
  padding: 0; border: 0; border-radius: 3px; background: transparent; cursor: pointer;
}
@media (hover: hover) {
  .device-demo__hotspots button:hover, .device-demo__hit:hover { background: #bc3e2529; }
}
.device-demo__hotspots button:focus-visible, .device-demo__hit:focus-visible {
  outline: 2px solid #a8322b; outline-offset: -2px;
}
@media (max-width: 680px) {
  .device-demo__stage { aspect-ratio: 1 / 1.25; }
  .device-demo__unit:first-child { width: 116%; left: -15%; top: -5%; }
  .device-demo__unit:last-child { width: 81%; left: 38%; top: 45%; }
}

.device-demo__laptop-frame { clip-path: inset(0 0 19%); }
/* Front view of the thin silver base, with the lid-opening notch. */
.device-demo__laptop::after {
  content: '';
  position: absolute;
  top: 80.9%;
  left: 0;
  width: 99%;
  height: 5.4%;
  border-radius: 0 0 9% 9% / 0 0 45% 45%;
  background:
    linear-gradient(90deg, #64666a, #e0e1e4 22%, #a2a4a8 80%, #777a7e) center top / 19% 39% no-repeat,
    linear-gradient(180deg, #d1d2d5 0%, #a8aaae 13%, #c6c8cb 28%, #777a7f 70%, #919498 90%, #77797e 100%);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 99.5% 85%, 98% 100%, 0 100%);
  box-shadow: inset 0 1px 0 #e9e9eb;
  pointer-events: none;
}
