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

:root {
  --bg: #ffffff;
  --bg-lavender: #F5F3FF;
  --accent: #A78BFA;
  --accent-hover: #9370F0;
  --accent-soft: rgba(167, 139, 250, 0.12);
  --text: #1E293B;
  --text-muted: #64748B;
  --text-subtle: #64748B;
  --border: #E9D5FF;
  --max-width: 720px;
  --landing-width: 1120px;
  --nav-height: 72px;
  --ease: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--landing-width);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: var(--nav-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--ease);
}

.logo:hover {
  color: var(--accent);
}

.logo__mark {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-header__nav a {
  color: var(--text-muted);
  padding: 0.25rem 0.1rem;
  transition: color var(--ease);
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  color: var(--accent);
}

.site-header__nav--zh,
.site-header__nav--zh-cn {
  display: none;
}

body:has(#zh:target) .site-header__nav--en {
  display: none;
}

body:has(#zh:target) .site-header__nav--zh {
  display: flex;
}

body:has(#zh-cn:target) .site-header__nav--en,
body:has(#zh-cn:target) .site-header__nav--zh {
  display: none;
}

body:has(#zh-cn:target) .site-header__nav--zh-cn {
  display: flex;
}

.lang-switch {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--text-subtle);
}

.lang-switch a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.25rem 0.1rem;
  transition: color var(--ease);
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--accent);
}

.lang-switch__sep {
  margin: 0 0.5rem;
  opacity: 0.45;
}

/* Layout */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.75rem 5rem;
}

main.landing {
  display: block;
  max-width: var(--landing-width);
  padding: 2.5rem 1.75rem 4rem;
}

main:has(.page-narrow) {
  justify-content: flex-start;
  padding-top: 3rem;
}

.page-narrow {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Landing — language panels */

.landing-panel--zh,
.landing-panel--zh-cn {
  display: none;
}

body:has(#zh:target) .landing-panel--en {
  display: none;
}

body:has(#zh:target) .landing-panel--zh {
  display: block;
}

body:has(#zh-cn:target) .landing-panel--en,
body:has(#zh-cn:target) .landing-panel--zh {
  display: none;
}

body:has(#zh-cn:target) .landing-panel--zh-cn {
  display: block;
}

body:has(#zh:target) .lang-switch a[href="#zh"] {
  color: var(--accent);
}

body:has(#zh:target) .lang-switch a[href="./"] {
  color: var(--text-muted);
}

body:has(#zh-cn:target) .lang-switch a[href="#zh-cn"] {
  color: var(--accent);
}

body:has(#zh-cn:target) .lang-switch a[href="./"] {
  color: var(--text-muted);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1rem 0 4.5rem;
}

.hero__copy {
  text-align: left;
  padding-left: 2rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--accent);
}

.hero__subtitle {
  margin: 0 0 0.75rem;
  max-width: 22rem;
  color: var(--text);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.hero__subtitle em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.hero__tagline {
  margin: 0 0 2rem;
  max-width: 22rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero__tagline--lead {
  margin-bottom: 0.75rem;
}

.hero__visual {
  min-width: 0;
}

/* App Store button */

.app-store-btn {
  display: inline-block;
  line-height: 0;
}

.app-store-btn img {
  display: block;
  height: 52px;
  width: auto;
}

.app-store-btn:hover {
  opacity: 0.85;
}

.app-store-btn__icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.app-store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.app-store-btn__small {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.app-store-btn__large {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hero illustration — seamless blend into page background */

.hero-scene {
  position: relative;
  line-height: 0;
  background: transparent;
  overflow: visible;
}

.hero-scene__illustration {
  display: block;
  width: 100%;
  height: auto;
  /* Feather outer edges so white PNG margins dissolve into the page */
  -webkit-mask-image: radial-gradient(
    ellipse 104% 102% at 50% 50%,
    #000 0%,
    #000 74%,
    rgba(0, 0, 0, 0.55) 88%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 104% 102% at 50% 50%,
    #000 0%,
    #000 74%,
    rgba(0, 0, 0, 0.55) 88%,
    transparent 100%
  );
}

/* Soft white vignette — merges illustration edge with page (Apple-style) */
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 13%),
    linear-gradient(270deg, var(--bg) 0%, transparent 13%),
    linear-gradient(180deg, var(--bg) 0%, transparent 10%),
    linear-gradient(0deg, var(--bg) 0%, transparent 12%);
}

/* Features */

.features {
  margin-bottom: 4.5rem;
  padding: 2.25rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-lavender);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  text-align: center;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent);
}

.feature-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.feature-card__title--single-line {
  white-space: nowrap;
}

.feature-card__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Music section */

.music-section {
  margin-bottom: 3.25rem;
}

.music-section__card {
  padding: 1.35rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #F3EEFF;
}

.music-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(13.5rem, 16.5rem);
  gap: 1.25rem 1.75rem;
  align-items: center;
}

