/* Full-site Material extras — hero + light marketing polish */

/* .md-typeset alone loses to Material scheme colors in light mode — pin white on the dark hero. */
.nxpt-hero.md-typeset {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: min(72vh, 36rem);
  margin: 0;
  color: #fff;
  background: #000;
  overflow: hidden;
}

.nxpt-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nxpt-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.75;
}

.nxpt-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.75) 42%,
      rgba(0, 0, 0, 0.35) 72%,
      rgba(33, 150, 243, 0.14) 100%
    ),
    linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 48%);
}

.nxpt-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem 1.2rem 2.75rem;
  box-sizing: border-box;
}

.nxpt-hero.md-typeset .nxpt-hero__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.nxpt-hero__brand img {
  width: 2rem;
  height: 2rem;
}

/* Beat Material `.md-typeset h1` (scheme fg) — dark text on dark image in light mode. */
.nxpt-hero.md-typeset h1.nxpt-hero__headline {
  margin: 0 0 0.65rem;
  max-width: 22ch;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.nxpt-hero.md-typeset .nxpt-hero__lede {
  margin: 0 0 1.35rem;
  max-width: 42ch;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.nxpt-hero__cta {
  margin: 0;
}

.nxpt-hero .md-button {
  margin-right: 0.5rem;
  margin-bottom: 0.35rem;
}

.nxpt-hero.md-typeset .md-button:not(.md-button--primary) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.nxpt-hero .md-button--primary {
  background-color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
  color: #fff;
}

.nxpt-powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--md-default-fg-color--light);
}

.nxpt-powered-by h3 {
  margin: 0;
}

.nxpt-powered-by img {
  width: 499px;
  max-width: 100%;
  height: auto;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.1rem;
  box-sizing: content-box;
}

.nxpt-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.nxpt-feature-grid > * {
  border: 0.05rem solid var(--md-default-fg-color--lightest);
  border-left: 0.2rem solid var(--md-accent-fg-color);
  border-radius: 0.1rem;
  padding: 0.85rem 1rem;
  margin: 0;
}

.md-typeset .nxpt-status {
  display: inline-block;
  padding: 0.1em 0.45em;
  border-radius: 0.1rem;
  background: var(--md-accent-fg-color--transparent);
  color: var(--md-default-fg-color);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.md-typeset .nxpt-dl-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.md-typeset .nxpt-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.15rem;
  border: 0;
  border-radius: 0.1rem;
  background: transparent;
  color: var(--md-default-fg-color--light);
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.md-typeset .nxpt-copy-link:hover,
.md-typeset .nxpt-copy-link:focus-visible {
  color: var(--md-accent-fg-color);
  background: var(--md-accent-fg-color--transparent);
  outline: none;
}

.md-typeset .nxpt-copy-link--done {
  color: var(--md-accent-fg-color);
}

.md-typeset .nxpt-copy-link svg {
  width: 0.9rem;
  height: 0.9rem;
}
