*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37,130,246,0.4);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6,182,212,0.35);
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.35);
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #030b1a;
  --bg-card: rgba(15,23,42,0.85);
  --border: #e2e8f0;
  --border-glow: rgba(37,130,246,0.25);
  --glass-white: rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.18);
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #6366f1 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb, #6366f1);
  --gradient-border: linear-gradient(135deg, #2563eb, #06b6d4, #6366f1);
  --radius: 12px;
  --radius-lg: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fafbfc;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* === Global Background Layers === */
.bg-noise, .bg-grid, .bg-orb {
  position: fixed; pointer-events: none; z-index: 0;
  top: 0; left: 0; right: 0; bottom: 0;
}

/* Noise texture - slightly more visible */
.bg-noise {
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dot grid - enhanced with cyan hint */
.bg-grid {
  opacity: 0.08;
  background-image: radial-gradient(circle, rgba(37,130,246,0.8) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent 5%, black 25%, black 75%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 25%, black 75%, transparent 95%);
}

/* Floating gradient orbs - more vivid and dynamic */
.bg-orb {
  border-radius: 50%; filter: blur(120px); opacity: 0.18;
  animation: orbFloat 25s ease-in-out infinite;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #2563eb, transparent 70%);
  top: -20%; left: -15%;
}
.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 35%; right: -15%;
  animation-delay: -8s;
}
.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: 65%; left: 25%;
  animation-delay: -16s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.92); }
  75% { transform: translate(20px, -20px) scale(1.05); }
}

/* === Nav - Glassmorphism === */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto; padding: 16px 24px;
  background: var(--glass-white);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nav-links a { transition: all 0.3s; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px;
  background: var(--gradient-hero); border-radius: 1px;
  transition: all 0.3s; transform: translateX(-50%);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === Hero === */
.hero {
  position: relative; z-index: 2;
  max-width: 720px; margin: 120px auto 140px; padding: 0 24px; text-align: center;
  animation: fadeUp 0.8s ease-out;
}
.hero-badge {
  display: inline-block; padding: 8px 20px; font-size: 12px; font-weight: 600;
  color: var(--primary); background: rgba(37,130,246,0.08);
  border: 1px solid rgba(37,130,246,0.2);
  border-radius: 50px; margin-bottom: 28px; letter-spacing: 1px;
  backdrop-filter: blur(12px);
  animation: badgePulse 3s ease-in-out infinite;
  position: relative;
}
.hero-badge::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 50px; padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; animation: borderGlow 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(37,130,246,0.1); }
  50% { box-shadow: 0 0 30px rgba(37,130,246,0.2), 0 0 60px rgba(6,182,212,0.08); }
}
@keyframes borderGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.12; margin-bottom: 24px;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}
.hero p {
  font-size: 17px; color: var(--text-muted); line-height: 1.8; max-width: 560px; margin: 0 auto 48px;
  backdrop-filter: blur(4px);
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  padding: 20px 32px;
  background: var(--glass-white);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.stat { text-align: center; }
.stat strong {
  display: block; font-size: 24px; font-weight: 700;
  background: var(--gradient-hero);
  background-size: 100% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span { font-size: 12px; color: var(--text-light); margin-top: 2px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Light Section === */
.section { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; padding: 80px 24px; animation: fadeUp 0.6s ease-out; }
.section-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--primary); text-transform: uppercase; margin-bottom: 8px;
  position: relative; padding-left: 20px;
}
.section-label::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 10px; height: 2px; background: var(--gradient-hero);
  transform: translateY(-50%);
  border-radius: 1px;
}
.section-label.dark { color: rgba(37,130,246,0.6); }
.section h2 {
  font-size: 30px; font-weight: 800; margin-bottom: 24px; color: var(--text);
  position: relative;
}
.section h2::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--gradient-hero); border-radius: 2px;
  margin-top: 12px;
}
.section-lead { font-size: 16px; color: var(--text-muted); line-height: 1.8; }

