/* Landing-only fixed glass navigation */
body:has(main#top) header {
  position: fixed !important;
  top: max(8px, env(safe-area-inset-top)) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 90 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Keep page content in the same visual position after header leaves normal flow. */
body:has(main#top) main#top {
  padding-top: 76px;
}

body:has(main#top) header > div {
  position: relative;
  width: min(1180px, calc(100vw - 20px));
  height: 64px !important;
  margin-inline: auto;
  padding-inline: 14px !important;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 10px 34px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.45);
  overflow: hidden;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

body:has(main#top) header > div::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0) 42%);
}

body:has(main#top) header > div > * {
  position: relative;
  z-index: 1;
}

body:has(main#top) header[class*="bg-[#070908]"] > div {
  border-color: rgba(255,255,255,.11);
  background: rgba(7,9,8,.66);
  box-shadow: 0 12px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06);
}

body:has(main#top) header[class*="bg-[#070908]"] > div::before {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 44%);
}

/* The install artwork is now a real <img>; never let the old CSS pseudo-artwork overlap it. */
main#top [data-install-artwork="ready"]::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

main#top [data-install-artwork="ready"] > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 560px;
  margin-inline: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  body:has(main#top) header {
    top: max(6px, env(safe-area-inset-top)) !important;
    padding-inline: 8px !important;
  }

  body:has(main#top) main#top {
    padding-top: 70px;
  }

  body:has(main#top) header > div {
    width: calc(100vw - 16px);
    height: 60px !important;
    padding-inline: 12px !important;
    border-radius: 19px;
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    backdrop-filter: blur(20px) saturate(165%);
    box-shadow: 0 8px 26px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.38);
  }

  body:has(main#top) header[class*="bg-[#070908]"] > div {
    box-shadow: 0 8px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
  }

  main#top [data-install-artwork="ready"] {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin-inline: auto !important;
  }
}
