/* ===== CSS Variables ===== */
:root {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(30, 58, 138, 0.08);
  --glass-shadow: rgba(30, 58, 138, 0.06);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent: #04a39e;
  --accent-green: #218a64;
  --gradient-primary: linear-gradient(135deg, #218a64, #04a39e);
  --surface-header: rgba(255, 255, 255, 0.8);
  --font-heading: 'Manrope', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
}

body.dark {
  --bg-primary: #0a1628;
  --bg-secondary: #111827;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --surface-header: rgba(10, 22, 40, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 20% 30%, rgba(4, 163, 158, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
    var(--bg-primary);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background:
    radial-gradient(circle at 20% 30%, rgba(4, 163, 158, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.12) 0%, transparent 50%),
    var(--bg-primary);
  background-attachment: fixed;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

section {
  padding: 6rem 0;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ===== Glass Card ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
  box-shadow:
    0 12px 48px var(--glass-shadow),
    0 0 20px rgba(4, 163, 158, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(4, 163, 158, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 163, 158, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.logo {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  align-self: center;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.logo-line {
  height: 2px;
  width: 100%;
  background: var(--gradient-primary);
  border-radius: 1px;
  opacity: 0.5;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--glass-bg-hover);
  transform: scale(1.05);
}

.theme-toggle svg { width: 20px; height: 20px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover { background: var(--glass-bg-hover); }

.lang-option {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.lang-option.active {
  color: var(--accent);
  font-weight: 600;
}

.lang-divider { color: var(--glass-border); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-top: 5rem;
}

.hero-left { max-width: 580px; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}


.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-partners {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.partners-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.partner-logo {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-logo:hover { opacity: 1; }

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
}


.hero-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(4, 163, 158, 0.12));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

body.dark .hero-image {
  filter: drop-shadow(0 24px 48px rgba(4, 163, 158, 0.25));
}

/* Hero Stats Bar */
.hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 3rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-stats-bar .stats-grid {
  display: flex;
  gap: 3rem;
  flex: 1;
}

.hero-stats-bar .stat-item { text-align: center; }

.hero-stats-bar .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stats-bar .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.stats-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid var(--glass-border);
  padding-left: 2rem;
  margin-left: 1rem;
}

.stats-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Hero Scroll Arrow */
.hero-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 1rem auto 0;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  text-decoration: none;
  animation: bounceArrow 2s ease-in-out infinite;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.hero-scroll-arrow:hover {
  background: var(--glass-bg-hover);
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* ===== Services ===== */
.services { background: var(--bg-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
}

.service-card:hover {
  box-shadow:
    0 12px 48px var(--glass-shadow),
    0 0 30px rgba(4, 163, 158, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 163, 158, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(4, 163, 158, 0.2);
}

.service-title { font-size: 1.5rem; color: var(--text-primary); }
.service-description { color: var(--text-secondary); line-height: 1.6; }

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-check { flex-shrink: 0; margin-top: 2px; }

/* ===== Legal ===== */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.legal-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
}

.legal-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 16px rgba(4, 163, 158, 0.3);
}

.legal-title { font-size: 1.5rem; color: var(--text-primary); }
.legal-description { color: var(--text-secondary); line-height: 1.6; }

/* ===== Compliance ===== */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.compliance-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
}

.compliance-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 163, 158, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(4, 163, 158, 0.2);
}

.compliance-icon svg { color: var(--accent); }
.compliance-title { font-size: 1.5rem; color: var(--text-primary); }
.compliance-description { color: var(--text-secondary); line-height: 1.6; }

/* ===== Extra Services ===== */
.extra-services { background: var(--bg-secondary); }

.extra-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.extra-service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.extra-service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 163, 158, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(4, 163, 158, 0.2);
}

.extra-service-icon svg { color: var(--accent); }
.extra-service-title { font-size: 1.125rem; color: var(--text-primary); font-weight: 600; }
.extra-service-description { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ===== Pricing ===== */
.pricing { background: var(--bg-secondary); }

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.04);
  box-shadow:
    0 12px 48px var(--glass-shadow),
    0 0 40px rgba(4, 163, 158, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }

.featured-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(4, 163, 158, 0.4);
}

.pricing-title { font-size: 1.5rem; color: var(--text-primary); }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.price-period { font-size: 1.125rem; color: var(--text-muted); }

.pricing-description {
  color: var(--text-secondary);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.pricing-features li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-additional {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.pricing-additional p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== China Section ===== */
.china-section { background: var(--bg-secondary); }

.china-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.china-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.china-title { font-size: 2.5rem; }
.china-subtitle { font-size: 1.125rem; color: var(--text-secondary); }

.china-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.china-feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.china-icon { flex-shrink: 0; }

.china-feature h4 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.china-feature p { color: var(--text-secondary); font-size: 0.95rem; }

.china-card {
  text-align: center;
  padding: 3rem 2.5rem;
}

.china-emoji { font-size: 4rem; margin-bottom: 1.5rem; }
.china-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.china-card p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 2rem; }

/* ===== Contact ===== */
.contact-section { background: var(--bg-secondary); }

.contact-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-box { padding: 3rem; }

.contact-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--surface-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--accent), transparent) 1;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  line-height: 1;
}

.footer-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  align-self: center;
}

