:root {
  --bg: #0b1120;
  --bg-card: #111827;
  --bg-elevated: #1e293b;
  --border: #26334d;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --emerald: #10b981;
  --amber: #f59e0b;
  --purple: #a855f7;
  --danger: #ef4444;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: rgba(11, 17, 32, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.brand-badge {
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #fff;
  font-weight: 800;
  padding: 8px 11px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  font-size: 14px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 18px; letter-spacing: -0.02em; }
.brand-text small { font-size: 11.5px; color: var(--text-muted); }
.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-link {
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none !important;
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: var(--bg-elevated);
}
.country-strip {
  background: #070b14;
  border-top: 1px solid #172033;
  font-size: 12.5px;
  padding: 6px 0;
}
.country-strip-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}
.strip-label { color: var(--text-muted); font-weight: 600; }
.country-strip a { color: #cbd5e1; font-weight: 500; }
.country-strip a:hover { color: var(--accent); }
.hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.12), transparent 45%),
              radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.14), transparent 50%);
}
.hero-kicker {
  display: inline-block;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero p.lead {
  color: #cbd5e1;
  max-width: 920px;
  font-size: 16.5px;
  margin-bottom: 20px;
}
.kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.kpi-card .kpi-val { font-size: 22px; font-weight: 800; color: #fff; }
.kpi-card .kpi-lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.section { padding: 34px 0; border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-size: 23px; letter-spacing: -0.01em; }
.section-header p { color: var(--text-muted); font-size: 14px; max-width: 780px; }

/* Calculator Tabs & Controls */
.calc-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.calc-tab-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.calc-tab-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(16, 185, 129, 0.2));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.control-group { display: flex; flex-direction: column; gap: 5px; }
.control-group label { font-size: 12px; font-weight: 600; color: #cbd5e1; }
.control-group input, .control-group select {
  background: var(--bg-elevated);
  border: 1px solid #334155;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
}
.control-group small { font-size: 11px; color: var(--text-muted); }
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-strong);
  color: #fff !important;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: #e2e8f0 !important;
}
.btn:hover { opacity: 0.92; }

/* Tables & Badges */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data-table th, table.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #1e293b;
}
table.data-table th {
  background: #0f172a;
  color: #94a3b8;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
table.data-table tr:hover td { background: rgba(30, 41, 59, 0.5); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-emerald { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-sky { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.badge-amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-purple { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.card h3 { font-size: 17px; color: #fff; }
.card p { color: #cbd5e1; font-size: 13.5px; }
.meta-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #cbd5e1; }
.meta-list li strong { color: #fff; }

/* FAQ & Methodology */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.faq-item h3 { font-size: 15.5px; margin-bottom: 6px; color: #fff; }
.faq-item p { color: #cbd5e1; font-size: 14px; }

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 17, 0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  padding: 24px;
}

/* Footer */
.site-footer {
  background: #060913;
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.footer-grid h4 { font-size: 14px; color: #fff; margin-bottom: 10px; }
.footer-grid p { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #162032;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.muted-sm { font-size: 12px; color: var(--text-muted); }
@media print {
  .site-header, .site-footer, .calc-tabs, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .table-wrap, .controls-grid { border-color: #ccc; background: #fff; color: #000; }
}