/* Lunaris landing - theme đêm trăng. Không dùng thư viện ngoài; font tự host (OFL). */
@font-face { font-family: 'Cormorant'; src: url('assets/fonts/CormorantGaramond_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('assets/fonts/CormorantGaramond_600SemiBold_Italic.ttf') format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('assets/fonts/CormorantGaramond_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'BeVietnam'; src: url('assets/fonts/BeVietnamPro_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BeVietnam'; src: url('assets/fonts/BeVietnamPro_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --night-0: #07061a;
  --night-1: #0b0920;
  --night-2: #151236;
  --night-3: #221d4f;
  --ink: #ece6f7;
  --ink-soft: #b9b0d6;
  --muted: #8d84b3;
  --moon: #f3e3b3;
  --moon-deep: #d9b867;
  --lavender: #b9a4ff;
  --rose: #ff9ec7;
  --zalo: #0a68ff;
  --messenger: linear-gradient(135deg, #0a7cff 0%, #8a3ffc 55%, #e0457b 100%);
  --radius: 18px;
  --card-ratio: 1112 / 1920;
  --serif: 'Cormorant', 'Times New Roman', serif;
  --sans: 'BeVietnam', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rail: 92px;
}

* { box-sizing: border-box; }
/* nền đặt ở html (không ở body) để canvas trời sao z-index âm không bị nền body che */
html {
  scroll-behavior: smooth; background-color: var(--night-0); background-attachment: fixed;
  background-image: radial-gradient(1200px 800px at 75% -10%, #2a2163 0%, transparent 60%),
    radial-gradient(900px 700px at -10% 40%, #1b1648 0%, transparent 60%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-0) 100%);
}
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.6rem; }
em { font-style: italic; color: var(--moon); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--lavender); margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; justify-content: center; }
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 36rem; }

/* ---------- nền trời ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: -1; pointer-events: none; opacity: .35; filter: blur(60px);
  background: conic-gradient(from 200deg at 50% 50%, transparent 0deg, #5b3fd6 60deg, transparent 120deg, #c86bd9 200deg, transparent 260deg);
  animation: aurora 28s linear infinite;
}
@keyframes aurora { to { transform: rotate(360deg); } }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-right)) 18px calc(var(--rail) + 8px + env(safe-area-inset-left));
  transition: background .4s, backdrop-filter .4s;
}
.topbar.scrolled { background: rgba(9, 7, 28, .65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--serif); font-size: 1.6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--moon); }
.brand-moon { width: 26px; height: 26px; fill: var(--moon); filter: drop-shadow(0 0 10px rgba(243, 227, 179, .7)); }
.topbar-cta {
  text-decoration: none; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(243, 227, 179, .45);
  color: var(--moon); transition: background .3s, color .3s;
}
.topbar-cta:hover { background: var(--moon); color: var(--night-1); }

/* ---------- menu pha trăng ---------- */
.phases {
  position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
  border-right: 1px solid rgba(185, 164, 255, .12); background: linear-gradient(90deg, rgba(7, 6, 26, .7), rgba(7, 6, 26, 0));
}
.phases::before { content: ''; position: absolute; top: 18%; bottom: 18%; left: 50%; width: 1px; background: linear-gradient(transparent, rgba(243, 227, 179, .35), transparent); }
.phases a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.phases a span { opacity: 0; transform: translateX(-6px); transition: .3s; position: absolute; left: 62px; white-space: nowrap; background: rgba(21, 18, 54, .95); padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(185, 164, 255, .25); color: var(--ink); }
.phases a:hover span, .phases a:focus-visible span { opacity: 1; transform: none; }
.ph { width: 22px; height: 22px; border-radius: 50%; position: relative; background: var(--night-3); box-shadow: inset 0 0 0 1px rgba(243, 227, 179, .35); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.ph::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--moon); }
.ph-0::after { transform: translateX(100%); }            /* trăng non */
.ph-1::after { clip-path: inset(0 0 0 70%); }             /* lưỡi liềm */
.ph-2::after { clip-path: inset(0 0 0 50%); }             /* bán nguyệt */
.ph-3::after { clip-path: ellipse(70% 100% at 80% 50%); } /* trăng khuyết */
.ph-4::after { transform: none; }                          /* trăng tròn */
.phases a.active .ph { transform: scale(1.35); box-shadow: inset 0 0 0 1px var(--moon), 0 0 18px rgba(243, 227, 179, .65); }
.phases a.active { color: var(--moon); }

main, .footer { padding-left: var(--rail); }
section { position: relative; padding: clamp(80px, 12vh, 140px) clamp(16px, 5vw, 72px); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }

/* ---------- nút ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .98rem var(--sans); text-decoration: none; color: #fff; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn-zalo { background: var(--zalo); box-shadow: 0 10px 30px -10px rgba(10, 104, 255, .8); }
.btn-messenger { background: var(--messenger); box-shadow: 0 10px 30px -10px rgba(138, 63, 252, .8); }
.btn-ghost { background: transparent; color: var(--moon); box-shadow: inset 0 0 0 1px rgba(243, 227, 179, .45); }
.btn.big { padding: 1.05rem 1.8rem; font-size: 1.05rem; }

/* ---------- 1. hero ---------- */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem; padding-top: 120px; }
/* lịch trăng đêm nay */
.tonight { display: inline-flex; align-items: center; gap: 14px; margin-top: 2rem; padding: .8rem 1.2rem .8rem .9rem; border-radius: 16px; background: rgba(21, 18, 54, .55); border: 1px solid rgba(243, 227, 179, .2); }
.tonight-moon { width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--moon); box-shadow: 0 0 18px rgba(243, 227, 179, .45); position: relative; overflow: hidden; }
.tonight-moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #1a1540; transform: translateX(var(--shadow, 0%)); }
.tonight-label { margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lavender); }
.tonight-text { margin: 0; color: var(--ink); font-size: .95rem; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--muted); text-decoration: none; font-size: .85rem; letter-spacing: .1em; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

