*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --bg-dark: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #1a1a24;
  --surface: #16161f;
  --border: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.4);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: left 0.1s, top 0.1s;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s;
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(99, 102, 241, 0.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-brain-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  animation: brainGlowPulse 4s ease-in-out infinite;
}

@keyframes brainGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.ai-brain-svg {
  width: 420px;
  height: 420px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.2));
}

.brain-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawBrain 3s ease forwards;
}

@keyframes drawBrain {
  to { stroke-dashoffset: 0; }
}

.node {
  animation: nodePulse 3s ease-in-out infinite;
}

.node.n1 { animation-delay: 0s; }
.node.n2 { animation-delay: 0.3s; }
.node.n3 { animation-delay: 0.6s; }
.node.n4 { animation-delay: 0.9s; }
.node.n5 { animation-delay: 0.2s; }
.node.n6 { animation-delay: 0.5s; }
.node.n7 { animation-delay: 0.8s; }
.node.n8 { animation-delay: 0.1s; }
.node.n9 { animation-delay: 0.4s; }
.node.n10 { animation-delay: 0.7s; }
.node.n11 { animation-delay: 1s; }
.node.n12 { animation-delay: 0.15s; }
.node.n13 { animation-delay: 0.45s; }
.node.n14 { animation-delay: 0.75s; }

.core-node {
  animation: coreNodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes coreNodePulse {
  0%, 100% { opacity: 0.8; r: 6; }
  50% { opacity: 1; r: 8; }
}

.synapse {
  opacity: 0.4;
  animation: synapseFlow 2.5s ease-in-out infinite alternate;
}

.synapse:nth-child(odd) { animation-delay: 0.5s; }
.synapse:nth-child(3n) { animation-delay: 1s; }

@keyframes synapseFlow {
  0% { opacity: 0.2; stroke-width: 0.5; }
  100% { opacity: 0.7; stroke-width: 1.2; }
}

.orbit {
  opacity: 0.3;
  stroke-dasharray: 8 4;
  animation: orbitSpin 20s linear infinite;
}

.orbit-1 { animation-duration: 20s; }
.orbit-2 { animation-duration: 25s; animation-direction: reverse; }
.orbit-3 { animation-duration: 18s; }

@keyframes orbitSpin {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 100; }
}

.orbit-particle {
  filter: blur(0.5px);
}

.ai-core {
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { opacity: 0.7; r: 20; }
  50% { opacity: 1; r: 22; }
}

.core-ring {
  animation: ringExpand 3s ease-in-out infinite;
}

.core-ring-2 {
  animation: ringExpand 3s ease-in-out infinite 1.5s;
}

@keyframes ringExpand {
  0%, 100% { opacity: 0.4; transform-origin: center; }
  50% { opacity: 0.15; }
}

.neural-network {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

#neuralCanvas {
  width: 100%;
  height: 100%;
}

/* Section Common */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s, border-color 0.3s, box-shadow 0.3s;
}

.about-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.about-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.04), transparent 50%);
  pointer-events: none;
}

.about-main {
  grid-column: span 2;
}

.about-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.about-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}

.about-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-light);
}

/* Business Section */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.business-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.business-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.business-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.business-card.visible:hover {
  transform: translateY(-4px);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.06);
  line-height: 1;
}

.business-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}

.business-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-light);
}

.business-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.business-card p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.card-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* Advantages Section */
.advantages-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.advantage-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.advantage-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.advantage-item:last-child .advantage-line {
  display: none;
}

.advantage-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 12px;
}

.advantage-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: white;
}

.advantage-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.advantage-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 14px 28px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.contact-email svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-light);
}

.contact-email:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 6px;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-main {
    grid-column: span 1;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 80px 0;
  }

  .contact-card {
    padding: 48px 24px;
  }

  .contact-email {
    font-size: 0.9rem;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
