/* Homepage hero — Porcelain production treatment */
.hero-demo .demo-window {
  min-height: 640px;
  padding: 0;
  background:
    radial-gradient(ellipse 70% 42% at 82% 0%, rgba(255, 255, 255, 0.98), transparent 66%),
    radial-gradient(ellipse 58% 46% at 16% 3%, rgba(255, 255, 255, 0.9), transparent 64%),
    radial-gradient(ellipse 65% 64% at 88% 88%, rgba(115, 173, 231, 0.11), transparent 74%),
    linear-gradient(145deg, #f7f7f5 0%, #efefec 55%, #e8ecef 100%);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(29, 29, 31, 0.025),
    0 3px 12px rgba(18, 22, 28, 0.07),
    0 34px 80px rgba(31, 47, 66, 0.13),
    0 88px 158px rgba(29, 29, 31, 0.12);
}

.hero-demo .demo-window::before {
  right: -12%;
  bottom: -26%;
  width: 72%;
  background: rgba(10, 132, 255, 0.075);
}

.demo-zone-label {
  position: absolute;
  z-index: 4;
  top: 24px;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.demo-zone-hardware {
  left: 24px;
  color: rgba(29, 29, 31, 0.35);
}

.demo-zone-software {
  right: 24px;
  color: rgba(29, 29, 31, 0.34);
}

.hero-demo .menu-bar-preview {
  position: absolute;
  z-index: 5;
  top: 68px;
  right: 34px;
  left: auto;
  display: block;
  width: 284px;
  margin: 0;
  transform: none;
}

.hero-demo .menu-bar-preview-label {
  display: none;
}

.hero-demo .menu-bar-cluster {
  --menu-bar-icon-width: 42px;
  --menu-bar-icon-height: 24px;
  --menu-bar-icon-radius: 999px;
  --menu-bar-icon-background: #595a5f;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  gap: 8px;
  padding: 8px 11px;
  color: #58585d;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 253, 0.7));
  box-shadow:
    0 10px 24px rgba(35, 49, 67, 0.11),
    0 28px 60px rgba(35, 49, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(104, 118, 134, 0.08);
}

.hero-demo .menu-bar-cluster::before {
  content: none;
}

.hero-demo .menu-bar-volumekeys {
  color: inherit;
}

.hero-demo .menu-bar-item {
  gap: 7px;
}

.hero-demo .menu-bar-item small {
  color: #6e6e73;
  font-size: 9px;
  font-weight: 680;
  line-height: 1;
}

.hero-demo .menu-bar-item > svg {
  flex: 0 0 var(--menu-bar-icon-width);
  width: var(--menu-bar-icon-width);
  height: var(--menu-bar-icon-height);
}

.hero-demo .menu-bar-item:not(.menu-bar-volumekeys) > svg {
  box-sizing: border-box;
  display: block;
  width: var(--menu-bar-icon-width);
  height: var(--menu-bar-icon-height);
  padding: 3px 8px;
  color: #fff;
  border: 0;
  border-radius: var(--menu-bar-icon-radius);
  background: var(--menu-bar-icon-background);
  box-shadow: none;
}

.hero-demo .menu-bar-item:not(.menu-bar-volumekeys) > svg path:first-child {
  fill: #fff;
}

.hero-demo .menu-bar-item:not(.menu-bar-volumekeys) > svg path:not(:first-child) {
  stroke: #fff;
}

.hero-demo .menu-bar-divider {
  height: 25px;
}

.hero-demo .menu-bars {
  display: flex;
  box-sizing: border-box;
  flex: 0 0 var(--menu-bar-icon-width);
  width: var(--menu-bar-icon-width);
  height: var(--menu-bar-icon-height);
  align-items: center;
  justify-content: center;
  gap: 1.7px;
  padding: 0;
  border: 0;
  border-radius: var(--menu-bar-icon-radius);
  background: var(--menu-bar-icon-background);
  box-shadow: none;
}

.hero-demo .menu-bars i {
  display: block;
  width: 4.2px;
  border-radius: 999px;
  background: #fff;
}

.hero-demo .menu-bars i:nth-child(1) { height: 6px; opacity: 0.48; }
.hero-demo .menu-bars i:nth-child(2) { height: 10px; opacity: 0.72; }
.hero-demo .menu-bars i:nth-child(3) { height: 14px; opacity: 1; }

.hero-demo .system-feedback {
  position: static;
  display: block;
  margin: 0;
}

.hero-demo .demo-context {
  position: absolute;
  z-index: 3;
  top: 68px;
  left: 34px;
  width: 228px;
  max-width: none;
  color: rgba(29, 29, 31, 0.9);
}

.hero-demo .demo-context span {
  color: inherit;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-transform: none;
}

.hero-demo .demo-context small {
  color: rgba(29, 29, 31, 0.5);
  font-size: 9.5px;
  line-height: 1.48;
}

.hero-demo .macos-hud {
  position: absolute;
  z-index: 4;
  top: 206px;
  left: 140px;
  width: 294px;
  padding: 13px 16px 14px;
  transform: translateX(-50%) scale(0.72);
  transform-origin: top center;
}

.hero-demo .macos-hud.is-awake {
  transform: translateX(-50%) translateY(-2px) scale(0.72);
}

.hero-demo .product-surface {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-demo .key-stage {
  position: absolute;
  z-index: 4;
  top: 286px;
  left: 140px;
  width: 242px;
  transform: translateX(-50%) scale(0.76);
  transform-origin: top center;
}

.hero-demo .actual-ui {
  position: absolute;
  z-index: 4;
  /* The label sits above; the actual menu surface aligns with the HUD. */
  top: 185.3px;
  right: 47px;
  left: auto;
  width: 294px;
  max-height: 470px;
  transform: scale(0.88);
  transform-origin: top right;
}

.hero-demo .actual-ui.is-closed {
  max-height: 24px;
}

.hero-demo .native-menu-shell {
  max-height: 455px;
}

.hero-demo .native-about-row {
  margin-bottom: 2px;
}

@media (max-width: 780px) {
  .hero-demo .demo-window {
    min-height: 840px;
    padding: 0;
    background:
      radial-gradient(ellipse 72% 34% at 72% 0%, rgba(255, 255, 255, 0.98), transparent 68%),
      radial-gradient(ellipse 68% 42% at 14% 4%, rgba(255, 255, 255, 0.9), transparent 66%),
      radial-gradient(ellipse 78% 54% at 80% 88%, rgba(115, 173, 231, 0.11), transparent 74%),
      linear-gradient(145deg, #f7f7f5 0%, #efefec 55%, #e8ecef 100%);
  }

  .demo-zone-hardware {
    top: 22px;
    left: 22px;
  }

  .demo-zone-software {
    top: calc(42% + 20px);
    right: 22px;
  }

  .hero-demo .demo-context {
    top: 58px;
    left: 22px;
    width: min(185px, calc(100% - 44px));
  }

  .hero-demo .macos-hud {
    top: 164px;
    left: 50%;
    width: 278px;
    transform: translateX(-50%) scale(0.82);
  }

  .hero-demo .macos-hud.is-awake {
    transform: translateX(-50%) translateY(-2px) scale(0.82);
  }

  .hero-demo .key-stage {
    top: 246px;
    left: 50%;
    transform: translateX(-50%) scale(0.82);
  }

  .hero-demo .menu-bar-preview {
    top: calc(42% + 52px);
    right: auto;
    left: 50%;
    width: min(320px, calc(100% - 32px));
    transform: translateX(-50%);
  }

  .hero-demo .menu-bar-cluster {
    align-self: auto;
  }

  .hero-demo .actual-ui {
    top: calc(42% + 113px);
    right: auto;
    left: 50%;
    width: 294px;
    transform: translateX(-50%) scale(0.92);
    transform-origin: top center;
  }
}

@media (max-width: 470px) {
  .hero-demo .actual-ui {
    top: calc(42% + 113px);
    transform: translateX(-50%) scale(0.88);
  }
}