.altar { position: relative; width: min(560px, 100%); aspect-ratio: 1 / 1.02; margin: 0 auto; }
.moon {
  position: absolute; left: 50%; top: 2%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff8de 0%, var(--moon) 38%, var(--moon-deep) 78%, #8f7640 100%);
  box-shadow: 0 0 60px 10px rgba(243, 227, 179, .35), 0 0 160px 40px rgba(185, 164, 255, .18);
  animation: moonGlow 6s ease-in-out infinite;
}
.moon-craters { position: absolute; inset: 0; border-radius: 50%; opacity: .25;
  background: radial-gradient(circle at 62% 40%, #8f7640 0 7%, transparent 8%), radial-gradient(circle at 40% 66%, #8f7640 0 5%, transparent 6%),
    radial-gradient(circle at 70% 70%, #8f7640 0 3.5%, transparent 4.5%), radial-gradient(circle at 30% 38%, #8f7640 0 3%, transparent 4%); }
/* khăn trải bàn: elip ánh trăng hắt xuống */
.altar-cloth { position: absolute; left: 4%; right: 4%; bottom: 6%; height: 46%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(185, 164, 255, .22), rgba(43, 35, 102, .35) 45%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(243, 227, 179, .12); }
.deal { position: absolute; inset: 0; }
.deal-card {
  --w: 23%;
  position: absolute; left: 50%; top: 20%; width: var(--w); aspect-ratio: var(--card-ratio); margin-left: calc(var(--w) / -2);
  perspective: 1000px; cursor: pointer; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .5s; font-size: 18px;
}
.deal-card .upright { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.deal-card.flipped .upright { transform: rotateY(180deg); }
.deal-card.flipped .face.front { box-shadow: 0 0 0 1px var(--moon), 0 0 34px rgba(243, 227, 179, .45), 0 14px 30px rgba(0, 0, 0, .6); }
.deal-label { position: absolute; left: -20%; right: -20%; top: calc(100% + 8px); text-align: center; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lavender); opacity: 0; transition: opacity .6s; }
.deal-card.flipped .deal-label { opacity: 1; }
.moon-caption { position: absolute; left: 0; right: 0; bottom: -8px; text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 1.15rem; min-height: 1.6em; transition: opacity .4s; }
@keyframes moonGlow { 50% { box-shadow: 0 0 80px 18px rgba(243, 227, 179, .45), 0 0 200px 60px rgba(185, 164, 255, .22); } }
.moon-caption { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 1.15rem; min-height: 1.6em; transition: opacity .4s; }

/* lá bài 2 mặt dùng chung */
.face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.face.front { transform: rotateY(180deg); background: #111; box-shadow: 0 0 0 1px rgba(243, 227, 179, .5), 0 12px 30px rgba(0, 0, 0, .6); }
.face.front img { width: 100%; height: 100%; object-fit: cover; }
.face.back, .card-back {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 17%, rgba(243, 227, 179, .85) 17.5% 18.5%, transparent 19%),
    radial-gradient(circle at 56% 47%, var(--night-2) 0 13%, transparent 13.5%),
    radial-gradient(circle at 50% 50%, var(--moon) 0 16%, transparent 16.5%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 9px, rgba(185, 164, 255, .08) 9px 10px),
    linear-gradient(160deg, #2b2366 0%, #15113b 55%, #0d0a28 100%);
  box-shadow: inset 0 0 0 3px var(--night-1), inset 0 0 0 4px rgba(243, 227, 179, .6), 0 10px 26px rgba(0, 0, 0, .55);
}
.face.back::before, .card-back::before {
  content: '✦'; position: absolute; top: 9%; left: 0; right: 0; text-align: center; color: var(--moon); font-size: .8em; opacity: .8;
}
.face.back::after, .card-back::after {
  content: '✦'; position: absolute; bottom: 9%; left: 0; right: 0; text-align: center; color: var(--moon); font-size: .8em; opacity: .8;
}

/* ---------- 2. rút thử ---------- */
.fan { position: relative; height: clamp(260px, 34vw, 360px); max-width: 1100px; margin: 0 auto; }
.fan-card {
  --w: clamp(70px, 8vw, 110px);
  position: absolute; left: 50%; bottom: 0; width: var(--w); aspect-ratio: var(--card-ratio); margin-left: calc(var(--w) / -2);
  transform-origin: 50% 160%; border: 0; padding: 0; background: none; cursor: pointer; font-size: 14px;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .3s, opacity .4s;
}
.fan-card .card-back { position: absolute; inset: 0; border-radius: 10px; }
.fan-card:hover, .fan-card:focus-visible { filter: drop-shadow(0 0 18px rgba(243, 227, 179, .8)); outline: none; }
.fan-card:hover, .fan-card:focus-visible { z-index: 50 !important; }
.fan.shuffling .fan-card { transform: translate(0, -10px) rotate(0deg) !important; }
.fan.picked .fan-card:not(.chosen) { opacity: .15; pointer-events: none; }
.fan-card.chosen { opacity: 0; }
.draw-actions { text-align: center; margin-top: 5rem; position: relative; z-index: 30; }

.reveal-panel { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1000px; margin: 3rem auto 0; }
.reveal-panel[hidden] { display: none; }
.reveal-card { perspective: 1400px; }
.reveal-card .flip { position: relative; width: 100%; aspect-ratio: var(--card-ratio); transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); font-size: 24px; }
.reveal-card.open .flip { transform: rotateY(180deg); }
.reveal-card.open .face.front { box-shadow: 0 0 0 1px var(--moon), 0 0 60px rgba(243, 227, 179, .45), 0 20px 50px rgba(0, 0, 0, .6); }
.reveal-text h3 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--moon); }
.keys { color: var(--lavender); letter-spacing: .06em; }
.note { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(185, 164, 255, .08); border: 1px solid rgba(185, 164, 255, .2); color: var(--ink-soft); font-size: .95rem; }

/* ---------- 3. hành trình (chòm sao) ---------- */
.constellation { position: relative; max-width: 1100px; height: 660px; margin: 0 auto; }
.constellation-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation-lines path { fill: none; stroke: rgba(243, 227, 179, .55); stroke-width: 1.4; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.6s ease; vector-effect: non-scaling-stroke; }
.constellation.drawn .constellation-lines path { stroke-dashoffset: 0; }
.star-step { position: absolute; left: var(--x); top: var(--y); width: min(250px, 22vw); translate: -12px -12px; }
.star-dot { display: block; width: 24px; height: 24px; margin-bottom: 12px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, var(--moon) 30%, transparent 70%); box-shadow: 0 0 22px 6px rgba(243, 227, 179, .55); animation: twinkle 3s ease-in-out infinite; }
.star-step:nth-child(3) .star-dot { animation-delay: .6s; }
.star-step:nth-child(4) .star-dot { animation-delay: 1.2s; }
.star-step:nth-child(5) .star-dot { animation-delay: 1.8s; }
@keyframes twinkle { 50% { transform: scale(.7); opacity: .7; } }
.star-step h3 { color: var(--moon); }
.star-step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.star-step:nth-of-type(4) { translate: calc(-100% + 12px) -12px; text-align: right; }
.star-step:nth-of-type(4) .star-dot { margin-left: auto; }

