:root {
  --ink: #0c0914;
  --night: #120e1c;
  --dusk: #2a1f45;
  --gold: #e8c27a;
  --gold-deep: #c9954a;
  --cream: #f4efe6;
  --mute: #9a93a8;
  --line: rgba(232, 194, 122, 0.22);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: var(--night);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.header-cta {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.header-cta:hover {
  border-color: var(--gold);
}

/* —— Hero: one composition —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(232, 194, 122, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(90, 60, 140, 0.22), transparent 50%),
    linear-gradient(165deg, #1a1430 0%, var(--night) 48%, #0a0710 100%);
  padding: 6.5rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(244, 239, 230, 0.7), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(232, 194, 122, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 48% 12%, rgba(244, 239, 230, 0.45), transparent),
    radial-gradient(1px 1px at 72% 28%, rgba(232, 194, 122, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 86% 58%, rgba(244, 239, 230, 0.4), transparent),
    radial-gradient(1px 1px at 62% 72%, rgba(232, 194, 122, 0.35), transparent),
    radial-gradient(1.4px 1.4px at 18% 68%, rgba(244, 239, 230, 0.5), transparent);
  animation: drift 28s linear infinite;
  opacity: 0.85;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-18px, 12px, 0); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  line-height: 1;
  letter-spacing: 0.22em;
  margin: 0 0 1.1rem;
  background: linear-gradient(120deg, #f4efe6 10%, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  max-width: 14em;
  animation: rise 0.9s ease 0.12s both;
}

.hero-lead {
  margin: 0 0 2rem;
  color: var(--mute);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 22em;
  animation: rise 0.9s ease 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  animation: rise 0.9s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.45rem;
  border-radius: 999px;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1428;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(201, 149, 74, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201, 149, 74, 0.38);
}

.btn-ghost {
  border: 1px solid rgba(232, 194, 122, 0.45);
  color: var(--gold);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(232, 194, 122, 0.08);
}

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

.hero-visual {
  justify-self: center;
  width: min(360px, 78vw);
  aspect-ratio: 3 / 4.2;
  position: relative;
  animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-card {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(232, 194, 122, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(42, 31, 69, 0.9), rgba(18, 14, 28, 0.95));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 194, 122, 0.28);
}

.hero-card img {
  width: 42%;
  border-radius: 22%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(232, 194, 122, 0.25));
}

.hero-card-caption {
  position: absolute;
  bottom: 2rem;
  z-index: 1;
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  color: var(--gold);
  font-size: 0.95rem;
}

/* —— Sections —— */
.section {
  width: min(960px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-kicker {
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.section p {
  margin: 0;
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 34em;
}

.section-ritual {
  border-top: 1px solid rgba(232, 194, 122, 0.12);
  border-bottom: 1px solid rgba(232, 194, 122, 0.12);
  background: linear-gradient(180deg, rgba(42, 31, 69, 0.28), transparent);
}

.ritual-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 760px) {
  .ritual-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.ritual-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.ritual-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
  color: var(--cream);
  font-weight: 400;
}

.ritual-list span {
  color: var(--mute);
  font-size: 0.98rem;
}

.section-download {
  text-align: center;
}

.section-download p {
  margin-left: auto;
  margin-right: auto;
}

.section-download .cta-row {
  justify-content: center;
  margin-top: 2rem;
}

.disclaimer {
  width: min(960px, calc(100% - 2.5rem));
  margin: 0 auto 3rem;
  padding: 1.25rem 0;
  color: #6d6678;
  font-size: 0.88rem;
  line-height: 1.7;
  border-top: 1px solid rgba(232, 194, 122, 0.1);
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: #6d6678;
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-sky,
  .hero-visual,
  .brand-mark,
  .hero h1,
  .hero-lead,
  .cta-row {
    animation: none;
  }
}
