*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8889a0;
  --bg: #fafbfe;
  --surface: #ffffff;
  --border: #e8e9f0;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-subtle: #eef0ff;
  --gradient-start: #f0f2ff;
  --gradient-end: #fafbfe;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 251, 254, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}
.logo {
  font-size: 18px; font-weight: 700; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 28px; height: 28px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; color: var(--text-secondary); text-decoration: none;
  font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 600; border-radius: 10px;
  padding: 10px 20px; text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-primary {
  background: var(--accent-subtle); color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(99,102,241,0.2);
  box-shadow: 0 1px 3px rgba(99,102,241,0.08);
}
.btn-primary:hover { background: rgba(99,102,241,0.15); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.12); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: #ccc; }

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 0;
  background: var(--accent-subtle); border-radius: 8px;
  padding: 2px; font-size: 13px; font-weight: 600;
}
.lang-switcher button {
  padding: 4px 10px; border: none; border-radius: 6px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
  background: transparent; color: var(--text-muted);
}
.lang-switcher button.active {
  background: var(--accent); color: #fff;
}

/* Hero */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-subtle); border: 1px solid rgba(99,102,241,0.15);
  border-radius: 100px; padding: 5px 14px; margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 700px; margin: 0 auto 18px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 18px; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Channels strip */
.channels-strip {
  display: flex; gap: 32px; justify-content: center; align-items: center;
  margin-top: 56px; flex-wrap: wrap;
}
.channel-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.channel-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
}
.ch-tg { background: #e8f4fd; color: #229ed9; }
.ch-wa { background: #e7f7ef; color: #25d366; }
.ch-dc { background: #ecedf8; color: #5865f2; }
.ch-sl { background: #fef3e7; color: #e01e5a; }

/* Section */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 38px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--text-secondary); max-width: 540px; line-height: 1.7;
}

/* Features grid */
.features { background: var(--surface); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 48px;
}
.feature-card {
  padding: 28px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg); transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 4px 20px rgba(99,102,241,0.06);
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* How it works */
.how-it-works { background: var(--bg); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 48px; counter-reset: step;
}
.step {
  text-align: center; padding: 32px 20px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.step h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 8px;
}
.step p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* Pricing */
.pricing { background: var(--surface); }
.pricing-toggle {
  display: inline-flex; align-items: center; background: var(--accent-subtle); border-radius: 30px;
  padding: 4px; margin: 24px auto 0; gap: 0;
}
.pricing-toggle button {
  padding: 8px 20px; border-radius: 26px; border: none; font-size: 14px;
  font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.15s;
  background: transparent; color: var(--text-muted);
}
.pricing-toggle button.active { background: var(--accent); color: #fff; }
.pricing-toggle .save-badge {
  font-size: 11px; font-weight: 700; background: #22c55e; color: #fff;
  padding: 2px 8px; border-radius: 10px; margin-left: 6px;
}
[dir="rtl"] .pricing-toggle .save-badge {
  margin-left: 0; margin-right: 6px;
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px; max-width: 1000px;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; } }
.price-card {
  padding: 32px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg); position: relative;
}
.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(99,102,241,0.12);
}
.price-card .popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; color: #fff; background: var(--accent);
  padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.price-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.price-card h3.accent { color: var(--accent); }
.price-card .plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.price-card .price {
  font-size: 48px; font-weight: 800; margin: 0 0 4px; color: var(--text); letter-spacing: -0.03em;
}
.price-card .price span { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.price-card .billed { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.price-card .savings { font-size: 13px; color: #22c55e; margin-bottom: 20px; }
.price-card .subscribe-btn {
  display: block; width: 100%; padding: 12px; border-radius: 10px; border: none;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  text-align: center; text-decoration: none; transition: all 0.15s;
  background: var(--accent); color: #fff; margin-bottom: 24px;
}
.price-card .subscribe-btn:hover { background: var(--accent-hover); }
.price-card ul { list-style: none; }
.price-card li {
  font-size: 14px; color: var(--text-secondary); padding: 5px 0;
  display: flex; align-items: center; gap: 8px;
}
.price-card li::before {
  content: "\2713"; color: var(--accent); font-weight: 600; font-size: 13px;
}

/* FAQ */
.faq { background: var(--bg); }
.faq-list { max-width: 700px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item dt {
  font-size: 15px; font-weight: 600; padding: 20px 0 8px;
  color: var(--text);
}
.faq-item dd {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  padding-bottom: 20px;
}

/* CTA */
.cta-section {
  text-align: center; padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--gradient-start) 100%);
}
.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 38px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px; color: var(--text-secondary); margin-bottom: 28px;
}

/* Footer */
footer {
  padding: 40px 24px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-inner p { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
}
.footer-links a:hover { color: var(--text-secondary); }

/* RTL adjustments */
[dir="rtl"] .faq-list { text-align: right; }
[dir="rtl"] .section-inner { text-align: right; }
[dir="rtl"] .section-inner[style*="text-align: center"] { text-align: center; }
[dir="rtl"] .feature-card { text-align: right; }

/* Mobile */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn):not(.lang-trigger) { display: none; }
  .lang-dropdown { display: flex; }
  .channels-strip { gap: 20px; }
  .features-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
}

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap; line-height: 1;
}
.lang-trigger:hover { background: var(--surface); border-color: #ccc; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.lang-arrow { transition: transform 0.2s; flex-shrink: 0; }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }
.lang-trigger .fi { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); flex-shrink: 0; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 160px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  list-style: none; margin: 0; padding: 4px; z-index: 9999;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px; cursor: pointer;
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  transition: background 0.1s; white-space: nowrap;
}
.lang-menu li:hover { background: var(--bg); }
.lang-menu li[aria-selected="true"] { background: var(--accent-subtle); color: var(--accent); font-weight: 600; }
.lang-menu li .fi { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }

/* Newsletter */
.newsletter-section {
  text-align: center; padding: 48px 24px; margin: 0 auto;
  max-width: 560px;
}
.newsletter-section h2 { font-size: 1.5rem; margin-bottom: 8px; color: var(--text); }
.newsletter-section p { color: var(--text-secondary); margin-bottom: 20px; }
.newsletter-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; background: var(--surface); color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-msg {
  margin-top: 12px; font-size: 14px; font-weight: 500;
}
.newsletter-msg.success { color: #10b981; }
.newsletter-msg.error { color: #ef4444; }