/* ---------- 4. dải băng kiểu trải ---------- */
.ribbon { padding: 28px 0; overflow: hidden; border-block: 1px solid rgba(243, 227, 179, .15); background: rgba(21, 18, 54, .35); transform: rotate(-2deg); margin: 40px 0; }
.ribbon-track { display: flex; gap: 48px; padding-right: 48px; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.spread-chip { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-family: var(--serif); font-size: 1.35rem; color: var(--ink-soft); }
.spread-chip b { color: var(--moon); font-weight: 600; }
.mini { display: flex; gap: 3px; align-items: flex-end; }
.mini i { width: 9px; height: 15px; border-radius: 2px; background: linear-gradient(160deg, var(--lavender), var(--night-3)); box-shadow: 0 0 0 1px rgba(243, 227, 179, .5); }

/* ---------- 5. mẫu trò chuyện ---------- */
.sample { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1150px; margin: 0 auto; }
.sample .section-head { grid-column: 1 / -1; margin-bottom: 1rem; }
.phone { justify-self: end; width: min(380px, 100%); border-radius: 34px; padding: 14px; background: linear-gradient(160deg, #241e56, #0e0b2b); box-shadow: 0 0 0 1px rgba(243, 227, 179, .25), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.phone-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; font-weight: 600; border-bottom: 1px solid rgba(185, 164, 255, .15); }
.phone-head small { color: #6ee7a8; font-weight: 400; margin-left: auto; }
.dot-moon { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8de, var(--moon-deep)); box-shadow: 0 0 10px rgba(243, 227, 179, .6); }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 6px 6px; }
.bubble { margin: 0; max-width: 85%; padding: .65rem .9rem; border-radius: 16px; font-size: .9rem; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: .5s; }
.bubble.me { align-self: flex-end; background: var(--zalo); border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: #2a2463; border-bottom-left-radius: 4px; }
.bubble.list { border-left: 2px solid var(--moon); }
.phone.play .bubble { opacity: 1; transform: none; }
.typing { display: flex; gap: 4px; padding: 6px 10px; margin: 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.sample-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.sample-points li { padding-left: 2rem; position: relative; color: var(--ink-soft); }
.sample-points li::before { content: '☾'; position: absolute; left: 0; top: -2px; color: var(--moon); font-size: 1.2rem; }
.sample-points b { color: var(--ink); }

/* ---------- 6. gói ---------- */
.offer-cards { display: flex; justify-content: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; perspective: 1200px; }
.offer {
  position: relative; width: min(340px, 100%); aspect-ratio: 1112 / 1700; padding: 2.2rem 1.8rem 2rem; border-radius: 22px;
  background: linear-gradient(170deg, rgba(43, 35, 102, .9), rgba(13, 10, 40, .95));
  box-shadow: inset 0 0 0 1px rgba(243, 227, 179, .35), inset 0 0 0 8px rgba(11, 9, 32, .9), inset 0 0 0 9px rgba(243, 227, 179, .2), 0 30px 60px -25px rgba(0, 0, 0, .9);
  display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s;
}
.offer-feature { box-shadow: inset 0 0 0 1px var(--moon), inset 0 0 0 8px rgba(11, 9, 32, .9), inset 0 0 0 9px rgba(243, 227, 179, .45), 0 0 60px -10px rgba(243, 227, 179, .35), 0 30px 60px -25px rgba(0, 0, 0, .9); }
.offer.reveal { transition: opacity .9s ease, transform .2s ease-out, box-shadow .3s; }
.offer.reveal:not(.in) { transition: opacity .9s ease, transform .9s ease; }
.offer-num { font-family: var(--serif); font-size: 1rem; letter-spacing: .3em; color: var(--moon); text-align: center; margin-bottom: .5rem; }
.offer h3 { text-align: center; font-size: 2rem; }
.offer .price { text-align: center; font-family: var(--serif); font-size: 2.6rem; color: var(--moon); margin: 0 0 1rem; }
.offer .price small { font-size: 1rem; color: var(--muted); font-family: var(--sans); }
.offer ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: .6rem; color: var(--ink-soft); font-size: .95rem; }
.offer li::before { content: '✧ '; color: var(--lavender); }
.offer .btn { justify-content: center; margin-top: 1.4rem; transform: translateZ(30px); }
.offer-sign { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: rgba(243, 227, 179, .35); }

/* ---------- 7. hỏi đáp ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: rgba(21, 18, 54, .6); border: 1px solid rgba(185, 164, 255, .18); padding: 0 1.3rem; transition: background .3s; }
.faq details[open] { background: rgba(34, 29, 79, .7); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '☽'; color: var(--moon); transition: transform .4s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-soft); }

/* ---------- 8. trăng mọc ---------- */
.moonrise { min-height: 90vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.horizon { position: absolute; inset: auto 0 0 0; height: 70%; }
.rising-moon {
  position: absolute; left: 50%; bottom: -40vmin; width: 80vmin; height: 80vmin; margin-left: -40vmin; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffbe9, var(--moon) 40%, var(--moon-deep) 80%);
  box-shadow: 0 0 120px 40px rgba(243, 227, 179, .25); opacity: .9;
  transform: translateY(calc(30vmin - var(--rise, 0) * 30vmin));
}
.horizon::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, var(--night-0) 70%); }
.moonrise-copy { position: relative; z-index: 2; }
.moonrise h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); text-shadow: 0 2px 30px rgba(7, 6, 26, .9); }

