:root {
  --eternal-gold-rgb: 214, 170, 75;
}

.eternal-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.eternal-atmosphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .62;
}

.eternal-atmosphere-glow {
  position: absolute;
  right: -18vw;
  bottom: -35vh;
  width: 68vw;
  height: 68vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--eternal-gold-rgb), .07), transparent 68%);
  filter: blur(20px);
}

.eternal-meteor {
  --meteor-delay: -3s;
  --meteor-duration: 16s;
  position: absolute;
  top: var(--meteor-top, 18%);
  left: -24vw;
  width: 148px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 225, 154, .18) 68%, rgba(255, 241, 204, .7));
  box-shadow: 20px 0 22px rgba(var(--eternal-gold-rgb), .12);
  opacity: 0;
  transform: rotate(-18deg) translate3d(0, 0, 0);
  animation: eternal-meteor-flight var(--meteor-duration) linear var(--meteor-delay) infinite;
}

.eternal-meteor::after {
  position: absolute;
  top: 50%;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe6a7;
  box-shadow: 0 0 14px rgba(255, 212, 112, .42);
  content: "";
  transform: translateY(-50%);
}

.eternal-meteor:nth-of-type(3) {
  --meteor-top: 43%;
  --meteor-delay: -4s;
  --meteor-duration: 22s;
  width: 82px;
  filter: blur(.25px);
}

.eternal-meteor:nth-of-type(4) {
  --meteor-top: 72%;
  --meteor-delay: -6s;
  --meteor-duration: 28s;
  width: 64px;
  filter: blur(.5px);
}

@keyframes eternal-meteor-flight {
  0%, 16% { opacity: 0; transform: rotate(-18deg) translate3d(0, 0, 0) scale(.78); }
  19% { opacity: .44; }
  38% { opacity: .12; transform: rotate(-18deg) translate3d(145vw, 20vh, 0) scale(1); }
  41%, 100% { opacity: 0; transform: rotate(-18deg) translate3d(155vw, 22vh, 0) scale(1); }
}

.eternal-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .68s ease, transform .68s cubic-bezier(.2, .7, .2, 1);
}

.reveal.eternal-reveal {
  animation: none;
}

.eternal-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card,
.pack-card,
.bundle-card {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.product-card:hover,
.pack-card:hover,
.bundle-card:hover {
  border-color: rgba(255, 225, 154, .42) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42), 0 0 28px rgba(var(--eternal-gold-rgb), .09) !important;
  transform: translateY(-5px) !important;
}

.product-body {
  padding: 20px;
}

.product-body h3,
.pack-card h2,
.bundle-card h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

.product-body h3 {
  font-size: 1.12rem;
  line-height: 1.28;
}

.product-body p,
.pack-card p,
.bundle-card .description {
  color: #aaa69d;
  line-height: 1.65;
}

.scripts-page::after,
body:has(.pack-grid)::after,
body:has(.bundle-grid)::after {
  position: fixed;
  z-index: 0;
  right: -20vw;
  bottom: -38vw;
  width: 72vw;
  height: 72vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--eternal-gold-rgb), .055), transparent 68%);
  content: "";
  pointer-events: none;
}

.scripts-page .store-section,
body:has(.pack-grid) .trust-strip,
body:has(.bundle-grid) .benefits {
  position: relative;
}

.scripts-page .store-section::after,
body:has(.pack-grid) .trust-strip::after,
body:has(.bundle-grid) .benefits::after {
  position: absolute;
  z-index: -1;
  inset: -40px -8vw;
  background: radial-gradient(ellipse at center, rgba(88, 207, 193, .025), transparent 68%);
  content: "";
  pointer-events: none;
}

.home-landing .landing-about,
.home-landing .landing-build,
.home-landing .landing-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-landing .landing-about::after,
.home-landing .landing-build::after,
.home-landing .landing-cta::after {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--eternal-gold-rgb), .055), transparent 70%);
  content: "";
  filter: blur(12px);
  pointer-events: none;
}

.home-landing .landing-about::after { top: -240px; right: -180px; }
.home-landing .landing-build::after { bottom: -270px; left: -180px; }
.home-landing .landing-cta::after { top: -320px; right: 12%; }

.page-tail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  margin-top: 72px;
  padding: 34px 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 154, .2);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(214, 170, 75, .12), rgba(13, 15, 20, .78) 42%, rgba(13, 15, 20, .62)),
    rgba(13, 15, 20, .7);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}

.page-tail::after {
  position: absolute;
  top: -90px;
  right: 8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 119, .1), transparent 68%);
  content: "";
  pointer-events: none;
}

.page-tail h2 {
  margin: 5px 0 9px;
  color: #f5f1e8;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  line-height: 1.1;
}

