/* ============================================================
   魔菇奶奶 Lady Mush — landing page
   Aesthetic: "astral magic" — deep cosmic indigo, signature gold,
   star-charts, parchment ink. Same identity as the desktop app.
   ============================================================ */

:root {
  --bg: #0a0613;
  --bg-2: #120b22;
  --bg-3: #1a1130;
  --ink: #f3ead9;
  --ink-dim: #b6a585;
  --ink-faint: #7d7060;
  --gold: #e8c878;
  --gold-bright: #ffdf9c;
  --gold-deep: #b88a3e;
  --blue: #7b96ff;
  --ember: #ff7a66;
  --line: rgba(232, 200, 120, 0.16);
  --line-soft: rgba(243, 234, 217, 0.08);

  --font-display: "Cinzel", "Noto Serif SC", serif;
  --font-zh: "Noto Serif SC", "Songti SC", serif;
  --font-quote: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   cosmic backdrop
   ============================================================ */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.sky-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 78% -8%, #2a1b4a 0%, transparent 55%),
    radial-gradient(900px 700px at 12% 18%, #181033 0%, transparent 60%),
    linear-gradient(180deg, #0c0718 0%, #0a0613 40%, #08040f 100%);
}

.stars { position: absolute; inset: 0; }
.stars i {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: var(--o, 0.7);
  animation: twinkle var(--t, 4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: calc(var(--o) * 0.25); }
  50% { opacity: var(--o); }
}

/* 偶尔划过的流星：长周期里只在末尾一瞬亮起、拖尾滑落，间隔出现不喧宾夺主。 */
.shooting-star {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7);
  opacity: 0;
}
.shooting-star::after {
  content: "";
  position: absolute; top: 50%; right: 2px;
  width: 88px; height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.6), transparent);
}
.s1 { top: 10%; left: 68%; animation: shoot 11s ease-in 3s infinite; }
.s2 { top: 22%; left: 86%; animation: shoot 15s ease-in 9s infinite; }
@keyframes shoot {
  0%, 89% { opacity: 0; transform: translate(0, 0) rotate(20deg); }
  91% { opacity: 1; }
  100% { opacity: 0; transform: translate(-340px, 124px) rotate(20deg); }
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  mix-blend-mode: screen;
}
.nebula-1 {
  width: 620px; height: 620px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(123, 150, 255, 0.45), transparent 70%);
}
.nebula-2 {
  width: 520px; height: 520px;
  bottom: 4%; left: -140px;
  background: radial-gradient(circle, rgba(232, 200, 120, 0.30), transparent 70%);
}

.grain {
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ============================================================
   layout helpers
   ============================================================ */
section { position: relative; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker {
  font-family: var(--font-display); letter-spacing: 0.28em;
  font-size: 0.72rem; color: var(--gold); text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--font-zh); font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.2;
  margin: 14px 0 14px; color: var(--ink);
}
.section-head p { color: var(--ink-dim); font-size: 1.05rem; }

/* ============================================================
   hero
   ============================================================ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: 64px clamp(20px, 5vw, 56px) 60px;
}
.eyebrow {
  font-family: var(--font-display); letter-spacing: 0.26em;
  font-size: 0.74rem; color: var(--gold); text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 22px; line-height: 0.96; }
.hero h1 .zh {
  display: block; font-family: var(--font-zh); font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 6rem); color: var(--ink);
  text-shadow: 0 0 40px rgba(232, 200, 120, 0.25);
}
.hero h1 .en {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.9rem, 2.4vw, 1.5rem); letter-spacing: 0.5em;
  color: var(--gold); margin-top: 14px; padding-left: 0.5em;
}
.lede {
  font-family: var(--font-quote); font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-style: italic; color: var(--ink); margin-bottom: 18px; line-height: 1.4;
}
.lede strong { font-style: normal; font-weight: 600; color: var(--gold-bright); }
.sub { color: var(--ink-dim); font-size: 1.06rem; margin-bottom: 34px; max-width: 30em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; text-decoration: none;
  cursor: pointer; transition: transform 0.18s, box-shadow 0.25s, background 0.25s;
  border: 1px solid transparent;
}
.btn-rune { font-family: var(--font-display); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1c1304;
  box-shadow: 0 10px 30px -8px rgba(232, 200, 120, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(232, 200, 120, 0.7); }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(232,200,120,0.06); }
.btn-lg { font-size: 1.1rem; padding: 18px 38px; }
.cta-note { margin-top: 18px; color: var(--ink-faint); font-size: 0.88rem; letter-spacing: 0.02em; }

/* hero art */
.hero-art { position: relative; display: grid; place-items: center; }
.witch {
  position: relative; z-index: 2;
  width: min(100%, 440px); height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.art-halo {
  position: absolute; z-index: 1; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 120, 0.32), rgba(123,150,255,0.12) 45%, transparent 70%);
  filter: blur(20px); top: 46%; left: 50%; transform: translate(-50%, -50%);
}

