/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: 2.2rem; line-height: 1.3; }
h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* ===== Header ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 20px; flex-wrap: wrap;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--text-light); font-weight: 400; }

.main-nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav > ul > li { position: relative; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--primary); }
.has-dropdown > a::after { content: " ▾"; font-size: 0.7em; color: var(--text-light); }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 8px 0; min-width: 200px; flex-direction: column; gap: 0;
}
.dropdown li { padding: 0; }
.dropdown a { display: block; padding: 8px 16px; font-size: 0.9rem; }
.dropdown a:hover { background: var(--bg); }
.has-dropdown:hover .dropdown { display: flex; flex-direction: column; }

.geo-selector { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.geo-selector select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: var(--white); padding: 64px 0; text-align: center;
}
.hero h1 { color: var(--white); max-width: 700px; margin: 0 auto 16px; }
.hero-subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ===== Platforms ===== */
.platforms, .how-it-works, .stats, .calculator, .latest-articles, .faq {
  padding: 56px 0;
}
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.platform-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.platform-card .bonus {
  font-size: 1.3rem; font-weight: 800; color: var(--accent);
}
.platform-card ul { list-style: none; padding: 0; margin: 0 0 8px; }
.platform-card ul li { padding: 4px 0; color: var(--text-light); font-size: 0.92rem; }
.platform-card ul li::before { content: "✓ "; color: #22c55e; font-weight: 700; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.3rem; font-weight: 800; margin-bottom: 12px;
}

/* ===== Stats ===== */
.stats { background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-light); font-size: 0.9rem; }

/* ===== Calculator ===== */
.calculator { background: var(--white); }
.calc-desc { color: var(--text-light); margin-bottom: 24px; }
.calc-form { margin-bottom: 20px; }
.calc-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.calc-form input {
  width: 120px; padding: 10px 14px; font-size: 1.1rem;
  border: 2px solid var(--border); border-radius: var(--radius);
}
.calc-form input:focus { outline: none; border-color: var(--primary); }
.calc-result {
  background: var(--bg); border-radius: var(--radius); padding: 20px;
  margin: 16px 0 24px; font-size: 0.95rem;
}
.calc-result .total { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-top: 8px; }

/* ===== Latest articles ===== */
.latest-articles { background: var(--bg); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 28px; }
.latest-articles article {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.latest-articles time { color: var(--text-light); font-size: 0.82rem; }
.latest-articles h3 { margin: 8px 0; }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; padding: 16px 20px; cursor: pointer;
}
.faq summary { font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 24px; }
.faq summary::after { content: "+"; position: absolute; right: 0; font-size: 1.3rem; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--text-light); }

/* ===== Footer ===== */
.site-footer { background: #1e293b; color: #cbd5e1; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { display: block; color: #94a3b8; padding: 4px 0; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { text-align: center; border-top: 1px solid #334155; padding-top: 20px; }
.footer-bottom p { color: #64748b; font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .dropdown { position: static; box-shadow: none; min-width: auto; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: flex; }
  .hero { padding: 40px 0; }
  .hero-cta { flex-direction: column; }
  .platforms, .how-it-works, .stats, .calculator, .latest-articles, .faq { padding: 36px 0; }
}
