/* ========================================
   Homepage — dedicated styles
   ======================================== */

/* --- Navbar transparent overlay on hero --- */
.navbar--homepage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background .35s ease, box-shadow .35s ease;
}

.navbar--homepage.navbar--scrolled {
  background: rgba(30, 27, 75, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.18);
}

/* --- Main content no margin for homepage --- */
.main-content--homepage {
  margin: 0;
  padding: 0;
}

/* ========================================
   Hero
   ======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  padding: 120px 24px 80px;
  text-align: center;
}

/* Floating decorative shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  filter: blur(80px);
  animation: heroFloat 12s ease-in-out infinite;
}

.hero-shape--1 {
  width: 600px; height: 600px;
  background: #667eea;
  top: -10%; left: -10%;
}

.hero-shape--2 {
  width: 500px; height: 500px;
  background: #764ba2;
  bottom: -15%; right: -10%;
  animation-delay: -4s;
  animation-duration: 14s;
}

.hero-shape--3 {
  width: 350px; height: 350px;
  background: #43e97b;
  top: 50%; left: 60%;
  animation-delay: -8s;
  animation-duration: 16s;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(.95); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 100px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.homepage .hero-title {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.homepage .hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  opacity: .88;
  margin-bottom: 20px;
}

.homepage .hero-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  opacity: .75;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Hero buttons */
.btn-hero-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(102,126,234,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(102,126,234,.55);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: background .25s ease, border-color .25s ease;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.55);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 14px;
  position: relative;
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: .3; }
}

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
  position: relative;
  z-index: 5;
  margin-top: -50px;
  padding: 0 24px;
}

.stats-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
  padding: 36px 20px;
}

.stat-block {
  text-align: center;
  position: relative;
}

.stat-block + .stat-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #e5e7eb;
}

