:root {
  --ink: #f8f2ff;
  --muted: #bfc3e6;
  --purple: #5b3df5;
  --purple-soft: #8d7aff;
  --blue: #1a2250;
  --night: #07091b;
  --gold: #ffd76a;
  --pink: #ff8bd1;
  --cyan: #7be7ff;
  --panel: rgba(18, 23, 60, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(91, 61, 245, 0.42), transparent 32rem),
    radial-gradient(circle at 82% 18%, rgba(123, 231, 255, 0.18), transparent 28rem),
    linear-gradient(145deg, #07091b 0%, #10123a 46%, #1a1554 100%);
  font-family:
    "Noto Serif SC",
    "Songti SC",
    "Microsoft YaHei",
    serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 9, 27, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #12122c;
  background: var(--gold);
  box-shadow: 0 0 34px rgba(255, 215, 106, 0.48);
  font-family: "ZCOOL XiaoWei", serif;
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.nav-cta:hover {
  color: white;
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(255, 215, 106, 0.42);
  border-radius: 999px;
  color: var(--gold);
  font-size: 14px;
}

.section {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}

.hero {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
  padding-top: 132px;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(54px, 8vw, 116px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.22;
}

.hero-text,
.section-heading p,
.split p,
.belief p,
.mascot p,
.cta-copy p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-text {
  max-width: 520px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.primary {
  color: #17122a;
  background: linear-gradient(135deg, var(--gold), #fff2a8);
  box-shadow: 0 18px 44px rgba(255, 215, 106, 0.28);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card,
.belief,
.feature-card,
.story,
.metric,
.mascot-card,
.qr-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  overflow: hidden;
}

.hero-card::after {
  position: absolute;
  inset: auto -18% -32% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(255, 215, 106, 0.28), transparent 68%);
}

.cat-face,
.large-cat {
  position: relative;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(145deg, #080812, #191735);
  box-shadow: inset 0 -18px 30px rgba(91, 61, 245, 0.28), 0 0 60px rgba(91, 61, 245, 0.32);
}

.cat-face {
  width: 180px;
  height: 160px;
  margin: 4px auto 28px;
}

.large-cat {
  width: 220px;
  height: 196px;
  flex: 0 0 auto;
}

.ear {
  position: absolute;
  top: -28px;
  width: 62px;
  height: 70px;
  background: #080812;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.ear.left {
  left: 22px;
  transform: rotate(-16deg);
}

.ear.right {
  right: 22px;
  transform: rotate(16deg);
}

.eye {
  position: absolute;
  top: 66px;
  width: 28px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(255, 215, 106, 0.65);
}

.eye.left {
  left: 48px;
}

.eye.right {
  right: 48px;
}

.nose {
  position: absolute;
  top: 104px;
  left: 50%;
  width: 18px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  transform: translateX(-50%);
}

.wish-card h2 {
  margin-bottom: 20px;
  font-size: 30px;
}

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

.wish-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-soft), var(--gold));
}

.meter-copy {
  margin: 10px 0 24px;
  color: var(--muted);
}

.tarot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tarot-row span {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 215, 106, 0.26);
  border-radius: 18px;
  color: var(--gold);
  background: linear-gradient(160deg, rgba(91, 61, 245, 0.42), rgba(255, 255, 255, 0.06));
  font-size: 30px;
  font-weight: 900;
}

.hero-hexagram {
  position: absolute;
  top: 14%;
  left: -5%;
  width: 300px;
  height: 300px;
  opacity: 0.28;
  pointer-events: none;
  animation: rotate 44s linear infinite reverse;
}

.hero-hexagram svg {
  width: 100%;
  height: 100%;
}

.hero-orbit {
  position: absolute;
  inset: 12% auto auto 42%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 215, 106, 0.18);
  border-radius: 50%;
  pointer-events: none;
  animation: rotate 18s linear infinite;
}

.hero-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px var(--gold);
}

.hero-orbit span:nth-child(1) {
  top: 30px;
  left: 72px;
}

.hero-orbit span:nth-child(2) {
  right: 34px;
  bottom: 96px;
}

