/* ===== DESIGN TOKENS ===== */
:root {
  --primary: #ff4444;
  --primary-dark: #cc2222;
  --primary-light: #ff6666;
  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-dark: #1a1a2e;
  --nav-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #e8e8e8;
  --white: #ffffff;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(255,68,68,0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--surface); }

/* ===== HEADER / NAV ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; flex-shrink: 0; }
.nav-brand { font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 15px; font-weight: 500; flex: 1;
}
.nav-links a { color: var(--text); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
/* Hide the in-menu nav-right on desktop — handled by nav-right-desktop */
@media (min-width: 769px) { .nav-links .nav-right { display: none; } }
.nav-right-desktop { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-switcher { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; flex-wrap: nowrap; white-space: nowrap; }
.lang-switcher a { color: var(--text-muted); padding: 4px 8px; border-radius: var(--radius-sm); transition: all 0.2s; }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--primary); background: rgba(255,68,68,0.08); }
.lang-switcher span { color: var(--border); }
.nav-cta {
  background: var(--primary); color: var(--white) !important;
  padding: 10px 22px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px; transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--text); padding: 4px; flex-shrink: 0; }

@media (max-width: 768px) {
  .nav-brand { display: none; }
  .nav-logo img { height: 32px; width: auto; max-width: 120px; object-fit: contain; }
  .nav-right-desktop { display: none; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); overflow-y: auto; z-index: 999;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: calc(100vh - 64px);
  }
  .nav-links.open { display: flex; }
  /* Only direct li > a get the separator lines, not nested elements */
  .nav-links > li > a {
    display: block; width: 100%; text-align: center;
    padding: 16px 0; font-size: 17px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links > li > a:hover { color: var(--primary); background: var(--surface); }
  /* nav-right container inside mobile menu */
  .nav-links .nav-right {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; padding: 20px 16px;
    border-bottom: none;
  }
  /* Override any inherited border/width from li > a rule for nested links */
  .nav-links .nav-right a { width: auto; border-bottom: none; padding: 4px 8px; font-size: 14px; display: inline; }
  .nav-links .lang-switcher { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 4px; }
  .nav-links .nav-cta { width: 80%; text-align: center; padding: 14px; display: block; border-bottom: none; font-size: 15px; }
  .nav-toggle { display: block; }
  /* Lock body scroll when menu is open */
  body.nav-open { overflow: hidden; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 40%, #1a1a2e 100%);
  color: var(--white); padding: var(--space-xl) 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,68,68,0.15) 0%, transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,68,68,0.15); border: 1px solid rgba(255,68,68,0.3);
  color: #ff8888; padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--primary-light); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.75); margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: var(--white);
  padding: 14px 32px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 16px; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,68,68,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 32px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 16px; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(0,0,0,0.4); }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary-light); }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.6); }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }
}

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--surface-dark); padding: 20px 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 14px; }
.trust-item svg { width: 20px; height: 20px; fill: var(--primary); flex-shrink: 0; }

/* ===== SECTIONS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; background: rgba(255,68,68,0.1); color: var(--primary);
  padding: 6px 16px; border-radius: var(--radius-full); font-size: 13px;
  font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-header h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: rgba(255,68,68,0.1); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; font-size: 24px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== PLATFORMS ===== */
.platforms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.platform-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px 24px; text-align: center; transition: all 0.3s;
}
.platform-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.platform-icon { font-size: 48px; margin-bottom: 16px; }
.platform-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.platform-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.platform-btn {
  display: inline-block; background: var(--primary); color: var(--white);
  padding: 10px 24px; border-radius: var(--radius-full); font-weight: 600;
  font-size: 14px; transition: all 0.2s;
}
.platform-btn:hover { background: var(--primary-dark); }

@media (max-width: 768px) { .platforms-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== SPLIT ROW ===== */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-content h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; margin-bottom: 16px; }
.split-content p { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.split-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.split-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.split-list li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.split-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; }

@media (max-width: 768px) {
  .split-row, .split-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
}

/* ===== STATS ===== */
.stats-section { background: var(--primary); color: var(--white); padding: var(--space-lg) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item strong { display: block; font-size: 42px; font-weight: 900; }
.stat-item span { font-size: 15px; opacity: 0.85; }

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; position: relative; transition: all 0.3s;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white); padding: 4px 20px;
  border-radius: var(--radius-full); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pricing-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.pricing-plans { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-plan {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
}
.pricing-plan:hover, .pricing-plan.active { border-color: var(--primary); background: rgba(255,68,68,0.05); }
.pricing-plan-name { font-weight: 600; font-size: 15px; }
.pricing-plan-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.pricing-plan-orig { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pricing-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.pricing-cta {
  display: block; text-align: center; background: var(--primary); color: var(--white);
  padding: 14px; border-radius: var(--radius-full); font-weight: 700; font-size: 16px;
  transition: all 0.2s;
}
.pricing-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.payment-icons { display: flex; gap: 8px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.payment-icon {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--text-muted);
}

@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; transition: all 0.3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-card); }
.testimonial-stars { color: #ffd700; font-size: 18px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.testimonial-author { font-weight: 600; font-size: 14px; color: var(--text); }
.testimonial-role { font-size: 13px; color: var(--text-light); }

@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ===== IMAGE STRIP ===== */
.image-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.image-strip img { border-radius: var(--radius-md); width: 100%; height: 220px; object-fit: cover; }

@media (max-width: 768px) { .image-strip { grid-template-columns: 1fr; } }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #cc0000 100%);
  color: var(--white); text-align: center; padding: var(--space-xl) 0;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white); color: var(--primary);
  padding: 14px 36px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 16px; transition: all 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ===== FOOTER ===== */
.footer { background: #0f0f1a; color: rgba(255,255,255,0.75); padding: var(--space-lg) 0 var(--space-md); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { display: none; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.55); margin-top: 0; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--primary-light); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  padding: 20px 24px; font-weight: 600; font-size: 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--surface); }
.faq-q::after { content: '+'; font-size: 22px; color: var(--primary); font-weight: 400; }
.faq-q.open::after { content: '−'; }
.faq-a { display: none; padding: 0 24px 20px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-a.open { display: block; }

/* ===== NOTICE ===== */
.notice-bar {
  background: rgba(255,68,68,0.08); border-bottom: 1px solid rgba(255,68,68,0.2);
  padding: 10px 0; text-align: center; font-size: 13px; color: var(--primary);
}

/* ===== TABLE WRAPPER ===== */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--surface); font-weight: 700; }
tr:hover td { background: rgba(255,68,68,0.03); }
