/* ==========================================================================
   ez-to-ai 官网设计系统 - 固定视口滚轮驱动场景动效引擎 (Scrollytelling Engine CSS)
   Core Interaction: 视口固定，滚轮向下驱动连续物理滑轨与 GPU 硬件加速平滑缓动
   ========================================================================== */

/* 页面大视图容器 (5大独立页面视图) */
.page-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.3, 1),
              transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
  transform: translate3d(0, 16px, 0) scale(0.98);
  z-index: var(--z-scene);
}

.page-view.active-view {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

/* 场景舞台容器 */
.scrolly-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* 核心连续物理滑轨 (Continuous GPU Hardware Accelerated Slide Track) */
.scrolly-track {
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ==========================================================================
   场景个体空间动效 (Scene Spatial Transitions)
   去除了 full-screen filter: blur()，彻底消除 GPU 栅格化重绘掉帧与卡顿
   ========================================================================== */
.scene {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-height) + 16px) 48px 60px;
  box-sizing: border-box;
  opacity: 0.15;
  transform: translate3d(0, 0, 0) scale(0.97);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  backface-visibility: hidden;
}

/* 当前激活入场场景 */
.scene.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

/* ==========================================================================
   场景内部元素的顺滑入场动效 (GPU Accelerated Reveal Animations)
   ========================================================================== */

/* 1. 标题与头部介绍 */
.scene .scene-header,
.scene .stitch-hero-title,
.scene .hero-glass-title {
  opacity: 0.25;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.scene.active .scene-header,
.scene.active .stitch-hero-title,
.scene.active .hero-glass-title {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 2. 副标题与描述 */
.scene .stitch-hero-subtitle,
.scene .hero-tagline-cn,
.scene .hero-tagline-en,
.scene .scene-description {
  opacity: 0.25;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.scene.active .stitch-hero-subtitle,
.scene.active .hero-tagline-cn,
.scene.active .hero-tagline-en,
.scene.active .scene-description {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 3. 核心卡片与行动按钮组 */
.scene .hero-cta-group,
.scene .stitch-hero-card-wrapper,
.scene .glass-card,
.scene .feature-triad-grid,
.scene .stitch-live-synthesis-layout,
.scene .island-simulator-stage,
.scene .tutorial-stepper-layout,
.scene .calculator-card-wrapper,
.scene .contact-interactive-card {
  opacity: 0.25;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.scene.active .hero-cta-group,
.scene.active .stitch-hero-card-wrapper,
.scene.active .glass-card,
.scene.active .feature-triad-grid,
.scene.active .stitch-live-synthesis-layout,
.scene.active .island-simulator-stage,
.scene.active .tutorial-stepper-layout,
.scene.active .calculator-card-wrapper,
.scene.active .contact-interactive-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 4. 原生应用 Squircle 阵列与网格卡片轻量入场 */
.scene .software-app-tile,
.scene .feature-card-detailed,
.scene .pricing-card,
.scene .invest-metric-card,
.scene .sponsor-card {
  opacity: 0.3;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.scene.active .software-app-tile,
.scene.active .feature-card-detailed,
.scene.active .pricing-card,
.scene.active .invest-metric-card,
.scene.active .sponsor-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 场景内容包装容器 */
.scene-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* 场景头部标题区 */
.scene-header {
  text-align: center;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scene-category {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}

.scene-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.scene-description {
  font-size: clamp(0.95rem, 1.3vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

/* ==========================================================================
   场景指示与交互控制器 (Scrolly Controls)
   ========================================================================== */

/* 右侧竖向点阵指示器 */
.scrolly-nav-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: var(--z-scrolly-nav);
  background: rgba(15, 17, 26, 0.5);
  border: 1px solid var(--glass-border);
  padding: 12px 8px;
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.scrolly-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.3);
}

.scrolly-dot.active {
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.4);
  transform: scale(1.4);
}

/* 提示悬浮气泡 */
.scrolly-dot .dot-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(15, 17, 26, 0.9);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-dot:hover .dot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 底部左侧：章节状态信息胶囊 */
.scrolly-chapter-badge {
  position: fixed;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-scrolly-nav);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.chapter-number {
  font-weight: 800;
  color: var(--brand-cyan);
  font-family: var(--font-family-code);
}

.chapter-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* 底部中央：滚轮驱动提示动效 */
.scrolly-hint-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-tertiary);
  font-size: 0.78125rem;
  font-weight: 500;
  z-index: var(--z-scrolly-nav);
  pointer-events: none;
  animation: float-hint 3s infinite ease-in-out;
}

.mouse-wheel-icon {
  width: 14px;
  height: 22px;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 10px;
  position: relative;
}

.mouse-wheel-dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5px;
  height: 5px;
  background: var(--text-tertiary);
  border-radius: 2px;
  animation: wheel-scroll 1.6s infinite;
}

@keyframes wheel-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  80% { transform: translate(-50%, 8px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

@keyframes float-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* 底部右侧：快捷步进切换按钮 */
.scrolly-step-arrows {
  position: fixed;
  bottom: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: var(--z-scrolly-nav);
}

.btn-scene-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-scene-step:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: var(--glass-border-highlight);
  transform: translateY(-2px);
}

.btn-scene-step:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
