/* ==========================================================================
   landing.css — AI 会议室 Landing Page Styles
   Layout, responsive breakpoints, animation framework, and demo styles.
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

/* --------------------------------------------------------------------------
   Reset basics (scoped to landing page body)
   -------------------------------------------------------------------------- */
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Accessibility: skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: #6366f1;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Global :focus-visible
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 4px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Section theming
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  background: #0a0a0f;
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] {
  background: #fafafa;
  color: #0a0a0f;
}

section {
  padding: clamp(80px, 12vh, 160px) 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Hero section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .section-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

/* Brand badge */
.brand-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 24px;
  margin-bottom: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Hero glow background */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(99, 102, 241, 0.4), transparent 70%),
    radial-gradient(40% 40% at 70% 70%, rgba(168, 85, 247, 0.3), transparent 70%),
    radial-gradient(35% 35% at 20% 80%, rgba(56, 189, 248, 0.2), transparent 70%);
  filter: blur(40px);
  mix-blend-mode: screen;
  animation: glow-breathe 20s ease-in-out infinite;
  pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
   Hero · 电影感动效层（mesh + 漂浮光球 + 网格 + noise）
   多个不同步层叠加，模拟视频/3D 渲染的"永不重复"质感
   ────────────────────────────────────────────────────────────── */

/* 层 A：morphing mesh gradient — 多色径向渐变随时间漂移变色 */
.hero-mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(168, 85, 247, 0.3), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.22), transparent 45%),
    radial-gradient(circle at 10% 70%, rgba(56, 189, 248, 0.25), transparent 50%);
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: hero-mesh-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-mesh-drift {
  0%   { transform: translate(0, 0) scale(1)   rotate(0deg); }
  33%  { transform: translate(-3%, 4%) scale(1.08) rotate(2deg); }
  66%  { transform: translate(4%, -2%) scale(0.95) rotate(-1deg); }
  100% { transform: translate(-2%, 2%) scale(1.05) rotate(1deg); }
}

/* 层 B：漂浮光球 — 5 个不同色/不同尺寸/不同路径的 blur 巨球 */
.hero-orbs {
  display: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

/* 球 1：左上紫，22s 漂移 */
.hero-orb-1 {
  width: 380px; height: 380px;
  top: -8%; left: -6%;
  background: radial-gradient(circle, #6366f1 0%, transparent 65%);
  animation: hero-orb-drift-1 22s ease-in-out infinite alternate;
}
/* 球 2：右上洋红，27s */
.hero-orb-2 {
  width: 320px; height: 320px;
  top: -4%; right: -8%;
  background: radial-gradient(circle, #c084fc 0%, transparent 65%);
  animation: hero-orb-drift-2 27s ease-in-out infinite alternate;
}
/* 球 3：中间偏下青蓝，31s */
.hero-orb-3 {
  width: 460px; height: 460px;
  bottom: -10%; left: 30%;
  background: radial-gradient(circle, #38bdf8 0%, transparent 60%);
  opacity: 0.42;
  animation: hero-orb-drift-3 31s ease-in-out infinite alternate;
}
/* 球 4：右下粉，19s 反向 */
.hero-orb-4 {
  width: 280px; height: 280px;
  bottom: 8%; right: 12%;
  background: radial-gradient(circle, #f472b6 0%, transparent 65%);
  opacity: 0.4;
  animation: hero-orb-drift-4 19s ease-in-out infinite alternate-reverse;
}
/* 球 5：左侧靛蓝，35s 慢漂 */
.hero-orb-5 {
  width: 240px; height: 240px;
  top: 40%; left: -4%;
  background: radial-gradient(circle, #818cf8 0%, transparent 65%);
  opacity: 0.5;
  animation: hero-orb-drift-5 35s ease-in-out infinite alternate;
}

/* 各球独立路径关键帧 — 不同步是关键 */
@keyframes hero-orb-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40%, 35%) scale(1.15); }
  100% { transform: translate(80%, 10%) scale(0.95); }
}
@keyframes hero-orb-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50%, 40%) scale(1.2); }
  100% { transform: translate(-20%, 70%) scale(0.9); }
}
@keyframes hero-orb-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-30%, -25%) scale(0.85); }
  100% { transform: translate(20%, -50%) scale(1.1); }
}
@keyframes hero-orb-drift-4 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40%, -30%) scale(1.25); }
  100% { transform: translate(-60%, -10%) scale(0.95); }
}
@keyframes hero-orb-drift-5 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60%, -20%) scale(1.1); }
  100% { transform: translate(40%, 30%) scale(0.9); }
}

/* 层 C：精细网格扫描线 — 暗示"科技/数据空间" */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: hero-grid-shift 40s linear infinite;
}

@keyframes hero-grid-shift {
  to { background-position: 56px 56px, 56px 56px; }
}

/* Reduced-motion：所有 hero 动效停在静态终态，但保留色彩层不损失视觉 */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh,
  .hero-orb-1, .hero-orb-2, .hero-orb-3, .hero-orb-4, .hero-orb-5,
  .hero-grid {
    animation: none !important;
  }
}