/* ---------- footer + nút nổi ---------- */
.footer { text-align: center; padding-top: 40px; padding-bottom: 120px; border-top: 1px solid rgba(185, 164, 255, .12); }
.footer p { max-width: 720px; margin: .4rem auto; padding: 0 16px; }
.brand-line { font-family: var(--serif); color: var(--moon); font-size: 1.2rem; }
.float-chat { position: fixed; right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.fc { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 600; font-size: .78rem; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .7); transition: transform .25s; }
.fc:hover { transform: scale(1.08); }
.fc svg { width: 26px; height: 26px; fill: #fff; }
.fc-zalo { background: var(--zalo); animation: pulse 2.8s infinite; }
.fc-messenger { background: var(--messenger); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(10, 104, 255, .6); } 70% { box-shadow: 0 0 0 16px rgba(10, 104, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 104, 255, 0); } }

/* ---------- hiện dần khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- màn hình nhỏ ---------- */
@media (max-width: 1100px) {
  .constellation { height: auto; display: grid; gap: 2rem; padding-left: 28px; border-left: 1px dashed rgba(243, 227, 179, .35); max-width: 640px; }
  .constellation-lines { display: none; }
  .star-step, .star-step:nth-of-type(4) { position: relative; left: auto; top: auto; width: auto; translate: none; text-align: left; }
  .star-step .star-dot, .star-step:nth-of-type(4) .star-dot { position: absolute; left: -41px; top: 2px; margin: 0; }
}
@media (max-width: 600px) {
  .fan { height: clamp(200px, 56vw, 360px); }
}
@media (max-width: 900px) {
  :root { --rail: 0px; }
  .phases {
    top: auto; right: 0; bottom: 0; width: auto; height: calc(64px + env(safe-area-inset-bottom)); flex-direction: row; justify-content: space-around; gap: 0;
    border-right: 0; border-top: 1px solid rgba(185, 164, 255, .18); background: rgba(9, 7, 28, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .phases::before { display: none; }
  .phases a span { position: static; opacity: 1; transform: none; background: none; border: 0; padding: 0; font-size: .66rem; color: inherit; }
  .topbar { padding-left: 16px; }
  .topbar-cta { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 100px; }
  .altar { width: min(380px, 92vw); order: -1; }
  .scroll-hint { display: none; }
  .reveal-panel { grid-template-columns: 1fr; text-align: center; }
  .reveal-card { width: min(240px, 70vw); margin: 0 auto; }
  .reveal-panel .cta-row { justify-content: center; }
  .sample { grid-template-columns: 1fr; }
  .phone { justify-self: center; }
  .float-chat { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .phone .bubble { opacity: 1; transform: none; }
}
