/* Home hero demo · one authoritative Liquid Glass enclosure at every width. */

.hero.demo-section .stage {
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  outline: 0;
  border-radius: 26px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.36) 0%,
      rgba(255, 255, 255, 0.16) 46%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 38%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 -1px 0 rgba(10, 11, 12, 0.88),
    0 1.5px 0 rgba(8, 9, 10, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 1px 0 0 rgba(255, 255, 255, 0.32),
    inset -1px 0 0 rgba(60, 64, 68, 0.14),
    0 10px 24px rgba(70, 75, 80, 0.035) !important;
  -webkit-backdrop-filter: blur(20px) saturate(0.85);
  backdrop-filter: blur(20px) saturate(0.85);
}

.hero.demo-section .stage::before {
  content: "" !important;
  position: absolute;
  z-index: 0;
  inset: 1px;
  pointer-events: none;
  border-radius: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(60, 64, 68, 0.08);
  border-bottom: 1px solid rgba(8, 9, 10, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.035) 38%,
    transparent 72%
  );
}

.hero.demo-section .stage::after {
  content: "" !important;
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.18), transparent 27%),
    radial-gradient(circle at 86% 4%, rgba(255, 255, 255, 0.16), transparent 24%);
}

/* Preserve the original structured frame inside the additional glass shell. */
.hero.demo-section .stage__grid {
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 30px;
  outline: 1px solid rgba(18, 20, 22, 0.12);
  outline-offset: -1px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), transparent 46%),
    linear-gradient(145deg, rgba(239, 240, 237, 0.9), rgba(225, 227, 223, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(17, 19, 24, 0.07),
    0 26px 68px -48px rgba(17, 19, 24, 0.48) !important;
}

@media (max-width: 520px) {
  .hero.demo-section .stage {
    border-radius: 22px;
  }

  .hero.demo-section .stage::before {
    border-radius: 21px;
  }

  .hero.demo-section .stage__grid {
    border-radius: 23px;
  }
}
