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

:root {
  --primary: #2d7ff9;
  --primary-dark: #1a5fd0;
  --accent: #00c6ff;
  --navy: #0a1628;
  --navy-light: #111d33;
  --navy-mid: #162240;
  --surface: #f7f8fc;
  --surface-alt: #eef1f8;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #8a8aa0;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255,255,255,0.65);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(10,22,40,0.06);
  --shadow-md: 0 4px 20px rgba(10,22,40,0.08);
  --shadow-lg: 0 8px 40px rgba(10,22,40,0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-dark); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Animations ===== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.logo-icon { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,127,249,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,127,249,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -15%;
  right: -10%;
  animation: glowDrift1 12s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -10%;
  left: -8%;
  animation: glowDrift2 10s ease-in-out infinite alternate;
}
@keyframes glowDrift1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-40px, 30px); }
}
@keyframes glowDrift2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, -25px); }
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 120px 24px 80px;
}
.hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.hero-stat-suffix {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}
.hero-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45,127,249,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45,127,249,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn-full { width: 100%; }

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== About ===== */
.about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-highlights {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}
.about-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}
.about-highlight svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.about-card-icon { flex-shrink: 0; }
.about-card-icon svg { width: 48px; height: 48px; }
.about-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.about-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== Products ===== */
.products { background: var(--white); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  padding: 36px 28px 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition);
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45,127,249,0.1);
}
.product-card:hover::before { opacity: 1; }
.product-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: var(--primary);
}
.product-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.product-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.product-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 1px;
  padding: 4px 12px;
  background: rgba(45,127,249,0.08);
  border-radius: 20px;
}

/* ===== Technology ===== */
.technology { background: var(--navy); color: var(--white); }
.technology .section-tag { color: var(--accent); }
.technology .section-title { color: var(--white); }
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.tech-main {
  background: linear-gradient(135deg, rgba(45,127,249,0.15), rgba(0,198,255,0.08));
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(45,127,249,0.2);
}
.tech-main h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}
.tech-main p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.tech-patents {
  display: flex;
  gap: 40px;
}
.tech-patent { text-align: center; }
.tech-patent-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.tech-patent-suffix {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}
.tech-patent-label {
  display: block;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}
.tech-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.tech-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(45,127,249,0.3);
}
.tech-item-icon { flex-shrink: 0; }
.tech-item-icon svg { width: 40px; height: 40px; }
.tech-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.tech-item p {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

/* ===== Partners ===== */
.partners { background: var(--white); overflow: hidden; }
.partners-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.partners-track {
  display: flex;
  gap: 0;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.partner-name {
  flex-shrink: 0;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
  border-right: 1px solid var(--surface-alt);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Timeline ===== */
.timeline-section { background: var(--surface); }
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-item:last-child .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}
.timeline-year {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.timeline-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}
.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 14px;
  color: var(--text-mid);
}
.contact-form {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.contact-form h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
input, textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid #e0e4ee;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition);
  margin-bottom: 14px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--primary);
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-light); }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--text-on-dark-muted);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid, .tech-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero-stats { gap: 30px; }
  .hero-stat-num { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .products-grid { grid-template-columns: 1fr; }
  .about-highlights { flex-direction: column; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .tech-patents { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-content { padding: 100px 16px 60px; }
}

/* ===== Print ===== */
@media print {
  .navbar, .hero-scroll-hint, .hero-bg { display: none; }
  .hero { min-height: auto; background: white; color: black; }
  .hero-title, .hero-stat-num { color: black; }
  .section { padding: 40px 0; }
}