/* ═══ CSS Variables ═══ */
:root {
  --bg: #ffffff; --bg-surface: #f6f8fa; --bg-elevated: #eef1f5;
  --text: #1c2128; --text-secondary: #57606a; --text-tertiary: #8b949e;
  --accent: #2AABEE; --accent-hover: #229ED9; --accent-dark: #1a8fc4;
  --border: #d0d7de; --border-subtle: #e8ecf0;
  --nav-bg: rgba(255,255,255,0.82); --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --section-gap: 100px; --card-pad: 32px; --max-w: 1200px;
  --font-heading: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px; --radius-sm: 10px; --radius-xs: 6px;
}
[data-theme="dark"] {
  --bg: #0d1117; --bg-surface: #161b22; --bg-elevated: #1c2129;
  --text: #e6edf3; --text-secondary: #9ca3af; --text-tertiary: #6b7280;
  --border: #30363d; --border-subtle: #21262d;
  --nav-bg: rgba(13,17,23,0.82); --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.6; transition: background .35s, color .35s;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ═══ Utility ═══ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-gap) 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading); font-size: 40px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; color: var(--text);
}
.section-desc {
  font-size: 17px; color: var(--text-secondary); max-width: 560px;
  margin: 0 auto 48px; line-height: 1.7;
}
.text-center { text-align: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--accent); color: #fff;
  border-radius: 50px; font-size: 15px; font-weight: 700;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(42,171,238,0.25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(42,171,238,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border: 1.5px solid var(--border);
  border-radius: 50px; font-size: 15px; font-weight: 600;
  color: var(--text); transition: border-color .2s, color .2s, transform .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ═══ Navbar ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background .35s, border-color .35s;
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { font-family: var(--font-heading); font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle, .theme-toggle {
  padding: 6px 12px; border-radius: 50px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: all .2s; background: var(--bg-surface);
}
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle .active-lang { color: var(--accent); }
.theme-toggle { padding: 6px 10px; font-size: 16px; line-height: 1; }
.nav-cta {
  padding: 8px 20px; background: var(--accent); color: #fff;
  border-radius: 50px; font-size: 13px; font-weight: 700;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-hover); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px; flex-direction: column; gap: 16px;
  transition: background .35s;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--text-secondary); padding: 8px 0; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-controls { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }

/* ═══ Hero ═══ */
.hero {
  padding-top: 140px; padding-bottom: 80px; text-align: center;
  position: relative; overflow: hidden; min-height: 85vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  font-family: var(--font-heading); font-size: 56px; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .typed-word {
  color: var(--accent); display: inline-block; min-width: 200px;
  border-right: 2px solid var(--accent); padding-right: 4px;
  animation: blink-caret .7s step-end infinite;
}
@keyframes blink-caret { 50% { border-color: transparent; } }
.hero-sub {
  font-size: 18px; color: var(--text-secondary); margin-bottom: 36px;
  max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: background .35s, border-color .35s;
}
.trust-badge svg { color: var(--accent); }
.hero-decoration {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; opacity: 0.08; z-index: 0;
}
[data-theme="dark"] .hero-decoration { opacity: 0.04; }

/* ═══ Products ═══ */
.products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.product-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: var(--card-pad);
  transition: all .3s; position: relative; overflow: hidden;
}
.product-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: var(--card-shadow), 0 0 0 1px var(--accent);
}
.product-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(42,171,238,0.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.product-icon svg { width: 24px; height: 24px; color: var(--accent); }
.product-card h3 {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.product-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.product-card .card-arrow {
  position: absolute; bottom: 24px; right: 24px; opacity: 0;
  transition: opacity .3s, transform .3s; transform: translateX(-4px);
  color: var(--accent);
}
.product-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ═══ How It Works ═══ */
.steps-row {
  display: flex; gap: 32px; position: relative;
}
.steps-row::before {
  content: ''; position: absolute; top: 36px; left: 80px; right: 80px;
  height: 2px; background: var(--border-subtle); z-index: 0;
  transition: background .35s;
}
.step-card {
  flex: 1; text-align: center; position: relative; z-index: 1;
  background: var(--bg); padding: 24px 16px; border-radius: var(--radius);
  transition: background .35s;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-heading); font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 14px rgba(42,171,238,0.25);
}
.step-card h3 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.step-card p { font-size: 14px; color: var(--text-secondary); }

/* ═══ Stats ═══ */
.stats-section {
  background: var(--bg-surface); border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background .35s, border-color .35s;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-item .stat-number {
  font-family: var(--font-heading); font-size: 42px; font-weight: 800;
  color: var(--accent); letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 8px;
}
.stat-item .stat-label {
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
}

/* ═══ Pricing ═══ */
.currency-toggle {
  display: inline-flex; background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 50px; padding: 4px; margin-bottom: 40px; transition: all .35s;
}
.currency-btn {
  padding: 8px 24px; border-radius: 50px; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); transition: all .25s;
}
.currency-btn.active { background: var(--accent); color: #fff; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.price-card {
  background: var(--bg-surface); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: all .3s; position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.price-card.featured { border-color: var(--accent); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; white-space: nowrap;
}
.price-card h3 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  margin: 8px 0;
}
.price-card .price {
  font-family: var(--font-heading); font-size: 32px; font-weight: 800;
  color: var(--accent); letter-spacing: -0.02em; margin: 12px 0 4px;
  transition: opacity .2s;
}
.price-card .price-sub { font-size: 12px; color: var(--text-tertiary); margin-bottom: 20px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.price-card li {
  font-size: 13px; color: var(--text-secondary); padding: 6px 0;
  display: flex; align-items: center; gap: 8px;
}
.price-card li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.price-card .btn-primary { width: 100%; justify-content: center; padding: 12px; font-size: 14px; }

/* ═══ FAQ ═══ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
  transition: border-color .3s;
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: var(--text); text-align: left;
  background: transparent; transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q svg { width: 18px; height: 18px; color: var(--text-tertiary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-a-inner {
  padding: 0 24px 18px; font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}

/* ═══ CTA Section ═══ */
.cta-section {
  background: var(--bg-surface); border-top: 1px solid var(--border-subtle);
  transition: all .35s; text-align: center;
}
.cta-section h2 {
  font-family: var(--font-heading); font-size: 36px; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.cta-section p { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ═══ Footer ═══ */
.footer {
  border-top: 1px solid var(--border-subtle); padding: 60px 0 32px;
  transition: border-color .35s;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin-top: 12px; line-height: 1.6; max-width: 300px; }
.footer-col h4 {
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-tertiary);
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-secondary);
  padding: 4px 0; transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--text-tertiary);
}
.footer-bottom a { color: var(--text-secondary); transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .section { padding: 70px 0; }
  .section-title { font-size: 32px; }
  .hero h1 { font-size: 42px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 768px) {
  :root { --section-gap: 60px; --card-pad: 24px; }
  .nav-links, .nav-right .nav-cta, .nav-right .lang-toggle, .nav-right .theme-toggle { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 36px; }
  .hero h1 .typed-word { min-width: 140px; }
  .hero-sub { font-size: 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 20px; }
  .steps-row::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; justify-content: center; }
  .stat-item .stat-number { font-size: 32px; }
  .cta-section h2 { font-size: 28px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 30px; }
  .container { padding: 0 16px; }
}
