@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-soft: #f6f5f3;
  --ink: #0b0b0f;
  --ink-2: #3a3a42;
  --muted: #74747f;
  --line: rgba(11, 11, 15, 0.1);
  --line-soft: rgba(11, 11, 15, 0.06);

  --flame: #ff4a17;
  --rose: #ff2e7e;
  --violet: #6b4bff;
  --blue: #1b4dff;
  --cyan: #00c6e0;
  --amber: #ffab00;

  --grad: linear-gradient(100deg, #ff4a17 0%, #ff2e7e 34%, #6b4bff 68%, #1b4dff 100%);

  --wrap: 1180px;
  --nav-h: 64px;
  --r-lg: 28px;
  --r-md: 18px;

  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: var(--font-cn);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.latin {
  font-family: var(--font-display);
  font-feature-settings: "ss01" 1;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

/* ── Nav ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition: border-color 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: #000;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 23px; }

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--paper);
  animation: menu-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mobile-menu .btn {
  align-self: flex-start;
  margin-top: 28px;
}

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease;
}

.btn .arr {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 11, 15, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: rgba(11, 11, 15, 0.04);
}

.btn.wide {
  width: 100%;
}

/* ── Hero ────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 100px) 0 0;
  text-align: center;
  overflow: hidden;
}

.hero-title {
  margin: 0;
  font-size: clamp(46px, 7.4vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-title .latin {
  font-size: 1.04em;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.hero-sub {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
}

.hero-sub b {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.br-m {
  display: none;
}

/* Foil artwork */

.foil-wrap {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
}

.foil {
  position: relative;
  height: clamp(300px, 42vw, 520px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(115deg, #f6f7ff, #e3ebff);
  isolation: isolate;
}

.foil-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.foil.is-live .foil-art {
  opacity: 0;
}

.foil-art {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  animation: foil-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.foil-sheen {
  position: absolute;
  inset: -30%;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.42) 48%, rgba(255, 255, 255, 0) 64%);
  mix-blend-mode: soft-light;
  animation: sheen 15s ease-in-out infinite;
  pointer-events: none;
}

.foil-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.62'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: overlay;
  opacity: 0.75;
  pointer-events: none;
}

.foil-tag {
  position: absolute;
  left: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(11, 11, 15, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.foil-tag .latin {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.86;
}

/* Quick entries */

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.quick li + li {
  border-left: 1px solid var(--line-soft);
}

.quick a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.quick a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.quick a:hover {
  background: rgba(11, 11, 15, 0.025);
}

.quick a:hover::before {
  transform: scaleX(1);
}

.quick-logo {
  height: 30px;
  width: auto;
  flex: none;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.quick a:hover .quick-logo {
  transform: translateY(-2px) scale(1.06);
}

.quick-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.quick-copy b {
  font-size: 15px;
  font-weight: 600;
}

.quick-copy em {
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
}

.quick-arr {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s ease;
}

.quick a:hover .quick-arr {
  color: var(--ink);
  transform: translateX(4px);
}

/* ── Sections ────────────────────────────────────── */

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.sec-head {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.sec-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.sec-label.light {
  color: rgba(255, 255, 255, 0.55);
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.flagship-logo {
  display: inline-block;
  width: 0.76em;
  height: 0.76em;
  margin-right: 0.14em;
  vertical-align: -0.07em;
}

.sec-desc {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Flagship */

.flagship {
  background: var(--paper);
}

.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 420px;
  gap: 18px;
}

/* 对称 2×2：四张卡各占 6 列 */
.feature {
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 22px 44px -30px rgba(11, 11, 15, 0.3);
}

.feature-media {
  position: relative;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--paper-soft);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature:hover .feature-media > img {
  transform: scale(1.04);
}

.feature-no {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.feature-body {
  padding: 18px 22px 22px;
}

.feature-body h3 {
  margin: 9px 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.flagship-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.flagship-foot p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}


.feature-art {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-art .bar {
  transform-box: fill-box;
  transform-origin: center;
  animation: bar-eq 1.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -70ms);
}

.feature-art .bar-sm {
  animation-duration: 1.1s;
}

.feature-art .pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-pulse 2.6s ease-out infinite;
}

.feature-art .glow-a {
  animation: glow-pulse 3.6s ease-in-out infinite;
}

.feature-art .glow-b {
  animation: glow-pulse 4.4s ease-in-out infinite reverse;
}


@keyframes bar-eq {
  from { transform: scaleY(0.42); }
  to { transform: scaleY(1); }
}

@keyframes ring-pulse {
  0% { transform: scale(0.95); opacity: 0.55; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.4; }
}


/* 产品流程演示：输入 → 生成中 → 结果（满铺画布 + 浮层输入条） */
.demo {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--paper-soft);
}

.demo-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.demo-chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px -4px rgba(11, 11, 15, 0.35);
}

.demo-chip:first-child {
  background: rgba(11, 11, 15, 0.9);
  color: #fff;
  font-weight: 600;
}

.demo-input {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 7px 7px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px -16px rgba(11, 11, 15, 0.45), 0 0 0 1px rgba(11, 11, 15, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.demo.is-generating .demo-input {
  background: #fff;
  box-shadow: 0 12px 28px -14px rgba(11, 11, 15, 0.5), 0 0 0 1px rgba(11, 11, 15, 0.14);
}

.demo-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-caret {
  flex: none;
  width: 1px;
  height: 14px;
  margin-left: -4px;
  background: var(--ink);
  animation: caret-blink 1s steps(2, start) infinite;
}

.demo.is-generating .demo-caret,
.demo.is-done .demo-caret {
  opacity: 0;
  animation: none;
}

.demo-send {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.demo-send span {
  transition: opacity 0.2s ease;
}

.demo.is-generating .demo-send span {
  opacity: 0;
}

.demo.is-generating .demo-send::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: demo-spin 0.7s linear infinite;
}

.demo-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(140deg, #f5f4f2, #e9e8e5);
}

.demo-skeleton,
.demo-out {
  position: absolute;
  inset: 0;
}

.demo-skeleton {
  display: grid;
  place-items: center;
  background: linear-gradient(100deg, #f3f2f0 18%, #e6e5e3 38%, #f3f2f0 58%);
  background-size: 220% 100%;
  animation: demo-shimmer 1.6s linear infinite;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.demo.is-generating .demo-skeleton {
  opacity: 1;
}

.demo-step {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.demo-out {
  opacity: 0;
  transform: scale(1.03);
  filter: blur(8px);
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.55s ease;
}

.demo.is-done .demo-out {
  opacity: 1;
  transform: none;
  filter: none;
}

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

/* 图片卡：宽画幅下取花卉主体的上段，避免裁掉花头 */
.demo[data-demo="image"] .demo-out img {
  object-position: 50% 8%;
}

.demo-meta {
  position: absolute;
  right: 12px;
  bottom: 68px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px -4px rgba(11, 11, 15, 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.demo.is-done .demo-meta {
  opacity: 1;
  transform: none;
}

.demo-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding-left: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.demo-play.small {
  position: static;
  transform: none;
  flex: none;
  width: 28px;
  height: 28px;
  padding-left: 1px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 9px;
  box-shadow: 0 4px 14px -6px rgba(11, 11, 15, 0.5);
}

.demo-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 60px;
  height: 3px;
  border-radius: 999px;
  background: rgba(11, 11, 15, 0.12);
  overflow: hidden;
}

.demo-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
}

.demo.is-done .demo-progress i {
  animation: demo-progress 5s linear infinite;
}

.demo[data-demo="music"] .demo-progress,
.demo[data-demo="video"] .demo-progress {
  background: rgba(255, 255, 255, 0.32);
}

.demo[data-demo="music"] .demo-progress i,
.demo[data-demo="video"] .demo-progress i {
  background: #fff;
}

.demo[data-demo="music"] .demo-progress i {
  animation-duration: 12s;
}

.demo[data-demo="voice"] .demo-progress i {
  animation-duration: 7s;
}

.demo-audio {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 56px 20px 82px;
  background: #0b0b0f;
}

/* 配音卡：脚本 + 波形，填满宽画幅 */
.demo[data-demo="voice"] .demo-out {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.demo-script {
  margin: 0;
  padding: 46px 22px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.demo[data-demo="voice"] .demo-audio {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 8px 20px 74px;
  background: transparent;
  border: 0;
}

.demo-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  flex: 1 1 auto;
  height: 54px;
  overflow: hidden;
}

.demo-wave i {
  flex: 1 1 0;
  min-width: 2px;
  height: var(--h, 60%);
  border-radius: 2px;
  background: linear-gradient(180deg, #ff4a17, #ff2e7e 45%, #6b4bff);
  transform: scaleY(0.18);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.demo.is-done .demo-wave i {
  animation: demo-wave 1.15s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -55ms);
}

.demo-audio.light .demo-wave i {
  background: linear-gradient(180deg, #ff4a17, #6b4bff);
  opacity: 0.85;
}

.demo-time {
  flex: none;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

.demo-audio.light .demo-time {
  color: var(--muted);
}

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

@keyframes demo-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -60% 0; }
}

@keyframes demo-wave {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

@keyframes demo-progress {
  from { width: 0; }
  to { width: 100%; }
}

/* Capability cards */

.business {
  background: var(--paper-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 22px 44px -28px rgba(11, 11, 15, 0.28);
}

.card-logo {
  height: 24px;
  width: auto;
  flex: none;
  object-fit: contain;
}

.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 30px 32px;
}

.card-no {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.card-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.card-body p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.card-link .arr {
  transition: transform 0.25s ease;
}

.card-link:hover .arr {
  transform: translateX(4px);
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Process */

.process {
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step-no {
  display: block;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.step p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Contact */

.contact {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
  background: #08080c;
  color: #f5f5f7;
  overflow: hidden;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact h2 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.contact-copy p {
  max-width: 360px;
  margin: 0 0 16px;
  color: rgba(245, 245, 247, 0.66);
  font-size: 15.5px;
  line-height: 1.7;
}

.contact-copy .contact-note {
  color: rgba(245, 245, 247, 0.4);
  font-size: 13.5px;
}

.lead-form {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(11, 11, 15, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 11, 15, 0.06);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2374747f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.form-note.is-preview {
  color: var(--ink);
  font-weight: 500;
}

/* Footer */

.footer {
  padding: 32px 0;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.footer nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12.5px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--ink);
}

/* ── Service detail pages ────────────────────────── */

.page-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-back:hover {
  color: var(--ink);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-hero h1 img {
  display: inline-block;
  height: 0.78em;
  width: auto;
  margin-right: 0.16em;
  vertical-align: -0.06em;
}

.page-lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-facts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}

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

.gpu-group + .gpu-group {
  margin-top: 34px;
}

.gpu-group h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gpu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 10px;
}

.gpu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.gpu-item:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.gpu-item b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gpu-item span {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

.page-cta {
  padding: clamp(56px, 7vw, 96px) 0;
  background: #08080c;
  color: #f5f5f7;
}

.page-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-cta p {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.65;
}

.btn-paper {
  background: #fff;
  color: var(--ink);
}

.btn-paper:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .page-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Motion ──────────────────────────────────────── */

.js .enter {
  opacity: 0;
  transform: translateY(14px);
  animation: enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 卡片进场结束后交回自身过渡，保证悬停上浮生效 */
.js .card.reveal.is-visible {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}

.js .card.reveal.is-visible:hover {
  transform: translateY(-5px);
}

.cards .card:nth-child(2),
.steps .step:nth-child(2) { transition-delay: 0.07s; }

.cards .card:nth-child(3),
.steps .step:nth-child(3) { transition-delay: 0.14s; }

.cards .card:nth-child(4) { transition-delay: 0.21s; }

@keyframes enter {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes foil-drift {
  0% { transform: translate3d(-1.2%, 1%, 0) scale(1); }
  100% { transform: translate3d(1.6%, -1.4%, 0) scale(1.06); }
}

@keyframes sheen {
  0%, 100% { transform: translate3d(-26%, 0, 0); opacity: 0.35; }
  50% { transform: translate3d(24%, 0, 0); opacity: 0.85; }
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .quick li:nth-child(3) {
    border-left: 0;
  }

  .quick li:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .step p {
    max-width: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer nav {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 32px;
  }

  .br-m {
    display: inline;
  }

  .br-d {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .foil {
    height: 300px;
    border-radius: 20px;
  }

  .foil-tag {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: space-between;
    font-size: 11.5px;
  }

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

  .quick li + li {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .quick a {
    padding: 16px 4px;
  }

  .features {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .feature:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-media {
    flex: none;
    height: 260px;
  }

  .flagship-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

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

  .js .enter,
  .js .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .foil-art,
  .foil-sheen,
    .work img,
  .card,
  .btn {
    transition: none;
  }

  .demo-skeleton,
  .demo-wave i,
  .demo-progress i,
  .demo-caret,
  .demo-send::after {
    animation: none;
  }

  .demo-wave i {
    transform: scaleY(0.7);
  }
}
