:root {
  --cream: #faf6f1;
  --cream-2: #f2ebe3;
  --paper: #efe7de;
  --blush: #f2ebe3;
  --pink: #ffd3e0;
  --pink-deep: #c86b84;
  --lavender: #ebecfa;
  --mint: #dff3ea;
  --peach: #f6eadf;
  --blue-soft: #bbe9f2;
  --ink: #2e2530;
  --ink-deep: #1c1621;
  --ink-soft: rgba(110, 98, 114, 0.8);
  --ink-faint: rgba(110, 98, 114, 0.55);
  --line: #3a2e33;
  --line-soft: rgba(58, 46, 51, 0.16);
  --white: #fff;
  --shadow: 0 20px 60px rgba(58, 46, 51, 0.12);
  --shadow-hard: 0 10px 0 rgba(58, 46, 51, 0.9);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1180px;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --font-body: "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo,
    Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
}

::selection {
  background: var(--pink-deep);
  color: #fff;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  background: var(--ink-deep);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 238, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line-soft);
  box-shadow: 0 8px 30px rgba(84, 69, 63, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--blush);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--pink-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--ink-deep);
  color: var(--cream);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px) rotate(-4deg);
  background: var(--pink);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary svg {
  width: 18px;
  height: 18px;
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 160px;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.mobile-menu nav a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu nav a:hover {
  background: var(--blush);
}

/* ---------- shared ---------- */
section[id] {
  scroll-margin-top: 84px;
}

.section {
  position: relative;
  padding: 96px 0;
}

.kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pink-deep);
  text-transform: uppercase;
}

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-head h2,
.status-hero h1 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.section-intro {
  max-width: 700px;
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(84, 69, 63, 0.9);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(84, 69, 63, 0.9);
}

.btn-primary {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--cream);
}

.btn-secondary {
  background: var(--white);
}

.btn-ghost {
  background: transparent;
}

.btn-block {
  width: 100%;
  margin-top: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link::after {
  content: " ↗";
  font-size: 0.9em;
}

.text-link:hover {
  color: var(--pink-deep);
}

.text-link.is-disabled {
  opacity: 0.5;
  text-decoration: none;
  cursor: default;
}

.text-link.is-disabled::after {
  content: "";
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips span {
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.fineprint {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-faint);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.blob-pink {
  width: 440px;
  height: 440px;
  left: -140px;
  top: -100px;
  background: var(--pink);
}

.blob-lavender {
  width: 380px;
  height: 380px;
  right: 6%;
  top: 8%;
  background: var(--lavender);
}

.blob-mint {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -140px;
  background: var(--mint);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: center;
}

.hero-title {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 70px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

html[lang="ja"] .hero-title {
  font-size: clamp(32px, 4.6vw, 60px);
}

html[lang="ja"] .section-head h2,
html[lang="ja"] .status-hero h1 {
  font-size: clamp(26px, 3.5vw, 44px);
}

.hero-title em {
  position: relative;
  z-index: 0;
  color: var(--pink-deep);
  font-style: normal;
  white-space: nowrap;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.08em;
  z-index: -1;
  height: 0.2em;
  border-radius: var(--radius-pill);
  background: var(--pink);
}

.hero-intro {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: clamp(14px, 1.25vw, 17px);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.hero-version {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 410px);
}

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 240px 240px 30px 30px;
  background: var(--cream-2);
  box-shadow: var(--shadow);
}

.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Live2D 就绪后淡出；visibility 延迟到淡完之后，避免剪影衬在透明画布下 */
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.hero-frame.is-live2d .hero-poster {
  opacity: 0;
  visibility: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-frame.is-live2d .hero-canvas {
  opacity: 1;
}

.hero-glow {
  position: absolute;
  inset: -14%;
  z-index: 0;
  width: 128%;
  height: 128%;
  object-fit: cover;
  opacity: 0.9;
  pointer-events: none;
}

.hero-sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
  animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

.hero-badge {
  position: absolute;
  right: 14px;
  top: -12px;
  z-index: 3;
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(250, 246, 241, 0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pink-deep);
  backdrop-filter: blur(6px);
}

.video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 249, 238, 0.9);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.video-toggle svg {
  width: 15px;
  height: 15px;
}

.video-toggle .icon-play {
  display: none;
}

.video-toggle.is-paused .icon-pause {
  display: none;
}

.video-toggle.is-paused .icon-play {
  display: block;
}

.video-toggle.is-loading {
  cursor: wait;
  opacity: 0.65;
}

.hero-caption {
  position: absolute;
  left: -18px;
  bottom: -16px;
  z-index: 3;
  margin: 0;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--blush);
  box-shadow: 0 8px 20px rgba(84, 69, 63, 0.14);
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-3deg);
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-5px);
  }
}

