:root {
  --ink: #12201d;
  --ink-soft: #2a3d38;
  --mist: #e7eeea;
  --paper: #f2f6f3;
  --brass: #8f7348;
  --brass-deep: #6e5634;
  --accent: #c4a46a;
  --teal: #1f4f47;
  --teal-deep: #143832;
  --line: rgba(18, 32, 29, 0.12);
  --shadow: 0 24px 60px rgba(18, 32, 29, 0.12);
  --font-display: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-cn: "Noto Serif SC", "Cormorant Garamond", serif;
  --font-ui: "DM Sans", "Noto Serif SC", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(31, 79, 71, 0.16), transparent 55%),
    radial-gradient(900px 600px at 90% 8%, rgba(143, 115, 72, 0.14), transparent 50%),
    linear-gradient(180deg, #eef3f0 0%, var(--paper) 38%, #e4ebe7 100%);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(255, 255, 255, 0.45), transparent 70%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 40px);
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(242, 246, 243, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-mark {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--teal), var(--brass));
  box-shadow: 0 0 0 4px rgba(31, 79, 71, 0.08);
}

.nav-mark-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(31, 79, 71, 0.22);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 32, 29, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  font-size: 0.9rem;
  color: var(--ink-soft);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  position: relative;
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: clamp(88px, 12vh, 120px) clamp(16px, 4vw, 40px) clamp(56px, 8vh, 80px);
  isolation: isolate;
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.hero-layout .hero-copy-panel {
  width: 100%;
  max-width: 560px;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: none;
  color: #f0e6d2;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-title-accent {
  background: linear-gradient(120deg, #f2f6f3 10%, #c4a46a 55%, #8f7348 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.hero-meta li {
  position: relative;
  padding: 7px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgba(248, 244, 232, 0.88);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(232, 212, 168, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-meta li::before {
  content: none;
}

.hero-meta li:has(a) {
  background: linear-gradient(180deg, rgba(196, 164, 106, 0.22), rgba(196, 164, 106, 0.07));
  border-color: rgba(232, 212, 168, 0.38);
}

.hero-meta a {
  color: #f0e0b4;
  border-bottom: 0;
}

.hero-meta a:hover {
  color: #fff6dc;
}

.hero-deck {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  min-height: 500px;
  margin-left: 0;
}

.hero-deck-hub {
  position: absolute;
  left: 62%;
  top: 40%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-deck-hub-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-cn);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(196, 164, 106, 0.14);
  z-index: 1;
}

.hero-deck-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(196, 164, 106, 0.22);
  animation: hero-deck-ripple 3.2s ease-out infinite;
}

.hero-deck-ripple--2 {
  animation-delay: 1.6s;
}

.hero-deck-cards {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 500px;
}

.hero-float-card {
  position: absolute;
  width: min(162px, 28vw);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(196, 164, 106, 0.25);
  background: rgba(10, 18, 22, 0.94);
  border: 1px solid rgba(196, 164, 106, 0.38);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  animation: hero-card-float 6.5s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.hero-float-card:focus-visible {
  outline: 2px solid rgba(196, 164, 106, 0.85);
  outline-offset: 3px;
}

.hero-float-card.is-slot-0 {
  left: 32%;
  top: 24%;
  transform: rotate(-1deg);
  z-index: 5;
  width: min(176px, 30vw);
  animation-delay: 0s;
}

.hero-float-card.is-slot-1 {
  left: 4%;
  top: 20%;
  right: auto;
  transform: rotate(-4deg);
  z-index: 2;
  opacity: 0.98;
  animation-delay: -1.3s;
}

.hero-float-card.is-slot-2 {
  left: 52%;
  top: 6%;
  right: auto;
  transform: rotate(2deg);
  z-index: 4;
  opacity: 0.98;
  animation-delay: -2.6s;
}

.hero-float-card.is-slot-3 {
  left: 18%;
  top: 52%;
  right: auto;
  transform: rotate(-3deg);
  z-index: 3;
  opacity: 0.96;
  animation-delay: -3.9s;
}

.hero-float-card.is-slot-4 {
  left: auto;
  right: 0;
  top: 36%;
  transform: rotate(4deg);
  z-index: 4;
  opacity: 0.98;
  width: min(168px, 29vw);
  animation-delay: -5.2s;
}

.hero-float-face {
  height: 100%;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.hero-float-card.is-swapping {
  animation-play-state: paused;
  pointer-events: none;
  z-index: 20 !important;
}

.hero-float-card.is-swapping.is-swap-flip,
.hero-float-card.is-swapping.is-swap-lift,
.hero-float-card.is-swapping.is-swap-tilt {
  overflow: visible;
}

.hero-float-card.is-swap-flip {
  perspective: 900px;
}

.hero-float-card.is-swap-out.is-swap-fade .hero-float-face {
  opacity: 0;
  filter: blur(6px) saturate(0.7);
  transform: scale(0.94);
  transition:
    opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.48s ease,
    transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-float-card.is-swap-prep.is-swap-fade .hero-float-face {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.06);
  transition: none;
}

.hero-float-card.is-swap-in.is-swap-fade .hero-float-face {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.56s ease,
    transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float-card.is-swap-out.is-swap-flip .hero-float-face {
  opacity: 0.15;
  transform: rotateY(90deg) scale(0.96);
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-float-card.is-swap-prep.is-swap-flip .hero-float-face {
  opacity: 0;
  transform: rotateY(-90deg) scale(0.96);
  transition: none;
}

.hero-float-card.is-swap-in.is-swap-flip .hero-float-face {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s ease 0.08s,
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float-card.is-swap-out.is-swap-lift .hero-float-face {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-28px) scale(0.88);
  transition:
    opacity 0.46s ease,
    filter 0.46s ease,
    transform 0.46s cubic-bezier(0.55, 0, 0.35, 1);
}

.hero-float-card.is-swap-prep.is-swap-lift .hero-float-face {
  opacity: 0;
  transform: translateY(26px) scale(0.9);
  transition: none;
}

.hero-float-card.is-swap-in.is-swap-lift .hero-float-face {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 0.42s ease,
    filter 0.42s ease,
    transform 0.54s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float-card.is-swap-out.is-swap-slide .hero-float-face {
  opacity: 0;
  transform: translateX(42%) scale(0.96);
  transition:
    opacity 0.36s ease,
    transform 0.44s cubic-bezier(0.55, 0, 0.2, 1);
}

.hero-float-card.is-swap-dir-left.is-swap-out.is-swap-slide .hero-float-face {
  transform: translateX(-42%) scale(0.96);
}

.hero-float-card.is-swap-prep.is-swap-slide .hero-float-face {
  opacity: 0;
  transform: translateX(-38%) scale(0.96);
  transition: none;
}

.hero-float-card.is-swap-dir-left.is-swap-prep.is-swap-slide .hero-float-face {
  transform: translateX(38%) scale(0.96);
}

.hero-float-card.is-swap-in.is-swap-slide .hero-float-face {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.38s ease,
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float-card.is-swap-out.is-swap-tilt .hero-float-face {
  opacity: 0;
  filter: blur(3px);
  transform: rotate(-12deg) scale(0.82) translateY(10px);
  transition:
    opacity 0.4s ease,
    filter 0.4s ease,
    transform 0.42s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-float-card.is-swap-prep.is-swap-tilt .hero-float-face {
  opacity: 0;
  transform: rotate(10deg) scale(0.84) translateY(-8px);
  transition: none;
}

.hero-float-card.is-swap-in.is-swap-tilt .hero-float-face {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 0.4s ease,
    filter 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float-card.is-swap-out.is-swap-bloom .hero-float-face {
  opacity: 0;
  filter: blur(8px) brightness(1.35);
  transform: scale(1.18);
  transition:
    opacity 0.4s ease,
    filter 0.4s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-float-card.is-swap-prep.is-swap-bloom .hero-float-face {
  opacity: 0;
  filter: blur(10px) brightness(1.2);
  transform: scale(0.78);
  transition: none;
}

.hero-float-card.is-swap-in.is-swap-bloom .hero-float-face {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float-card.is-swap-bloom.is-swap-in {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(196, 164, 106, 0.28);
}

.hero-float-card:hover {
  border-color: rgba(232, 212, 168, 0.72);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(31, 79, 71, 0.25);
}

.hero-float-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1a3530, #12201d);
  position: relative;
}

.hero-float-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float-cover img.is-loaded {
  opacity: 1;
}

.hero-float-cover.is-ready {
  background: #12201d;
}

.hero-float-body {
  padding: 10px 12px 12px;
  background: rgba(8, 14, 16, 0.96);
}

.hero-float-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f2f6f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-float-author {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: rgba(242, 246, 243, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-deck-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(242, 246, 243, 0.55);
  font-size: 0.9rem;
}

@keyframes hero-deck-ripple {
  0% {
    transform: scale(0.72);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes hero-card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes hero-card-float-center {
  0%,
  100% {
    transform: translate(-50%, 0) rotate(-2deg) translateY(0);
  }
  50% {
    transform: translate(-50%, 0) rotate(-2deg) translateY(-8px);
  }
}

@media (max-width: 900px) {
  body[data-page='home'] .hero,
  body[data-page='login'] .hero {
    min-height: calc(100svh - 48px - env(safe-area-inset-top, 0px));
    align-items: stretch;
    justify-content: stretch;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .hero-copy-col {
    align-items: stretch;
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-layout .hero-copy-panel {
    max-width: none;
    width: 100%;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-scroll {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 16px auto 0;
    align-self: center;
  }

  .hero-deck {
    min-height: 400px;
    max-width: 400px;
    margin: 8px auto 0;
  }

  .hero-deck-cards {
    min-height: 400px;
  }

  .hero-deck-hub {
    left: 50%;
    top: 42%;
  }

  .hero-float-card.is-slot-0 {
    left: 28%;
    top: 22%;
  }

  .hero-float-card.is-slot-1 {
    left: 0;
    top: 12%;
  }

  .hero-float-card.is-slot-2 {
    left: auto;
    right: 0;
    top: 10%;
  }

  .hero-float-card.is-slot-3 {
    left: 6%;
    top: 54%;
  }

  .hero-float-card.is-slot-4 {
    right: 0;
    top: 48%;
  }

  .home-scatter-stage .hero-float-card.is-slot-5,
  .home-scatter-stage .hero-float-card.is-slot-6,
  .home-scatter-stage .hero-float-card.is-slot-7,
  .home-scatter-stage .hero-float-card.is-slot-8,
  .home-scatter-stage .hero-float-card.is-slot-9,
  .home-scatter-stage .hero-float-card.is-slot-10 {
    display: none;
  }

  .home-explore-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .home-view-toggle {
    align-self: flex-start;
  }

  .home-scatter-stage,
  .home-scatter-cards {
    min-height: 620px;
    height: 620px;
  }

  .home-scatter-stage .hero-float-card {
    width: 124px;
  }

  .home-scatter-stage .hero-float-card.is-slot-0 {
    left: 32%;
    top: 18%;
    width: 132px;
  }

  .home-scatter-stage .hero-float-card.is-slot-1 {
    left: 5%;
    top: 14%;
    width: 116px;
  }

  .home-scatter-stage .hero-float-card.is-slot-2 {
    left: auto;
    right: 5%;
    top: 6%;
    width: 116px;
  }

  .home-scatter-stage .hero-float-card.is-slot-3 {
    left: 8%;
    top: 50%;
    width: 122px;
  }

  .home-scatter-stage .hero-float-card.is-slot-4 {
    left: auto;
    right: 5%;
    top: 46%;
    width: 122px;
  }

  .preview-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .preview-copy {
    order: 1;
  }

  .preview-mock-wrap {
    order: 2;
  }
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0f1c1a;
}

.hero-anime-bg {
  position: absolute;
  inset: 0;
  background-color: #0f1c1a;
  overflow: hidden;
  transform: none;
}

.hero-anime-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  transform: scale(1);
  will-change: transform, opacity;
}

.hero-anime-bg.is-kenburns .hero-anime-bg-img {
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}

.hero-anime-bg--fade {
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}

.hero-anime-bg--fade.is-visible {
  opacity: 1;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(31, 79, 71, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 25%, rgba(196, 164, 106, 0.28), transparent 50%),
    radial-gradient(ellipse 40% 35% at 60% 75%, rgba(74, 61, 82, 0.35), transparent 55%);
  animation: hero-aurora-shift 16s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orbs::before,
.hero-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: hero-orb-float 14s ease-in-out infinite alternate;
}

.hero-orbs::before {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  left: 8%;
  top: 18%;
  background: rgba(31, 79, 71, 0.35);
}

.hero-orbs::after {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  right: 10%;
  bottom: 22%;
  background: rgba(196, 164, 106, 0.22);
  animation-delay: -6s;
}

.hero-anime-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(4px 6px at 12% 18%, rgba(255, 184, 208, 0.55), transparent),
    radial-gradient(3px 5px at 88% 22%, rgba(255, 200, 220, 0.45), transparent),
    radial-gradient(5px 7px at 72% 65%, rgba(255, 168, 200, 0.4), transparent),
    radial-gradient(3px 4px at 25% 72%, rgba(255, 210, 230, 0.35), transparent);
  animation: hero-petals-drift 18s linear infinite;
  opacity: 0.7;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 22, 28, 0.22) 0%, rgba(12, 22, 28, 0.38) 42%, rgba(15, 28, 26, 0.68) 100%),
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(0, 0, 0, 0.08), transparent 55%);
}

.hero-center {
  width: min(1040px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #f4f7f5;
  animation: rise 1s ease both;
}

.hero-copy-panel {
  width: min(520px, 100%);
  padding: clamp(26px, 4vw, 36px) clamp(22px, 3.6vw, 32px) clamp(22px, 3.4vw, 28px);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(12, 18, 22, 0.46) 0%, rgba(8, 14, 18, 0.3) 100%);
  border: 1px solid rgba(232, 212, 168, 0.16);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(1.12);
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.hero-copy-panel--shine {
  position: relative;
  overflow: hidden;
}

.hero-copy-panel--shine::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 120deg,
    transparent 0deg,
    rgba(196, 164, 106, 0.14) 55deg,
    transparent 110deg,
    rgba(31, 79, 71, 0.12) 200deg,
    transparent 280deg
  );
  animation: hero-panel-shine 9s linear infinite;
  pointer-events: none;
}

.brand-lockup {
  margin: 0 0 14px;
  font-family: var(--font-cn);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
  color: #f7faf8;
  text-indent: 0.28em;
  text-shadow:
    0 2px 0 rgba(196, 164, 106, 0.35),
    0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  max-width: none;
  white-space: nowrap;
  color: #f7faf8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-title-prefix,
.hero-copy-panel #home-hero-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-weight: 700;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.85),
    0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-title-accent {
  background: linear-gradient(120deg, #fff7e8 0%, #e8c98a 45%, #c4a46a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 30em;
  font-size: 0.96rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(244, 247, 245, 0.82);
}

.hero-copy-panel .hero-lead {
  color: rgba(248, 250, 249, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-copy-panel .hero-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-copy-panel .brand-lockup {
  background: linear-gradient(135deg, #fff 0%, #e8d4a8 55%, #c4a46a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.hero-actions--cta .btn {
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #e8d4a8 0%, #c4a46a 48%, #8f7348 100%);
  color: #1a140c;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: none;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #f0e0b8, #d4b87a, #9a7d52);
  color: #1a140c;
}

.btn-hero-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.btn-hero-outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(232, 212, 168, 0.85);
}

.hero-tertiary {
  display: none;
}

.hero-scroll {
  position: relative;
  z-index: 3;
  margin-left: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: rgba(244, 247, 245, 0.78);
  border-bottom: 1px solid rgba(244, 247, 245, 0.22);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-scroll:hover {
  color: #f4f7f5;
  border-color: rgba(196, 164, 106, 0.8);
}

/* —— 独立玩卡预览段 —— */
.preview {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(31, 79, 71, 0.1), transparent 60%),
    linear-gradient(180deg, #e4ebe7 0%, var(--paper) 45%, #eef3f0 100%);
  border-top: 1px solid rgba(18, 32, 29, 0.08);
  padding-bottom: clamp(88px, 14vh, 140px);
}

.preview .eyebrow {
  color: var(--brass-deep);
}

.preview .section-title {
  color: var(--ink);
}

.preview .section-lead {
  color: rgba(18, 32, 29, 0.68);
}

.preview-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  max-width: min(1120px, 100%);
}

.preview-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .preview-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .preview-copy {
    order: 1;
  }

  .preview-mock-wrap {
    order: 2;
  }
}

.preview-copy .section-title {
  margin-bottom: 12px;
}

.preview-copy .section-lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 36em;
  margin-bottom: 18px;
  line-height: 1.85;
}

.preview-badges {
  justify-content: flex-start;
}

.preview-points {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.preview-points li {
  position: relative;
  padding: 16px 0 16px 18px;
  border-bottom: 1px solid rgba(18, 32, 29, 0.08);
}

.preview-points li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.preview-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(143, 115, 72, 0.12);
  transform: rotate(45deg);
}

.preview-points strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.preview-points span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(18, 32, 29, 0.64);
}

.preview-mock-wrap {
  width: 100%;
  animation: none;
  padding: 3px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(196, 164, 106, 0.55),
    rgba(31, 79, 71, 0.45),
    rgba(91, 61, 156, 0.28)
  );
  box-shadow:
    0 28px 64px rgba(18, 32, 29, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.preview-mock-wrap .mock-shell {
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.preview .mock-body {
  min-height: 320px;
}

.preview .mock-side-list li.is-active {
  border-color: rgba(31, 79, 71, 0.55);
  background: rgba(31, 79, 71, 0.12);
}

@keyframes preview-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.preview-badges {
  display: none;
}

.preview-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 79, 71, 0.15);
}

/* —— 模拟玩卡窗口（独立区块，高度随内容撑开） —— */
.mock-shell {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(18, 32, 29, 0.2);
  background: #0f1418;
  text-align: left;
}

.mock-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #171c22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px 14px 0 0;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4550;
}

.mock-dots span:nth-child(1) {
  background: #c4785c;
}
.mock-dots span:nth-child(2) {
  background: #c4a46a;
}
.mock-dots span:nth-child(3) {
  background: #6f9b7a;
}

.mock-chrome-title {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(242, 246, 243, 0.78);
  text-align: center;
}

.mock-chrome-meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(196, 164, 106, 0.85);
}

.mock-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: auto;
  max-height: none;
  min-height: 0;
  align-items: stretch;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

.mock-side {
  padding: 14px 12px;
  background: #12181e;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-side-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(242, 246, 243, 0.45);
}

.mock-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mock-side-list li {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mock-side-list li.is-active {
  background: linear-gradient(135deg, rgba(31, 79, 71, 0.5), rgba(20, 56, 50, 0.35));
  border-color: rgba(196, 164, 106, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mock-side-list strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #eef3f0;
  font-family: var(--font-cn);
}

.mock-side-list span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(238, 243, 240, 0.45);
}

.mock-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  background: #1a1f26;
}

.mock-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-chat-name {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 0.98rem;
  color: #f2f6f3;
}

.mock-chat-sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: rgba(242, 246, 243, 0.45);
}

.mock-chat-tools {
  display: flex;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(242, 246, 243, 0.5);
}

.mock-chat-tools span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.mock-thread {
  flex: 0 0 auto;
  overflow: visible;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-msg-user {
  align-self: flex-end;
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 10px 10px 4px 10px;
  background: linear-gradient(135deg, #5b3d9c, #4a2f86);
  color: #fff;
  font-size: 0.86rem;
}

.mock-msg-user p {
  margin: 0;
}

.mock-msg-asst {
  align-self: stretch;
  max-width: 92%;
  display: grid;
  gap: 8px;
}

.mock-think {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(242, 246, 243, 0.4);
}

.mock-bubble {
  padding: 12px 14px;
  border-radius: 4px 12px 12px 12px;
  background: #f3ebe0;
  color: #3f2e1e;
  font-family: var(--font-cn);
  font-size: 0.88rem;
  line-height: 1.7;
  border: 1px solid #e4d4bb;
}

.mock-bubble p {
  margin: 0 0 0.7em;
}

.mock-bubble p:last-child {
  margin-bottom: 0;
}

.mock-quote {
  color: #a6603d !important;
}

.mock-panel {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(196, 164, 106, 0.35);
  background: #f7f0e4;
}

.mock-panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-family: var(--font-cn);
  color: #2c2416;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(60, 40, 20, 0.08);
}

.mock-panel-tags {
  opacity: 0.55;
  letter-spacing: 0.08em;
}

.mock-panel-body {
  padding: 12px 14px 14px;
  font-family: var(--font-cn);
  font-size: 0.84rem;
  line-height: 1.75;
  color: #2c2416;
}

.mock-panel-body p {
  margin: 0;
  text-indent: 2em;
}

.mock-msg-typing {
  display: inline-flex;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.mock-msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(242, 246, 243, 0.55);
  animation: typing 1.2s ease-in-out infinite;
}

.mock-msg-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.mock-msg-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.mock-composer {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #151a20;
}

.mock-input {
  margin: 0;
  flex: 1;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 246, 243, 0.4);
  font-size: 0.84rem;
}

.mock-send {
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  min-width: 72px;
  padding: 0 18px;
  background: linear-gradient(135deg, #d4b87a, #8f7348);
  color: #1a140c;
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.btn-ghost-dark {
  border-color: rgba(18, 32, 29, 0.25);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.btn-ghost-dark:hover {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--brass));
  color: #1a140c;
}

.btn-primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, white), var(--brass-deep));
}

.btn-primary.is-disabled,
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn-ghost {
  border-color: rgba(244, 247, 245, 0.55);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(196, 164, 106, 0.12);
}

.btn-ghost:hover {
  border-color: rgba(196, 164, 106, 0.85);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.btn-plan {
  width: 100%;
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-plan:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 12vh, 120px) clamp(18px, 5vw, 56px);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-cn);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.section-lead {
  margin: 0 0 40px;
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.home-explore-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.home-explore-copy {
  min-width: 0;
  flex: 1;
}

.home-explore-copy .section-lead {
  margin-bottom: 0;
}

.home-view-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(18, 32, 29, 0.04);
}

.home-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
}

.home-view-btn.is-active {
  background: var(--teal);
  color: #f2f6f3;
}

.home-explore-stage {
  margin-top: 22px;
}

.home-explore-stage[data-view="scatter"] .home-card-rail-wrap,
.home-explore-stage[data-view="scatter"] + .home-rail-hint {
  display: none;
}

.home-explore-stage[data-view="grid"] .home-scatter {
  display: none;
}

.home-scatter-stage {
  position: relative;
  min-height: 700px;
  border-radius: 28px;
  overflow: hidden;
  background: #0f1c1a;
  box-shadow: 0 22px 50px rgba(7, 11, 24, 0.22);
}

.home-scatter-stage > .hero-anime-bg {
  z-index: 0;
}

.home-scatter-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 14, 22, 0.22) 0%, rgba(8, 14, 22, 0.38) 100%),
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 30%, rgba(8, 14, 22, 0.28) 100%);
}

.home-scatter-cards {
  position: relative;
  z-index: 2;
  height: 700px;
}

.home-scatter-stage .hero-float-card {
  width: 148px;
}

.home-scatter-stage .hero-float-card.is-slot-0 {
  left: 32%;
  top: 16%;
  width: 166px;
}

.home-scatter-stage .hero-float-card.is-slot-1 {
  left: 4%;
  top: 10%;
  width: 142px;
}

.home-scatter-stage .hero-float-card.is-slot-2 {
  left: 50%;
  top: 4%;
  right: auto;
  width: 146px;
}

.home-scatter-stage .hero-float-card.is-slot-3 {
  left: 8%;
  top: 50%;
  width: 144px;
}

.home-scatter-stage .hero-float-card.is-slot-4 {
  left: auto;
  right: 4%;
  top: 8%;
  width: 144px;
}

.home-scatter-stage .hero-float-card.is-slot-5 {
  left: 38%;
  top: 52%;
  width: 148px;
}

.home-scatter-stage .hero-float-card.is-slot-6 {
  left: auto;
  right: 6%;
  top: 46%;
  width: 146px;
}

.home-scatter-stage .hero-float-card.is-slot-7 {
  left: 20%;
  top: 28%;
  width: 136px;
}

.home-scatter-stage .hero-float-card.is-slot-8 {
  left: auto;
  right: 10%;
  top: 27%;
  width: 142px;
  transform: rotate(3deg);
  z-index: 3;
}

.home-scatter-stage .hero-float-card.is-slot-9 {
  left: auto;
  right: 22%;
  top: 15%;
  width: 140px;
  transform: rotate(-2deg);
  z-index: 4;
}

.home-scatter-stage .hero-float-card.is-slot-10 {
  left: auto;
  right: 24%;
  top: 54%;
  width: 142px;
  transform: rotate(2deg);
  z-index: 3;
}

.home-scatter-stage .hero-float-cover img {
  opacity: 1;
}

.story-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.story-points li {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.story-points strong {
  font-family: var(--font-cn);
  font-size: 1.15rem;
  font-weight: 600;
}

.story-points span {
  color: var(--ink-soft);
}

.story {
  background:
    radial-gradient(900px 380px at 8% 0%, rgba(31, 79, 71, 0.07), transparent 55%),
    linear-gradient(180deg, #eef3f0 0%, var(--paper) 40%, #e7eeea 100%);
}

.story .eyebrow {
  letter-spacing: 0.12em;
  text-transform: none;
}

.story-lead {
  margin: 0 0 32px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 56px;
}

.system-card {
  position: relative;
  margin: 0;
  padding: 26px 26px 24px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 248, 0.92));
  border: 1px solid rgba(18, 32, 29, 0.08);
  box-shadow: 0 16px 36px rgba(18, 32, 29, 0.05);
}

.system-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
}

