/* ===== UTILITY ===== */
.section { padding: 80px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px; font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; transition: all .25s ease;
}
.btn-primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(238,80,80,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(238,80,80,.35); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-white {
  background: #fff; color: var(--primary); font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.login-btn { padding:8px 16px; }
.register-btn { padding:8px 20px; }
.login-btn, .register-btn { font-size:14px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); height: 68px;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; }
.nav-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--text-mid); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right .btn { padding: 8px 20px; font-size: 14px; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { position: relative; }
.lang-switcher-btn {
  display: flex; align-items: center; gap: 6px; height: 36px;
  padding: 0 8px;font-size: 18px; color: var(--text-mid);
  cursor: pointer; border-radius: 6px; outline: none;
  background: transparent; border: none;
  transition: color .2s, background .2s;
}
.lang-switcher-btn:hover { color: var(--primary); background: var(--primary-light); }
.lang-switcher-btn .arrow-icon { font-size: 12px; transition: transform .2s; }
.lang-switcher.open .lang-switcher-btn .arrow-icon { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 130px; background: #fff; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); border: 1px solid var(--border);
  padding: 4px; z-index: 1001;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all .2s ease;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: block; width: 100%; padding: 8px 16px; font-size: 14px;
  color: var(--text-mid); border-radius: 6px; cursor: pointer;
  background: transparent; border: none; text-align: left;
  transition: all .15s;
}
.lang-option:hover { background: var(--bg-gray); }
.lang-option.is-active { color: var(--primary); background: var(--primary-light); font-weight: 600; }


/* ===== HERO ===== */
.hero {
  padding-top: 160px; padding-bottom: 80px;
  background: var(--gradient-hero); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(238,80,80,.06) 0%, transparent 70%);
}
.hero .container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-content { flex: 1; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px; font-size: 13px;
  background: var(--primary-light); color: var(--primary); font-weight: 600;
  margin-bottom: 24px; border: 1px solid rgba(238,80,80,.15);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.hero h1 { font-size: 48px; line-height: 1.2; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); }
.hero p { font-size: 18px; color: var(--text-mid); margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 24px; }
.hero-trust { font-size: 13px; color: var(--text-light); }
.hero-visual { flex: 1; max-width: 480px; position: relative; }
.hero-card {
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-hover); border: 1px solid var(--border);
}
.hero-card .code-block {
  background: #1a1a2e; border-radius: 10px; padding: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #e9f0fc;
  overflow-x: auto; line-height: 1.8;
}
.code-block .kw { color: #ee5050; }
.code-block .str { color: #ee9250; }
.code-block .key { color: #63b1bd; }
.hero-card .card-label { font-size: 12px; color: var(--text-light); margin-bottom: 8px; font-weight: 500; }

/* ===== TRUST BAR ===== */
.trust-bar { padding: 48px 0; border-bottom: 1px solid var(--border); }
.trust-stats { display: flex; justify-content: center; gap: 60px; }
.trust-stat { text-align: center; }
.trust-stat .num { font-size: 36px; font-weight: 700; }
.trust-stat .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ===== PRODUCTS ===== */
.products { background: var(--bg-gray); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .overline { font-size: 13px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.section-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-mid); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border-radius: 12px; padding: 32px 24px;
  border: 1px solid var(--border); transition: all .3s ease; cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(238,80,80,.15); }
.product-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 24px;
}
.product-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.product-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { padding: 32px; border-radius: 12px; background: #fff; border: 1px solid var(--border); transition: all .3s ease; }
.feature-card:hover { box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: #fff; font-size: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--bg-gray); }
.steps { display: flex; gap: 32px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 40px; left: 80px; right: 80px;
  height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: .2;
}
.step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-primary); color: #fff; font-size: 20px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(238,80,80,.25);
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-mid); max-width: 260px; margin: 0 auto; }

/* ===== COVERAGE MAP ===== */
.coverage { background: var(--bg-warm); }
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.coverage-item {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: #fff; border-radius: 10px; border: 1px solid var(--border);
}
.coverage-flag { font-size: 28px; }
.coverage-item h4 { font-size: 15px; font-weight: 600; }
.coverage-item p { font-size: 13px; color: var(--text-light); }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.pricing-card {
  background: #fff; border-radius: 16px; padding: 36px 28px;
  border: 1px solid var(--border); transition: all .3s ease; position: relative;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 8px 32px rgba(238,80,80,.15); }
.pricing-card.featured::before {
  content: 'Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-primary); color: #fff; padding: 4px 16px;
  border-radius: 100px; font-size: 12px; font-weight: 600;
}
.pricing-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.pricing-card .price { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.pricing-card .price span { font-size: 16px; color: var(--text-light); font-weight: 400; }
.pricing-card .price-note { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.pricing-card ul { margin-bottom: 28px; }
.pricing-card li { padding: 8px 0; font-size: 14px; color: var(--text-mid); border-bottom: 1px solid #f5f7fa; display: flex; align-items: center; gap: 8px; }
.pricing-card li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ===== DEV SECTION ===== */
.dev-section { background: #1a1a2e; color: #fff; }
.dev-section .section-header h2 { color: #fff; }
.dev-section .section-header p { color: rgba(255,255,255,.6); }
.dev-content { display: flex; gap: 48px; align-items: center; }
.dev-text { flex: 1; }
.dev-text h3 { font-size: 24px; margin-bottom: 16px; }
.dev-text p { color: rgba(255,255,255,.7); margin-bottom: 24px; line-height: 1.7; }
.dev-text .lang-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.dev-text .lang-tab { padding: 6px 14px; border-radius: 8px; font-size: 13px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); cursor: pointer; transition: all .2s; }
.dev-text .lang-tab.active { background: var(--primary); color: #fff; }
.code-panel { flex: 1; max-width: 520px; }
.code-panel pre { background: rgba(255,255,255,.06); border-radius: 12px; padding: 24px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.8; overflow-x: auto; color: #e9f0fc; }
.code-panel .comment { color: #737e97; }
.code-panel .string { color: var(--accent); }
.code-panel .keyword { color: #ee5050; }
.code-panel .func { color: #63b1bd; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-gray); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border-radius: 12px; padding: 28px; border: 1px solid var(--border); }
.testimonial-card .stars { color: #ee9250; font-size: 14px; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; }
.testimonial-card .author-info .name { font-size: 14px; font-weight: 600; }
.testimonial-card .author-info .role { font-size: 12px; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { padding: 20px 0; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color .2s; }
.faq-q:hover { color: var(--primary); }
.faq-q .arrow { transition: transform .3s; font-size: 18px; color: var(--text-light); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }
.faq-a p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section { background: var(--gradient-primary); padding: 80px 0; text-align: center; color: #fff; }
.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: .9; margin-bottom: 32px; }
.cta-section .btn-white { padding: 14px 36px; font-size: 16px; }
.cta-section .btn-outline-white { padding: 12px 36px; font-size: 16px; border-color: #fff; color: #fff; }
.cta-section .btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-bottom .social { display: flex; gap: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .product-grid, .features-grid, .pricing-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 930px) {
  .nav-logo { font-size: 16px; }
  .login-btn, .register-btn { font-size:12px!important; }
  .nav-links a { font-size: 12px; }
}

@media (max-width: 835px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 32px; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; }
  .trust-stats { flex-wrap: wrap; gap: 32px; }
  .product-grid, .features-grid, .pricing-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .steps::before { display: none; }
  .dev-content { flex-direction: column; }
  .coverage-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
}