/* ---------- pipeline ---------- */
.pipeline {
  background: linear-gradient(
    180deg,
    rgba(255, 211, 224, 0) 0%,
    rgba(255, 211, 224, 0.24) 24%,
    rgba(255, 211, 224, 0.24) 64%,
    rgba(242, 235, 227, 0) 100%
  );
}

.pipeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-grid::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 36px;
  z-index: 0;
  border-top: 1.5px dashed rgba(84, 69, 63, 0.28);
}

.pipeline-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 310px;
  padding: 22px 20px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(251, 233, 238, 0.5) 100%);
  box-shadow: 0 2px 0 rgba(58, 46, 51, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pipeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(58, 46, 51, 0.16);
}

.pipeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pipeline-step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.status-badge {
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.is-public {
  border-color: #9dc8a6;
  background: #e2f0e6;
  color: #3f7a4d;
}

.is-wip {
  border-color: #d8b26a;
  background: #f4e7cd;
  color: #8a621f;
}

.is-live {
  border-color: #d98ba3;
  background: var(--pink);
  color: #8a3d56;
}

.pipeline-label {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--pink-deep);
  text-transform: uppercase;
}

.pipeline-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.pipeline-card p:not(.pipeline-label) {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.pipeline-card .chips {
  margin-top: auto;
}

.pipeline-footnote {
  margin: 26px 0 0;
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- apps ---------- */
.apps {
  background: transparent;
}

.app-grid {
  display: grid;
  gap: 28px;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #fbe9ee 0%, #f7efe7 55%, #f0e9ea 100%);
  box-shadow: 0 2px 0 rgba(58, 46, 51, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.app-card-reverse {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(225deg, #e9eafb 0%, #f3eef2 55%, #f6efe9 100%);
}

@media (hover: hover) {
  .app-grid .app-card[data-reveal]:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 70px rgba(58, 46, 51, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
}

.app-copy {
  padding: 46px 52px 42px;
}

.app-card-reverse .app-media {
  order: 2;
}

.app-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.app-card .app-media {
  border-radius: calc(var(--radius-lg) - 2px) 0 0 calc(var(--radius-lg) - 2px);
}

.app-card-reverse .app-media {
  border-radius: 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0;
}

.app-media-mascot {
  background:
    radial-gradient(90% 95% at 80% 88%, rgba(255, 210, 221, 0.55) 0%, rgba(255, 210, 221, 0) 62%),
    linear-gradient(160deg, #fdf1f3 0%, #f8ece6 52%, #efe8f1 100%);
}

.app-media-talk {
  background:
    radial-gradient(85% 90% at 26% 18%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(200deg, #ececfa 0%, #f4eef3 55%, #f8f0ea 100%);
}

.app-version {
  position: absolute;
  z-index: 5;
  right: 14px;
  top: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(58, 46, 51, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 251, 246, 0.84);
  backdrop-filter: blur(8px);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(58, 46, 51, 0.08);
}

/* mascot scene */
.mascot-figure {
  position: absolute;
  z-index: 2;
  right: -4%;
  bottom: -2%;
  width: auto;
  height: 95%;
  filter: drop-shadow(0 18px 26px rgba(58, 46, 51, 0.16));
}

.mascot-window {
  position: absolute;
  z-index: 1;
  left: 6%;
  top: 8%;
  width: 64%;
  overflow: hidden;
  border: 1.5px solid rgba(58, 46, 51, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 22px 46px rgba(58, 46, 51, 0.14);
}

.mw-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(58, 46, 51, 0.1);
}

.mw-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e59aa7;
}

.mw-bar i:nth-child(2) {
  background: #efcb8e;
}

.mw-bar i:nth-child(3) {
  background: #9bd3b4;
}

.mw-bar span {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(58, 46, 51, 0.72);
}

.mw-body {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 14px 12px 10px;
}

.mw-bubble {
  margin: 0;
  max-width: 82%;
  padding: 7px 13px;
  border: 1.2px solid rgba(58, 46, 51, 0.28);
  border-radius: 12px 12px 12px 4px;
  background: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.mw-reply {
  justify-self: end;
  max-width: 72%;
  margin-right: 2px;
  border-radius: 12px 12px 4px 12px;
  border-color: rgba(200, 107, 132, 0.32);
  background: #fbe4ea;
  font-size: 12px;
  font-weight: 600;
}

.mw-input {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 10px 10px;
  padding: 7px 9px;
  border: 1px solid rgba(58, 46, 51, 0.2);
  border-radius: var(--radius-pill);
  background: #fff;
}

.mw-ph {
  flex: 1;
  font-size: 10.5px;
  color: rgba(58, 46, 51, 0.45);
}

.mw-mic {
  width: 11px;
  height: 7px;
  border: 1.3px solid rgba(58, 46, 51, 0.5);
  border-radius: 4px 4px 6px 6px;
}

.mw-go {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93b7f8, #5b8def);
}

.mw-go::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  border-left: 7px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* livetalk scene */
.talk-figure {
  position: absolute;
  z-index: 1;
  right: -6%;
  top: -6%;
  width: auto;
  height: 112%;
  filter: drop-shadow(0 16px 28px rgba(58, 46, 51, 0.14));
}

.talk-status {
  position: absolute;
  z-index: 4;
  left: 6%;
  top: 6%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(58, 46, 51, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 251, 246, 0.86);
  backdrop-filter: blur(6px);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.talk-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fbf8f;
  box-shadow: 0 0 0 3px rgba(111, 191, 143, 0.2);
}

.talk-bubbles {
  position: absolute;
  z-index: 3;
  left: 6%;
  top: 18%;
  display: grid;
  justify-items: start;
  gap: 9px;
  max-width: 66%;
}

.talk-bubble {
  margin: 0;
  padding: 8px 14px;
  border: 1.4px solid rgba(58, 46, 51, 0.3);
  border-radius: 14px 14px 14px 5px;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(-1.5deg);
  box-shadow: 0 10px 26px rgba(58, 46, 51, 0.1);
}

.talk-reply {
  justify-self: end;
  border-radius: 14px 14px 5px 14px;
  border-color: rgba(200, 107, 132, 0.35);
  background: rgba(251, 228, 234, 0.94);
  font-size: 13px;
  transform: rotate(1deg);
}

.talk-wave {
  position: absolute;
  z-index: 4;
  left: 8%;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 38px;
}

.talk-wave i {
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e3a2b4, #c86b84);
  animation: talkPulse 1.6s ease-in-out infinite;
}

.talk-wave i:nth-child(2n) {
  height: 13px;
}

.talk-wave i:nth-child(3n) {
  height: 22px;
  animation-delay: 0.2s;
}

.talk-wave i:nth-child(4n) {
  height: 30px;
  animation-delay: 0.35s;
}

.talk-wave i:nth-child(5n) {
  height: 16px;
  animation-delay: 0.1s;
}

.talk-wave i:nth-child(7n) {
  height: 34px;
  animation-delay: 0.45s;
}

@keyframes talkPulse {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.app-sparkle {
  position: absolute;
  z-index: 4;
  width: 46px;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
}

.app-sparkle-a {
  right: 7%;
  top: 15%;
}

.app-sparkle-b {
  left: 10%;
  bottom: 24%;
  width: 34px;
}

.app-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.2;
}

.app-wave {
  margin: -4px 0 12px;
  opacity: 0.9;
}

.app-wave img {
  width: 96px;
  height: auto;
}

.app-subtitle {
  margin: 6px 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--pink-deep);
}

.app-copy p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.app-copy .chips {
  margin: 0 0 16px;
}

.app-meta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 2px 0 12px;
}

/* ---------- open source ---------- */
.open-source {
  background: linear-gradient(
    180deg,
    rgba(235, 236, 250, 0) 0%,
    rgba(235, 236, 250, 0.82) 22%,
    rgba(235, 236, 250, 0.82) 74%,
    rgba(235, 236, 250, 0) 100%
  );
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.open-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(235, 236, 250, 0.55) 100%);
  box-shadow: 0 2px 0 rgba(58, 46, 51, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.open-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(58, 46, 51, 0.16);
}

.open-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--pink);
  box-shadow: 0 2px 0 rgba(58, 46, 51, 0.08);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
}

.open-card:nth-child(2) .open-icon {
  background: var(--mint);
}

.open-card:nth-child(3) .open-icon {
  background: var(--peach);
}

.open-card:nth-child(4) .open-icon {
  background: var(--blue-soft);
}

.open-card:nth-child(5) .open-icon {
  background: var(--lavender);
}

.open-tag {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--pink-deep);
  text-transform: uppercase;
}

.open-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.open-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.open-card .chips {
  margin-top: auto;
}

.open-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.open-card-more {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(200, 107, 132, 0.16) 0%, rgba(200, 107, 132, 0) 55%),
    linear-gradient(160deg, #241c27 0%, #1c1621 100%);
  border-color: var(--ink-deep);
  color: var(--cream);
}

.open-card-more:hover {
  box-shadow: 0 24px 50px rgba(28, 22, 33, 0.35);
}

.open-card-more .open-tag,
.open-card-more p {
  color: rgba(255, 249, 238, 0.72);
}

.open-card-more .open-icon {
  background: var(--pink);
  color: var(--ink);
}

.open-card-more .text-link {
  color: var(--cream);
}

.open-note {
  margin-top: 22px;
}

/* ---------- service ---------- */
.service {
  background: linear-gradient(
    180deg,
    rgba(235, 236, 250, 0) 0%,
    rgba(235, 236, 250, 0.38) 26%,
    rgba(235, 236, 250, 0.38) 72%,
    rgba(235, 236, 250, 0) 100%
  );
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 22px;
  align-items: start;
}

.endpoint-card {
  padding: 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, #fdf6f0 100%);
  box-shadow: var(--shadow);
}

.endpoint-head,
.endpoint-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 10px;
  align-items: center;
}

.endpoint-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.endpoint-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.endpoint-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 11px;
}

.endpoint-list li:last-child {
  border-bottom: 0;
}

.endpoint-list code {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.endpoint-list code:first-child {
  color: var(--pink-deep);
  font-weight: 800;
}

.endpoint-list code:nth-child(2) {
  word-break: break-all;
}

.endpoint-list span {
  color: var(--ink-soft);
}

.endpoint-card .fineprint {
  margin-top: 14px;
}

.status-mini {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1.5px solid var(--ink-deep);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(200, 107, 132, 0.16) 0%, rgba(200, 107, 132, 0) 55%),
    linear-gradient(160deg, #241c27 0%, #1c1621 100%);
  color: var(--cream);
}

.status-mini-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.status-mini-head h3 {
  margin: 0;
  font-size: 18px;
}

.status-mini-head p {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 249, 238, 0.6);
}

.status-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(255, 249, 238, 0.3);
  box-shadow: 0 0 0 4px rgba(255, 249, 238, 0.08);
}

.status-dot.is-ok {
  background: #7ee2b8;
  box-shadow: 0 0 0 4px rgba(126, 226, 184, 0.14);
}

.status-dot.is-auth {
  background: #f6d38b;
  box-shadow: 0 0 0 4px rgba(246, 211, 139, 0.14);
}

.status-dot.is-bad {
  background: #ff9b9b;
  box-shadow: 0 0 0 4px rgba(255, 155, 155, 0.14);
}

.status-dot.is-checking {
  background: #c9c0e8;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.status-mini-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.status-mini-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 249, 238, 0.14);
  font-size: 12px;
}

.status-mini-list .status-dot {
  margin-top: 0;
}

.status-mini-list b {
  color: rgba(255, 249, 238, 0.75);
  font-size: 10px;
  font-weight: 700;
}

.status-mini .btn-secondary {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.status-mini .fineprint {
  margin-top: 12px;
  color: rgba(255, 249, 238, 0.55);
}

/* ---------- community ---------- */
.community {
  background: linear-gradient(
    180deg,
    rgba(242, 235, 227, 0) 0%,
    rgba(242, 235, 227, 0.5) 24%,
    rgba(242, 235, 227, 0.72) 78%,
    rgba(242, 235, 227, 0) 100%
  );
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.community-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 240, 233, 0.8) 100%);
  box-shadow: 0 2px 0 rgba(58, 46, 51, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(58, 46, 51, 0.16);
}

.community-card img {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--white);
  object-fit: cover;
}