/* ============================================================
   preview
   ============================================================ */
.preview { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 10vw, 130px) clamp(20px, 5vw, 56px); }
.shot {
  position: relative; max-width: 880px; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(123, 150, 255, 0.25);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  text-align: center; padding: 14px; font-size: 0.85rem;
  color: var(--ink-faint); letter-spacing: 0.04em;
  border-top: 1px solid var(--line-soft); background: rgba(10,6,19,0.4);
}

/* ============================================================
   features
   ============================================================ */
.features { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 8vw, 90px) clamp(20px, 5vw, 56px); }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  position: relative; padding: 32px 28px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 17, 48, 0.5), rgba(18, 11, 34, 0.3));
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(232,200,120,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 24px 50px -24px rgba(232, 200, 120, 0.4); }
.card:hover::after { opacity: 1; }
.card-rune {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--gold);
  margin-bottom: 14px; line-height: 1;
}
.card h3 { font-family: var(--font-zh); font-weight: 700; font-size: 1.28rem; margin-bottom: 9px; color: var(--ink); }
.card p { color: var(--ink-dim); font-size: 0.97rem; }

/* ============================================================
   download
   ============================================================ */
.download { padding: clamp(60px, 10vw, 140px) clamp(20px, 5vw, 56px); }
.dl-card {
  position: relative; max-width: 700px; margin: 0 auto; text-align: center;
  padding: clamp(40px, 6vw, 70px) clamp(28px, 5vw, 60px);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(123, 150, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(26, 17, 48, 0.7), rgba(12, 7, 24, 0.6));
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9);
}
.dl-spark {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,200,120,0.3), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.dl-card h2 { font-family: var(--font-zh); font-weight: 900; font-size: clamp(1.9rem, 5vw, 3rem); margin: 14px 0; }
.dl-sub { color: var(--ink-dim); margin-bottom: 32px; font-size: 1.08rem; }
.dl-meta { margin-top: 18px; color: var(--ink-faint); font-size: 0.88rem; }

/* ============================================================
   feedback & contact
   ============================================================ */
.feedback { max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vw, 90px) clamp(20px, 5vw, 56px); }
.fb-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.fb-kind-row { display: flex; gap: 22px; justify-content: center; }
.fb-kind { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-dim); cursor: pointer; font-size: 0.98rem; }
.fb-kind input { accent-color: var(--gold); }
.fb-form textarea, .fb-form input[type="text"] {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: rgba(26, 17, 48, 0.4); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; resize: vertical;
}
.fb-form textarea:focus, .fb-form input[type="text"]:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 200, 120, 0.12);
}
.fb-form textarea::placeholder, .fb-form input::placeholder { color: var(--ink-faint); }
.fb-form .btn { align-self: center; margin-top: 4px; }
.fb-status { text-align: center; min-height: 1.2em; font-size: 0.9rem; color: var(--gold-bright); }
.contact { margin: 40px auto 0; max-width: 560px; text-align: center; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.contact-intro { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 12px; }
.contact-line { color: var(--ink-dim); margin: 6px 0; }
.contact-line a { color: var(--gold); text-decoration: none; }
.contact-line a:hover { color: var(--gold-bright); }
.contact-wx { color: var(--ink-faint); }

/* ============================================================
   footer
   ============================================================ */
.foot {
  text-align: center; padding: 60px 20px 50px;
  border-top: 1px solid var(--line-soft); margin-top: 40px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.foot-brand span { font-family: var(--font-zh); font-weight: 700; color: var(--ink); }
.foot-brand em { font-family: var(--font-display); font-style: normal; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold); }
.foot-tag { font-family: var(--font-quote); font-style: italic; color: var(--ink-dim); font-size: 1.1rem; margin-bottom: 8px; }
.foot-copy { color: var(--ink-faint); font-size: 0.82rem; letter-spacing: 0.03em; }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; } .d5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .witch, .stars i, .shooting-star { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr; text-align: center;
    padding-top: 100px; min-height: auto;
  }
  .hero-copy { order: 2; }
  .hero-art { order: 1; margin-bottom: 10px; }
  .witch { width: min(70%, 300px); }
  .cta-row { justify-content: center; }
  .sub { margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: 1fr; }
  .br-desk { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .brand-name em { display: none; }
}
