/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background: #ffffff;
  overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: #4F46E5;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px; color: #475569; transition: color 0.2s;
}
.nav-links a:hover { color: #4F46E5; }
.nav-cta {
  padding: 8px 20px; border-radius: 8px; background: #4F46E5;
  color: #fff; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.2s;
}
.nav-cta:hover { background: #4338CA; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #475569; border-radius: 2px; transition: all 0.3s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: #fff; padding: 16px 24px;
    gap: 12px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(175deg, #F8FAFC 0%, #EEF2FF 50%, #F5F3FF 100%);
}
.hero-glow {
  position: absolute; top: 50%; right: 10%; width: 700px; height: 700px;
  transform: translateY(-50%);
  background: radial-gradient(circle at center, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.06) 35%, transparent 70%);
  border-radius: 50%;
}
.hero-dots {
  position: absolute; inset: 0; opacity: 0.4;
  background-image: radial-gradient(rgba(79,70,229,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; width: 100%;
  display: flex; align-items: center; gap: 80px;
}
.hero-content {
  flex: 0 0 420px; max-width: 420px;
}
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  background: rgba(79,70,229,0.08);
  font-size: 12px; font-weight: 700; color: #4F46E5;
  margin-bottom: 20px; letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -2px;
  line-height: 1.15;
  background: linear-gradient(135deg, #0F172A 0%, #4338CA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  margin-top: 10px; font-size: 16px; color: #64748B; font-weight: 500;
}
.hero-desc {
  margin-top: 18px; font-size: 15px; color: #94A3B8; max-width: 380px; line-height: 1.75;
}
.hero-btns {
  margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.btn-outline {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  background: transparent; color: #4F46E5; font-size: 15px; font-weight: 600;
  border: 2px solid rgba(79,70,229,0.2); transition: all 0.25s;
}
.btn-outline:hover { border-color: #4F46E5; background: rgba(79,70,229,0.05); }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.hero-stats {
  margin-top: 44px; display: flex; gap: 36px;
}
.hero-stat strong {
  display: block; font-size: 26px; font-weight: 700; color: #1E293B; letter-spacing: -0.5px;
}
.hero-stat span {
  display: block; font-size: 12px; color: #94A3B8; margin-top: 2px;
}

/* Hero Device */
.hero-visual {
  position: relative; z-index: 1; flex: 1; display: flex; justify-content: center; align-items: center;
  min-height: 420px;
}
.hero-device-wrap {
  position: relative;
}
.hero-device-img {
  width: 340px; height: auto; display: block;
  filter: drop-shadow(0 30px 60px rgba(79,70,229,0.18)) drop-shadow(0 8px 16px rgba(0,0,0,0.08));
  position: relative; z-index: 2;
}
.hero-feature-badge {
  position: absolute; z-index: 3;
  background: #fff; border-radius: 12px; padding: 8px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: #334155;
  white-space: nowrap;
  animation: floatBadge 4s ease-in-out infinite;
}
.badge-a { top: 10px; right: -50px; animation-delay: 0s; }
.badge-b { top: 45%; right: -60px; animation-delay: 1.2s; }
.badge-c { bottom: 20px; right: -40px; animation-delay: 2.4s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 960px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 50px; }
  .hero-content { flex: none; max-width: 100%; }
  .hero-desc { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 28px; }
  .hero-visual { min-height: 300px; }
  .hero-device-img { width: 260px; }
  .badge-a { top: 0; right: -20px; }
  .badge-b { top: 40%; right: -25px; }
  .badge-c { bottom: 10px; right: -15px; }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  background: #4F46E5; color: #fff; font-size: 16px; font-weight: 600;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
.btn-primary:hover { background: #4338CA; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.4); }
.btn-secondary {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  background: #fff; color: #4F46E5; font-size: 16px; font-weight: 600;
  border: 2px solid #4F46E5; transition: all 0.2s;
}
.btn-secondary:hover { background: #EEF2FF; transform: translateY(-1px); }
.btn-lg { padding: 16px 40px; font-size: 18px; border-radius: 12px; }

/* ===== Section ===== */
section { padding: 100px 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #1e293b;
}
.section-header p { margin-top: 12px; font-size: 17px; color: #64748B; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== Features ===== */
.features { background: #fff; }
.features-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px; border-radius: 16px; border: 1px solid #E2E8F0;
  background: #fff; transition: all 0.3s;
}
.feature-card:hover { border-color: #C7D2FE; box-shadow: 0 8px 24px rgba(79,70,229,0.08); transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #EEF2FF;
  display: flex; align-items: center; justify-content: center; color: #4F46E5;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1e293b; }
.feature-card p { font-size: 15px; color: #64748B; line-height: 1.7; }

/* ===== How It Works ===== */
.how-it-works { background: #F8FAFC; }
.steps {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.step { text-align: center; position: relative; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-line {
  position: absolute; top: 28px; left: calc(50% + 40px);
  width: calc(100% - 80px); height: 2px; background: #E2E8F0;
  display: none;
}
.step:last-child .step-line { display: none; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1e293b; }
.step p { font-size: 15px; color: #64748B; }

@media (min-width: 769px) { .step-line { display: block; } }

/* ===== Scenarios ===== */
.scenarios { background: #fff; }
.scenarios-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.scenario-card {
  padding: 32px; border-radius: 16px; border: 1px solid #E2E8F0;
  background: #fff; text-align: center; transition: all 0.3s;
}
.scenario-card:hover { border-color: #DDD6FE; box-shadow: 0 4px 16px rgba(139,92,246,0.08); }
.scenario-icon {
  width: 56px; height: 56px; border-radius: 14px; background: #F5F3FF;
  display: flex; align-items: center; justify-content: center; color: #7C3AED;
  margin: 0 auto 16px;
}
.scenario-icon svg { width: 28px; height: 28px; }
.scenario-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1e293b; }
.scenario-card p { font-size: 15px; color: #64748B; line-height: 1.7; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  text-align: center; padding: 80px 24px;
}
.cta-content { max-width: 600px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: #fff; }
.cta p { margin: 16px 0 32px; font-size: 17px; color: rgba(255,255,255,0.85); }
.cta .btn-primary { background: #fff; color: #4F46E5; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.cta .btn-primary:hover { background: #F8FAFC; }

/* ===== Contact ===== */
.contact {
  padding: 80px 24px;
  background: #F1F5F9;
  text-align: center;
}
.contact-grid {
  max-width: 900px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-item {
  background: #fff;
  border-radius: 12px;
  padding: 32px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.contact-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #EFF6FF;
  display: flex; align-items: center; justify-content: center;
  color: #2563EB;
}
.contact-label {
  font-size: 14px; color: #64748B; margin-bottom: 8px; font-weight: 500;
}
.contact-item p, .contact-item a {
  font-size: 16px; color: #1E293B; font-weight: 600; word-break: break-all;
}
.contact-item a { color: #2563EB; }

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

/* ===== Footer ===== */
.footer {
  background: #1E293B; color: #CBD5E1; padding: 40px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: #94A3B8; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-icp { font-size: 13px; color: #64748B; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
