/* ===== 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;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Variables ===== */
:root {
  --blue:    #2563eb;
  --blue-d:  #1d4ed8;
  --blue-l:  #3b82f6;
  --cyan:    #06b6d4;
  --dark:    #0f172a;
  --dark2:   #1e293b;
  --gray:    #64748b;
  --light:   #f1f5f9;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.16);
}

/* ===== Utility ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-alt { background: #fff; }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 580px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-sub { margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .2s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.45); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-dark:hover { background: var(--blue); color: #fff; }

/* ===== Navbar ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #fff;
}
.nav-logo span {
  background: linear-gradient(135deg, #60a5fa, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; font-weight: 900;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 9px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 22px; }

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.glow-1 { width: 500px; height: 500px; background: rgba(37,99,235,.3); top: -100px; left: -100px; }
.glow-2 { width: 400px; height: 400px; background: rgba(6,182,212,.2); bottom: -80px; right: 10%; }
.glow-3 { width: 300px; height: 300px; background: rgba(139,92,246,.2); top: 40%; right: -50px; }

.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 120px 0 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.4);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px; color: #93c5fd;
  margin-bottom: 24px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800; line-height: 1.15; color: #fff;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,.7);
  margin-bottom: 40px; max-width: 480px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex; gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item { }
.stat-num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.stat-num span { color: var(--blue-l); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }

.hero-visual {
  position: relative;
}
.hero-screen {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform .5s ease;
}
.hero-screen:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }
.screen-bar {
  background: #1e293b;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.screen-dot { width: 10px; height: 10px; border-radius: 50%; }
.screen-title-bar { flex: 1; background: rgba(255,255,255,.06); border-radius: 4px; height: 18px; margin: 0 16px; }
.hero-screen img { width: 100%; }
.hero-float-card {
  position: absolute;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: floatUp 3s ease-in-out infinite;
}
@keyframes floatUp { 0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)} }
.card-top { top: -20px; right: 20px; animation-delay: .5s; }
.card-bot { bottom: -20px; left: -10px; }
.float-icon { width: 36px; height: 36px; border-radius: 8px; display:flex;align-items:center;justify-content:center;font-size:18px; }
.float-text { font-size: 13px; color: rgba(255,255,255,.9); white-space: nowrap; }
.float-text strong { display: block; font-size: 14px; color: #fff; }

/* ===== Features strip ===== */
.features-strip {
  background: var(--dark);
  padding: 20px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex; gap: 48px; align-items: center;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.strip-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.6); font-size: 14px; }
.strip-item svg { color: var(--blue-l); flex-shrink: 0; }

/* ===== Cards grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.icon-blue  { background: #eff6ff; }
.icon-cyan  { background: #ecfeff; }
.icon-green { background: #f0fdf4; }
.icon-purple{ background: #faf5ff; }
.icon-orange{ background: #fff7ed; }
.icon-pink  { background: #fdf2f8; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.card p  { font-size: 14px; color: var(--gray); line-height: 1.75; }
.card-list { list-style: none; margin-top: 12px; }
.card-list li {
  font-size: 13px; color: var(--gray);
  padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.card-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-l);
  flex-shrink: 0;
}

/* ===== Feature showcase (alternating) ===== */
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid #e2e8f0;
}
.showcase-item:last-child { border-bottom: none; }
.showcase-item.reverse { }
.showcase-item.reverse .showcase-img { order: -1; }
.showcase-text .tag { }
.showcase-text h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.showcase-text p { font-size: 16px; color: var(--gray); margin-bottom: 24px; line-height: 1.8; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--dark2);
}
.feature-list li .check {
  width: 22px; height: 22px; border-radius: 6px;
  background: #eff6ff;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; margin-top: 1px;
}
.showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
}
.showcase-img img { width: 100%; }

/* ===== Tech stack ===== */
.tech-section {
  background: var(--dark);
  padding: 80px 0;
}
.tech-section .section-title { color: #fff; }
.tech-section .section-sub  { color: rgba(255,255,255,.5); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.tech-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: background .25s, border-color .25s, transform .25s;
}
.tech-card:hover {
  background: rgba(37,99,235,.15);
  border-color: rgba(37,99,235,.4);
  transform: translateY(-4px);
}
.tech-logo {
  font-size: 36px; margin-bottom: 12px;
  display: flex; justify-content: center;
}
.tech-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.tech-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.6; }

/* ===== Cases ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-img { height: 220px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-img img { transform: scale(1.04); }
.case-body { padding: 24px; }
.case-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: var(--blue);
  background: #eff6ff;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.case-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ===== Pricing ===== */
.pricing-section { background: var(--light); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, #fff 0%, #eff6ff 100%);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-plan { font-size: 14px; font-weight: 600; color: var(--gray); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-currency { font-size: 22px; font-weight: 700; color: var(--dark); }
.price-num { font-size: 52px; font-weight: 800; color: var(--dark); line-height: 1; }
.price-original { font-size: 14px; color: #94a3b8; text-decoration: line-through; margin-bottom: 24px; }
.price-divider { border: none; border-top: 1px solid #e2e8f0; margin: 28px 0; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--dark2);
}
.price-features li .pf-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.price-features li.extra { color: var(--blue); font-weight: 600; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  font-size: 16px; font-weight: 600; color: var(--dark);
  transition: background .2s;
}
.faq-q:hover { background: #f8fafc; }
.faq-q .faq-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .3s, background .2s;
  font-size: 14px; color: var(--gray);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--blue); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  font-size: 15px; color: var(--gray); line-height: 1.8;
}
.faq-a-inner { padding: 0 28px 22px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ===== CTA Banner ===== */
.cta-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  padding: 96px 0;
  text-align: center;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,.6); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
footer {
  background: var(--dark);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { font-size: 18px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.8; max-width: 260px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 13px; color: rgba(255,255,255,.3);
  flex-wrap: wrap; gap: 12px;
}

/* ===== QR Code Modal ===== */
#qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#qr-modal.show {
  display: flex;
  opacity: 1;
}
.qr-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
#qr-modal.show .qr-modal-content {
  transform: scale(1);
}
.qr-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.qr-modal-qr {
  margin: 0 auto 20px;
}
.qr-modal-qr-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.qr-modal-qr-item {
  text-align: center;
}
.qr-modal-qr-item img {
  width: 200px;
  height: 200px;
  border: 2px solid var(--light);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 12px;
  object-fit: contain;
}
.qr-modal-qr-item p {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}
.qr-modal-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}
.qr-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qr-modal-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; padding: 100px 0 60px; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .showcase-item { grid-template-columns: 1fr; gap: 40px; }
  .showcase-item.reverse .showcase-img { order: 0; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Mobile nav ===== */
#mobile-nav {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 998;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(12px);
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
#mobile-nav.open { display: block; }
#mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
#mobile-nav ul li a {
  display: block; padding: 10px 12px;
  color: rgba(255,255,255,.8); font-size: 15px;
  border-radius: 6px;
  transition: background .2s;
}
#mobile-nav ul li a:hover { background: rgba(255,255,255,.06); color: #fff; }
#mobile-nav .btn { width: 100%; justify-content: center; }