html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

* {
  box-sizing: border-box;
}

/* Navbar */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* Partner section */
.section-partner {
  padding: 80px 0;
  background: #f8f6ff;
}

.partner-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.partner-card .partner-badge {
  display: inline-block;
  background: #d7b8ff;
  color: #101010;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.partner-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #101010;
}

.partner-card p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 32px;
}

.partner-card .partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #101010;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.partner-card .partner-cta:hover {
  background: #333;
}

/* About section */
.section-about {
  padding: 80px 0;
}

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

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-grid .about-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #101010;
}

.about-grid .about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}

.about-grid .about-visual {
  border-radius: 16px;
  overflow: hidden;
}

.about-grid .about-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Capabilities */
.section-capabilities {
  padding: 60px 0 80px;
}

.capabilities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .capabilities-list {
    grid-template-columns: 1fr;
  }
}

.capability-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.capability-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #101010;
}

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

/* Global link section */
.section-global {
  padding: 60px 0;
  text-align: center;
}

.section-global p {
  font-size: 18px;
  color: #444;
}

.section-global a {
  color: #ff6038;
  font-weight: 600;
  text-decoration: underline;
}

/* Footer */
.footer-cn {
  background: #101010;
  color: #fff;
  padding: 48px 0 32px;
}

.footer-cn .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-cn .footer-logo img {
  height: 32px;
}

.footer-cn .footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-cn .footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-cn .footer-links a:hover {
  color: #fff;
}

.footer-cn .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid #333;
  width: 100%;
  text-align: center;
}

.footer-cn .footer-bottom .copyright {
  color: #666;
  font-size: 13px;
}

.footer-cn .footer-bottom .icp {
  color: #666;
  font-size: 13px;
}

.footer-cn .footer-bottom .icp a {
  color: #666;
  text-decoration: none;
}

.footer-cn .footer-bottom .icp a:hover {
  color: #aaa;
}

/* Logo carousel */
.section-logo {
  overflow: hidden !important;
  width: 100% !important;
  padding: 40px 0;
}

.logo-carousel {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  overflow: visible !important;
  will-change: transform !important;
  transform: translate3d(0, 0, 0);
  visibility: hidden !important;
}

.logo-carousel.is-ready {
  visibility: visible !important;
}

.logo-carousel .logo-wrap {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  align-items: center !important;
}

.logo-carousel img {
  display: block !important;
  flex-shrink: 0 !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Contact Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #101010;
}

.modal-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #101010;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #101010;
  margin-bottom: 8px;
}

.form-group label .optional {
  font-weight: 400;
  color: #999;
  font-size: 13px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #101010;
  background: #f8f8f8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d7b8ff;
  box-shadow: 0 0 0 3px rgba(215, 184, 255, 0.2);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px 32px;
  background: #101010;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: #333;
}

.form-submit:disabled {
  background: #999;
  cursor: not-allowed;
}

.form-success {
  padding: 48px 20px;
}

.success-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.success-content svg {
  flex-shrink: 0;
}

.success-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: #101010;
  margin-bottom: 4px;
}

.success-text p {
  font-size: 15px;
  color: #666;
  font-weight: 400;
}

@media (max-width: 767px) {
  .modal-content {
    padding: 32px 24px;
    margin: 20px;
  }
}