.music-section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.music-section__label-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.music-section__heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

.music-section__desc {
  margin: 0;
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.music-section__artwork {
  width: 12.5rem;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.14);
}

.music-section__artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.95rem 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.music-preview__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.music-preview__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.music-preview__subtitle {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.music-preview__wave {
  display: flex;
  align-items: flex-end;
  gap: 0.18rem;
  height: 1.45rem;
  margin: 0.7rem 0 0.55rem;
}

.music-preview__wave span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 999px;
  background: #E9D5FF;
  transition: background var(--ease);
}

.music-preview.is-playing .music-preview__wave span {
  background: #C4B5FD;
  animation: music-wave 0.9s ease-in-out infinite alternate;
}

.music-preview.is-playing .music-preview__wave span:nth-child(odd) {
  animation-delay: 0.15s;
}

@keyframes music-wave {
  from { transform: scaleY(0.72); }
  to { transform: scaleY(1); }
}

.music-preview__transport {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.music-preview__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.28);
  transition:
    background var(--ease),
    transform var(--ease);
}

.music-preview__play:hover {
  background: var(--accent-hover);
}

.music-preview__play svg {
  width: 0.85rem;
  height: 0.85rem;
}

.music-preview__play .music-preview__icon-pause,
.music-preview__play.is-playing .music-preview__icon-play {
  display: none;
}

.music-preview__play.is-playing .music-preview__icon-pause {
  display: block;
}

.music-preview__time-current,
.music-preview__time-total {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}

.music-preview__progress {
  --progress: 0%;
  width: 100%;
  height: 0.28rem;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--progress),
    #EDE9FE var(--progress),
    #EDE9FE 100%
  );
  cursor: pointer;
}

.music-preview__progress::-webkit-slider-thumb {
  appearance: none;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--accent);
  box-shadow: 0 1px 3px rgba(167, 139, 250, 0.35);
}

.music-preview__progress::-moz-range-thumb {
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 3px rgba(167, 139, 250, 0.35);
}

.music-preview__quote {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--text-muted);
}

.music-preview__audio {
  display: none;
}

/* Showcase + stats */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 2rem;
}

.showcase-gallery {
  width: 100%;
  min-width: 0;
}

.showcase-gallery__viewport {
  container-type: inline-size;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}

.showcase-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.showcase-gallery__track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  padding: 0.75rem 0 1rem;
}

.showcase-gallery__edge {
  flex: 0 0 max(0px, calc(50cqw - var(--showcase-slide-half)));
  width: max(0px, calc(50cqw - var(--showcase-slide-half)));
  pointer-events: none;
  scroll-snap-align: none;
}

:root {
  --showcase-slide-half: 6.3rem;
}

.showcase-gallery__slide {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform: scale(0.88);
  opacity: 0.55;
}

.showcase-gallery__slide.is-active {
  transform: scale(1);
  opacity: 1;
}

