:root {
  --bg: #120e1e;
  --bg-soft: #1b1430;
  --panel: rgba(255,255,255,0.08);
  --panel-strong: rgba(255,255,255,0.13);
  --text: #fff8e8;
  --muted: rgba(255,248,232,0.72);
  --gold: #f3c96b;
  --gold-2: #ffd98a;
  --purple: #8b5cf6;
  --pink: #f0a6ca;
  --line: rgba(255,255,255,0.14);
  --shadow: 0 24px 80px rgba(0,0,0,0.35);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(139,92,246,.32), transparent 28%),
    radial-gradient(circle at 86% 6%, rgba(243,201,107,.18), transparent 24%),
    linear-gradient(145deg, #0d0a16, #17102a 48%, #110d1c);
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; border-radius: 999px; filter: blur(18px); pointer-events: none; opacity: .45; z-index: -1; }
.ambient-a { width: 320px; height: 320px; background: rgba(243,201,107,.18); top: 12%; right: -120px; }
.ambient-b { width: 260px; height: 260px; background: rgba(139,92,246,.28); bottom: 8%; left: -90px; }

.section-pad { padding: 82px max(22px, calc((100vw - 1180px)/2)); }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 16px max(20px, calc((100vw - 1180px)/2));
  background: rgba(18,14,30,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #fff0b8);
  color: #3a2610; font-weight: 900; box-shadow: 0 10px 30px rgba(243,201,107,.28);
}
.brand strong { display: block; font-size: 20px; letter-spacing: .08em; }
.brand em { display: block; font-size: 12px; color: var(--muted); font-style: normal; margin-top: 2px; }
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--gold-2); }

.primary-btn, .secondary-btn, .ghost-btn {
  border: 0; cursor: pointer; border-radius: 999px; padding: 12px 20px; color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-btn { background: linear-gradient(135deg, #d79c2f, var(--gold-2)); color: #2b1908; font-weight: 800; box-shadow: 0 12px 30px rgba(243,201,107,.25); }
.secondary-btn { background: rgba(255,255,255,.11); border: 1px solid var(--line); }
.ghost-btn { background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.24); }
.full { width: 100%; }
.small-btn { padding: 9px 14px; font-size: 13px; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.hero { min-height: 720px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.eyebrow { color: var(--gold-2); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 12px; margin: 0 0 12px; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: .98; margin: 0; letter-spacing: -.05em; }
h2 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; margin: 0; letter-spacing: -.035em; }
h3 { margin: 0 0 10px; font-size: 24px; }
p { color: var(--muted); line-height: 1.78; }
.hero-desc { max-width: 680px; font-size: 18px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span, .tag {
  display: inline-flex; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.07);
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 13px;
}
.hero-card { position: relative; min-height: 530px; display: grid; place-items: center; }
.moon {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff7d1, #eabf5b 60%, #926526);
  box-shadow: 0 0 100px rgba(243,201,107,.28), inset -36px -34px 70px rgba(61,29,14,.35);
}
.oracle-card {
  position: relative; width: min(420px, 92%); padding: 34px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(16px); box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.oracle-card small { color: var(--gold-2); letter-spacing: .2em; }
.oracle-card h2 { font-size: 36px; margin-top: 18px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.mini-grid span { padding: 10px 12px; border-radius: 16px; background: rgba(18,14,30,.42); color: var(--muted); font-size: 13px; }

.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 0; }
.feature-strip article, .panel, .mini-card, .price-card {
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.feature-strip article { padding: 22px; border-radius: 22px; }
.feature-strip b { display: block; color: var(--gold-2); margin-bottom: 8px; }
.feature-strip span { color: var(--muted); line-height: 1.7; font-size: 14px; }

.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head.center { text-align: center; margin-inline: auto; }
.tool-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 22px; align-items: stretch; }
.panel { border-radius: var(--radius); padding: 28px; }
.form-panel label { display: block; margin: 14px 0 8px; color: var(--gold-2); font-weight: 700; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: rgba(0,0,0,.18); color: var(--text);
  border-radius: 18px; padding: 14px 15px; outline: none;
}
textarea { resize: vertical; }
select option { color: #1b1430; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 14px; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result-panel { min-height: 280px; }
.result-panel ul { padding-left: 18px; color: var(--muted); line-height: 1.8; }
.result-panel strong { color: var(--gold-2); }
.soft-bg { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); }

.daily-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: center; }
.daily-card h3 { font-size: 34px; }
.almanac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.almanac-grid span { display: block; padding: 18px; border-radius: 20px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.almanac-grid b { display: block; color: var(--gold-2); margin-bottom: 6px; }
.almanac-grid em { color: var(--muted); font-style: normal; }

.draw-wrap { display: grid; place-items: center; gap: 20px; }
.draw-orb {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 25%, #fff8d8, var(--gold), #7e4d13);
  color: #3a2308; font-size: 62px; font-weight: 900; box-shadow: 0 0 80px rgba(243,201,107,.32);
}
.draw-result { width: min(780px, 100%); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-card { border-radius: 24px; padding: 24px; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.mini-card:hover, .mini-card:focus-visible, .price-card:hover, .price-card:focus-visible { transform: translateY(-5px); background: var(--panel-strong); outline: 1px solid rgba(243,201,107,.44); }
.mini-card span { font-size: 32px; }
.mini-card h3 { margin-top: 12px; }
.module-output { margin-top: 22px; min-height: 220px; }
.module-output .inline-form { display: grid; gap: 12px; margin-top: 14px; }
.module-output .inline-form button { justify-self: start; }
.preview-img { max-width: 260px; width: 100%; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.warning { color: #ffd98a; }
.hexagram { display: grid; gap: 6px; margin: 14px 0; padding: 16px; border-radius: 18px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.hexagram span { color: var(--gold-2); letter-spacing: .14em; font-weight: 800; }
.blessing-card { padding: 22px; border-radius: 22px; background: linear-gradient(135deg,rgba(243,201,107,.18),rgba(139,92,246,.16)); border: 1px solid rgba(243,201,107,.32); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { border-radius: 26px; padding: 28px; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.price-card strong { display: block; font-size: 42px; color: var(--gold-2); margin: 10px 0; }
.price-card.featured { background: linear-gradient(155deg, rgba(243,201,107,.18), rgba(139,92,246,.18)); border-color: rgba(243,201,107,.48); transform: translateY(-8px); }
#planOutput { margin-top: 22px; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 34px max(22px, calc((100vw - 1180px)/2));
  border-top: 1px solid var(--line); background: rgba(0,0,0,.16);
}
.site-footer p { margin: 8px 0 0; max-width: 780px; font-size: 13px; }

dialog {
  width: min(680px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 26px; padding: 28px;
  color: var(--text); background: #211937; box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(6px); }
.close { position: absolute; right: 16px; top: 12px; background: transparent; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .tool-grid, .daily-card { grid-template-columns: 1fr; }
  .hero { min-height: unset; padding-top: 58px; }
  .feature-strip, .cards-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { min-height: 430px; }
  .moon { width: 290px; height: 290px; }
}
@media (max-width: 620px) {
  .section-pad { padding: 58px 18px; }
  .site-header { padding: 14px 18px; }
  .site-header .ghost-btn { display: none; }
  .feature-strip, .cards-grid, .pricing-grid, .two-col, .form-row, .almanac-grid { grid-template-columns: 1fr; }
  .oracle-card { padding: 24px; }
  .oracle-card h2 { font-size: 30px; }
  h1 { font-size: 48px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