/* === Dark Tech Section (Services) === */
.section-tech {
  position: relative; z-index: 2;
  padding: 80px 0; margin: 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1628 50%, #0f1b33 100%);
}
.section-tech::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 450px at 20% 0%, rgba(37,130,246,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 700px 350px at 80% 100%, rgba(99,102,241,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 250px at 50% 50%, rgba(6,182,212,0.04) 0%, transparent 70%);
}
.section-tech::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,130,246,0.5), rgba(6,182,212,0.3), rgba(99,102,241,0.5), transparent);
}
.section-tech-inner {
  position: relative; z-index: 2;
  max-width: 680px; margin: 0 auto; padding: 0 24px;
}
.section-tech h2 { font-size: 30px; font-weight: 800; margin-bottom: 32px; color: #e2e8f0; }

/* Service Cards - enhanced glassmorphism */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-item {
  padding: 28px;
  background: linear-gradient(135deg, rgba(30,41,59,0.6), rgba(15,23,42,0.5));
  border: 1px solid rgba(37,130,246,0.12);
  border-radius: var(--radius-lg); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden; backdrop-filter: blur(16px);
}
.service-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,130,246,0.2), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.service-item::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(37,130,246,0.08), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.service-item:hover {
  border-color: rgba(37,130,246,0.4);
  box-shadow: 0 0 40px rgba(37,130,246,0.12), 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(-4px);
}
.service-item:hover::before { opacity: 1; }
.service-item:hover::after { opacity: 1; }
.service-icon {
  color: var(--cyan); margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.3));
  transition: filter 0.3s;
}
.service-item:hover .service-icon {
  filter: drop-shadow(0 0 12px rgba(6,182,212,0.5));
}
.service-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #e2e8f0; }
.service-item p { font-size: 13px; color: #94a3b8; line-height: 1.7; }

/* === Product List - glass cards === */
.product-list { display: flex; gap: 16px; margin-top: 32px; }
.product-item {
  flex: 1; text-align: center; padding: 36px 20px;
  background: var(--glass-white);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.product-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-border);
  opacity: 0; transition: opacity 0.4s;
}
.product-item::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37,130,246,0.06), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.product-item:hover {
  border-color: rgba(37,130,246,0.35);
  box-shadow: 0 12px 40px rgba(37,130,246,0.12), 0 0 20px rgba(6,182,212,0.06);
  transform: translateY(-4px);
}
.product-item:hover::before { opacity: 1; }
.product-item:hover::after { opacity: 1; }
.product-item h3 { font-size: 17px; font-weight: 700; margin: 14px 0 10px; }
.product-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(37,130,246,0.25));
  transition: filter 0.3s;
}
.product-item:hover .product-icon {
  filter: drop-shadow(0 0 16px rgba(37,130,246,0.4));
}
.product-tag {
  display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 600;
  border-radius: 50px;
  background: rgba(37,130,246,0.1); color: var(--primary);
  border: 1px solid rgba(37,130,246,0.15);
}
.product-more .product-icon { color: var(--text-light); filter: none; }
.product-more .product-tag { background: rgba(148,163,184,0.1); color: var(--text-light); border-color: rgba(148,163,184,0.15); }

/* === Contact - glass card === */
#contact .section-label { margin-bottom: 8px; }
.contact-card {
  margin-top: 24px; padding: 32px;
  background: var(--glass-white);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-border);
  opacity: 0.5;
}
.contact-row {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 15px;
}
.contact-row:last-child { border-bottom: none; }
.contact-key {
  min-width: 52px; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary); text-transform: uppercase;
}

/* === Footer - gradient separator === */
.footer {
  position: relative; z-index: 2;
  text-align: center; padding: 48px 24px;
  border-top: 1px solid rgba(37,130,246,0.1);
  background: var(--glass-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: var(--gradient-border);
  opacity: 0.3;
}
.footer-logo {
  font-size: 20px; font-weight: 800;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block; margin-bottom: 8px;
  animation: gradientShift 6s ease-in-out infinite;
}
.footer p { font-size: 13px; color: var(--text-light); }
.footer-icp { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.footer-icp a { color: var(--text-light); transition: color 0.3s; }
.footer-icp a:hover { color: var(--primary); }

/* === Responsive === */
@media (max-width: 640px) {
  .hero { margin: 80px auto 100px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 24px; padding: 16px 20px; }
  .service-list { grid-template-columns: 1fr; }
  .product-list { flex-direction: column; }
  .nav { position: relative; background: transparent; backdrop-filter: none; }
}
