:root {
  --ink: #0a0907;
  --ink-2: #15110c;
  --paper: #f7f0e4;
  --muted: #c4b39a;
  --gold: #f0b429;
  --gold-bright: #ffd56a;
  --gold-deep: #c47a10;
  --gold-soft: rgba(240, 180, 41, 0.16);
  --line: rgba(247, 240, 228, 0.12);
  --radius: 16px;
  --font-brand: "ZCOOL XiaoWei", "Songti SC", "Noto Serif SC", serif;
  --font-display: "ZCOOL QingKe HuangYou", "ZCOOL XiaoWei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--ink);
  overflow-x: hidden;
}

/* —— cinematic stage / video atmosphere —— */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 70% 40%, rgba(196, 122, 16, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 55% at 15% 85%, rgba(240, 180, 41, 0.1), transparent 50%),
    linear-gradient(165deg, #100e0a 0%, var(--ink) 45%, #120f0b 100%);
}

.stage-video {
  position: absolute;
  inset: -8%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.05fr;
  gap: 1.2vw;
  transform: rotate(-6deg) scale(1.18);
  opacity: 0.42;
  filter: saturate(0.9) contrast(1.05);
  animation: stage-drift 22s ease-in-out infinite alternate;
}

.reel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 210, 120, 0.14), transparent 35%),
    linear-gradient(160deg, #2a2116, #12100c 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.reel::before,
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(240, 180, 41, 0.08) 22%,
      transparent 45%,
      rgba(0, 0, 0, 0.35) 70%,
      transparent 100%
    );
  animation: reel-scan 9s linear infinite;
}

.reel-a {
  background:
    linear-gradient(145deg, rgba(255, 196, 80, 0.22), transparent 40%),
    linear-gradient(180deg, #3a2a16 0%, #14110c 55%, #0c0a08 100%);
}

.reel-b {
  margin-top: 8vh;
  background:
    linear-gradient(200deg, rgba(180, 90, 40, 0.28), transparent 42%),
    linear-gradient(180deg, #2b1c14 0%, #100e0b 60%, #0a0907 100%);
}

.reel-b::before {
  animation-duration: 11s;
  animation-delay: -3s;
}

.reel-c {
  margin-top: 3vh;
  background:
    linear-gradient(120deg, rgba(240, 180, 41, 0.16), transparent 38%),
    linear-gradient(180deg, #2f2618 0%, #12100c 58%, #0b0a08 100%);
}

.reel-c::before {
  animation-duration: 13s;
  animation-delay: -6s;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 20%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 9, 7, 0.72) 0%, transparent 32%, transparent 68%, rgba(10, 9, 7, 0.45) 100%);
}

.stage-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
}

.stage-flare {
  position: absolute;
  width: 46vw;
  height: 46vw;
  top: -12%;
  right: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.28), transparent 68%);
  filter: blur(40px);
  animation: flare 12s ease-in-out infinite alternate;
}

@keyframes stage-drift {
  from { transform: rotate(-6deg) scale(1.18) translate3d(0, 0, 0); }
  to { transform: rotate(-4.5deg) scale(1.22) translate3d(-1.5%, 1.5%, 0); }
}

@keyframes reel-scan {
  from { transform: translateY(-18%); }
  to { transform: translateY(18%); }
}