.system-card-code {
  display: block;
  margin-bottom: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 600;
}

.system-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-cn);
  font-size: 1.18rem;
  font-weight: 600;
}

.system-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.flow-block {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.flow-block .section-title {
  margin-bottom: 22px;
}

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flow-step {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.9));
  border: 1px solid rgba(18, 32, 29, 0.08);
  box-shadow: 0 12px 28px rgba(18, 32, 29, 0.04);
}

.flow-step-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--brass-deep);
}

.flow-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-cn);
  font-size: 1.12rem;
}

.flow-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.recharge {
  background:
    linear-gradient(180deg, rgba(31, 79, 71, 0.06), transparent 30%),
    rgba(255, 255, 255, 0.35);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 79, 71, 0.28);
  box-shadow: var(--shadow);
}

.plan-featured,
.plan.is-featured {
  background: linear-gradient(165deg, #1f4f47 0%, #143832 70%) !important;
  color: #f2f6f3 !important;
  border-color: rgba(196, 164, 106, 0.35) !important;
  box-shadow: 0 20px 48px rgba(20, 56, 50, 0.28);
}

.plan-featured .plan-name,
.plan-featured .plan-price,
.plan-featured .plan-price span,
.plan-featured .plan-price small,
.plan-featured li,
.plan.is-featured .plan-name,
.plan.is-featured .plan-price,
.plan.is-featured .plan-price span,
.plan.is-featured .plan-price small,
.plan.is-featured li,
.plan-featured .plan-desc,
.plan-featured ul,
.plan.is-featured .plan-desc,
.plan.is-featured ul {
  color: rgba(242, 246, 243, 0.92) !important;
}

.plan-featured .btn-primary,
.plan.is-featured .btn-primary {
  margin-top: auto;
  background: linear-gradient(135deg, #c4a46a, #8f7348);
  color: #12201d;
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #1a140c;
  background: #c4a46a;
  padding: 4px 8px;
  border-radius: 3px;
}

.plan-name {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.4rem;
}

.plan-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price span {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}

.plan-price small {
  color: inherit;
  opacity: 0.7;
}

.plan-desc {
  margin: 0;
  min-height: 2.8em;
  color: var(--ink-soft);
}

.plan ul {
  margin: 0 0 8px;
  padding-left: 1.1em;
  flex: 1;
  color: var(--ink-soft);
}

.plan li + li {
  margin-top: 6px;
}

.plan .btn {
  margin-top: auto;
}

.recharge-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--brass);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.recharge-note p {
  margin: 0;
}

.download-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: min(1040px, 100%);
}

