:root {
  --teal-900: #064e3b;
  --teal-700: #047857;
  --teal-600: #059669;
  --teal-500: #0d9488;
  --teal-400: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50:  #ecfdf5;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:    #ffffff;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --red-500: #ef4444;
  --red-50:  #fef2f2;
  --green-500: #22c55e;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-w: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px;
}
.header-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 800; color: var(--slate-900);
}
.header-logo .logo-mark {
  width: 32px; height: 32px; background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-size: 14px; font-weight: 500; color: var(--slate-600);
  transition: color .15s;
}
.header-nav a:hover { color: var(--slate-900); }
.header-cta {
  padding: 7px 18px; background: var(--teal-600); color: #fff !important;
  border-radius: var(--radius-md); font-weight: 600 !important;
  transition: background .15s;
}
.header-cta:hover { background: var(--teal-700) !important; color: #fff !important; }
.lang-switch {
  font-size: 13px; color: var(--slate-500); cursor: pointer;
  border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
  padding: 4px 10px; background: transparent; transition: all .15s;
}
.lang-switch:hover { border-color: var(--slate-400); color: var(--slate-700); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--slate-700); }

/* Section base */
.section { padding: 72px 24px; }
.section-sm { padding: 48px 24px; }
.section-lg { padding: 96px 24px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--teal-600); margin-bottom: 12px;
}
.section-title {
  font-size: 32px; font-weight: 800; color: var(--slate-900);
  line-height: 1.25; margin-bottom: 16px; letter-spacing: -.3px;
}
.section-desc {
  font-size: 17px; color: var(--slate-500); max-width: 640px;
  line-height: 1.6;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .15s; border: none; font-family: inherit;
}
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); }
.btn-outline { background: transparent; color: var(--teal-600); border: 1.5px solid var(--teal-500); }
.btn-outline:hover { background: var(--teal-50); }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--slate-600); border: none; padding: 8px 16px; }
.btn-ghost:hover { color: var(--slate-900); background: var(--slate-100); }

/* Hero */
.hero { padding: 72px 24px 80px; background: var(--white); }
.hero-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  background: var(--teal-50); color: var(--teal-700);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--green-500); border-radius: 50%; }
.hero h1 {
  font-size: 48px; font-weight: 900; color: var(--slate-900);
  line-height: 1.15; letter-spacing: -.8px; margin-bottom: 16px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero h1 .highlight { color: var(--teal-600); }
.hero-sub {
  font-size: 18px; color: var(--slate-500); max-width: 560px;
  margin: 0 auto 32px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--slate-500); }
.hero-stats strong { color: var(--slate-700); }

/* Trust Bar */
.trust-bar { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); padding: 32px 24px; }
.trust-bar .section-inner { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item .num { font-size: 32px; font-weight: 800; color: var(--slate-900); line-height: 1.1; }
.trust-item .label { font-size: 13px; color: var(--slate-500); margin-top: 2px; }

/* Pain Points */
.pain-list { max-width: 640px; margin: 0 auto; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pain-list li {
  padding: 16px 20px; background: var(--slate-50);
  border-radius: var(--radius-md); font-size: 15px; color: var(--slate-700);
  border-left: 3px solid var(--teal-500); line-height: 1.5;
}

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); padding: 28px 24px; transition: all .2s;
}
.card:hover { border-color: var(--teal-300); box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card-icon.teal { background: var(--teal-50); color: var(--teal-600); }
.card-icon.amber { background: #fffbeb; color: var(--amber-600); }
.card-icon.slate { background: var(--slate-100); color: var(--slate-700); }
.card h3 { font-size: 17px; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--slate-500); line-height: 1.55; }

/* Features (3-column) */
.features-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-top: 32px; }
.testimonial {
  background: var(--slate-50); border-radius: var(--radius-md);
  padding: 28px; border: 1px solid var(--slate-200);
}
.testimonial .quote { font-size: 15px; color: var(--slate-700); line-height: 1.65; margin-bottom: 16px; }
.testimonial .author { font-size: 13px; color: var(--slate-500); font-weight: 500; }

/* Comparison Table */
.compare-table-wrap { overflow-x: auto; margin-top: 32px; }
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px;
}
.compare-table th, .compare-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--slate-200);
}
.compare-table thead th {
  font-weight: 700; color: var(--slate-900); background: var(--slate-50); font-size: 13px;
}
.compare-table tbody td { color: var(--slate-600); }
.compare-table .check { color: var(--teal-600); font-weight: 700; }
.compare-table .cross { color: var(--slate-400); }
.compare-table .highlight-col { background: var(--teal-50); }
.compare-table .highlight-col th { color: var(--teal-700); }

/* Steps */
.steps { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 220px; text-align: center;
  padding: 32px 24px; background: var(--slate-50); border-radius: var(--radius-md); position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; margin: 0 auto 14px;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--slate-900); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--slate-500); }
.step .step-time { font-size: 12px; color: var(--teal-600); font-weight: 600; margin-top: 8px; }

/* FAQ */
.faq-list { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--slate-200); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.faq-q {
  width: 100%; text-align: left; padding: 16px 20px; background: var(--white);
  border: none; font-size: 15px; font-weight: 600; color: var(--slate-800);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-family: inherit; transition: background .15s;
}
.faq-q:hover { background: var(--slate-50); }
.faq-q .chevron { transition: transform .2s; font-size: 12px; }
.faq-item.open .faq-q { color: var(--teal-700); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; font-size: 14px; color: var(--slate-500); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }
.faq-item.open .faq-a p { padding-top: 4px; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #fff; text-align: center;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-desc { color: rgba(255,255,255,.8); margin: 0 auto 28px; }
.cta-section .btn-primary { background: #fff; color: var(--teal-700); }
.cta-section .btn-primary:hover { background: var(--teal-50); }
.cta-section .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Footer */
.site-footer { background: var(--slate-900); color: var(--slate-400); padding: 56px 24px 32px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 40px;
}
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--slate-300); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--slate-400); margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid var(--slate-800);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px;
}

