/* =====================================================================
   The Luna Dao — v97 Luxury Design System (Phase 1)
   Warm-dark, gold, glassmorphism. Loaded LAST so it overrides earlier
   theme variables across the whole storefront (Express/EJS stack).
   设计令牌：背景 #0A0806 / 暖奶油 #F5EDD8 / 金 #C9A84C（英文为默认界面语言）
   ===================================================================== */

:root {
  /* ---- new spec tokens ---- */
  --bg-primary: #0A0806;
  --bg-card: rgba(20, 16, 12, 0.75);
  --bg-modal: #14100C;
  --text-primary: #F5EDD8;
  --text-secondary: #9C8F7A;
  --text-muted: #6B5F50;
  --accent-gold: #C9A84C;
  --accent-rose: #B76E79;
  --accent-champagne: #D4AF7A;
  --accent-purple: #6B21A8;
  --hairline: rgba(201, 168, 76, 0.12);
  --hairline-strong: rgba(201, 168, 76, 0.22);
  --glass-border: rgba(201, 168, 76, 0.15);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --ease-lux: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- remap legacy variable names so the whole site warms coherently ---- */
  --bg-deep: #0A0806;
  --bg-section: #0E0A07;
  --bg-card-solid: #14100C;
  --gold: #C9A84C;
  --gold-light: #D4AF7A;
  --gold-dim: rgba(201, 168, 76, 0.3);
  --purple: #8B5FD6;
  --purple-light: #B79CE8;
  --blue: #8FB7C9;
  --text: #F5EDD8;
  --text-dim: #9C8F7A;
  --border: rgba(201, 168, 76, 0.12);
  --border-gold: rgba(201, 168, 76, 0.3);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.15);
}

/* ============ base ============ */
html { background: #0A0806; }
body {
  background: #0A0806;
  color: #F5EDD8;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, .hero-title, .section-header h2, .story-content h2 {
  font-family: var(--font-display);
  color: #F5EDD8;
}
::selection { background: rgba(201, 168, 76, 0.28); color: #F5EDD8; }

/* warm ambient wash that gently shifts across the whole canvas on scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(107, 33, 168, 0.16), transparent 60%),
    radial-gradient(900px 620px at 8% 26%, rgba(183, 110, 121, 0.08), transparent 62%),
    radial-gradient(1200px 900px at 50% 118%, rgba(201, 168, 76, 0.10), transparent 60%),
    #0A0806;
  pointer-events: none;
}

/* ============ film grain (0.03) ============ */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.4s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-1.5%, 1%); }
  66% { transform: translate(1%, -1.5%); }
  100% { transform: translate(0, 0); }
}

