:root {
  --ink: #173f38;
  --ink-soft: #42655d;
  --paper: #f4eddd;
  --paper-deep: #e9ddc6;
  --gold: #c59a4a;
  --gold-soft: rgba(197, 154, 74, 0.38);
  --midnight: #061525;
  --midnight-2: #0a2034;
  --midnight-3: #102b42;
  --wood: #69a96f;
  --fire: #d85d3f;
  --earth: #c59a4a;
  --metal: #c7c9c5;
  --water: #4f9ed8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(197, 154, 74, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(197, 154, 74, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 72% 6%, rgba(197, 154, 74, 0.24), transparent 24%),
    linear-gradient(145deg, var(--paper), #fffaf0 48%, var(--paper-deep));
  background-size: 56px 56px, 56px 56px, auto, auto;
  font-family: Georgia, "Times New Roman", serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 46px;
  cursor: pointer;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--ink);
  color: #fff8e8;
  padding: 13px 18px;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

button:hover {
  background: #0f302b;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: default;
  opacity: 0.65;
}

.app {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.variant-switch {
  position: fixed;
  z-index: 10;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(197, 154, 74, 0.42);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 250, 240, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

.variant-switch span {
  padding-left: 8px;
  color: var(--ink);
  font-size: 13px;
}

.variant-switch button {
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--ink);
}

.variant-switch button.active {
  background: var(--ink);
  color: #fff8e8;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: center;
  padding: 46px 0;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.moon {
  position: absolute;
  top: 10%;
  right: 14%;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 10%),
    radial-gradient(circle at 70% 60%, rgba(197, 154, 74, 0.25), transparent 16%),
    #f7efdb;
  box-shadow: 0 0 70px rgba(197, 154, 74, 0.38);
  opacity: 0.66;
}

.moon::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 1px solid rgba(23, 63, 56, 0.18);
  border-radius: 50%;
}

.bagua {
  position: absolute;
  top: 20%;
  right: 8%;
  width: 260px;
  color: rgba(197, 154, 74, 0.5);
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: 0.35em;
  text-align: center;
  transform: rotate(-9deg);
}

.compass-ring {
  position: absolute;
  top: 8%;
  right: 5%;
  border: 1px solid rgba(197, 154, 74, 0.36);
  border-radius: 50%;
  animation: drift 18s linear infinite;
}

.ring-one {
  width: 420px;
  aspect-ratio: 1;
}

.ring-two {
  top: 14%;
  right: 10%;
  width: 290px;
  aspect-ratio: 1;
  animation-direction: reverse;
}

.mountains {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 28%;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(23, 63, 56, 0.13) 38% 50%, transparent 50%),
    linear-gradient(45deg, transparent 0 44%, rgba(23, 63, 56, 0.16) 44% 55%, transparent 55%);
  background-size: 360px 220px, 420px 240px;
  opacity: 0.48;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font-size: clamp(25px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vertical-seal {
  display: inline-grid;
  place-items: center;
  min-height: 128px;
  margin-bottom: 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 18px 12px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.45);
  font-size: 22px;
  line-height: 1.35;
}

.vertical-seal::after {
  content: "DESTINY";
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.12em;
  writing-mode: horizontal-tb;
}

.lede {
  max-width: 570px;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.5;
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.mini-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mini-strip span {
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 250, 240, 0.58);
  color: var(--ink);
}

.reading-form,
.panel {
  position: relative;
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 24px 60px rgba(23, 63, 56, 0.12);
}

.reading-form::after,
.panel::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 38px;
  height: 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(197, 154, 74, 0.44);
  border-radius: 999px;
  background: inherit;
}

.reading-form::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(197, 154, 74, 0.18);
  border-radius: 5px;
  pointer-events: none;
}

.reading-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
  padding: 24px;
  backdrop-filter: blur(18px);
}

.form-heading h2 {
  margin: 0;
  font-size: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 63, 56, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(197, 154, 74, 0.38);
  border-color: var(--gold);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.privacy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

.loading {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 24px;
  text-align: center;
}

.loading h2 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1;
}

.tracks {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.tracks span {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.5);
}

.tracks span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(197, 154, 74, 0.25), transparent);
  animation: scan 1.3s ease-in-out infinite;
}