.showcase-gallery__frame {
  padding: 0.55rem;
  border-radius: 28px;
  background: linear-gradient(145deg, #1E293B, #334155);
  box-shadow: 0 16px 40px rgba(30, 41, 59, 0.18);
}

.showcase-gallery__screen {
  position: relative;
  overflow: hidden;
  width: 11.5rem;
  height: 24rem;
  border-radius: 22px;
  background: #0f172a;
}

.showcase-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.showcase-gallery__image:not([src]),
.showcase-gallery__image[src=""] {
  display: none;
}

.showcase-gallery__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.showcase-gallery__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition:
    background var(--ease),
    transform var(--ease),
    width var(--ease);
}

.showcase-gallery__dot.is-active {
  width: 1.25rem;
  background: var(--accent);
}

.showcase-gallery__dot:hover {
  background: #C4B5FD;
}

.showcase-gallery__dot.is-active:hover {
  background: var(--accent-hover);
}

@media (min-width: 901px) {
  :root {
    --showcase-slide-half: 6.8rem;
  }

  .showcase-gallery__track {
    gap: 1.5rem;
  }

  .showcase-gallery__screen {
    width: 12.5rem;
    height: 26rem;
  }
}

.showcase__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.showcase__heading em {
  font-style: normal;
  color: var(--accent);
}

.showcase__desc {
  margin: 0 0 1.75rem;
  max-width: 24rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-lavender);
}