.download-hero {
  text-align: center;
  margin-bottom: 4px;
}

.download-page-title {
  margin-bottom: 10px;
}

.download-card {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 16px;
  border: 1px solid rgba(18, 32, 29, 0.1);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(242, 246, 243, 0.78)),
    radial-gradient(800px 320px at 100% 0%, rgba(31, 79, 71, 0.08), transparent 55%);
  box-shadow: 0 22px 50px rgba(18, 32, 29, 0.08);
}

.download-tabs {
  display: inline-flex;
  gap: 0;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 12px;
  background: rgba(18, 32, 29, 0.06);
  border: 1px solid rgba(18, 32, 29, 0.08);
  margin-bottom: 28px;
}

.download-tab {
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.download-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  background: rgba(18, 32, 29, 0.06);
  color: var(--brass-deep);
}

.download-tab.is-active {
  border-color: rgba(31, 79, 71, 0.35);
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: #f2f6f3;
  box-shadow: 0 8px 20px rgba(20, 56, 50, 0.22);
}

.download-tab.is-active .download-tab-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #f2f6f3;
}

.download-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.download-spec {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 32, 29, 0.08);
}

.download-spec span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brass-deep);
}

.download-spec strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.download-spec strong.is-muted {
  color: rgba(42, 61, 56, 0.45);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.download-actions .btn {
  flex: 1 1 160px;
  min-height: 46px;
  border-radius: 8px;
}

.btn-secondary {
  border: 1px solid rgba(18, 32, 29, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.btn-secondary:hover {
  border-color: var(--teal);
  background: #fff;
  color: var(--teal-deep);
}

.download-panel-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.download-panel-layout.is-hidden {
  display: none;
}

.download-version {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--brass-deep);
  vertical-align: middle;
  margin-left: 0.35em;
}

.download-meta {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.download-meta li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.download-meta span {
  width: 48px;
  color: var(--brass-deep);
  font-size: 0.85rem;
}

.download-hint {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.download-panel {
  min-height: 320px;
  border-radius: 12px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(31, 79, 71, 0.92), rgba(18, 32, 29, 0.95)),
    radial-gradient(circle at 30% 20%, rgba(196, 164, 106, 0.35), transparent 50%);
  box-shadow: var(--shadow);
}

.download-panel-frame {
  height: 100%;
  min-height: 284px;
  border: 1px solid rgba(242, 246, 243, 0.18);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #f2f6f3;
}

.download-panel-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.7;
}

.download-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
}

.download-panel-line {
  margin: 10px 0 0;
  opacity: 0.78;
}

.site-footer {
  padding: 48px clamp(18px, 5vw, 56px) 56px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.footer-copy {
  margin: 6px 0 18px;
  color: var(--ink-soft);
}

.footer-legal {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(42, 61, 56, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-4%, 3%, 0);
  }
}

@keyframes hero-kenburns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.03) translate3d(-0.5%, 0.25%, 0);
  }
}