.report {
  min-height: 100dvh;
  color: #f8edd4;
  background:
    linear-gradient(90deg, rgba(197, 154, 74, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(197, 154, 74, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 72% 4%, rgba(197, 154, 74, 0.24), transparent 25%),
    radial-gradient(circle at 18% 12%, rgba(79, 158, 216, 0.16), transparent 24%),
    linear-gradient(145deg, var(--midnight), var(--midnight-2));
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  margin-inline: calc(50% - 50vw);
  padding: 28px max(24px, calc((100vw - 1140px) / 2)) 36px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.topbar button {
  background: transparent;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

#topUnlockButton {
  background: rgba(197, 154, 74, 0.2);
  color: #fff4d7;
}

.report-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(197, 154, 74, 0.26);
  padding-bottom: 18px;
}

.depth-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(197, 154, 74, 0.45);
  border-radius: 8px;
  padding: 6px;
  background: rgba(7, 22, 38, 0.58);
}

.depth-switch button {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
  color: rgba(248, 237, 212, 0.72);
}

.depth-switch button.active {
  border-color: rgba(197, 154, 74, 0.62);
  background: rgba(197, 154, 74, 0.18);
  color: #fff4d7;
}

.report[data-depth="plain"] details {
  display: none;
}

.report[data-depth="pro"] details {
  display: block;
}

.plain-answer {
  font-size: 18px;
  color: #fff4d7 !important;
  font-weight: 600;
}

.report-hero h2 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1;
  letter-spacing: 0;
}

.report-hero p:last-child {
  margin: 0;
  color: rgba(248, 237, 212, 0.78);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 16px 0 18px;
}

.pillar-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 164px;
  border: 1px solid rgba(197, 154, 74, 0.44);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 215, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(7, 22, 38, 0.64);
  color: #fff4d7;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(197, 154, 74, 0.12);
}

.pillar-card span {
  color: var(--gold);
  font-size: 16px;
}

.pillar-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  line-height: 1;
}

.pillar-card small {
  width: min(120px, 90%);
  color: rgba(248, 237, 212, 0.72);
  line-height: 1.35;
}

.pillar-card.focus {
  border-color: rgba(197, 154, 74, 0.9);
  background:
    radial-gradient(circle at 50% 18%, rgba(197, 154, 74, 0.2), transparent 38%),
    rgba(7, 22, 38, 0.72);
}

.report .panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(7, 22, 38, 0.76);
  border-color: rgba(197, 154, 74, 0.46);
  color: #f8edd4;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.day-master,
.oracle-card,
.insights article,
.pricing article {
  padding: 22px;
}

.day-master h2,
.oracle-card h2 {
  margin: 0;
  color: #fff4d7;
  font-size: 48px;
  line-height: 1;
}

.day-master h2 span {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 400;
}

.day-master p:last-child,
.oracle-card p:last-child,
.panel p {
  color: rgba(248, 237, 212, 0.78);
  line-height: 1.55;
}

