:root {
  color-scheme: dark;
  --ink: #f8f2e7;
  --muted: #bdb3a1;
  --night: #0b0d11;
  --night-soft: #151922;
  --panel: rgba(18, 21, 29, 0.88);
  --panel-solid: #151922;
  --gold: #d7b66d;
  --bronze: #9c6f38;
  --teal: #1aa184;
  --teal-deep: #0d5e5b;
  --rose: #b85545;
  --line: rgba(248, 242, 231, 0.14);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(215, 182, 109, 0.07) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, var(--night) 0%, #10131a 54%, #171019 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 17, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-badges,
.panel-heading,
.price-row,
.site-footer,
.trust-strip {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark,
.seal {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 182, 109, 0.52);
  border-radius: 50%;
  color: var(--night);
  background: linear-gradient(135deg, #f0d99b, var(--gold) 58%, var(--bronze));
  box-shadow: 0 12px 30px rgba(215, 182, 109, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.nav-links {
  gap: clamp(16px, 3vw, 38px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  padding: clamp(54px, 8vw, 104px) 5vw 44px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.46;
  background:
    linear-gradient(105deg, rgba(11, 13, 17, 0.94), rgba(13, 94, 91, 0.58), rgba(24, 14, 22, 0.88)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Bagua_trigrams.svg/2560px-Bagua_trigrams.svg.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.8) contrast(1.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(45deg, rgba(215, 182, 109, 0.08) 25%, transparent 25% 50%, rgba(215, 182, 109, 0.08) 50% 75%, transparent 75%),
    linear-gradient(180deg, transparent 68%, var(--night) 100%);
  background-size: 28px 28px, 100% 100%;
  mask-image: linear-gradient(90deg, transparent, black 24%, black 76%, transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7.4vw, 6.6rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.14;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-lede {
  max-width: 710px;
  margin-bottom: 26px;
  color: rgba(248, 242, 231, 0.84);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.hero-badges {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  padding: 8px 14px;
  border: 1px solid rgba(248, 242, 231, 0.24);
  border-radius: 999px;
  background: rgba(248, 242, 231, 0.08);
  color: rgba(248, 242, 231, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
}

.reading-panel,
.knowledge article,
.dialog-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.reading-panel {
  padding: clamp(22px, 4vw, 34px);
}

.panel-heading {
  gap: 14px;
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin-bottom: 2px;
  font-size: 1.55rem;
}

.panel-heading p,
.fine-print,
.intro-copy p,
.knowledge p,
.faq-list p {
  color: var(--muted);
}

.reading-form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(248, 242, 231, 0.18);
  border-radius: 6px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

input::placeholder {
  color: rgba(248, 242, 231, 0.48);
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 182, 109, 0.14);
}

.primary-button,
.close-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 6px;
  color: #07110f;
  background: linear-gradient(135deg, #f2dc9c, var(--gold) 54%, #b98842);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(215, 182, 109, 0.22);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

.fine-print {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.trust-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #11151d;
}

.trust-strip span {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(248, 242, 231, 0.78);
  background: rgba(248, 242, 231, 0.06);
  font-size: 0.84rem;
  font-weight: 700;
}

.intro-band,
.knowledge,
.process-band,
.questions {
  padding: clamp(58px, 8vw, 98px) 5vw;
}

.intro-grid,
.process-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.bagua-visual {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(215, 182, 109, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(248, 242, 231, 0.08), rgba(26, 161, 132, 0.08)),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(215, 182, 109, 0.08) 25px);
}

.bagua-visual img {
  width: min(420px, 100%);
  margin: 0 auto;
  filter: invert(1) sepia(0.35) saturate(0.7) brightness(1.08);
  opacity: 0.9;
}

figcaption {
  margin-top: 16px;
  color: rgba(248, 242, 231, 0.54);
  font-size: 0.78rem;
  text-align: center;
}

.intro-copy {
  max-width: 640px;
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 28px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.knowledge article {
  min-height: 286px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(248, 242, 231, 0.07), rgba(248, 242, 231, 0.035));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.article-index {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.process-band {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(13, 94, 91, 0.92), rgba(11, 13, 17, 0.96) 58%, rgba(91, 39, 45, 0.82)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
}

.process-band h2 {
  max-width: 520px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid rgba(248, 242, 231, 0.18);
  border-radius: 8px;
  background: rgba(248, 242, 231, 0.08);
  font-weight: 700;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--night);
  background: var(--gold);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(900px, 100%);
  margin: 0 auto;
}

.faq-list details {
  padding: 18px 20px;
  background: rgba(248, 242, 231, 0.055);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.faq-list summary {
  cursor: pointer;
  color: #fff;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #090b0f;
  font-size: 0.92rem;
}

.payment-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.payment-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--panel-solid);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(248, 242, 231, 0.08);
  color: var(--ink);
  font-size: 1rem;
}

.large {
  width: 56px;
  height: 56px;
}

.birth-preview {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(26, 161, 132, 0.13);
  color: #bff2e4;
}

.price-row {
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-row strong {
  color: var(--gold);
  font-size: 1.6rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(380px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid rgba(215, 182, 109, 0.28);
  border-radius: 8px;
  color: #fff;
  background: #11151d;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .intro-grid,
  .process-inner {
    grid-template-columns: 1fr;
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-badges span,
  .trust-strip span {
    font-size: 0.82rem;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge article {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