@keyframes hero-aurora-shift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(2%, -3%) scale(1.06);
  }
}

@keyframes hero-orb-float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(4%, -6%);
  }
}

@keyframes hero-panel-shine {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-petals-drift {
  0% {
    transform: translate(0, 0);
    opacity: 0.65;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    transform: translate(-3%, 4%);
    opacity: 0.65;
  }
}

@keyframes typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 960px) {
  .plan-grid,
  .download-panel-layout {
    grid-template-columns: 1fr;
  }

  .download-spec-grid {
    grid-template-columns: 1fr;
  }

  .download-tabs {
    display: flex;
    width: 100%;
  }

  .download-tab {
    flex: 1;
    justify-content: center;
  }

  .story-points li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .preview-mock .mock-side {
    display: none;
  }

  .mock-side {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mock-side-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .home-explore-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .home-view-toggle {
    align-self: flex-start;
  }

  .home-scatter-stage,
  .home-scatter-cards {
    min-height: 620px;
    height: 620px;
  }

  .home-scatter-stage .hero-float-card {
    width: 118px;
  }

  .home-scatter-stage .hero-float-card.is-slot-0 {
    left: 32%;
    top: 18%;
    width: 128px;
  }

  .home-scatter-stage .hero-float-card.is-slot-1 {
    left: 4%;
    top: 12%;
    width: 112px;
  }

  .home-scatter-stage .hero-float-card.is-slot-2 {
    left: auto;
    right: 4%;
    top: 6%;
    width: 112px;
  }

  .home-scatter-stage .hero-float-card.is-slot-3 {
    left: 8%;
    top: 50%;
    width: 118px;
  }

  .home-scatter-stage .hero-float-card.is-slot-4 {
    left: auto;
    right: 4%;
    top: 46%;
    width: 118px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .brand-lockup {
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .mock-side-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-anime-bg,
  .hero-aurora,
  .hero-orbs::before,
  .hero-orbs::after,
  .hero-anime-petals,
  .hero-copy-panel--shine::before,
  .hero-copy,
  .reveal,
  .hero-float-face {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
