/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #4F7DF3;
  color: white;
}

.btn-primary:hover {
  background: #3B5FD9;
  transform: translateY(-2px);
}

.btn-dark {
  background: #000;
  color: white;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #4F7DF3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-name {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

.logo-slogan {
  font-size: 12px;
  color: #666;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4F7DF3;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  background: #f5f5f5;
  color: #4F7DF3;
}

.lang-icon {
  font-size: 16px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e5e5;
  padding: 16px 24px;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: #333;
  text-decoration: none;
  padding: 8px 0;
}

.lang-switch-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #4F7DF3;
  font-size: 14px;
}

/* ===== Hero Section ===== */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: white;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
  max-width: 400px;
}

.hero-features {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #333;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* ===== Tech Section ===== */
.tech-section {
  background: #4F7DF3;
  padding: 80px 0;
  color: white;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tech-titles h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
}

.tech-desc {
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.9;
}

/* ===== Features Section ===== */
.features {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #f8f9fa;
  padding: 32px 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: white;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(79, 125, 243, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #000;
}

.feature-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ===== Team Section ===== */
.team {
  padding: 80px 0;
  background: white;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.team-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.team-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #000;
}

.team-content p {
  font-size: 17px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
}

.team-values {
  display: flex;
  gap: 24px;
}

.team-value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #333;
}

/* ===== Values Section ===== */
.values {
  padding: 80px 0;
  background: #f8f9fa;
}

.values-header {
  text-align: center;
  margin-bottom: 48px;
}

.values-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #000;
}

.values-header p {
  font-size: 17px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.value-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  background: #ddd;
  border-radius: 50%;
}

.value-card > p {
  padding: 24px;
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

.value-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 24px;
}

.value-footer img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.value-footer span {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  padding-bottom: 8px;
}

/* ===== Join Section ===== */
.join {
  padding: 80px 0;
  background: white;
}

.join-header {
  text-align: center;
  margin-bottom: 48px;
}

.join-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #000;
}

.join-header p {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.join-image {
  text-align: center;
  margin-bottom: 48px;
}

.join-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
}

.join-form {
  max-width: 600px;
  margin: 0 auto 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #4F7DF3;
}

.join-form .btn {
  display: block;
  margin: 0 auto;
  padding: 14px 48px;
}

.join-footer {
  text-align: center;
  font-size: 17px;
  color: #666;
}

/* ===== Footer ===== */
.footer {
  background: #4F7DF3;
  color: white;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer .logo-icon {
  background: white;
}

.footer .logo-name {
  color: white;
}

.footer .logo-slogan {
  color: rgba(255,255,255,0.7);
}

.footer-contact h4,
.footer-subscribe h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-contact p,
.footer-contact a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  line-height: 1.8;
}

.footer-contact a:hover {
  color: white;
}

.footer-subscribe p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
}

.subscribe-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.subscribe-form input:focus {
  outline: none;
  border-color: white;
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content,
  .tech-grid,
  .team-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .hero-image,
  .team-image {
    order: -1;
  }
  
  .hero-image img,
  .team-image img {
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .tech-titles h2,
  .team-content h2,
  .values-header h2,
  .join-header h2 {
    font-size: 32px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-features,
  .team-values {
    flex-direction: column;
    align-items: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text,
.tech-titles,
.tech-desc,
.feature-card,
.team-content,
.value-card,
.join-header,
.join-form {
  animation: fadeInUp 0.6s ease forwards;
}