.stat-block-value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-block-label {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
  font-weight: 500;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.homepage .section-title-center {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}

.section-desc {
  font-size: 17px;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   Features
   ======================================== */
.homepage .features-section {
  padding: 100px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.homepage .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.homepage .feature-card {
  background: #fff;
  border: 1px solid #f0f0f5;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.homepage .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(102,126,234,.12);
  border-color: rgba(102,126,234,.25);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(102,126,234,.1), rgba(118,75,162,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #667eea;
}

.feature-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.homepage .feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1f2937;
}

.homepage .feature-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #6b7280;
}

/* ========================================
   Capabilities deep-dive（分块功能介绍）
   ======================================== */
.capabilities-section {
  padding: 88px 24px 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 32%, #f1f5f9 100%);
}

.capabilities-lead {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #667eea;
  margin-bottom: 12px;
}

.capabilities-desc-wide {
  max-width: 720px;
}

.capability-rows {
  max-width: 1100px;
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.capability-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.capability-row--reverse .capability-row-text {
  order: 2;
}

.capability-row--reverse .capability-row-visual {
  order: 1;
}

.capability-row-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.capability-list {
  margin: 0;
  padding-left: 1.15em;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.85;
}

.capability-list li + li {
  margin-top: 12px;
}

.capability-row-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.capability-visual-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/3;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 56px rgba(15, 23, 42, .12);
  border: 1px solid rgba(255, 255, 255, .5);
}

.capability-visual-card svg {
  width: 72px;
  height: 72px;
  opacity: .95;
}

.capability-visual-card--violet {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.capability-visual-card--indigo {
  background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
}

.capability-visual-card--teal {
  background: linear-gradient(145deg, #0d9488 0%, #059669 100%);
  color: #fff;
}

.capability-visual-card--amber {
  background: linear-gradient(145deg, #d97706 0%, #ea580c 100%);
  color: #fff;
}

.capability-visual-card--rose {
  background: linear-gradient(145deg, #e11d48 0%, #be185d 100%);
  color: #fff;
}

.advantages-block {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(102, 126, 234, .1);
  border-color: rgba(102, 126, 234, .25);
}

.advantage-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, .12), rgba(118, 75, 162, .12));
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.advantage-item-icon svg {
  width: 22px;
  height: 22px;
}

.advantage-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}

/* stagger deep-dive */
.capability-rows .fade-up:nth-child(2) { transition-delay: .08s; }
.capability-rows .fade-up:nth-child(3) { transition-delay: .16s; }
.capability-rows .fade-up:nth-child(4) { transition-delay: .24s; }
.capability-rows .fade-up:nth-child(5) { transition-delay: .32s; }

.advantages-grid .fade-up:nth-child(2) { transition-delay: .08s; }
.advantages-grid .fade-up:nth-child(3) { transition-delay: .16s; }
.advantages-grid .fade-up:nth-child(4) { transition-delay: .24s; }

/* ========================================
   How It Works — Timeline
   ======================================== */
.homepage .how-it-works-section {
  padding: 80px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
}

.steps-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps-line {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #667eea, #764ba2);
  border-radius: 1px;
}

.homepage .step-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  position: relative;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.homepage .step-card:hover {
  transform: none;
  box-shadow: none;
}

.homepage .step-number {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(102,126,234,.3);
  margin: 0;
}

.step-body {
  flex: 1;
  padding-top: 4px;
}

.step-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 20px 24px 60px;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(102,126,234,.15);
  filter: blur(80px);
  top: -30%; right: -10%;
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-inner p {
  font-size: 17px;
  opacity: .8;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-inner .btn-hero-primary {
  position: relative;
}

/* ========================================
   Footer (homepage overrides)
   ======================================== */
.footer-brand p {
  max-width: 280px;
}

/* ========================================
   Scroll reveal animation
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.features-grid .fade-up:nth-child(2) { transition-delay: .1s; }
.features-grid .fade-up:nth-child(3) { transition-delay: .2s; }
.features-grid .fade-up:nth-child(4) { transition-delay: .3s; }
.features-grid .fade-up:nth-child(5) { transition-delay: .4s; }
.features-grid .fade-up:nth-child(6) { transition-delay: .5s; }

.steps-timeline .fade-up:nth-child(3) { transition-delay: .1s; }
.steps-timeline .fade-up:nth-child(4) { transition-delay: .2s; }
.steps-timeline .fade-up:nth-child(5) { transition-delay: .3s; }

.stats-bar-inner .fade-up:nth-child(2) { transition-delay: .1s; }
.stats-bar-inner .fade-up:nth-child(3) { transition-delay: .2s; }
.stats-bar-inner .fade-up:nth-child(4) { transition-delay: .3s; }

/* ========================================
   Use Cases
   ======================================== */
.usecases-section {
  padding: 80px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usecase-card {
  background: #fff;
  border: 1px solid #f0f0f5;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(102,126,234,.1);
  border-color: rgba(102,126,234,.2);
}

.usecase-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #667eea;
}

.usecase-icon svg {
  width: 100%;
  height: 100%;
}

.usecase-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* stagger */
.usecases-grid .fade-up:nth-child(2) { transition-delay: .1s; }
.usecases-grid .fade-up:nth-child(3) { transition-delay: .2s; }
.usecases-grid .fade-up:nth-child(4) { transition-delay: .3s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .homepage .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .capability-row--reverse .capability-row-text,
  .capability-row--reverse .capability-row-visual {
    order: unset;
  }

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

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 20px 80px;
    min-height: auto;
  }

  .hero-scroll-hint { display: none; }

  .stats-bar { margin-top: -30px; padding: 0 16px; }

  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
    padding: 28px 16px;
    border-radius: 16px;
  }

  .stat-block + .stat-block::before { display: none; }

  .homepage .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-line { left: 25px; }

  .homepage .step-number {
    width: 50px; height: 50px; min-width: 50px;
    font-size: 20px;
  }

  .step-body h3 { font-size: 18px; }

  .cta-inner { padding: 48px 24px; border-radius: 18px; }

  .usecases-grid { grid-template-columns: 1fr; gap: 16px; }

  .usecases-section { padding: 60px 20px 80px; }

  .capabilities-section {
    padding: 64px 20px 80px;
  }

  .capability-rows {
    gap: 40px;
    margin-bottom: 56px;
  }

  .capability-visual-card {
    max-width: 100%;
    min-height: 180px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-section { padding: 80px 16px 60px; }

  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
    padding: 24px 12px;
  }

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

  .btn-hero-primary, .btn-hero-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .homepage .features-section,
  .homepage .how-it-works-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta-section { padding: 20px 16px 40px; }
}
