:root {
  color-scheme: dark;
  --bg: #080d18;
  --panel: #111827;
  --panel-2: #182131;
  --text: #f8fafc;
  --muted: #bac3d1;
  --gold: #e9ad12;
  --gold-2: #ffd65a;
  --line: rgba(255, 255, 255, 0.12);
  --good: #76d39b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: -5%;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(4, 9, 18, .72), rgba(4, 9, 18, .9)),
    url("/packages/images/hanle-stargazing-hero.png") center / cover no-repeat;
  transform: scale(1.06);
  animation: hanle-sky-drift 28s ease-in-out infinite alternate;
  will-change: transform, filter;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .12) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 32%, rgba(255, 214, 90, .13) 0 1px, transparent 1.8px),
    radial-gradient(circle at 48% 68%, rgba(152, 190, 255, .11) 0 1px, transparent 1.7px);
  background-size: 180px 180px, 240px 240px, 320px 320px;
  opacity: .45;
  animation: hanle-stars-pulse 7s ease-in-out infinite alternate;
}
main, .site-header, .footer { position: relative; z-index: 0; }

@keyframes hanle-sky-drift {
  0% { transform: scale(1.06) translate3d(-1.5%, -1%, 0); filter: saturate(.95) brightness(.92); }
  100% { transform: scale(1.12) translate3d(1.5%, 1%, 0); filter: saturate(1.08) brightness(1.03); }
}
@keyframes hanle-stars-pulse {
  0% { opacity: .25; transform: translate3d(0, 0, 0); }
  100% { opacity: .55; transform: translate3d(0, -8px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}
a { color: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 13, 24, 0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; font-size: 1.1rem; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--gold-2); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 22px; border: 0; border-radius: 10px; background: var(--gold);
  color: #151000; font-weight: 800; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--gold-2); }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--muted); cursor: pointer;
}
.nav-dropdown-trigger:hover, .nav-dropdown:hover .nav-dropdown-trigger, .nav-dropdown-trigger:focus-visible { color: var(--gold-2); }
.nav-caret { font-size: .7em; display: inline-block; transition: transform .15s ease; }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); right: 0;
  min-width: 220px; padding: 10px; border-radius: 12px;
  background: rgba(8, 13, 24, 0.98); border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 30;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { padding: 9px 12px; border-radius: 8px; font-size: .95rem; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.06); }
.nav-links { flex-wrap: wrap; row-gap: 10px; }
@media (max-width: 780px) {
  .nav-links { justify-content: flex-end; }
  .nav-dropdown-menu { right: auto; left: 0; }
}

.hero { padding: 84px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 42px; align-items: center; }
.eyebrow { color: var(--gold-2); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.03; margin: 10px 0 20px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.15; margin: 0 0 22px; }
h3 { margin: 0 0 12px; line-height: 1.25; }
.lead { max-width: 720px; color: var(--muted); font-size: 1.1rem; }
.hero-art {
  min-height: 320px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(145deg, rgba(233,173,18,.24), rgba(27,54,94,.5)),
              radial-gradient(circle at 70% 30%, #506789, #172235 55%, #0b111e);
  display: grid; place-items: center; text-align: center; padding: 28px; color: var(--muted);
}
.hero-art img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); }
.section { padding: 64px 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.package-card { overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: 22px; }
.card-image { min-height: 220px; background: linear-gradient(145deg, rgba(233,173,18,.18), #1c2a42); display: grid; place-items: center; color: var(--muted); }
.card-image img { width: 100%; height: 260px; object-fit: cover; }
.card-body { padding: 26px; }
.card-body p { color: var(--muted); }
.status { color: var(--good); font-size: .88rem; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.panel p, .panel li { color: var(--muted); }
.clean-list { padding-left: 20px; margin: 0; }
.clean-list li + li { margin-top: 8px; }
.itinerary { display: grid; gap: 16px; }
.day { display: grid; grid-template-columns: 78px 1fr; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.day-number { color: var(--gold-2); font-weight: 900; }
.day p { color: var(--muted); margin: 6px 0; }
.price-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.price { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.price strong { display: block; font-size: 1.35rem; color: var(--gold-2); }
.pending { border-left: 3px solid var(--gold); padding-left: 14px; color: var(--muted); }
.checkout {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start;
}
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 750; }
.field select, .field input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: #0a1220; color: var(--text); font: inherit;
}
.summary { margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.summary-row strong { color: var(--text); text-align: right; }
.summary-row.total { font-size: 1.15rem; color: var(--text); }
.summary-row.deposit strong { color: var(--gold-2); font-size: 1.2rem; }
.checkout-note { color: var(--muted); font-size: .9rem; }
.button[disabled] { opacity: .55; cursor: not-allowed; }
.funnel-shell { background: #0d1525; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.funnel-head { padding: 28px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(233,173,18,.12), transparent 55%); }
.funnel-head h2 { margin-bottom: 8px; }
.funnel-head p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(5,1fr); border-bottom: 1px solid var(--line); }
.step { padding: 16px 10px; text-align: center; color: var(--muted); border: 0; border-right: 1px solid var(--line); background: transparent; font: inherit; font-weight: 750; }
.step:last-child { border-right: 0; }
.step.active { color: #171100; background: var(--gold); }
.step.done { color: var(--gold-2); }
.funnel-body { display: grid; grid-template-columns: 1fr 340px; min-height: 520px; }
.funnel-main { padding: 32px; }
.funnel-side { padding: 28px; background: #0a101d; border-left: 1px solid var(--line); }
.funnel-panel { display: none; }
.funnel-panel.active { display: block; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.choice { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #101a2c; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.choice input { margin-right: 8px; }
.choice small { display: block; color: var(--muted); margin: 5px 0 0 24px; }
.funnel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.mini-note { padding: 14px; border-radius: 12px; background: rgba(233,173,18,.08); border: 1px solid rgba(233,173,18,.25); color: var(--muted); font-size: .9rem; }
.sticky-price { position: sticky; top: 100px; }
.sticky-price .summary-row { font-size: .92rem; }
.secure-line { display: flex; gap: 8px; align-items: center; color: var(--good); font-size: .86rem; margin-top: 16px; }
.footer { padding: 38px 0; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 780px) {
  .hero-grid, .cards, .grid-2, .checkout { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; }
  .price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-links a:not(.button) { display: none; }
  .day { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(5, minmax(76px,1fr)); overflow-x: auto; }
  .funnel-body { grid-template-columns: 1fr; }
  .funnel-side { border-left: 0; border-top: 1px solid var(--line); }
  .choice-grid { grid-template-columns: 1fr; }
}
