* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a1a2e;
  --accent: #4361ee;
  --accent-light: #eef2ff;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --radius: 16px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--primary);
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 15px; color: var(--text-light); font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; background: var(--accent); color: #fff !important;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(67,97,238,0.3); }
.nav-cta::after { display: none !important; }

/* Mobile menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: 0; }
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); transition: 0.3s; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 32px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(67,97,238,0.06) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(67,97,238,0.04) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: var(--accent-light);
  border-radius: 100px; font-size: 13px; color: var(--accent);
  font-weight: 600; margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800;
  line-height: 1.15; letter-spacing: -1.5px;
  color: var(--primary); margin-bottom: 24px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--text-light); line-height: 1.8;
  margin-bottom: 40px; max-width: 480px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px; background: var(--accent); color: #fff;
  border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67,97,238,0.3); }
.btn-secondary {
  padding: 14px 32px; background: transparent; color: var(--text);
  border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--border); transition: all 0.2s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-graphic {
  width: 100%; max-width: 480px; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-alt), var(--accent-light));
  border-radius: 32px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-graphic::before {
  content: ''; position: absolute; inset: 40px;
  border: 2px dashed rgba(67,97,238,0.15); border-radius: 50%;
  animation: rotate 20s linear infinite;
}
.hero-graphic::after {
  content: ''; position: absolute; inset: 80px;
  border: 2px dashed rgba(67,97,238,0.1); border-radius: 50%;
  animation: rotate 15s linear infinite reverse;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-graphic-icon {
  font-size: 64px; position: relative; z-index: 1;
  width: 120px; height: 120px; background: var(--accent);
  border-radius: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(67,97,238,0.25);
}
.hero-graphic-icon svg { width: 56px; height: 56px; }

/* Stats bar */
.stats-bar {
  padding: 60px 32px; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-item h3 { font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.stat-item p { font-size: 14px; color: var(--text-light); margin-top: 8px; }

/* Section common */
.section { padding: 120px 32px; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1px; color: var(--primary); margin-bottom: 16px;
}
.section-header p { font-size: 17px; color: var(--text-light); line-height: 1.7; }

/* Products/Services */
.products-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.product-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  border-color: rgba(67,97,238,0.2);
}
.product-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-light); display: flex;
  align-items: center; justify-content: center; margin-bottom: 24px;
}
.product-icon svg { width: 28px; height: 28px; color: var(--accent); }
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.product-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.product-link {
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.product-link:hover { gap: 10px; }

/* About */
.about-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--accent-light), #f0f4ff);
  border-radius: 24px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(67,97,238,0.03) 60px, rgba(67,97,238,0.03) 61px),
              repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(67,97,238,0.03) 60px, rgba(67,97,238,0.03) 61px);
}
.about-visual-text {
  position: relative; z-index: 1; text-align: center;
  font-size: 48px; font-weight: 800; color: var(--accent); opacity: 0.6;
}
.about-content h2 {
  font-size: clamp(28px, 3.5vw, 36px); font-weight: 800;
  letter-spacing: -0.5px; color: var(--primary); margin-bottom: 20px;
}
.about-content p {
  font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px;
}
.about-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-list-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--text);
}
.about-list-item .check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-light); display: flex;
  align-items: center; justify-content: center; margin-top: 1px;
}
.about-list-item .check svg { width: 14px; height: 14px; color: var(--accent); }

/* Contact */
.contact-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.contact-info h3 { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.contact-info > p { font-size: 16px; color: var(--text-light); line-height: 1.7; margin-bottom: 40px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.contact-item-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-light); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 22px; height: 22px; color: var(--accent); }
.contact-item-text span { display: block; font-size: 13px; color: var(--text-light); }
.contact-item-text strong { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-form {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s; outline: none; background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.form-submit:hover { background: #3451d1; transform: translateY(-1px); }

/* Footer */
.footer {
  background: var(--primary); color: #fff; padding: 80px 32px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; color: rgba(255,255,255,0.9); }
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.55);
  margin-bottom: 12px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 60px auto 0; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* Animations */
html.js .fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-graphic { max-width: 360px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 24px 32px;
    gap: 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: flex; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .products-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 80px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