.hero-orbit span:nth-child(3) {
  left: 26px;
  bottom: 132px;
  background: var(--cyan);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 0;
  color: var(--muted);
  font-size: 14px;
}

.scroll-cue::after {
  display: inline-block;
  margin-left: 8px;
  content: "↓";
  animation: bounce 1.4s ease-in-out infinite;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 36px;
  align-items: stretch;
}

.belief {
  border-radius: 24px;
  padding: 30px;
}

.belief span {
  color: var(--gold);
  font-weight: 900;
}

.belief strong {
  display: block;
  margin: 18px 0;
  font-size: 32px;
  line-height: 1.18;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

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

.step {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.step::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(91, 61, 245, 0.22), transparent 58%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.step:hover::before,
.feature-card:hover::before {
  opacity: 1;
}

.step span {
  display: block;
  margin-bottom: 42px;
  color: rgba(255, 215, 106, 0.78);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.step p,
.feature-card p,
.story p {
  position: relative;
  color: var(--muted);
}

.feature-grid,
.story-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  position: relative;
  min-height: 270px;
  padding: 24px;
  border-radius: 22px;
  overflow: hidden;
}

.feature-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 50% 0%, rgba(255, 215, 106, 0.18), transparent 62%);
  opacity: 0.36;
  transition: opacity 200ms ease;
}

.feature-card span {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 44px;
  place-items: center;
  border-radius: 18px;
  color: #17122a;
  background: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.story-grid {
  grid-template-columns: repeat(4, 1fr);
}

.story {
  min-height: 230px;
  padding: 24px;
  border-radius: 22px;
}

.story span {
  display: inline-flex;
  margin-bottom: 46px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 215, 106, 0.11);
  font-size: 13px;
  font-weight: 900;
}

.metric-grid {
  grid-template-columns: repeat(5, 1fr);
}

.metric {
  padding: 24px 18px;
  border-radius: 22px;
  text-align: center;
}

.metric strong {
  display: block;
  color: white;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.mascot-card {
  display: flex;
  gap: 44px;
  align-items: center;
  padding: 42px;
  border-radius: 30px;
}

blockquote {
  margin: 28px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
  color: white;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: center;
  padding-bottom: 90px;
}

.qr-panel {
  display: grid;
  justify-items: center;
  border-radius: 28px;
  padding: 30px;
  text-align: center;
}

.qr-panel:focus {
  outline: 3px solid rgba(255, 215, 106, 0.5);
  outline-offset: 4px;
}

.qr {
  display: grid;
  width: 190px;
  height: 190px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
  border: 10px solid white;
  border-radius: 18px;
  background: white;
}

.qr span {
  border-radius: 6px;
  background: #151338;
}

.qr span:nth-child(3),
.qr span:nth-child(6),
.qr span:nth-child(9),
.qr span:nth-child(12),
.qr span:nth-child(14) {
  background: var(--purple);
}

.qr-panel p {
  margin-bottom: 20px;
  color: var(--muted);
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  justify-content: space-between;
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: calc(100% - 44px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: white;
  background: rgba(10, 12, 34, 0.88);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav {
    display: none;
  }

  .section {
    width: min(100% - 24px, 680px);
    padding: 76px 0;
  }

  .hero,
  .split,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-orbit {
    inset: 100px -180px auto auto;
    width: 360px;
    height: 360px;
  }

  .scroll-cue {
    position: static;
    display: inline-block;
    margin-top: 24px;
  }

  .timeline,
  .feature-grid,
  .story-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .mascot-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .final-cta {
    padding-bottom: 72px;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: none;
  }

  .nav-cta {
    padding: 8px 12px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-actions .button,
  .qr-panel .button {
    width: 100%;
  }

  .hero-card {
    padding: 22px;
  }

  .cat-face {
    width: 150px;
    height: 136px;
  }

  .tarot-row span {
    min-height: 72px;
  }

  .step,
  .feature-card,
  .story {
    min-height: auto;
  }

  .step span,
  .feature-card span,
  .story span {
    margin-bottom: 26px;
  }

  .site-footer {
    display: grid;
    gap: 8px;
  }
}

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