.stat-card__icon {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.stat-card__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.stat-card__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.stat-card__label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .site-header__inner {
    height: auto;
    min-height: var(--nav-height);
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .site-header__end {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.25rem;
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero__copy {
    text-align: center;
    padding-left: 0;
  }

  .hero__subtitle,
  .hero__tagline {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-scene {
    max-width: 32rem;
    margin: 0 auto;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .music-section__card {
    padding: 1.15rem 1rem;
  }

  .music-section__layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .music-section__artwork {
    order: -1;
    justify-self: center;
    width: min(100%, 11.5rem);
  }

  .music-section__copy {
    text-align: center;
  }

  .music-section__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .music-preview {
    width: 100%;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showcase__copy {
    text-align: center;
  }

  .showcase__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .story-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 28rem;
  }

  .story-mascot {
    position: static;
    max-width: 20rem;
    margin: 0 auto;
  }

  .showcase-gallery__screen {
    width: 10rem;
    height: 21rem;
  }

  :root {
    --showcase-slide-half: 5.55rem;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 0.875rem 1.75rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid var(--border);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.25);
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background var(--ease);
}

.btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.35);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* Language panels (legacy class names kept for compatibility) */

.home-panel--zh {
  display: none;
}

body:has(#zh:target) .home-panel--en {
  display: none;
}

body:has(#zh:target) .home-panel--zh {
  display: block;
}

/* Content pages */

.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 0.875rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal-section p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section a:hover {
  color: var(--accent-hover);
}

/* Support */

.support-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-lavender);
  box-shadow: 0 2px 12px rgba(167, 139, 250, 0.08);
}

.support-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.support-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.support-email {
  display: inline-block;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
  transition: color var(--ease);
}

.support-email:hover {
  color: var(--accent-hover);
}

/* Brand story */

main.story-page {
  display: block;
  max-width: var(--landing-width);
  padding: 2.5rem 1.75rem 4rem;
}

.story {
  width: 100%;
}

.story-hero {
  padding: 2.5rem 0 2.5rem;
  text-align: center;
}

.story-hero__inner {
  max-width: 52rem;
  margin: 0 auto;
}

.story-hero__title {
  margin: 0;
  font-size: clamp(2.125rem, 4.8vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--accent);
}

.story-hero__intro {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  color: var(--text);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.story-main {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem 3rem;
  align-items: start;
  max-width: var(--landing-width);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .story-main--founder {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 28rem;
  }
}

.story-mascot {
  display: block;
  margin: 0;
  max-width: none;
  padding: 0;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

@media (max-width: 900px) {
  .story-mascot--founder {
    position: static;
    width: min(100%, 20rem);
    max-width: 20rem;
    justify-self: center;
    margin: 0;
  }
}

.story-mascot__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-lavender);
  box-shadow: 0 2px 12px rgba(167, 139, 250, 0.06);
}

.story-mascot__frame:not(:has(.story-mascot__img[src]:not([src=""]))) {
  border: 2px dashed #C4B5FD;
  background: repeating-linear-gradient(
    -45deg,
    #F5F3FF,
    #F5F3FF 8px,
    #EDE9FE 8px,
    #EDE9FE 16px
  );
}

.story-mascot__frame:has(.story-mascot__img[src]:not([src=""])) {
  border-style: solid;
  background: #fff;
}

.story-mascot__img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-mascot__img[src]:not([src=""]) {
  display: block;
}

.story-mascot__caption {
  margin: 1.125rem 0 0;
  padding: 0 0.25rem;
  text-align: center;
}

.story-mascot__caption-title {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.85;
  color: var(--text-muted);
}

.story-mascot__caption-title strong {
  font-weight: 700;
  color: var(--text);
}

.story-mascot__caption-subtitle {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: var(--text-muted);
}

.story-body {
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.story-body p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.story-body h2:first-child {
  margin-top: 0;
}

.story-body h3 {
  margin: 2rem 0 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.story-body strong {
  font-weight: 700;
  color: var(--text);
}

/* Footer */

.site-footer {
  position: relative;
  max-width: var(--landing-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.75rem 2.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer__tagline {
  margin: 0 auto;
  padding: 0 1.75rem 2rem;
  max-width: var(--landing-width);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-footer__version {
  margin-left: 0.35rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.75;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
}

.site-footer__links a {
  color: var(--text-muted);
  font-weight: 400;
  transition: color var(--ease);
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__sep {
  color: var(--border);
  user-select: none;
}

.site-footer__links--zh,
.site-footer__links--zh-cn {
  display: none;
}

.site-footer__disclaimer {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  color: var(--text-subtle);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.site-footer__disclaimer--zh,
.site-footer__disclaimer--zh-cn {
  display: none;
}

body:has(#zh:target) .site-footer__links--en {
  display: none;
}

body:has(#zh:target) .site-footer__links--zh {
  display: flex;
}

body:has(#zh:target) .site-footer__disclaimer--en {
  display: none;
}

body:has(#zh:target) .site-footer__disclaimer--zh {
  display: block;
}

body:has(#zh-cn:target) .site-footer__links--en,
body:has(#zh-cn:target) .site-footer__links--zh {
  display: none;
}

body:has(#zh-cn:target) .site-footer__links--zh-cn {
  display: flex;
}

body:has(#zh-cn:target) .site-footer__disclaimer--en,
body:has(#zh-cn:target) .site-footer__disclaimer--zh {
  display: none;
}

body:has(#zh-cn:target) .site-footer__disclaimer--zh-cn {
  display: block;
}

/* Responsive */

@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  .site-header__inner {
    height: auto;
    min-height: var(--nav-height);
    padding: 0.65rem 1.25rem;
  }

  .site-header__end {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  main {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  main.landing {
    padding: 1.5rem 1.25rem 3rem;
  }

  main:has(.page-narrow) {
    padding-top: 2rem;
  }

  main.story-page {
    padding: 1.75rem 1.25rem 3rem;
  }

  .story-hero {
    padding: 1.75rem 0 1.75rem;
  }

  .story-hero__title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .story-main {
    max-width: none;
  }

  .story-mascot {
    max-width: 16rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__subtitle,
  .hero__tagline {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-scene {
    max-width: 28rem;
    margin: 0 auto;
  }

  .features {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showcase-gallery__track {
    gap: 1rem;
  }

  :root {
    --showcase-slide-half: 5.3rem;
  }

  .showcase-gallery__screen {
    width: 9.5rem;
    height: 20rem;
  }

  .showcase__copy {
    text-align: center;
  }

  .showcase__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    min-width: unset;
  }

  .support-card {
    padding: 2.25rem 1.5rem;
  }

  .site-footer {
    padding: 1.75rem 1.25rem 2.25rem;
  }

  .site-footer__tagline {
    padding: 0 1.25rem 1.75rem;
  }

  .feature-card__title--single-line {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
