/* ---------- 动效层 ---------- */
#bgMotes, #ripples { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
#bgMotes { z-index: 0; }
#ripples { z-index: 40; mix-blend-mode: screen; }
main, .foot { position: relative; z-index: 1; }

/* 首屏：全幅深空背景，文字压在左侧 */
.hero { position: relative; overflow: hidden; min-height: min(760px, 100vh); display: flex; align-items: center; background: #03060c; border-bottom: 0; }
.hero-text { position: relative; z-index: 2; width: 100%; }
.hero-text > * { max-width: 600px; }
.hero-visual { position: absolute; inset: 0; z-index: 0; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.hero-visual.ready canvas { opacity: 1; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,6,12,.82) 0%, rgba(3,6,12,.55) 38%, rgba(3,6,12,0) 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero .lede { color: #c9d3da; }
.hero .eyebrow { color: #8fd8ff; }
.hero .btn.ghost { background: rgba(3,6,12,.35); backdrop-filter: blur(4px); }

/* 首屏文字依次浮现 */
.hero-text > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero h1 { background: linear-gradient(100deg, var(--text) 30%, #bfeaff 50%, var(--text) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s cubic-bezier(.2,.7,.2,1) .08s both, sheen 7s ease-in-out 1.2s infinite; }
@keyframes sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.realm-grid .realm, .why-item, .steps li { transition: transform .25s, border-color .25s, box-shadow .25s; }
.reveal.in .realm, .reveal.in .why-item, .reveal.in .steps li { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.in .realm:nth-child(2), .reveal.in .why-item:nth-child(2), .reveal.in .steps li:nth-child(2) { animation-delay: .1s; }
.reveal.in .realm:nth-child(3), .reveal.in .why-item:nth-child(3), .reveal.in .steps li:nth-child(3) { animation-delay: .2s; }
.reveal.in .steps li:nth-child(4) { animation-delay: .3s; }
.why-item:hover, .steps li:hover, .realm:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -20px rgba(242,196,105,.35); }

/* 卡片流光描边 */
.realm.open { background-image: linear-gradient(160deg, rgba(242,196,105,.10), var(--bg2) 55%); }
.realm.open::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(242,196,105,.9) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 5s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --ang: 360deg; } }

/* 价格 */
.p-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; }
.p-price-num { font: 700 28px var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.expiry { color: var(--gold); font-size: 13px; }

/* 透明化各区块，让背景光尘透出来 */
.why-item, .steps li, .toc, .reader, .realm { background-color: rgba(20,26,30,.82); backdrop-filter: blur(2px); }

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 220px 0 64px; align-items: flex-end; }
  .hero-visual::after { background: linear-gradient(180deg, rgba(3,6,12,0) 0%, rgba(3,6,12,.35) 30%, rgba(3,6,12,.85) 62%, rgba(3,6,12,.9) 100%); }
  .hero-text > * { max-width: none; }
  .p-price { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero h1, .realm.open::before { animation: none !important; }
  .hero h1 { color: var(--text); background: none; }
}
[id] { scroll-margin-top: 72px; }