/* Hero noise overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Product preview replaces pure decoration in the first viewport. */
.hero-product-preview {
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.preview-window {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(12, 14, 24, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.preview-window__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-window__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.preview-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.18fr 0.84fr;
  gap: 12px;
  padding: 16px;
  min-height: 300px;
}

.preview-panel,
.preview-transcript {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.preview-panel__title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.preview-line {
  height: 9px;
  width: 76%;
  margin-bottom: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.preview-line.long { width: 94%; }
.preview-line.short { width: 54%; }

.preview-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.preview-chip-row span,
.preview-ai-item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.2);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.preview-transcript {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-bubble {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.preview-bubble strong {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  margin-bottom: 8px;
}

.preview-bubble p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.preview-wave {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 74px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.09);
}

.preview-wave i {
  flex: 1;
  min-width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #93c5fd, #6366f1);
}

.preview-wave i:nth-child(1) { height: 22%; }
.preview-wave i:nth-child(2) { height: 52%; }
.preview-wave i:nth-child(3) { height: 78%; }
.preview-wave i:nth-child(4) { height: 42%; }
.preview-wave i:nth-child(5) { height: 88%; }
.preview-wave i:nth-child(6) { height: 62%; }
.preview-wave i:nth-child(7) { height: 36%; }
.preview-wave i:nth-child(8) { height: 70%; }

.preview-panel--ai {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-ai-item {
  width: 100%;
  justify-content: flex-start;
  background: rgba(16, 185, 129, 0.16);
}

.preview-ai-item.warn {
  background: rgba(245, 158, 11, 0.18);
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.btn-primary.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.2s;
}

.btn-ghost:hover {
  opacity: 0.7;
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  color: #0a0a0f;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.btn-ghost-light:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Stats / Trust band
   -------------------------------------------------------------------------- */
.stats {
  padding: clamp(48px, 8vh, 96px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Value section
   -------------------------------------------------------------------------- */
.value-tagline {
  text-align: center;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  opacity: 0.7;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  border-radius: 16px;
  transition:
    background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-item:hover {
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-4px);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
  color: #6366f1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-item:hover .value-icon {
  transform: scale(1.08);
}

.value-label {
  font-size: 18px;
  font-weight: 600;
}

.value-desc {
  font-size: 15px;
  opacity: 0.65;
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Feature sections (two-column layout)
   -------------------------------------------------------------------------- */
.section-number {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  opacity: 0.45;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.feature p {
  font-size: clamp(16px, 1.5vw, 20px);
  margin-top: 24px;
  margin-bottom: 0;
  line-height: 1.6;
  opacity: 0.75;
}

/* Swap visual order for insight section: demo left, text right */
.feature-insight .feature-text {
  order: 2;
}

.feature-insight .feature-demo {
  order: 1;
}

/* --------------------------------------------------------------------------
   Feature demo containers — shared shell for the three animated demos
   -------------------------------------------------------------------------- */
.feature-demo {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(168, 85, 247, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.3);
  font-size: 14px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.feature-demo:hover {
  transform: scale(1.02);
}

[data-theme="dark"] .feature-demo:hover {
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .feature-demo:hover {
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.12);
}

.feature-demo:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 8px;
}

/* On dark sections, placeholder text needs to be lighter */
[data-theme="dark"] .feature-demo {
  color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(168, 85, 247, 0.12)
  );
}

/* --------------------------------------------------------------------------
   CTA Final section
   -------------------------------------------------------------------------- */
.cta-final .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.cta-group {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.landing-footer {
  background: #0a0a0f;
  color: rgba(255, 255, 255, 0.55);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-footer-nav a:hover {
  color: #fff;
}

.landing-footer-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Reveal animation (activated by Task 4's IntersectionObserver via .is-visible)
   Cleanup: [data-reveal] state is managed by landing.js (Task 4).
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* --------------------------------------------------------------------------
   Demo 1: Typewriter bilingual bubbles (.demo-typewriter)
   -------------------------------------------------------------------------- */
.demo-typewriter {
  background: #14141c;
  padding: 32px;
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

.bubbles-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  max-width: 85%;
  opacity: 0;
  animation: bubble-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bubble-a {
  align-self: flex-start;
  animation-delay: 0.2s;
}

.bubble-b {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.12));
  border-color: rgba(99, 102, 241, 0.3);
  animation-delay: 1.4s;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.bubble-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.bubble-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.bubble-en {
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  font-size: 13px;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Demo 2: Floating tag cloud + glow (.demo-tagcloud)
   -------------------------------------------------------------------------- */
.demo-tagcloud {
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  padding: 0;
  overflow: hidden;
}

.tagcloud-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.tagcloud-glow {
  position: absolute;
  inset: 20% 20%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  filter: blur(40px);
  animation: tagcloud-pulse 8s ease-in-out infinite;
}

.tag {
  position: absolute;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 999px;
  font-size: 13px;
  color: #4338ca;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
  animation: tag-float 6s ease-in-out infinite;
  white-space: nowrap;
}

.tag-1 { top: 12%; left: 18%; animation-delay: 0s; }
.tag-2 { top: 22%; left: 60%; animation-delay: 0.7s; }
.tag-3 { top: 38%; left: 8%; animation-delay: 1.4s; }
.tag-4 { top: 45%; left: 50%; animation-delay: 2.1s; }
.tag-5 { top: 60%; left: 22%; animation-delay: 2.8s; }
.tag-6 { top: 68%; left: 65%; animation-delay: 3.5s; }
.tag-7 { top: 80%; left: 12%; animation-delay: 4.2s; }
.tag-8 { top: 82%; left: 55%; animation-delay: 4.9s; }

@keyframes tag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes tagcloud-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Demo 3: 3D perspective kanban cards (.demo-kanban)
   -------------------------------------------------------------------------- */
.demo-kanban {
  background: #14141c;
  padding: 32px;
  perspective: 1400px;
  overflow: hidden;
}

.kanban-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  transform: rotateY(-18deg) rotateX(6deg);
  transform-style: preserve-3d;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-manage:hover .kanban-board {
  transform: rotateY(-8deg) rotateX(2deg);
}

.kanban-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-col-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kanban-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-todo { background: #94a3b8; }
.dot-doing { background: #f59e0b; }
.dot-done { background: #10b981; }

/* --------------------------------------------------------------------------
   Responsive overrides for demos — tablet (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Tag cloud: absolute positions assume a 4:3 box; still works but clip at
     edges on narrow tablets. Shrink font to reduce overflow risk. */
  .tag {
    font-size: 12px;
    padding: 6px 11px;
  }

  /* Kanban: reduce 3D tilt so columns stay readable at smaller widths */
  .kanban-board {
    transform: rotateY(-10deg) rotateX(4deg);
  }

  .feature-manage:hover .kanban-board {
    transform: rotateY(-4deg) rotateX(1deg);
  }
}

/* --------------------------------------------------------------------------
   Responsive overrides for demos — tablet & mobile (≤ 1024px)
   The absolute-positioned tag cloud clips at narrower widths; switch to a
   wrapping flex layout for tablets and below. Kanban also flattens here.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tagcloud-canvas {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: center;
    justify-content: center;
    padding: 24px 16px;
  }

  .tag {
    position: static;
    animation: tag-float 6s ease-in-out infinite;
  }

  .tagcloud-glow {
    display: none;
  }

  /* Kanban: flatten the 3D tilt on mobile so card text is legible */
  .kanban-board {
    transform: none;
  }

  .feature-manage:hover .kanban-board {
    transform: none;
  }

  .kanban-card {
    font-size: 11px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — tablet (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .feature .section-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* On tablet, keep insight demo above text (same as mobile intent) */
  .feature-insight .feature-text {
    order: 2;
  }

  .feature-insight .feature-demo {
    order: 1;
  }

  .value-grid {
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — mobile (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  section {
    padding: clamp(60px, 10vh, 100px) 20px;
  }

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

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

  .btn-primary,
  .btn-ghost {
    justify-content: center;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — small mobile (≤ 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .landing-footer-nav {
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  /* bubble-in animation may not reliably hold its forwards-fill at 0.001ms;
     explicitly pin the end state for reduced-motion users. */
  .bubble {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   New v3 sections — Workflow / Use cases / Comparison / Audience / Integrations / FAQ
   ========================================================================== */

/* Shared section-head pattern */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 8vh, 80px);
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
.section-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  opacity: 0.7;
  margin: 20px auto 0;
  max-width: 600px;
}

/* ── Workflow · 4 steps ── */
.workflow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: workflow;
  position: relative;
}
.workflow-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c4b5fd, #c4b5fd, transparent);
  opacity: 0.35;
  z-index: 0;
}
.workflow-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}
.workflow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  font-variant-numeric: tabular-nums;
}
.workflow-step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.workflow-step p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.7;
  margin: 0;
}
@media (max-width: 1024px) {
  .workflow-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .workflow-steps::before { display: none; }
}
@media (max-width: 567px) {
  .workflow-steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Use cases · 4 cards ── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.usecase-card {
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s, background 0.4s;
}
.usecase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.05));
}
.usecase-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(168,85,247,0.12));
  color: #c4b5fd;
  margin-bottom: 20px;
}
.usecase-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.usecase-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
@media (max-width: 768px) { .usecases-grid { grid-template-columns: 1fr; } }

/* ── Comparison table ── */
.comparison-table {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 48px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}
.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row > span {
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  align-items: center;
}
.comparison-head {
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.comparison-col-old { color: rgba(0,0,0,0.5); }
.comparison-col-new {
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.comparison-head .comparison-col-old,
.comparison-head .comparison-col-new {
  color: #0a0a0f;
  background: none;
  -webkit-text-fill-color: initial;
}
@media (max-width: 768px) {
  .comparison-row { grid-template-columns: 1fr; }
  .comparison-row > span { padding: 14px 20px; }
  .comparison-row:not(.comparison-head) > span:first-child {
    font-weight: 600;
    background: rgba(99,102,241,0.04);
  }
}

/* ── Audience cards ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.audience-card {
  padding: 36px 32px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(99,102,241,0.08), rgba(168,85,247,0.04));
  border: 1px solid rgba(168, 85, 247, 0.18);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s;
}
.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(99,102,241,0.25);
}
.audience-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.18);
  color: #c4b5fd;
  margin-bottom: 20px;
}
.audience-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.audience-card p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
@media (max-width: 1024px) { .audience-grid { grid-template-columns: 1fr; max-width: 600px; } }

/* ── Integrations chip wall ── */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.integration-chip {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(99,102,241,0.18);
  font-size: 14px;
  font-weight: 600;
  color: #4338ca;
  box-shadow: 0 4px 12px rgba(99,102,241,0.06);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, border-color 0.3s;
}
.integration-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 12px 28px rgba(99,102,241,0.15);
}

/* ── FAQ accordion ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item[open] {
  background: rgba(99,102,241,0.06);
  border-color: rgba(168, 85, 247, 0.3);
}
.faq-item summary {
  list-style: none;
  padding: 22px 28px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: rgba(168, 85, 247, 0.85);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 28px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Reduced-motion: disable hover transforms on new sections */
@media (prefers-reduced-motion: reduce) {
  .usecase-card, .audience-card, .integration-chip, .faq-item, .faq-item summary::after {
    transition: none !important;
  }
  .usecase-card:hover, .audience-card:hover, .integration-chip:hover {
    transform: none;
  }
}


/* ==========================================================================
   v3.5 · 高级动画层 — Stagger reveal + ambient motion + advanced hover
   ========================================================================== */

/* ── Section eyebrow: 渐变下划线在入场时左→右画出 ── */
.section-eyebrow {
  position: relative;
  padding-bottom: 6px;
}
.section-eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
[data-reveal].is-visible .section-eyebrow::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Section h2: 入场 gradient sweep（一道光从左到右扫过） ── */
.section-head h2 {
  position: relative;
  background: linear-gradient(
    100deg,
    currentColor 35%,
    rgba(168, 85, 247, 0.95) 50%,
    currentColor 65%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
[data-reveal].is-visible .section-head h2 {
  background-position: -100% 0;
}

/* ── Workflow: 流动能量线 + 序号脉冲晕环 + stagger ── */
.workflow-steps::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 181, 253, 0.5) 20%,
    rgba(168, 85, 247, 0.9) 50%,
    rgba(196, 181, 253, 0.5) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: workflow-flow 4s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}
[data-reveal].is-visible .workflow-steps::before { opacity: 0.7; }

@keyframes workflow-flow {
  to { background-position: -200% 0; }
}

.workflow-step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible .workflow-step { opacity: 1; transform: none; }
[data-reveal].is-visible .workflow-step:nth-child(1) { transition-delay: 0.10s; }
[data-reveal].is-visible .workflow-step:nth-child(2) { transition-delay: 0.22s; }
[data-reveal].is-visible .workflow-step:nth-child(3) { transition-delay: 0.34s; }
[data-reveal].is-visible .workflow-step:nth-child(4) { transition-delay: 0.46s; }

/* 序号永久脉冲晕环 */
.workflow-step-num {
  position: relative;
}
.workflow-step-num::before,
.workflow-step-num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.45);
  animation: workflow-num-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}
.workflow-step-num::after { animation-delay: 1.5s; }

@keyframes workflow-num-ping {
  0%   { transform: scale(0.9); opacity: 0.9; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Use case cards: stagger + 持续 conic 边框旋转 + hover spotlight ── */
.usecase-card {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s,
    background 0.4s;
  position: relative;
  overflow: hidden;
}
[data-reveal].is-visible .usecase-card { opacity: 1; transform: none; }
[data-reveal].is-visible .usecase-card:nth-child(1) { transition-delay: 0.10s; }
[data-reveal].is-visible .usecase-card:nth-child(2) { transition-delay: 0.20s; }
[data-reveal].is-visible .usecase-card:nth-child(3) { transition-delay: 0.30s; }
[data-reveal].is-visible .usecase-card:nth-child(4) { transition-delay: 0.40s; }

/* hover 时显示流动光环（conic-gradient 镂空边框） */
.usecase-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, #6366f1, #a855f7, #ec4899, transparent 30%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: usecase-rim 4s linear infinite;
  pointer-events: none;
}
.usecase-card:hover::before { opacity: 1; }

@keyframes usecase-rim {
  to { transform: rotate(360deg); }
}

/* hover 时图标弹性放大 + 旋转 */
.usecase-card-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.usecase-card:hover .usecase-card-icon {
  transform: scale(1.1) rotate(-6deg);
}

/* ── Comparison: 行 stagger reveal + AI 列 shimmer ── */
.comparison-row {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible .comparison-row { opacity: 1; transform: none; }
[data-reveal].is-visible .comparison-row:nth-child(1) { transition-delay: 0.05s; }
[data-reveal].is-visible .comparison-row:nth-child(2) { transition-delay: 0.12s; }
[data-reveal].is-visible .comparison-row:nth-child(3) { transition-delay: 0.19s; }
[data-reveal].is-visible .comparison-row:nth-child(4) { transition-delay: 0.26s; }
[data-reveal].is-visible .comparison-row:nth-child(5) { transition-delay: 0.33s; }
[data-reveal].is-visible .comparison-row:nth-child(6) { transition-delay: 0.40s; }
[data-reveal].is-visible .comparison-row:nth-child(7) { transition-delay: 0.47s; }

.comparison-col-new {
  background:
    linear-gradient(120deg,
      #6366f1 30%,
      rgba(255, 255, 255, 0.95) 48%,
      #a855f7 50%,
      rgba(255, 255, 255, 0.95) 52%,
      #6366f1 70%
    );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: comparison-shimmer 5s ease-in-out infinite;
}

@keyframes comparison-shimmer {
  0%, 100% { background-position: 200% 0; }
  50%      { background-position: -100% 0; }
}

/* hover 整行高亮 */
.comparison-row:not(.comparison-head) {
  transition: background 0.3s ease, opacity 0.55s, transform 0.55s;
}
.comparison-row:not(.comparison-head):hover {
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.06), transparent);
}

/* ── Audience cards: stagger + 持续呼吸 + hover spring ── */
.audience-card {
  opacity: 0;
  transform: translateY(32px) rotate(-1deg);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
[data-reveal].is-visible .audience-card { opacity: 1; transform: none; }
[data-reveal].is-visible .audience-card:nth-child(1) { transition-delay: 0.10s; }
[data-reveal].is-visible .audience-card:nth-child(2) { transition-delay: 0.25s; }
[data-reveal].is-visible .audience-card:nth-child(3) { transition-delay: 0.40s; }

/* 持续：卡片底部光带从左到右扫 */
.audience-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -30%;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c084fc, transparent);
  animation: audience-edge-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
.audience-card:nth-child(2)::after { animation-delay: 2s; }
.audience-card:nth-child(3)::after { animation-delay: 4s; }

@keyframes audience-edge-sweep {
  0%   { left: -30%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* tag 持续呼吸 */
.audience-tag {
  animation: audience-tag-glow 3s ease-in-out infinite alternate;
}

@keyframes audience-tag-glow {
  to { box-shadow: 0 0 16px rgba(168, 85, 247, 0.4); }
}

/* hover 弹性 */
.audience-card:hover {
  transform: translateY(-8px) scale(1.02);
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Integration chips: 级联 reveal + 各自不同步 bob + hover ripple ── */
.integration-chip {
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s,
    border-color 0.3s;
  animation: chip-bob 5s ease-in-out infinite;
  animation-play-state: paused;
}
[data-reveal].is-visible .integration-chip {
  opacity: 1;
  transform: none;
  animation-play-state: running;
}

/* 级联延迟 + 不同 bob 起始相位 */
[data-reveal].is-visible .integration-chip:nth-child(1)  { transition-delay: 0.05s; animation-delay: 0s; }
[data-reveal].is-visible .integration-chip:nth-child(2)  { transition-delay: 0.10s; animation-delay: -0.5s; }
[data-reveal].is-visible .integration-chip:nth-child(3)  { transition-delay: 0.15s; animation-delay: -1.1s; }
[data-reveal].is-visible .integration-chip:nth-child(4)  { transition-delay: 0.20s; animation-delay: -1.7s; }
[data-reveal].is-visible .integration-chip:nth-child(5)  { transition-delay: 0.25s; animation-delay: -2.3s; }
[data-reveal].is-visible .integration-chip:nth-child(6)  { transition-delay: 0.30s; animation-delay: -2.9s; }
[data-reveal].is-visible .integration-chip:nth-child(7)  { transition-delay: 0.35s; animation-delay: -3.5s; }
[data-reveal].is-visible .integration-chip:nth-child(8)  { transition-delay: 0.40s; animation-delay: -4.1s; }
[data-reveal].is-visible .integration-chip:nth-child(9)  { transition-delay: 0.45s; animation-delay: -4.7s; }
[data-reveal].is-visible .integration-chip:nth-child(10) { transition-delay: 0.50s; animation-delay: -0.3s; }
[data-reveal].is-visible .integration-chip:nth-child(11) { transition-delay: 0.55s; animation-delay: -0.9s; }
[data-reveal].is-visible .integration-chip:nth-child(12) { transition-delay: 0.60s; animation-delay: -1.5s; }

@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* hover 触发涟漪光环 */
.integration-chip {
  position: relative;
  overflow: hidden;
}
.integration-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.25), transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.integration-chip:hover::after {
  opacity: 1;
  transform: scale(1.5);
}

/* ── FAQ: stagger reveal + summary 左侧渐变 + 加号弹性旋转 ── */
.faq-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, background 0.3s;
  position: relative;
}
[data-reveal].is-visible .faq-item { opacity: 1; transform: none; }
[data-reveal].is-visible .faq-item:nth-child(1) { transition-delay: 0.05s; }
[data-reveal].is-visible .faq-item:nth-child(2) { transition-delay: 0.12s; }
[data-reveal].is-visible .faq-item:nth-child(3) { transition-delay: 0.19s; }
[data-reveal].is-visible .faq-item:nth-child(4) { transition-delay: 0.26s; }
[data-reveal].is-visible .faq-item:nth-child(5) { transition-delay: 0.33s; }
[data-reveal].is-visible .faq-item:nth-child(6) { transition-delay: 0.40s; }
[data-reveal].is-visible .faq-item:nth-child(7) { transition-delay: 0.47s; }

/* 左侧渐变 indicator: hover/open 时拉长 */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #6366f1, #a855f7);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item:hover::before,
.faq-item[open]::before {
  transform: scaleY(1);
}

/* 加号弹性旋转（spring） */
.faq-item summary::after {
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}
.faq-item[open] summary::after {
  color: #fff;
}

/* 答案展开使用 details 默认折叠 + 透明度过渡（CSS 无法对未知 height 平滑——退而 fade-in） */
.faq-item p {
  animation: faq-fade-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ── Stats numbers: 持续渐变流光（强化已有效果） ── */
.stat-num {
  background-size: 250% 100% !important;
  animation: stat-num-flow 5s ease-in-out infinite alternate;
}

@keyframes stat-num-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.stat {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible .stat { opacity: 1; transform: none; }
[data-reveal].is-visible .stat:nth-child(1) { transition-delay: 0.10s; }
[data-reveal].is-visible .stat:nth-child(2) { transition-delay: 0.22s; }
[data-reveal].is-visible .stat:nth-child(3) { transition-delay: 0.34s; }
[data-reveal].is-visible .stat:nth-child(4) { transition-delay: 0.46s; }

/* ── Reduced-motion: 全部高级动画停在静态终态 ── */
@media (prefers-reduced-motion: reduce) {
  .section-eyebrow::after,
  .section-head h2 {
    transition: none !important;
    transform: translateX(-50%) scaleX(1) !important;
    background-position: -100% 0 !important;
  }
  .workflow-steps::before,
  .workflow-step-num::before,
  .workflow-step-num::after,
  .audience-card::after,
  .audience-tag,
  .stat-num,
  .integration-chip,
  .usecase-card::before,
  .comparison-col-new {
    animation: none !important;
  }
  .workflow-step,
  .usecase-card,
  .comparison-row,
  .audience-card,
  .integration-chip,
  .faq-item,
  .stat {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============ Guide section ============ */
.guide {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(180deg, #0a0a0f 0%, #14141d 100%);
  color: #e8e8f0;
}
.guide .section-head { text-align: center; margin-bottom: 56px; }

.guide-tabs {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 0 auto 48px;
  max-width: 720px;
  background: rgba(20, 20, 29, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}
.guide-tabs::-webkit-scrollbar { display: none; }
.guide-tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  color: #a8a8b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.guide-tab:hover { color: #e8e8f0; }
.guide-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.guide-workflow {
  max-width: 920px;
  margin: 0 auto 80px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  scroll-margin-top: 96px;
}
.guide-workflow-head { margin-bottom: 28px; }
.guide-workflow-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.guide-workflow-scene { color: #c0c0d0; font-size: 15px; margin: 0; }

.guide-workflow-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.guide-steps {
  list-style: none;
  counter-reset: gstep;
  padding: 0;
  margin: 0;
}
.guide-steps li {
  position: relative;
  counter-increment: gstep;
  padding: 0 0 16px 36px;
  font-size: 14px;
  line-height: 1.7;
  color: #d8d8e8;
}
.guide-steps li::before {
  content: counter(gstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-steps strong { color: #fff; }

.guide-detail {
  margin-top: 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.guide-detail summary {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #e8e8f0;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
}
.guide-detail summary:hover { background: rgba(255, 255, 255, 0.05); }
.guide-detail[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.guide-detail-body { padding: 16px 20px; font-size: 14px; color: #c0c0d0; line-height: 1.7; }
.guide-detail-body p { margin: 0 0 10px; }
.guide-detail-body p:last-child { margin-bottom: 0; }

.guide-related {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.guide-related a {
  color: #a78bfa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.guide-related a:hover { color: #c4b5fd; text-decoration: underline; }

.feature-anchor {
  display: inline-block;
  margin-top: 16px;
  color: #6366f1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.feature-anchor:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .guide-tabs { top: 8px; max-width: calc(100vw - 32px); }
  .guide-workflow { padding: 24px; border-radius: 16px; }
  .guide-workflow-body { grid-template-columns: 1fr; gap: 24px; }
  .guide-workflow-title { font-size: 20px; }
}

/* ============ Guide mockups ============ */
.mock-panel {
  background: #1a1a26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 12px;
}
.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0f0f17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.mock-dot-r { background: #ff5f57; }
.mock-dot-y { background: #ffbd2e; }
.mock-dot-g { background: #28c941; }
.mock-dot-todo { background: #6366f1; }
.mock-dot-doing { background: #f59e0b; }
.mock-dot-done { background: #22c55e; }
.mock-title { color: #c0c0d0; font-weight: 600; margin-left: 6px; }
.mock-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #c0c0d0;
  font-size: 11px;
}
.mock-badge-live { background: #22c55e; color: #fff; }
.mock-badge-warn { background: #f59e0b; color: #fff; }

/* Workflow 1: create meeting */
.mock-form { padding: 16px; }
.mock-label { display: block; color: #8888a0; font-size: 11px; margin: 12px 0 4px; }
.mock-input {
  padding: 8px 10px;
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e8e8f0;
}
.mock-mic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  background: #0f0f17;
  border-radius: 6px;
}
.mock-wave { display: flex; gap: 3px; flex: 1; align-items: center; }
.mock-wave span {
  width: 3px;
  background: linear-gradient(180deg, #6366f1, #a855f7);
  border-radius: 2px;
  animation: mockWave 1.2s ease-in-out infinite;
}
.mock-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.mock-wave span:nth-child(2) { height: 18px; animation-delay: 0.2s; }
.mock-wave span:nth-child(3) { height: 24px; animation-delay: 0.4s; }
.mock-wave span:nth-child(4) { height: 18px; animation-delay: 0.6s; }
.mock-wave span:nth-child(5) { height: 12px; animation-delay: 0.8s; }
@keyframes mockWave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.mock-cta {
  margin-top: 16px;
  padding: 10px;
  text-align: center;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}

/* Workflow 2: insight */
.mock-insight-grid { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.mock-insight-block {
  padding: 10px 12px;
  background: #0f0f17;
  border-radius: 8px;
}
.mock-insight-label { color: #8888a0; font-size: 11px; margin-bottom: 8px; }
.mock-tag {
  display: inline-block;
  padding: 3px 8px;
  margin: 2px 4px 2px 0;
  background: rgba(99, 102, 241, 0.15);
  color: #a78bfa;
  border-radius: 4px;
  font-size: 11px;
}
.mock-risk-line, .mock-action-line { padding: 4px 0; color: #d8d8e8; display: flex; align-items: center; gap: 6px; }

/* Workflow 3: kanban */
.mock-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.mock-kanban-column { background: #0f0f17; border-radius: 8px; padding: 10px; min-height: 180px; }
.mock-kanban-col-title { color: #8888a0; font-size: 11px; margin-bottom: 8px; font-weight: 600; }
.mock-kanban-card {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #1a1a26;
  border-radius: 6px;
  color: #e8e8f0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}
.mock-kanban-card .mock-meta { color: #8888a0; font-size: 10px; width: 100%; padding-left: 16px; }
.mock-kanban-card-faded { opacity: 0.5; }

/* Workflow 4: replay */
.mock-search-input {
  flex: 1;
  padding: 4px 10px;
  background: #0f0f17;
  border-radius: 4px;
  color: #c0c0d0;
}
.mock-export-btn {
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #a78bfa;
  border-radius: 4px;
  font-weight: 600;
}
.mock-replay-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #d8d8e8;
}
.mock-play { color: #6366f1; cursor: pointer; }
.mock-time { color: #8888a0; font-family: monospace; font-size: 11px; }
.mock-quote mark { background: rgba(245, 158, 11, 0.3); color: #fff; padding: 1px 3px; border-radius: 2px; }
.mock-export-menu {
  margin: 8px;
  padding: 8px 0;
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
.mock-export-item { padding: 6px 14px; color: #d8d8e8; font-size: 12px; }
.mock-export-item:hover { background: rgba(99, 102, 241, 0.1); }

@media (max-width: 768px) {
  .mock-kanban { grid-template-columns: 1fr; }
}


/* ============ Motion upgrade (Apple-style) ============ */
:root { --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); }

/* D. Top scroll progress rail */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

/* A. Hero parallax — --scroll-y is unit-less px count set by JS */
.hero { --scroll-y: 0; }
.hero-orbs {
  transform: translate3d(0, calc(var(--scroll-y) * 0.3px), 0);
  will-change: transform;
}
.hero-mesh {
  transform: translate3d(0, calc(var(--scroll-y) * 0.55px), 0) scale(1.02);
  will-change: transform;
}
.hero-grid {
  transform: translate3d(0, calc(var(--scroll-y) * 0.85px), 0);
  will-change: transform;
}
/* Hero content sinks slightly + fades as page scrolls away */
.hero-content {
  transform: translate3d(0, calc(var(--scroll-y) * 0.18px), 0);
  opacity: calc(1 - var(--scroll-y) / 520);
  will-change: transform, opacity;
}

/* B. Feature scroll-progress — JS writes --feat-progress 0..1 on .feature */
.feature { --feat-progress: 0; }

/* Feature 01 (ASR bubbles): stagger by progress */
.feature-asr .bubble-a {
  opacity: clamp(0, calc((var(--feat-progress) - 0.15) * 6), 1);
  transform: translate3d(0, calc((1 - clamp(0, (var(--feat-progress) - 0.15) * 6, 1)) * 30px), 0);
  transition: opacity .4s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.feature-asr .bubble-b {
  opacity: clamp(0, calc((var(--feat-progress) - 0.35) * 6), 1);
  transform: translate3d(0, calc((1 - clamp(0, (var(--feat-progress) - 0.35) * 6, 1)) * 30px), 0);
  transition: opacity .4s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.feature-asr .bubble-en {
  opacity: clamp(0, calc((var(--feat-progress) - 0.55) * 6), 1);
  transition: opacity .4s var(--ease-out-expo);
}

/* Feature 02 (tag cloud): tags scale/fade in orbital order */
.feature-insight .tag {
  --tag-delay: calc(var(--tag-order, 0) * 0.04);
  opacity: clamp(0, calc((var(--feat-progress) - 0.15 - var(--tag-delay)) * 8), 1);
  transform: scale(calc(0.7 + clamp(0, (var(--feat-progress) - 0.15 - var(--tag-delay)) * 8, 1) * 0.3));
  transition: opacity .4s var(--ease-out-expo), transform .5s var(--ease-out-expo);
}
.feature-insight .tag-1 { --tag-order: 0; }
.feature-insight .tag-2 { --tag-order: 1; }
.feature-insight .tag-3 { --tag-order: 2; }
.feature-insight .tag-4 { --tag-order: 3; }
.feature-insight .tag-5 { --tag-order: 4; }
.feature-insight .tag-6 { --tag-order: 5; }
.feature-insight .tag-7 { --tag-order: 6; }
.feature-insight .tag-8 { --tag-order: 7; }

/* Feature 03 (kanban): columns slide in; cards stagger */
.feature-manage .kanban-col {
  --col-order: 0;
  --col-delay: calc(var(--col-order) * 0.1);
  opacity: clamp(0, calc((var(--feat-progress) - 0.15 - var(--col-delay)) * 6), 1);
  transform: translate3d(calc((1 - clamp(0, (var(--feat-progress) - 0.15 - var(--col-delay)) * 6, 1)) * 40px), 0, 0);
  transition: opacity .45s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.feature-manage .kanban-col:nth-child(2) { --col-order: 1; }
.feature-manage .kanban-col:nth-child(3) { --col-order: 2; }
.feature-manage .kanban-card {
  --card-order: 0;
  --card-delay: calc(0.3 + var(--card-order) * 0.06);
  opacity: clamp(0, calc((var(--feat-progress) - var(--card-delay)) * 8), 1);
  transform: translate3d(0, calc((1 - clamp(0, (var(--feat-progress) - var(--card-delay)) * 8, 1)) * 12px), 0);
  transition: opacity .4s var(--ease-out-expo), transform .5s var(--ease-out-expo);
}
.feature-manage .kanban-card:nth-child(2) { --card-order: 1; }
.feature-manage .kanban-card:nth-child(3) { --card-order: 2; }

/* Ensure demos remain informative when scroll progress is unavailable or static screenshots are captured. */
.feature-asr.is-visible .bubble-a,
.feature-asr.is-visible .bubble-b,
.feature-asr.is-visible .bubble-en,
.feature-insight.is-visible .tag,
.feature-manage.is-visible .kanban-col,
.feature-manage.is-visible .kanban-card {
  opacity: 1;
  transform: none;
}

/* E. Split text — word-by-word reveal */
[data-split-words] .motion-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity .7s var(--ease-out-expo),
    transform .9s var(--ease-out-expo);
  transition-delay: calc(var(--word-i, 0) * 45ms);
  will-change: transform, opacity;
}
[data-split-words].is-revealed .motion-word {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* G. Comparison rows stagger-slide */
.comparison-row {
  --row-index: 0;
  transition:
    opacity .6s var(--ease-out-expo),
    transform .8s var(--ease-out-expo);
  transition-delay: calc(var(--row-index) * 50ms);
}
.comparison[data-reveal]:not(.is-visible) .comparison-row:not(.comparison-head) {
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
}
.comparison[data-reveal].is-visible .comparison-row {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* H. Magnetic CTA */
.btn-primary {
  --magnet-x: 0px;
  --magnet-y: 0px;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition: transform .45s var(--ease-out-expo), box-shadow .3s var(--ease-out-expo);
}
.btn-primary:hover { transition-duration: .15s; }

/* I. Card 3D tilt */
.usecase-card,
.audience-card,
.guide-workflow {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out-expo), box-shadow .4s var(--ease-out-expo);
}
.usecase-card.is-tilting,
.audience-card.is-tilting,
.guide-workflow.is-tilting {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transition-duration: .2s;
}
.usecase-card.is-tilting { box-shadow: 0 20px 50px rgba(99, 102, 241, 0.18); }
.audience-card.is-tilting { box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25); }
.guide-workflow.is-tilting { box-shadow: 0 20px 50px rgba(168, 85, 247, 0.2); }

/* F. Number counter visual — no separate class needed; JS updates textContent */

/* Mobile: reduce parallax amplitude to avoid motion sickness */
@media (max-width: 768px) {
  .hero-orbs { transform: translate3d(0, calc(var(--scroll-y) * 0.1px), 0); }
  .hero-mesh { transform: translate3d(0, calc(var(--scroll-y) * 0.18px), 0) scale(1.02); }
  .hero-grid { transform: translate3d(0, calc(var(--scroll-y) * 0.28px), 0); }
  .hero-content { transform: none; opacity: 1; }
  .hero { min-height: auto; }
  .hero .section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-product-preview {
    justify-self: stretch;
    max-width: none;
  }
  .preview-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .preview-panel--ai {
    display: none;
  }
  .preview-window {
    border-radius: 18px;
  }
}

/* Reduced motion — flatten all scroll/entrance/tilt/magnetic to static */
@media (prefers-reduced-motion: reduce) {
  .hero-orbs, .hero-mesh, .hero-grid, .hero-content { transform: none !important; opacity: 1 !important; }
  .progress-rail { display: none; }
  .feature-asr .bubble-a, .feature-asr .bubble-b, .feature-asr .bubble-en,
  .feature-insight .tag,
  .feature-manage .kanban-col, .feature-manage .kanban-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-split-words] .motion-word { opacity: 1 !important; transform: none !important; transition: none !important; }
  .comparison-row { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-primary { transform: none !important; }
  .usecase-card, .audience-card, .guide-workflow { transform: none !important; transition: none !important; }
}
