/* astro.css */
.astroMd { color: rgba(255,255,255,0.72); line-height: 1.6; font-size: 14px; max-width: 72ch; }

.astroMd p { margin: 0; }
.astroMd p + p { margin-top: 10px; }

.astroMd ul, .astroMd ol { margin: 10px 0 0 20px; padding: 0; }
.astroMd li + li { margin-top: 6px; }

.astroMd h3 { margin: 12px 0 8px; font-size: 14px; color: rgba(255,255,255,0.92); }
.astroMd strong { color: rgba(255,255,255,0.92); }

.astroMd a { color: rgba(60,255,220,0.92); text-decoration: none; }
.astroMd a:hover { text-decoration: underline; }

.astroMd blockquote {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
}

/* Page wrapper: keep your existing body background from styles-space.css */
.astroPage {
  min-height: 100vh;
}

/*
  Sticky hero:
  - stays “fixed-like” under the header
  - avoids layout issues of position:fixed on mobile
*/
.astroHero {
  position: sticky;
  top: var(--headerH);
  z-index: 40;

  /* subtle glass pass so it reads as a persistent header zone */

  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.00));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.astroHeroInner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 18px 0 14px;
}

.astroHeroTitle {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.2px;
}

.astroHeroSub {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.5;
}
/* Hero morph hide/show */
.astroHero {
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(.2,.9,.2,1),
    filter 320ms ease;
  will-change: opacity, transform, filter;
}

.astroHero.isHidden {
  opacity: 0;
  transform: translateY(-12px);
  filter: blur(8px);
  pointer-events: none;
}

/* Sentinel doesn't take space visually */
#heroHideSentinel {
  height: 1px;
}

/* Content area */
.astroContent {
  padding: 16px 0 90px;
}

/* .astroContentInner {
  width: min(1100px, 92vw);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 18px;
} */
.astroContentInner {
  /* default: centered column */
  width: min(980px, 92vw);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* The large rectangle section blocks */
.astroCard {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(160px 120px at 20% 20%, rgba(255,255,255,0.10), rgba(255,255,255,0.0) 60%),
    radial-gradient(220px 160px at 80% 80%, rgba(60,255,220,0.10), rgba(60,255,220,0.0) 65%),
    radial-gradient(220px 160px at 25% 90%, rgba(160,90,255,0.10), rgba(160,90,255,0.0) 65%),
    rgba(0,0,0,0.24);

  box-shadow:
    0 10px 26px rgba(0,0,0,0.36),
    0 0 20px rgba(60,255,220,0.08),
    0 0 20px rgba(160,90,255,0.06);

  padding: 18px 18px 16px;
  overflow: hidden;
}

/* Card typography */
.astroCardTitle {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.astroCardText {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  font-size: 14px;
  max-width: 90ch;
}

.astroCardText + .astroCardText {
  margin-top: 10px;
}

/* Scroll “morph” animation: fade + slide-in + blur reduction */
.astroCard.reveal {
  opacity: 0;
  transform: translateX(64px);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}

.astroCard.reveal.isInView {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(.2,.9,.2,1),
    filter 520ms ease;
}

/* Small stagger support: JS sets --revealDelay */
.astroCard.reveal.isInView {
  transition-delay: var(--revealDelay, 0ms);
}

@media (min-width: 1100px) {
  .astroContentInner {
    /* target "about 60%" feel on wide screens, but keep readable caps */
    width: min(60vw, 1040px);
  }
}


@media (max-width: 620px) {
  .astroCard {
    padding: 16px 14px 14px;
  }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .astroHero {
    position: static;
  }

  .astroCard.reveal,
  .astroCard.reveal.isInView {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* NENB CTA Section */
.nenb-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: 200px;
}

.nenb-cta-box {
  background: rgba(20, 24, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  color: #ccc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
}

.nenb-cta-logo {
  width: 400px;
  height: 350px;
  margin-bottom: 1rem;
}

.nenb-cta-box p {
  margin: 0;
  font-size: 1.2rem;
}

#nenbCtaSection .nenb-cta-box {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#nenbCtaSection.isInView .nenb-cta-box {
  opacity: 1;
  transform: translateX(0);
}