@keyframes flare {
  from { opacity: 0.55; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0.9; transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

/* —— chrome —— */
.topbar,
.hero,
.site-foot {
  position: relative;
  z-index: 1;
}

.topbar {
  padding:
    max(1rem, env(safe-area-inset-top))
    clamp(1.1rem, 4.5vw, 3.5rem)
    0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.brand-name {
  font-family: var(--font-brand);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.hero {
  min-height: calc(100svh - 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding:
    clamp(0.6rem, 2vh, 1.4rem)
    clamp(1.1rem, 4.5vw, 3.5rem)
    4.5rem;
}

.hero-copy {
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 5.8vw, 4.15rem);
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.headline-brand {
  color: var(--gold-bright);
}

.support {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.cta-group {
  margin-top: 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: min(100%, 19.5rem);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #1a1205;
  background:
    linear-gradient(135deg, #ffd56a 0%, var(--gold) 48%, var(--gold-deep) 100%);
  box-shadow:
    0 16px 36px rgba(196, 122, 16, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 20px 44px rgba(196, 122, 16, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  outline: none;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background: rgba(26, 18, 5, 0.12);
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.btn-label {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.btn-meta {
  font-size: 0.78rem;
  opacity: 0.78;
  font-weight: 500;
}

.trust-line {
  margin: 0;
  color: rgba(196, 179, 154, 0.85);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* —— QR panel —— */
.qr-panel {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.05rem 0.85rem 0.85rem;
  border: 1px solid rgba(240, 180, 41, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(8px);
}

.qr-frame {
  flex-shrink: 0;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

#qrCanvas {
  display: block;
  width: 148px;
  height: 148px;
}

.qr-copy {
  min-width: 9.5rem;
}

.qr-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
}

.qr-desc {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.qr-note {
  margin: 0.65rem 0 0;
  color: rgba(240, 180, 41, 0.85);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}

/* —— phone / faux video —— */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.phone {
  position: relative;
  width: min(68vw, 268px);
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.5));
}

.phone-bezel {
  border-radius: 36px;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    #1a1611;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0a0907;
}

.phone-screen {
  aspect-ratio: 9 / 17.2;
  border-radius: 28px;
  overflow: hidden;
  background: #0c0b09;
}

.player {
  position: relative;
  width: 100%;
  height: 100%;
}

.player-poster {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding: 0 1rem 4.8rem;
  background:
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 78%),
    radial-gradient(circle at 40% 28%, rgba(255, 210, 120, 0.28), transparent 42%),
    linear-gradient(145deg, #3a2714 0%, #1a120c 48%, #0c0a08 100%);
  animation: poster-cycle 10s ease-in-out infinite;
}

.player-poster::before {
  content: "";
  position: absolute;
  inset: 18% 18% auto;
  aspect-ratio: 1;
  margin: 0 auto;
  width: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 150, 0.35), transparent 70%);
  filter: blur(8px);
}

.poster-ep,
.poster-title {
  position: relative;
  z-index: 1;
}

.poster-ep {
  color: rgba(255, 226, 154, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.poster-title {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  color: var(--paper);
}

.player-chrome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.55rem 0.9rem 1rem;
  pointer-events: none;
}

.player-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(247, 240, 228, 0.88);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.5);
  animation: pulse-dot 1.8s ease-out infinite;
}

.player-bottom {
  display: grid;
  gap: 0.55rem;
}

.progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  animation: progress 8s linear infinite;
}

.player-meta {
  display: flex;
  justify-content: space-between;
  color: rgba(247, 240, 228, 0.72);
  font-size: 0.68rem;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(240, 180, 41, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); }
}

@keyframes progress {
  0% { width: 8%; }
  100% { width: 92%; }
}

@keyframes poster-cycle {
  0%, 100% {
    background:
      linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 78%),
      radial-gradient(circle at 40% 28%, rgba(255, 210, 120, 0.28), transparent 42%),
      linear-gradient(145deg, #3a2714 0%, #1a120c 48%, #0c0a08 100%);
  }
  50% {
    background:
      linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 78%),
      radial-gradient(circle at 58% 32%, rgba(220, 120, 60, 0.3), transparent 44%),
      linear-gradient(155deg, #2a1a16 0%, #14100d 50%, #0b0a08 100%);
  }
}

.site-foot {
  margin-top: -2.8rem;
  padding: 0 clamp(1.1rem, 4.5vw, 3.5rem) max(1.2rem, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  color: rgba(185, 168, 136, 0.7);
  font-size: 0.78rem;
}

.site-foot .dot {
  opacity: 0.45;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.32s; }
.delay-4 { animation-delay: 0.44s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— responsive —— */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 3.5rem;
    gap: 1.4rem;
  }

  .hero-visual {
    order: -1;
    min-height: 0;
    margin-top: 0.2rem;
  }

  .phone {
    width: min(46vw, 190px);
  }

  .headline {
    font-size: clamp(2.1rem, 9vw, 3.1rem);
  }

  .btn-primary {
    width: 100%;
    min-width: 0;
  }

  /* phones don't scan themselves — keep CTA primary */
  .qr-panel {
    display: none;
  }

  .site-foot {
    margin-top: 0;
    justify-content: center;
  }

  .stage-video {
    opacity: 0.3;
    transform: rotate(-8deg) scale(1.35);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  #qrCanvas {
    width: 132px;
    height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stage-video,
  .stage-flare,
  .reel::before,
  .reel::after,
  .phone,
  .live-dot,
  .progress i,
  .player-poster {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