/* Pricing Page */
.pricing-page .section { text-align: center; }
.pricing-toggle {
  display: inline-flex; background: var(--slate-100);
  border-radius: var(--radius-md); padding: 3px; margin-bottom: 40px;
}
.pricing-toggle button {
  padding: 8px 20px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .15s; background: transparent; color: var(--slate-500);
}
.pricing-toggle button.active { background: var(--white); color: var(--slate-900); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; text-align: left; }
.pricing-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 32px 28px; position: relative;
}
.pricing-card.featured { border-color: var(--teal-500); box-shadow: 0 0 0 1px var(--teal-500), 0 8px 32px rgba(13,148,136,.1); }
.pricing-card .popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal-600); color: #fff; padding: 4px 16px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.pricing-card .plan-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pricing-card .plan-desc { font-size: 13px; color: var(--slate-500); margin-bottom: 20px; }
.pricing-card .plan-price { font-size: 40px; font-weight: 900; color: var(--slate-900); margin-bottom: 4px; }
.pricing-card .plan-price .unit { font-size: 16px; font-weight: 600; color: var(--slate-500); }
.pricing-card .plan-period { font-size: 13px; color: var(--slate-400); margin-bottom: 20px; }
.pricing-card .plan-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-card .plan-features li { font-size: 14px; color: var(--slate-600); display: flex; align-items: center; gap: 8px; }
.pricing-card .plan-features li .feat-icon { color: var(--teal-500); font-size: 14px; flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; text-align: center; }

/* Feature comparison table (pricing page) */
.feat-compare { margin-top: 48px; }
.feat-compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.feat-compare th, .feat-compare td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--slate-200); }
.feat-compare thead th { background: var(--slate-50); font-weight: 700; color: var(--slate-900); font-size: 13px; }
.feat-compare tbody th { font-weight: 600; color: var(--slate-700); }
.feat-compare tbody td { color: var(--slate-500); text-align: center; }
.feat-compare .yes { color: var(--teal-600); font-weight: 700; }
.feat-compare .no { color: var(--slate-300); }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--slate-300);
  border-radius: var(--radius-md); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--slate-800); }
.contact-info p { font-size: 14px; color: var(--slate-500); margin-bottom: 8px; line-height: 1.6; }
.contact-qr { width: 140px; height: 140px; background: var(--slate-100); border-radius: var(--radius-md); margin-top: 16px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--slate-400); }

/* Legal Pages */
.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; color: var(--slate-900); }
.legal-content h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--slate-800); }
.legal-content p { font-size: 15px; color: var(--slate-600); line-height: 1.7; margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content li { font-size: 15px; color: var(--slate-600); line-height: 1.7; margin-bottom: 6px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.blog-card { border: 1px solid var(--slate-200); border-radius: var(--radius-md); overflow: hidden; transition: all .2s; }
.blog-card:hover { border-color: var(--teal-300); box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.blog-card-img {
  width: 100%; height: 180px; background: var(--slate-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--slate-300);
}
.blog-card-body { padding: 20px; }
.blog-card-body .tag {
  font-size: 11px; font-weight: 700; color: var(--teal-600);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; display: block;
}
.blog-card-body h3 { font-size: 17px; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; line-height: 1.35; }
.blog-card-body p { font-size: 14px; color: var(--slate-500); line-height: 1.55; margin-bottom: 12px; }
.blog-card-body .date { font-size: 12px; color: var(--slate-400); }

/* Responsive */
@media (max-width: 768px) {
  .header-nav a:not(.header-cta):not(.lang-switch) { display: none; }
  .header-nav { gap: 12px; }
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 24px; }
  .section { padding: 48px 20px; }
  .hero { padding: 48px 20px 56px; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .trust-bar .section-inner { gap: 28px; }
  .features-row { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* RTL support (Arabic) */
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .header-nav { flex-direction: row-reverse; }
[dir="rtl"] .pain-list li { border-left: none; border-right: 3px solid var(--teal-500); padding: 16px 20px 16px 16px; }
[dir="rtl"] .faq-q { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .faq-q .chevron { transform: rotate(180deg); }
[dir="rtl"] .faq-item.open .faq-q .chevron { transform: rotate(0deg); }
[dir="rtl"] .faq-a { text-align: right; }
[dir="rtl"] .card { text-align: right; }
[dir="rtl"] .testimonial .quote { text-align: right; }
[dir="rtl"] .compare-table th, [dir="rtl"] .compare-table td { text-align: right; }
[dir="rtl"] .footer-inner { direction: rtl; }
[dir="rtl"] .footer-col { text-align: right; }
[dir="rtl"] .step { text-align: right; }
[dir="rtl"] .step-num { margin: 0 0 14px auto; }
[dir="rtl"] .hero-stats { flex-direction: row-reverse; }
[dir="rtl"] .btn { flex-direction: row-reverse; }
[dir="rtl"] .features-row { direction: rtl; }
[dir="rtl"] .cards-grid { direction: rtl; }

/* Language switcher dropdown */
#langSwitcher select {
  padding: 5px 8px; border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm); font-size: 13px;
  font-family: inherit; background: var(--white);
  color: var(--slate-600); cursor: pointer; outline: none;
  min-width: 100px;
}
#langSwitcher select:focus { border-color: var(--teal-500); }