.community-card h3 {
  margin: 0;
  font-size: 17px;
}

.community-card p {
  margin: 2px 0 8px;
  font-size: 11px;
  color: var(--ink-soft);
}

.community-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--ink-deep);
  color: var(--cream);
}

.community-mark svg {
  width: 44px;
  height: 44px;
}

.community-mark-hf {
  background: #fff;
  border-color: rgba(190, 140, 0, 0.28);
  font-size: 40px;
}

.community-card-github .community-mark {
  background: #fff;
  border-color: rgba(130, 80, 223, 0.3);
  color: #8250df;
}

.community-card-github .community-mark svg {
  width: 50px;
  height: 50px;
}

.community-mark-bili {
  background: #fff;
  border-color: rgba(0, 161, 214, 0.3);
  color: #00a1d6;
}

.community-mark-xhs {
  background: #fff;
  border-color: rgba(255, 36, 66, 0.28);
  color: #ff2442;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  padding: 6px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 64px 0 40px;
  background: var(--ink-deep);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.brand-footer img {
  border-color: rgba(255, 249, 238, 0.3);
}

.brand-footer .brand-text small {
  color: rgba(255, 249, 238, 0.55);
}

.footer-brand p {
  max-width: 220px;
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(255, 249, 238, 0.6);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 12px;
}

.footer-nav a {
  color: rgba(255, 249, 238, 0.78);
}

.footer-nav a:hover {
  color: var(--pink);
}

.footer-legal p {
  margin: 0 0 12px;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(255, 249, 238, 0.55);
}

.footer-copy {
  color: rgba(255, 249, 238, 0.78) !important;
}

.back-top {
  font-size: 10px;
  font-weight: 800;
  color: var(--pink);
}

.footer-notice {
  color: var(--pink);
  font-size: 10px;
}

/* ---------- status page ---------- */
.status-page {
  min-height: 100vh;
}

.status-shell {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

.status-back {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.status-back:hover {
  color: var(--pink-deep);
}

.status-hero {
  padding: 64px 0 24px;
}

.status-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.status-overall {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.status-overall .status-dot {
  width: 16px;
  height: 16px;
  margin: 0;
}

.status-overall h2 {
  margin: 0;
  font-size: 21px;
}

.status-overall p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ink-soft);
}

.status-refresh {
  margin-left: auto;
}

.status-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.status-chain span {
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.status-chain b {
  color: var(--pink-deep);
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.status-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.status-row .status-dot {
  margin: 0;
}

.status-row-main h3 {
  margin: 0;
  font-size: 14px;
}

.status-row-main p {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  word-break: break-all;
}

.status-row-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  font-size: 10px;
  color: var(--ink-soft);
}

.status-row-meta b {
  color: var(--ink);
  font-size: 11px;
}

.status-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.status-info dt {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-info dd {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  word-break: break-all;
}

.status-page .fineprint {
  margin-top: 18px;
}

/* ---------- reveal ---------- */
.is-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.is-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid {
    gap: 40px;
  }

  .pipeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipeline-grid::before {
    display: none;
  }

  .pipeline-card {
    min-height: 0;
  }

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

  .status-mini {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 60px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    display: contents;
    text-align: center;
  }

  .hero-grid {
    gap: 16px;
  }

  .hero-grid .kicker {
    order: 0;
  }

  .hero-title {
    order: 1;
  }

  .hero-art {
    order: 2;
    width: min(100%, 340px);
    margin: 8px auto 0;
  }

  .hero-intro {
    order: 3;
    margin-top: 0;
    margin-inline: auto;
  }

  .hero-actions {
    order: 4;
    justify-content: center;
    margin-top: 4px;
  }

  .hero-note {
    order: 5;
    margin-top: 4px;
  }

  .hero-version {
    order: 6;
  }

  .app-card,
  .app-card-reverse {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .app-card-reverse .app-media {
    order: 0;
  }

  .app-card .app-media,
  .app-card-reverse .app-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
  }

  .app-copy {
    padding: 30px 26px 28px;
  }

  .app-media {
    max-width: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .header-inner {
    height: 64px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .icon-btn {
    display: none;
  }

  .lang-switch button {
    padding: 5px 7px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-intro {
    font-size: 14px;
  }

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

  .pipeline-card {
    min-height: 0;
  }

  .hero-title {
    font-size: clamp(34px, 9.6vw, 44px);
  }

  .hero-actions .btn {
    padding: 12px 18px;
    font-size: 12px;
  }

  .hero-caption {
    left: 4px;
    bottom: -14px;
    font-size: 12px;
  }

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

  .endpoint-head {
    display: none;
  }

  .endpoint-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .endpoint-list li span {
    grid-column: 2;
    font-size: 10px;
  }

  .status-overall {
    flex-wrap: wrap;
    padding: 18px;
  }

  .status-refresh {
    width: 100%;
    margin-left: 0;
  }

  .status-refresh .btn {
    width: 100%;
  }

  .status-row {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .status-row-meta {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .status-info {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .is-reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