.page-tail p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: #aaa69d;
  font-size: .86rem;
  line-height: 1.65;
}

.page-tail > a {
  position: relative;
  z-index: 1;
  min-width: 170px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .eternal-meteor:nth-of-type(3),
  .eternal-meteor:nth-of-type(4) { display: none; }

  .product-card:hover,
  .pack-card:hover,
  .bundle-card:hover { transform: translateY(-2px) !important; }

  .page-tail { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .page-tail > a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .eternal-meteor { display: none; }
  .eternal-reveal { opacity: 1; transform: none; transition: none; }
}

/* Shared wide-page presentation */
.eternal-atmosphere-glow {
  transform: translate3d(0, var(--eternal-parallax, 0), 0);
  transition: transform .08s linear;
  will-change: transform;
}

.inner-catalog .nav,
.inner-catalog main,
.inner-catalog .catalog-page,
.docs-surface .nav,
.docs-surface main,
.support-surface .nav,
.support-surface main,
.support-surface footer,
.legal-surface .nav,
.legal-surface main,
.product-detail-page .home-pack-nav,
.product-detail-page .product-detail-shell {
  width: min(1480px, calc(100% - 48px));
  max-width: none;
}

.inner-catalog .backdrop,
.inner-catalog .site-backdrop,
.docs-surface .backdrop,
.support-surface .backdrop,
.legal-surface .backdrop,
.product-detail-page .site-backdrop {
  filter: saturate(1.14) brightness(1.04) contrast(1.02);
}

.inner-catalog .backdrop::after,
.inner-catalog .site-backdrop::after,
.docs-surface .backdrop::after,
.support-surface .backdrop::after,
.legal-surface .backdrop::after,
.product-detail-page .site-backdrop::after {
  transform: translate3d(0, var(--eternal-parallax, 0), 0);
  will-change: transform;
}

.inner-catalog .catalog-hero,
.inner-catalog .hero {
  max-width: 760px;
}

.inner-catalog .catalog-hero h1,
.inner-catalog .hero h1 {
  max-width: 14ch;
  font-size: 3.45rem;
  line-height: 1.02;
}

.bundles-surface .hero {
  max-width: none;
}

.bundles-surface .hero-copy {
  max-width: 760px;
}

.scripts-surface .store-section,
.packs-surface .trust-strip,
.bundles-surface .benefits,
.docs-surface .docs-shell,
.support-surface .support-strip,
.support-surface .content-section,
.support-surface .faq-section,
.support-surface .discord-band {
  position: relative;
  isolation: isolate;
}

.scripts-surface .store-section::before,
.packs-surface .trust-strip::before,
.bundles-surface .benefits::before,
.docs-surface .docs-shell::before,
.support-surface .support-strip::before {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--eternal-gold-rgb), .075), transparent 70%);
  filter: blur(22px);
  content: "";
  pointer-events: none;
}

.scripts-surface .store-section::before,
.docs-surface .docs-shell::before { top: 4%; right: -16%; }
.packs-surface .trust-strip::before,
.bundles-surface .benefits::before,
.support-surface .support-strip::before { bottom: -38%; left: -14%; }

.docs-surface main {
  padding-top: 124px;
}

.docs-surface .hero {
  max-width: 760px;
}

.docs-surface .hero h1 {
  font-size: 4.15rem;
  line-height: 1.02;
}

.support-surface main {
  padding-top: 124px;
}

.support-surface .hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 84px;
}

.support-surface .hero h1 {
  max-width: 680px;
  font-size: 3.7rem;
  line-height: 1.02;
}

.support-surface .support-strip article,
.support-surface .discord-band,
.docs-surface .sidebar,
.docs-surface .doc-content {
  box-shadow: 0 22px 70px rgba(0,0,0,.24);
}

@media (max-width: 1020px) {
  .inner-catalog .catalog-hero h1,
  .inner-catalog .hero h1,
  .docs-surface .hero h1,
  .support-surface .hero h1 {
    font-size: 3.15rem;
  }

  .support-surface .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 700px) {
  .inner-catalog .nav,
  .inner-catalog main,
  .inner-catalog .catalog-page,
  .docs-surface .nav,
  .docs-surface main,
  .support-surface .nav,
  .support-surface main,
  .support-surface footer,
  .legal-surface .nav,
  .legal-surface main,
  .product-detail-page .home-pack-nav,
  .product-detail-page .product-detail-shell {
    width: min(100% - 28px, 1480px);
  }

  .inner-catalog .catalog-hero h1,
  .inner-catalog .hero h1,
  .docs-surface .hero h1,
  .support-surface .hero h1 {
    font-size: 2.7rem;
  }

  .support-surface .hero {
    min-height: 0;
  }
}