.footer-logo .logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.footer-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.footer-logo .logo-line {
  height: 2px;
  width: 100%;
  background: var(--gradient-primary);
  border-radius: 1px;
  opacity: 0.5;
}

.footer-description { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.footer-title { font-size: 1.125rem; color: var(--text-primary); margin-bottom: 0.5rem; }

.footer-links,
.footer-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-contacts a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links a:hover::after { width: 100%; }
.footer-links a:hover, .footer-contacts a:hover { color: var(--accent); }
.footer-contacts li { color: var(--text-secondary); font-size: 0.95rem; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright, .footer-legal { color: var(--text-muted); font-size: 0.875rem; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active { display: flex; }

.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--glass-bg-hover);
  transform: rotate(90deg);
}

.modal-title { font-size: 1.75rem; margin-bottom: 0.5rem; }
.modal-subtitle { color: var(--text-secondary); margin-bottom: 2rem; }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--glass-bg-hover);
  box-shadow: 0 0 0 3px rgba(4, 163, 158, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

body.dark .form-group select option {
  background: #1e293b;
  color: #f1f5f9;
}

body.dark .form-group select {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}


/* ===== FAQ Section ===== */
.faq-section {
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(4, 163, 158, 0.1);
  border: 1px solid rgba(4, 163, 158, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 1rem;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: var(--glass-bg-hover);
  box-shadow: 0 4px 16px var(--glass-shadow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question span {
  flex: 1;
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 2000px;
  padding: 0 2rem 1.5rem 2rem;
}

.faq-answer-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mobile-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 1rem 2rem;
  transition: color 0.3s ease;
  text-align: center;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link:active {
  color: var(--accent);
}

body.dark .mobile-menu {
  background: var(--bg-primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Responsive — Standard ===== */
@media (max-width: 1024px) {
    .hero {
    min-height: auto;
    padding: 7rem 0 2rem;
  }

  .hero-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-image-wrapper { max-width: 400px; }
  .hero-stats-bar {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .hero-stats-bar .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .hero-stats-bar .stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    flex: none;
  }

  .hero-stats-bar .stat-value {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .hero-stats-bar .stat-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .stats-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    border-top: 1px solid var(--glass-border);
    border-left: none;
    padding-top: 1rem;
    padding-left: 0;
    margin-left: 0;
    align-items: flex-start;
  }
  .services-grid,
  .compliance-grid,
  .pricing-grid,
  .extra-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .china-content { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-content { padding: 1rem 0; }
  .nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  
  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn {
    display: none;
  }

  .lang-toggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .logo {
    gap: 8px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.15rem;
  }
  
  .hero {
    padding: 5rem 0 2rem;
    min-height: auto;
    align-items: flex-start;
  }
  .hero-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding-top: 0;
  }

  .hero-left { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-partners { justify-content: center; }
  .hero-image-wrapper { max-width: 320px; margin: 0 auto; }
  
  .hero-stats-bar {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .hero-stats-bar .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .hero-stats-bar .stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    flex: none;
  }

  .hero-stats-bar .stat-value {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .hero-stats-bar .stat-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .stats-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    border-top: 1px solid var(--glass-border);
    border-left: none;
    padding-top: 1rem;
    padding-left: 0;
    margin-left: 0;
    align-items: flex-start;
  }
  
  .china-title {
    font-size: 1.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section-title {
    font-size: 1.6rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  .services-grid,
  .legal-grid,
  .compliance-grid,
  .pricing-grid,
  .extra-services-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  section {
    padding: 3rem 0;
  }

  .china-section,
  .contact-section,
  .compliance,
  .extra-services,
  .legal,
  .services,
  .pricing {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.5rem; }
  h1 { font-size: 2rem; }
  
  .header-content {
    padding: 0.75rem 0;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .lang-toggle {
    padding: 0.3rem 0.5rem;
  }

  .lang-option {
    font-size: 0.7rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }

  .logo {
    gap: 6px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .logo-line {
    height: 1.5px;
  }
  
  .hero {
    padding: 4.5rem 0 1.5rem;
  }
  .hero-main {
    padding-top: 0;
  }
  .hero-title { font-size: 1.75rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
  
  .hero-stats-bar .stat-value {
    font-size: 1.6rem;
  }

  .hero-stats-bar .stat-item {
    padding: 0.75rem;
  }
  
  .china-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .china-subtitle {
    font-size: 0.95rem;
  }
  
  .price-amount {
    font-size: 1.8rem;
  }
  .pricing-price {
    flex-wrap: nowrap;
    align-items: baseline;
  }
  
  .footer-legal {
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
  }
  
  .contact-buttons { flex-direction: column; }
  .modal-content { padding: 1.5rem; }
  
  section {
    padding: 2.5rem 0;
  }

  .china-section,
  .contact-section,
  .compliance,
  .extra-services,
  .legal,
  .services,
  .pricing {
    padding: 2.5rem 0;
  }
}

/* ===== High Resolution — 2K / QHD ===== */
@media (min-width: 2000px) {
  .container { max-width: 1600px; }
   .hero { padding: 0; }
  .hero-main { padding-top: 6rem; }
  .hero-subtitle { font-size: 1.3rem; max-width: 600px; }
  .hero-image-wrapper { max-width: 580px; }
  .hero-stats-bar { padding: 2.5rem 3.5rem; }
  .hero-stats-bar .stat-value { font-size: 2.2rem; }
  .section-title { font-size: 2.8rem; }
  .section-subtitle { font-size: 1.2rem; }
  .btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
  .services-grid,
  .compliance-grid,
  .extra-services-grid { gap: 2.5rem; }
  .glass-card { padding: 2.5rem; }
  .pricing-card { padding: 2.5rem; }
}

/* ===== Ultrawide 3440px ===== */
@media (min-width: 3000px) {
  .container { max-width: 1800px; }
  html { font-size: 18px; }
  .hero { padding: 0; }
  .hero-main { padding-top: 6rem; gap: 3rem; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-image-wrapper { max-width: 620px; }
  .hero-stats-bar .stat-value { font-size: 2.4rem; }
  .section-title { font-size: 3rem; }
  .nav-link { font-size: 1.05rem; }
  .glass-card { padding: 2.5rem; border-radius: 20px; }
}

/* ===== 4K (3840px) ===== */
@media (min-width: 3800px) {
  .container { max-width: 2200px; }
  html { font-size: 20px; }
    .hero { padding: 0; }
  .hero-main { padding-top: 7rem; gap: 4rem; }
  .hero-title { font-size: 3.5rem; }
  .hero-image-wrapper { max-width: 750px; }
  .hero-main { gap: 4rem; }
  .hero-stats-bar { padding: 2.5rem 4rem; border-radius: 24px; }
  .header-content { height: 90px; }
  .glass-card { padding: 3rem; border-radius: 24px; }
  .service-icon svg,
  .compliance-icon svg { width: 56px; height: 56px; }
  .extra-service-icon svg { width: 40px; height: 40px; }
}


/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