.elements {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.module-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.module-card {
  padding: 18px;
}

.module-card h3 {
  margin: 0 0 12px;
  color: #fff4d7;
  font-size: 22px;
  line-height: 1.2;
}

.element {
  position: relative;
  border: 1px solid rgba(197, 154, 74, 0.34);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.element-orb {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  margin-bottom: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, 0.04);
  font-size: 30px;
  box-shadow: 0 0 28px currentColor;
}

.element h3 {
  margin: 0 0 14px;
  color: #fff4d7;
  font-size: 22px;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
}

.insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.insights article:first-child {
  grid-row: span 2;
}

.insights h3,
.pricing h3 {
  margin: 0;
  color: #fff4d7;
  font-size: 26px;
  line-height: 1.15;
}

details {
  border-top: 1px solid rgba(197, 154, 74, 0.32);
  margin-top: 16px;
  padding-top: 14px;
}

summary {
  cursor: pointer;
  color: var(--gold);
}

.locked {
  background:
    linear-gradient(135deg, rgba(197, 154, 74, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(7, 22, 38, 0.76) !important;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.professional-deck {
  margin-top: 18px;
}

.deck-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.deck-heading h2 {
  margin: 0;
  color: #fff4d7;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
}

.deck-heading p:last-child {
  margin: 0;
  color: rgba(248, 237, 212, 0.74);
}

.matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.paid-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.qimen-board {
  margin-top: 16px;
  padding: 22px;
}

.rich-report {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.report-manifesto h3 {
  margin: 0;
  color: #fff4d7;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
}

.report-manifesto h3 span {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.report-manifesto strong {
  display: block;
  margin-top: 16px;
  color: #fff4d7;
  font-size: 24px;
}

.rich-section {
  padding: 24px;
}

.rich-head h3 {
  margin: 0 0 18px;
  color: #fff4d7;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.1;
}

.rich-columns,
.expert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rich-columns h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 17px;
}

.rich-columns ul {
  margin: 0;
  padding-left: 20px;
}

.rich-columns li {
  margin-bottom: 10px;
  color: rgba(248, 237, 212, 0.82);
  line-height: 1.6;
}

.expert-grid {
  margin-top: 14px;
  grid-template-columns: 1fr;
}

.palace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.palace-grid span {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid rgba(197, 154, 74, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 237, 212, 0.84);
  text-align: center;
  line-height: 1.45;
}

.palace-grid small {
  display: block;
  width: min(150px, 92%);
  margin-top: 6px;
  color: rgba(248, 237, 212, 0.62);
  font-size: 12px;
}

.palace-grid .center {
  color: #fff4d7;
  background: rgba(197, 154, 74, 0.16);
}

.palace-grid .good {
  border-color: rgba(105, 169, 111, 0.72);
  background: rgba(105, 169, 111, 0.12);
}

.palace-grid .risk {
  border-color: rgba(216, 93, 63, 0.62);
  background: rgba(216, 93, 63, 0.1);
}

.qimen-board h3 {
  margin: 0 0 8px;
  color: #fff4d7;
  font-size: 28px;
}

.qimen-purpose {
  max-width: 820px;
}

.timing-output {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.timing-output article {
  border: 1px solid rgba(197, 154, 74, 0.28);
  border-radius: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.timing-output strong {
  color: var(--gold);
}

.pricing strong {
  display: block;
  margin-top: 18px;
  color: var(--gold);
  font-size: 29px;
}

.featured {
  border-color: rgba(197, 154, 74, 0.85) !important;
}

@keyframes drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scan {
  from { transform: translateX(-120%); }
  to { transform: translateX(300%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 860px) {
  .app {
    width: min(100% - 24px, 1140px);
  }

  .hero,
  .report-hero,
  .summary-grid,
  .insights,
  .pricing,
  .elements,
  .pillar-row,
  .module-map,
  .matrix,
  .paid-value-grid,
  .rich-columns,
  .timing-output {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    padding: 32px 0;
  }

  .hero-copy h1 {
    font-size: 62px;
  }

  .lede {
    font-size: 18px;
  }

  .moon {
    width: 170px;
    right: -20px;
  }

  .ring-one {
    width: 260px;
  }

  .ring-two {
    width: 180px;
  }

  .variant-switch {
    left: 12px;
    right: 12px;
    justify-content: center;
  }
}

body.variant-b {
  background:
    radial-gradient(circle at 70% 12%, rgba(79, 158, 216, 0.35), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(216, 93, 63, 0.22), transparent 28%),
    linear-gradient(145deg, #04101c, #0a2434 48%, #07151f);
  color: #fff4d7;
}

body.variant-b .hero {
  grid-template-columns: minmax(0, 0.95fr) 460px;
}

body.variant-b .hero-copy h1 {
  color: #fff4d7;
  text-shadow: 0 0 34px rgba(197, 154, 74, 0.32);
}

body.variant-b .lede,
body.variant-b .privacy,
body.variant-b label {
  color: rgba(248, 237, 212, 0.82);
}

body.variant-b .reading-form {
  background: rgba(6, 21, 37, 0.72);
  border-color: rgba(197, 154, 74, 0.58);
}

body.variant-b input,
body.variant-b select,
body.variant-b textarea {
  background: rgba(255, 255, 255, 0.08);
  color: #fff4d7;
  border-color: rgba(197, 154, 74, 0.35);
}

body.variant-b .mini-strip span,
body.variant-b .vertical-seal {
  background: rgba(6, 21, 37, 0.52);
  color: #fff4d7;
}

body.variant-b .moon {
  opacity: 0.86;
  box-shadow: 0 0 120px rgba(79, 158, 216, 0.45), 0 0 80px rgba(197, 154, 74, 0.35);
}

body.variant-b .compass-ring {
  border-color: rgba(197, 154, 74, 0.68);
  box-shadow: 0 0 40px rgba(197, 154, 74, 0.12);
}

.mist-mountains {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 32%;
  background:
    radial-gradient(ellipse at 30% 90%, rgba(23, 63, 56, 0.18), transparent 36%),
    linear-gradient(135deg, transparent 0 38%, rgba(23, 63, 56, 0.18) 38% 50%, transparent 50%),
    linear-gradient(45deg, transparent 0 44%, rgba(197, 154, 74, 0.12) 44% 55%, transparent 55%);
  background-size: auto, 360px 220px, 420px 240px;
  opacity: 0.62;
}

.report-hero,
.summary-grid,
.pillar-row,
.elements,
.module-map,
.insights,
.professional-deck,
.pricing {
  animation: rise-in 520ms ease both;
}

.module-card:nth-child(2),
.pillar-card:nth-child(2),
.element:nth-child(2) { animation-delay: 70ms; }
.module-card:nth-child(3),
.pillar-card:nth-child(3),
.element:nth-child(3) { animation-delay: 120ms; }
.module-card:nth-child(4),
.pillar-card:nth-child(4),
.element:nth-child(4) { animation-delay: 170ms; }
.module-card:nth-child(5),
.pillar-card:nth-child(5),
.element:nth-child(5) { animation-delay: 220ms; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
