body.root-home .topbar {
  position: relative;
  top: auto;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "brand"
    "status"
    "ticker"
    "nav";
  gap: 8px;
  width: min(calc(100vw - 18px), 1280px);
  margin: 8px auto 0;
  padding: 10px;
  text-align: center;
  justify-items: center;
  align-items: center;
  border: 1px solid rgba(214, 255, 127, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 5, 18, 0.96), rgba(5, 14, 12, 0.92)),
    radial-gradient(circle at 0% 12%, rgba(181, 110, 255, 0.2), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(214, 255, 127, 0.14), transparent 30%);
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(181, 110, 255, 0.12),
    inset 0 0 0 1px rgba(122, 247, 255, 0.06);
}

body.root-home .brand {
  grid-area: brand;
  justify-self: center;
  min-width: 0;
}

body.root-home .topbar-status {
  grid-area: status;
  min-height: 30px;
  max-width: min(760px, 100%);
  padding: 6px 10px;
  justify-content: center;
  border-color: rgba(214, 255, 127, 0.2);
  background:
    linear-gradient(135deg, rgba(181, 110, 255, 0.08), rgba(141, 255, 180, 0.055)),
    rgba(255, 255, 255, 0.035);
  text-align: center;
}

body.root-home .topbar-status + .topbar-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.root-home .topbar-ticker {
  grid-area: ticker;
  justify-self: center;
}

body.root-home .topnav {
  grid-area: nav;
  width: auto;
  max-width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  white-space: normal;
  align-self: center;
  min-width: 0;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.root-home .topnav::-webkit-scrollbar {
  display: none;
}

body.root-home .topnav a,
body.root-home .topnav-more summary {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(214, 255, 127, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(181, 110, 255, 0.1), rgba(214, 255, 127, 0.06)),
    rgba(255, 255, 255, 0.035);
  color: #f8fff4;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  text-shadow:
    0 0 10px rgba(214, 255, 127, 0.18),
    0 0 18px rgba(181, 110, 255, 0.12);
  cursor: pointer;
}

body.root-home .topnav a:hover,
body.root-home .topnav a:focus-visible,
body.root-home .topnav-more summary:hover,
body.root-home .topnav-more summary:focus-visible {
  border-color: rgba(214, 255, 127, 0.56);
  background:
    linear-gradient(135deg, rgba(181, 110, 255, 0.18), rgba(214, 255, 127, 0.13)),
    rgba(2, 6, 10, 0.58);
  color: #ffffff;
}

body.root-home .topnav-enter {
  background: linear-gradient(135deg, rgba(214, 255, 127, 0.24), rgba(181, 110, 255, 0.16));
  border-color: rgba(214, 255, 127, 0.5);
}

body.root-home .topnav-more {
  position: relative;
  flex: 0 0 auto;
}

body.root-home .topnav-more summary {
  list-style: none;
}

body.root-home .topnav-more summary::-webkit-details-marker {
  display: none;
}

body.root-home .topnav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(126px, 1fr));
  gap: 6px;
  min-width: 292px;
  padding: 8px;
  border: 1px solid rgba(214, 255, 127, 0.24);
  border-radius: 8px;
  background: rgba(4, 6, 12, 0.98);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(181, 110, 255, 0.16);
}

body.root-home .topnav-more:not([open]) .topnav-menu {
  display: none;
}

body.root-home .topnav-menu a {
  justify-content: start;
  min-height: 32px;
  width: 100%;
}

body.root-home .promo-banner,
body.root-home .hero-copy,
body.root-home .section-heading,
body.root-home .hero-panel,
body.root-home .trust-contract-panel,
body.root-home main,
body.root-home section,
body.root-home article {
  text-align: center;
}

body.root-home .hero-actions,
body.root-home .trust-contract-grid,
body.root-home .lane-banner {
  justify-content: center;
}

body.root-home .page-shell {
  padding-top: 0;
}

@media (max-width: 980px) {
  body.root-home .topbar {
    grid-template-areas:
      "brand"
      "status"
      "ticker"
      "nav";
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.root-home .topnav {
    justify-content: center;
    flex-wrap: wrap;
  }

  body.root-home .topnav-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  body.root-home .topbar {
    width: min(calc(100vw - 12px), 1500px);
    padding: 8px;
  }

  body.root-home .topbar-status {
    justify-content: center;
    text-align: center;
  }

  body.root-home .topnav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.root-home .topnav a,
  body.root-home .topnav-more summary {
    width: 100%;
    min-width: 0;
    padding: 8px 6px;
    font-size: 0.7rem;
  }

  body.root-home .topnav-more {
    min-width: 0;
  }

  body.root-home .topnav-menu {
    left: auto;
    right: 0;
    transform: none;
    grid-template-columns: 1fr;
    min-width: min(280px, calc(100vw - 24px));
  }
}
