:root {
  --bg: #070504;
  --ink: #fff6ee;
  --muted: rgba(255, 230, 210, 0.72);
  --fire: #ff6a2a;
  --fire-deep: #c2410c;
  --glow: rgba(255, 106, 42, 0.55);
  --font-brand: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

.stage {
  min-height: 100dvh;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #050303;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: hero-drift 14s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 3, 2, 0.15) 0%, rgba(5, 3, 2, 0.08) 42%, rgba(5, 3, 2, 0.82) 78%, #070504 100%),
    radial-gradient(70% 50% at 50% 70%, rgba(255, 90, 30, 0.18), transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 0 22px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  animation: rise 0.8s ease both;
}

.hero__mark {
  display: block;
  margin: 0 auto 14px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 140, 60, 0.35), 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: mark-glow 2.8s ease-in-out infinite;
}

.hero__line {
  font-family: var(--font-brand);
  font-size: clamp(18px, 4.2vw, 22px);
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--primary {
  color: #1a0904;
  background: linear-gradient(145deg, #ffb060, var(--fire) 48%, var(--fire-deep));
  box-shadow: 0 10px 28px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.btn--primary:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn--ghost {
  color: #ffe7d4;
  background: rgba(20, 10, 6, 0.45);
  border: 1px solid rgba(255, 140, 70, 0.4);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(40, 18, 10, 0.6);
}

.download-tip {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  width: min(92vw, 420px);
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(18, 10, 8, 0.92);
  border: 1px solid rgba(255, 120, 50, 0.35);
  color: #ffd9c2;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.download-tip code {
  color: #ffb27a;
}

.embers span {
  position: absolute;
  z-index: 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb070;
  box-shadow: 0 0 10px #ff6a2a;
  opacity: 0;
  animation: ember 7s linear infinite;
}
.embers span:nth-child(1) { left: 12%; bottom: 18%; animation-delay: 0s; }
.embers span:nth-child(2) { left: 28%; bottom: 12%; animation-delay: 1.2s; width: 3px; height: 3px; }
.embers span:nth-child(3) { left: 46%; bottom: 22%; animation-delay: 2.1s; }
.embers span:nth-child(4) { left: 62%; bottom: 10%; animation-delay: 0.6s; width: 5px; height: 5px; }
.embers span:nth-child(5) { left: 78%; bottom: 20%; animation-delay: 3s; }
.embers span:nth-child(6) { left: 88%; bottom: 14%; animation-delay: 4.2s; width: 3px; height: 3px; }

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes mark-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 140, 60, 0.35), 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 100, 40, 0.25); }
  50% { box-shadow: 0 0 0 1px rgba(255, 160, 80, 0.55), 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 100, 40, 0.45); }
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 28px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 14px 36px rgba(255, 106, 42, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}
@keyframes ember {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translate3d(12px, -70vh, 0) scale(1.2); opacity: 0; }
}

@media (min-width: 900px) {
  .hero__content { padding-bottom: 48px; }
  .hero__mark { width: 88px; height: 88px; border-radius: 22px; }
}