/* ============ glassmorphism utility ============ */
.glass-card,
.forecast-card.glass-card {
  background: rgba(20, 16, 12, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* dashed hairline divider helper */
.lux-divider { border: 0; border-top: 1px dashed rgba(201, 168, 76, 0.12); margin: 32px 0; }

/* ---- legacy purple surface warm-up (until their phase lands) ---- */
.compass-gateway {
  background: linear-gradient(160deg, rgba(32, 24, 17, 0.72), rgba(18, 14, 10, 0.8));
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(201, 168, 76, 0.05);
}

/* ---- truthful policy trust bar (replaces fabricated counters) ---- */
.trustbar-section { padding: 56px 0; }
.trustbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px dashed rgba(201, 168, 76, 0.12);
  border-bottom: 1px dashed rgba(201, 168, 76, 0.12);
}
.trustbar-item {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 26px 18px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: #9C8F7A;
  border-left: 1px dashed rgba(201, 168, 76, 0.1);
}
.trustbar-item:first-child { border-left: 0; }
.trustbar-ico { width: 22px; height: 22px; color: #C9A84C; flex: 0 0 22px; }
@media (max-width: 860px) {
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar-item:nth-child(odd) { border-left: 0; }
  .trustbar-item:nth-child(n+3) { border-top: 1px dashed rgba(201,168,76,.1); }
}

/* ============ unified CTA buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #C9A84C;
  background: transparent;
  color: #C9A84C;
  padding: 15px 38px;
  border-radius: 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s var(--ease-lux);
  text-decoration: none;
}
.btn:hover, .btn:focus-visible {
  background: #C9A84C;
  color: #0A0806;
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.25);
  border-color: #C9A84C;
}
.btn-primary {
  background: transparent;
  color: #C9A84C;
  border: 1px solid #C9A84C;
}
.btn-primary:hover { background: #C9A84C; color: #0A0806; }
.btn-outline { background: transparent; color: #C9A84C; border: 1px solid rgba(201, 168, 76, 0.55); }
.btn-outline:hover { background: #C9A84C; color: #0A0806; border-color: #C9A84C; }
.btn-large, .btn-lg { padding: 17px 42px; font-size: 14px; }

/* labels */
.section-eyebrow, .c-eyebrow, .fc-label, .blog-category, .product-intention {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================================================================
   NAVIGATION v97
   ===================================================================== */
.header#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: background 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
  border-bottom: 1px solid transparent;
}
.header#header.nv-scrolled {
  background: rgba(10, 8, 6, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.nv97-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 72px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nv97-logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: #F5EDD8;
  text-decoration: none;
  justify-self: start;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.nv97-logo .seal {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.5);
  color: #C9A84C; font-size: 15px;
  font-family: var(--font-display);
  background: rgba(201,168,76,0.06);
}
.nv97-links {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-self: center;
}
.nv97-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #9C8F7A;
  text-decoration: none;
  padding: 10px 0;
  position: relative;
  transition: color 0.25s var(--ease-lux);
  white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.nv97-link::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  width: 0; height: 1px; background: #C9A84C;
  transition: width 0.3s var(--ease-lux);
}
.nv97-link:hover, .nv97-item:hover .nv97-link, .nv97-link:focus-visible { color: #C9A84C; }
.nv97-link:hover::after, .nv97-item:hover .nv97-link::after { width: 100%; }
.nv97-free { color: #D4AF7A; }
.nv97-item { position: relative; }
.nv97-caret { font-size: 8px; margin-left: 5px; opacity: 0.8; }
.nv97-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 250px;
  padding: 12px;
  background: rgba(20, 16, 12, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.28s var(--ease-lux);
  display: flex; flex-direction: column;
}
.nv97-item:hover .nv97-drop, .nv97-item:focus-within .nv97-drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.nv97-drop a {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #F5EDD8;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 2px;
  transition: background 0.2s, color 0.2s;
}
.nv97-drop a small {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.6px; color: #C9A84C;
}
.nv97-drop a:hover { background: rgba(201,168,76,0.1); color: #C9A84C; }
.nv97-right { display: flex; align-items: center; gap: 14px; justify-self: end; }
.nv97-right .icon-btn { color: #D8CDB6; background: none; border: 0; cursor: pointer; display: inline-flex; padding: 4px; position: relative; transition: color 0.2s; }
.nv97-right .icon-btn:hover { color: #C9A84C; }
.nv97-right .hd-ico, .nv97-right svg { width: 19px; height: 19px; stroke: currentColor; }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #C9A84C; color: #0A0806;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.nv97-search input {
  background: transparent; border: 0; border-bottom: 1px solid rgba(201,168,76,0.25);
  color: #F5EDD8; font-family: var(--font-body); font-size: 13px;
  padding: 6px 4px; width: 130px; transition: width 0.3s, border-color 0.3s;
}
.nv97-search input:focus { width: 170px; outline: none; border-bottom-color: #C9A84C; }
.nv97-search input::placeholder { color: #6B5F50; }
.nv97-burger { display: none; }

/* =====================================================================
   HOMEPAGE — ACT 1 : CINEMATIC HERO
   ===================================================================== */
.hero-v97 {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 150px;
  background: #0A0806;
}
.hero-canvas-wrap { position: absolute; inset: 0; z-index: 0;
  background: url("/images/bg/luopan-bg.webp?v=96") no-repeat center right 2%;
  background-size: contain;
  -webkit-mask-image: radial-gradient(ellipse at 66% 50%, #000 26%, transparent 70%);
  mask-image: radial-gradient(ellipse at 66% 50%, #000 26%, transparent 70%);
  opacity: 0.72;
}
body.has-webgl-luopan .hero-canvas-wrap { background-image: none; -webkit-mask-image: none; mask-image: none; }
#heroLuopanCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-mask {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,8,6,0.92) 0%, rgba(10,8,6,0.62) 38%, rgba(10,8,6,0.12) 60%, rgba(10,8,6,0.5) 100%),
    radial-gradient(ellipse at 38% 46%, transparent 26%, rgba(10,8,6,0.55) 74%, rgba(10,8,6,0.92) 100%);
}
/* faint vertical light seam behind copy */
.hero-glow {
  position: absolute; z-index: 1; top: -10%; left: 12%;
  width: 46vw; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212,175,122,0.10), transparent);
  filter: blur(20px);
}
.hero-v97 .hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px;
}
.hero-copy { max-width: 580px; }
.hero-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: #C9A84C; margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 12px;
  opacity: 0; animation: heroRise 1s var(--ease-lux) 0.15s forwards;
}
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: rgba(201,168,76,0.6); }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -1.2px;
  color: #F5EDD8;
  margin: 0 0 24px;
  opacity: 0; animation: heroRise 1.1s var(--ease-lux) 0.3s forwards;
}
.hero-h1 em { font-style: italic; color: #D4AF7A; }
.hero-lead {
  font-size: 17px; line-height: 1.7; color: #9C8F7A;
  max-width: 480px; margin: 0 0 38px;
  opacity: 0; animation: heroRise 1.1s var(--ease-lux) 0.45s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  opacity: 0; animation: heroRise 1.1s var(--ease-lux) 0.6s forwards;
}
.hero-actions .btn-ghost-line {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: #9C8F7A; text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.35); padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
}
.hero-actions .btn-ghost-line:hover { color: #C9A84C; border-bottom-color: #C9A84C; }
.hero-inbox-note {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.6px;
  color: #6B5F50; margin-top: 16px;
  opacity: 0; animation: heroRise 1.1s var(--ease-lux) 0.72s forwards;
}
.hero-trustline {
  margin-top: 46px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: #9C8F7A;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  opacity: 0; animation: heroRise 1.1s var(--ease-lux) 0.85s forwards;
}
.hero-trustline span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trustline .dot { color: #C9A84C; }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* scroll hint */
.hero-scroll {
  position: absolute; bottom: 158px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2.4px;
  text-transform: uppercase; color: #6B5F50; text-decoration: none;
}
.hero-scroll .bar { width: 1px; height: 42px; background: linear-gradient(#C9A84C, transparent); animation: scrollPulse 2.2s var(--ease-lux) infinite; transform-origin: top; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---- bestseller strip overlapping hero bottom ---- */
.hero-strip {
  position: absolute; left: 0; right: 0; bottom: -1px;
  z-index: 5;
  padding: 0 48px;
}
.hero-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  transform: translateY(34%);
}
.hs-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: rgba(20,16,12,0.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  text-decoration: none; color: inherit;
  transition: transform 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux), border-color 0.35s;
}
.hs-card:hover { transform: translateY(-4px); box-shadow: 0 0 40px rgba(201,168,76,0.15); border-color: var(--hairline-strong); }
.hs-img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 8px; overflow: hidden; background: #14100C; }
.hs-img img { width: 100%; height: 100%; object-fit: cover; }
.hs-meta { min-width: 0; flex: 1; }
.hs-name { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: #F5EDD8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-price { font-family: var(--font-mono); font-size: 13px; color: #C9A84C; margin-top: 3px; }
.hs-tag { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.6px; color: #9C8F7A; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-add {
  flex: 0 0 auto;
  border: 1px solid #C9A84C; color: #C9A84C; background: transparent;
  border-radius: 24px; padding: 8px 15px; cursor: pointer;
  font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  transition: all 0.28s var(--ease-lux);
}
.hs-add:hover { background: #C9A84C; color: #0A0806; }

/* mobile hero fallback (static, no WebGL) */
.hero-static-bg { display: none; }

/* clear the overlapping bestseller strip on the first following section */
@media (min-width: 861px) {
  .hero-v97 + #compassSection { padding-top: 150px; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .nv97-links { gap: 20px; }
  .nv97-link { font-size: 10.5px; letter-spacing: 1px; }
  .nv97-inner { padding: 0 22px; }
  .nv97-logo { font-size: 20px; letter-spacing: 1.6px; }
  .nv97-logo .seal { width: 26px; height: 26px; font-size: 13px; }
}
@media (max-width: 1024px) {
  .nv97-links { display: none; }
  .nv97-burger { display: inline-flex; }
  .nv97-search { display: none; }
  .nv97-inner { grid-template-columns: auto 1fr auto; height: 64px; gap: 14px; }
  .hero-strip-inner { grid-template-columns: 1fr; transform: translateY(40%); }
  .hero-strip .hs-card:nth-child(n+2) { display: none; }
  .hero-scroll { bottom: 132px; }
}
@media (max-width: 860px) {
  .nv97-search { display: none; }
  .hero-v97 { padding: 104px 0 120px; min-height: auto; }
  #heroLuopanCanvas { display: none; }
  .hero-canvas-wrap { background: none; -webkit-mask-image: none; mask-image: none; }
  .hero-static-bg {
    display: block; position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
  }
  .hero-mask { background: radial-gradient(ellipse at 50% 36%, rgba(10,8,6,0.3) 0%, rgba(10,8,6,0.78) 70%, #0A0806 100%); }
  .hero-h1 { font-size: 40px; letter-spacing: -0.6px; }
  .hero-copy { max-width: 100%; }
  .hero-trustline { font-size: 9.5px; gap: 8px 14px; }
  .hero-strip { position: static; padding: 0 18px; margin-top: 40px; }
  .hero-strip-inner { transform: none; grid-template-columns: 1fr; }
  .hero-strip .hs-card:nth-child(n+2) { display: flex; }
  .hero-scroll { display: none; }
  section { scroll-margin-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .hero-kicker, .hero-h1, .hero-lead, .hero-actions, .hero-inbox-note, .hero-trustline { animation: none; opacity: 1; transform: none; }
  .hero-scroll .bar { animation: none; }
}

/* ================= PHASE 2 — ACT 2 / WARM SURFACES ================= */

/* Section vertical rhythm */
.act2-section { padding: 120px 0; }
@media (max-width: 860px){ .act2-section { padding: 80px 0; } }

/* Intention filter pills */
.intent-pills { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:40px 0 48px; }
.intent-pill {
  font-family: var(--font-mono); font-size:11px; letter-spacing:1px; text-transform:uppercase;
  color:#9C8F7A; background:transparent; cursor:pointer;
  border:1px solid rgba(201,168,76,0.18); border-radius:999px; padding:10px 24px;
  transition: border-color .25s, color .25s, background .25s;
}
.intent-pill:hover { border-color:#C9A84C; color:#C9A84C; }
.intent-pill.is-active { border-color:#C9A84C; color:#C9A84C; background:rgba(201,168,76,0.08); }

/* Product grid — warm glass cards */
.intent-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
@media (max-width:1024px){ .intent-grid { grid-template-columns:repeat(2,1fr); gap:22px; } }
@media (max-width:600px){ .intent-grid { grid-template-columns:1fr; } }
.intent-card {
  background:var(--glass-bg); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-border); border-radius:12px; overflow:hidden;
  box-shadow:0 8px 32px rgba(0,0,0,0.4);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
}
.intent-card:hover { transform:translateY(-8px); border-color:rgba(201,168,76,0.4); box-shadow:0 0 40px rgba(201,168,76,0.15); }
.intent-card.is-hidden { display:none; }
.intent-grid.is-empty::after { content:""; }

/* Energy tag pill on cards */
.energy-tag {
  display:inline-block; margin-bottom:8px; align-self:flex-start;
  font-family:var(--font-mono); font-size:10px; letter-spacing:.8px; text-transform:uppercase;
  color:#B76E79; background:rgba(183,110,121,0.14); border:1px solid rgba(183,110,121,0.3);
  padding:4px 12px; border-radius:999px;
}
.product-img-placeholder {
  background:linear-gradient(135deg,#1a140d,#241b10) !important;
  display:flex; align-items:center; justify-content:center; width:100%; height:100%;
}

/* Quiz entry card */
.quiz-entry {
  margin-top:56px; padding:36px 40px; display:flex; align-items:center; gap:28px;
  border:1px solid rgba(201,168,76,0.22);
}
.qe-visual { flex:0 0 64px; width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(201,168,76,0.3); background:rgba(201,168,76,0.06); }
.qe-ico { width:32px; height:32px; color:#C9A84C; }
.qe-body { flex:1; }
.qe-body h3 { font-family:var(--font-display); font-size:24px; color:#F5EDD8; margin:0 0 8px; }
.qe-body p { color:#9C8F7A; font-size:15px; line-height:1.6; margin:0; }
.qe-cta { flex:0 0 auto; }
@media (max-width:760px){ .quiz-entry { flex-direction:column; text-align:center; padding:30px 24px; } .qe-cta { width:100%; text-align:center; } }

/* ---- warm up legacy purple surfaces across homepage ---- */
.mood-card, .cat-card, .testimonial-card, .story-content, .community-card, .blog-card, .topic-card, .ec-card, .forecast-card {
  background-color: rgba(20,16,12,0.72);
  border-color: rgba(201,168,76,0.15);
}
.cat-card { --cat-color:#C9A84C !important; }
.blog-card-image { filter:saturate(.9) brightness(.92); }
.community-card { background:linear-gradient(160deg,rgba(32,24,17,.72),rgba(18,14,10,.82)) !important; }

/* Act2 header stacking */
.act2-section .section-header { display:block !important; text-align:center; max-width:680px; margin:0 auto; }
.act2-section .section-header .section-eyebrow { display:block; margin-bottom:14px; }
.act2-section .section-header h2 { font-family:var(--font-display); font-weight:500; font-size:clamp(26px,3.4vw,38px); letter-spacing:.5px; margin:0 0 14px; color:#F5EDD8; }
.act2-section .section-header .section-lead { color:#9C8F7A; font-size:15px; margin:0; }

/* ================= LUOPAN / COMPASS — WARM GOLD RECAST ================= */
.luopan-floor {
  background: radial-gradient(ellipse, hsla(42,90%,60%,.30), hsla(30,80%,45%,.10) 45%, transparent 72%) !important;
}
.lp-trigrams span {
  text-shadow:0 0 10px hsla(42,92%,62%,.85), 0 0 22px hsla(40,85%,55%,.35) !important;
}
.luopan-stage .r1 {
  background:
    conic-gradient(from 0deg, hsla(44,95%,74%,.5), hsla(34,80%,64%,.16) 26%, transparent 48%, hsla(44,95%,72%,.42) 72%, hsla(30,75%,60%,.22) 100%) !important;
  box-shadow:
    0 0 0 1px hsla(40,70%,34%,.5),
    inset 0 0 26px hsla(42,85%,60%,.22),
    0 0 54px hsla(42,85%,58%,.2), 0 0 90px hsla(38,75%,52%,.16) !important;
}
.luopan-stage .r2 {
  border:1px dashed hsla(44,85%,72%,.4) !important;
  box-shadow: inset 0 0 18px hsla(40,80%,60%,.12) !important;
}
.luopan-stage .r3 {
  background: radial-gradient(circle at 36% 28%, hsla(34,60%,30%,.95), hsl(28,55%,9%) 76%) !important;
  box-shadow:
    inset 0 10px 30px hsla(42,85%,64%,.28),
    inset 0 -16px 34px hsla(28,80%,4%,.85),
    inset 0 2px 7px hsla(44,100%,88%,.35),
    0 0 46px hsla(42,85%,58%,.22) !important;
}
.luopan-stage .r3::before { box-shadow: inset 0 0 18px hsla(42,85%,64%,.18) !important; }
.luopan-stage .r4 {
  background: radial-gradient(circle at 40% 30%, hsl(32,55%,20%), hsl(26,60%,7%) 76%) !important;
  box-shadow:
    0 0 0 2px hsla(44,92%,70%,.85),
    0 0 0 5px hsla(38,70%,34%,.4),
    0 10px 30px hsla(42,85%,48%,.4),
    inset 0 5px 16px hsla(42,85%,66%,.34),
    inset 0 -10px 20px hsla(26,90%,3%,.85) !important;
}
.lp-hubglow {
  background: radial-gradient(circle, hsla(44,96%,72%,.30) 0%, hsla(34,85%,60%,.16) 38%, transparent 66%) !important;
}
.luopan-stage .lp-taiji {
  filter: drop-shadow(0 0 14px hsla(44,95%,68%,.85)) drop-shadow(0 0 30px hsla(40,88%,60%,.45)) !important;
}
@keyframes lpTaijiPulse {
  0%,100%{ transform:scale(1); filter:drop-shadow(0 0 12px hsla(44,95%,68%,.8)) drop-shadow(0 0 26px hsla(40,88%,60%,.4));}
  50%{ transform:scale(1.07); filter:drop-shadow(0 0 20px hsla(44,95%,74%,.95)) drop-shadow(0 0 44px hsla(42,90%,64%,.55));}
}

/* support dock warm */
.support-panel {
  background:linear-gradient(165deg, rgba(32,24,17,.97), rgba(16,12,9,.98)) !important;
  box-shadow:0 30px 90px rgba(0,0,0,.65), inset 0 0 50px rgba(201,168,76,.05) !important;
  color:#F5EDD8 !important;
}

/* ================= COMPASS PAGE — WARM GLASS ================= */
:root { --purple-light:#D4AF7A; }
.compass-page .intention-card {
  background:linear-gradient(165deg, rgba(32,24,17,.6), rgba(18,14,10,.7)) !important;
  border:1px solid rgba(201,168,76,.18) !important;
}
.compass-page .intention-card:hover {
  border-color:#C9A84C !important;
  box-shadow:0 18px 44px rgba(0,0,0,.55), 0 0 30px rgba(201,168,76,.14) !important;
}
.compass-page .intention-card.selected {
  border-color:#C9A84C !important;
  background:linear-gradient(165deg, rgba(201,168,76,.16), rgba(40,30,18,.72)) !important;
  box-shadow:0 0 0 1px #C9A84C, 0 0 36px rgba(201,168,76,.25) !important;
}
.hex-card {
  background:linear-gradient(170deg, rgba(38,29,19,.66), rgba(18,14,10,.78)) !important;
  border:1px solid rgba(201,168,76,.22) !important;
  box-shadow:0 22px 60px rgba(0,0,0,.5) !important;
}
.hex-zh, .ct-meta { color:#D4AF7A !important; }
.ct-crystal, .ritual-form { background:rgba(20,16,12,.78) !important; border:1px solid rgba(201,168,76,.16) !important; }
.deep-paywall {
  background:linear-gradient(170deg, rgba(38,29,19,.72), rgba(16,12,9,.82)) !important;
  border:1px solid rgba(201,168,76,.22) !important;
}
.plan-col { background:rgba(20,16,12,.62) !important; border:1px solid rgba(201,168,76,.16) !important; }
.plan-featured {
  border-color:#C9A84C !important;
  background:linear-gradient(170deg, rgba(201,168,76,.14), rgba(34,26,16,.74)) !important;
  box-shadow:0 0 40px rgba(201,168,76,.15) !important;
}
.rec-card { background:rgba(20,16,12,.7) !important; border:1px solid rgba(201,168,76,.16) !important; }
.rec-card:hover { border-color:#C9A84C !important; box-shadow:0 18px 44px rgba(0,0,0,.5) !important; }
.pair-chip { background:rgba(183,110,121,.16) !important; border:1px solid rgba(183,110,121,.4) !important; color:#D4AF7A !important; }
.payment-box {
  background:linear-gradient(170deg,#221a10,#14100a) !important;
  border:1px solid rgba(201,168,76,.25) !important;
}
.wa-msg { background:rgba(12,9,6,.6) !important; border:1px solid rgba(201,168,76,.14) !important; }

/* ================= PRODUCT — TRACK B + STICKY BUY ================= */
.track-b-bridge {
  margin:20px 0 4px; padding:20px 22px;
  background:rgba(20,16,12,.7); border:1px solid rgba(201,168,76,.18); border-radius:12px;
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
}
.track-b-bridge .tb-q { color:#9C8F7A; font-size:14px; margin:0 0 8px; }
.track-b-bridge .tb-link { font-family:var(--font-body); font-size:15px; color:#C9A84C; text-decoration:none; letter-spacing:.3px; }
.track-b-bridge .tb-link:hover { text-decoration:underline; }
.track-b-bridge .tb-note { font-family:var(--font-mono); font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:#6B5F50; margin:8px 0 10px; }
.track-b-bridge .tb-free { font-size:13px; color:#9C8F7A; text-decoration:none; }
.track-b-bridge .tb-free:hover { color:#C9A84C; }

.sticky-buybar { display:none; }
@media (max-width:860px){
  .sticky-buybar {
    display:flex; align-items:center; gap:14px;
    position:fixed; left:0; right:0; bottom:0; z-index:900;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:rgba(14,11,8,.92); -webkit-backdrop-filter:blur(18px) saturate(1.3); backdrop-filter:blur(18px) saturate(1.3);
    border-top:1px solid rgba(201,168,76,.22);
    transform:translateY(120%); transition:transform .35s cubic-bezier(.4,0,.2,1);
  }
  .sticky-buybar.is-visible { transform:translateY(0); }
  .sbb-info { flex:1; display:flex; flex-direction:column; min-width:0; }
  .sbb-name { font-size:13px; color:#F5EDD8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .sbb-price { font-family:var(--font-mono); font-size:15px; color:#C9A84C; }
  .sbb-btn { flex:0 0 auto; padding:13px 26px; }
  body.has-sticky-bar { padding-bottom:76px; }
}

/* ================= SCROLL-DRIVEN 3D SCENE ================= */
#scrollScene {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none; display: block;
}
/* when WebGL 3D scene is active, retire the 2D cosmic canvas */
body.has-scroll-3d #cosmic-bg { display: none !important; }
/* keep all real content above the fixed 3D canvas */
body.has-scroll-3d header,
body.has-scroll-3d .announcement-bar,
body.has-scroll-3d main,
body.has-scroll-3d section,
body.has-scroll-3d footer,
body.has-scroll-3d .support-dock { position: relative; z-index: 1; }
body.has-scroll-3d .nv97-header,
body.has-scroll-3d header { z-index: 1000; }
body.has-scroll-3d .support-dock { z-index: 1400; }
body.has-scroll-3d .modal,
body.has-scroll-3d .modal-overlay,
body.has-scroll-3d [class*="modal"] { z-index: 1600; }

/* cursor-following warm light leak (cinematic, non-interactive) */
#lightLeak {
  position: fixed; inset: 0; z-index: 9985; pointer-events: none;
  opacity: 0.9;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(201,168,76,0.07) 0%,
    rgba(183,110,121,0.03) 28%,
    transparent 52%
  );
  transition: background 0.25s ease-out;
}
@media (max-width: 991px) { #lightLeak { display: none; } }

/* ================= CONTINUOUS CINEMATIC CANVAS (v8.14) ================= */
/* warm depth base behind the fixed WebGL canvas so no band is flat black */
body {
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(120,86,34,.20) 0%, rgba(10,8,6,0) 46%),
    radial-gradient(100% 70% at 12% 30%, rgba(112,60,64,.12) 0%, rgba(10,8,6,0) 52%),
    radial-gradient(140% 100% at 50% 100%, #120d08 0%, #0A0806 60%, #070503 100%) !important;
  background-attachment: fixed !important;
}
/* when the persistent 3D scene is live, the hero becomes transparent and
   the fixed canvas (luopan + nebula + stars) becomes one continuous backdrop */
body.has-scroll-3d .hero-v97 { background: transparent !important; }
body.has-scroll-3d .hero-canvas-wrap,
body.has-scroll-3d .hero-static-bg { display: none !important; }
/* keep a legibility scrim only behind the hero copy, not a full fill */
body.has-scroll-3d .hero-mask {
  background: linear-gradient(90deg, rgba(8,6,4,.86) 0%, rgba(8,6,4,.5) 38%, rgba(8,6,4,0) 62%) !important;
}
/* warm the footer so it joins the same canvas instead of a blue-black slab */
.footer { background: linear-gradient(180deg, rgba(10,8,6,0) 0%, rgba(12,9,6,.86) 34%, rgba(9,7,5,.94) 100%) !important; }

/* ============ CONTINUOUS CINEMATIC CANVAS v8.15 (static layers) ============ */
#three-canvas { display: none; position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
body.has-three #three-canvas { display: block; }
#fusion-layer { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#fusion-layer > * { position: absolute; inset: 0; pointer-events: none; }
#fusion-layer .vignette {
  background: radial-gradient(ellipse at center, transparent 0%, transparent 42%, rgba(10,8,6,.42) 82%, rgba(8,6,4,.78) 100%);
}
#fusion-layer .film-grain {
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: lunaGrain .5s steps(2) infinite;
}
@keyframes lunaGrain {
  0%,100% { transform: translate(0,0); } 25% { transform: translate(-2%,-2%); }
  50% { transform: translate(2%,1%); } 75% { transform: translate(-1%,2%); }
}
#fusion-layer .light-leak {
  background: radial-gradient(circle 420px at var(--mouse-x,50%) var(--mouse-y,50%), rgba(201,168,76,.07) 0%, transparent 70%);
}
@media (prefers-reduced-motion: reduce) { #fusion-layer .film-grain { animation: none; } }

/* lift real content above the continuous canvas */
.main-content { position: relative; z-index: 20; }
.footer { position: relative; z-index: 20; }

/* warm depth base so no band is ever flat black */
body {
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(120,86,34,.20) 0%, rgba(10,8,6,0) 46%),
    radial-gradient(100% 70% at 12% 30%, rgba(112,60,64,.12) 0%, rgba(10,8,6,0) 52%),
    radial-gradient(140% 100% at 50% 100%, #120d08 0%, #0A0806 60%, #070503 100%) !important;
  background-attachment: fixed !important;
}

/* when 3D is live: hide the 2D canvas and the hero's own artwork, make every
   section wrapper transparent so ONE fixed canvas runs behind the whole page */
body.has-three #cosmic-bg { display: none !important; }
body.has-three section,
body.has-three .hero-v97,
body.has-three .main-content { background: transparent !important; }
body.has-three .hero-v97 { background: transparent !important; }
body.has-three .hero-canvas-wrap,
body.has-three .hero-static-bg { display: none !important; }
body.has-three .hero-mask {
  background: linear-gradient(90deg, rgba(8,6,4,.86) 0%, rgba(8,6,4,.5) 38%, rgba(8,6,4,0) 62%) !important;
}
/* glass cards stay readable; only section wrappers go transparent */
body.has-three .footer { background: linear-gradient(180deg, rgba(10,8,6,0) 0%, rgba(12,9,6,.86) 34%, rgba(9,7,5,.94) 100%) !important; }
