* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
}

.brand-title {
  margin: 0;
  font-weight: 700;
}

.brand-subtitle {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.oss-badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #0f172a;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: #475569;
}

.cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  background: linear-gradient(140deg, #0f172a, #1e293b);
  color: #ffffff;
  padding: 64px 0;
}

.hero .container {
  align-items: stretch;
}

.hero-copy {
  flex: 1 1 520px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93c5fd;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 16px;
}

.subtitle {
  color: #cbd5f5;
  margin: 0 0 24px;
  line-height: 1.6;
}

.hero-note {
  margin: -12px 0 20px;
  color: #dbeafe;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.primary {
  background: #38bdf8;
  color: #0f172a;
}

.secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #475569;
}

.timestamp {
  margin-top: 16px;
  font-size: 12px;
  color: #cbd5f5;
}

.micro-promise {
  margin: 12px 0 0;
  font-size: 13px;
  color: #e2e8f0;
}

.hero-card {
  flex: 1 1 320px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.hero-card h2 {
  margin-top: 0;
}

.decision-cue {
  margin: 12px 0 0;
  font-size: 13px;
  color: #bfdbfe;
}

.map-hint {
  margin: 6px 0 8px;
  font-size: 12px;
  color: #cbd5f5;
}
.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.summary-tags span {
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.kpi-section {
  padding: 40px 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.kpi-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.kpi-label {
  margin: 0 0 10px;
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-help {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
}

.kpi-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.kpi-meta {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.kpi-insight {
  margin: 8px 0 0;
  font-size: 12px;
  color: #475569;
}

.delta-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
}

.sparkline {
  margin-top: 10px;
  width: 100%;
  height: 48px;
}

.compact-chart {
  max-height: 220px;
}

.proof-strip {
  background: linear-gradient(120deg, #f8fafc, #eef2ff);
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
}

.proof-badges {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  color: #475569;
  font-size: 12px;
}

.proof-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.charts-section {
  padding: 24px 0 60px;
}

.chart-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.chart-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.chart-card header {
  margin-bottom: 12px;
}

.chart-card h3 {
  margin: 0 0 4px;
}

.chart-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
}

.sources-section {
  background: #f1f5f9;
  padding: 50px 0;
}

.tariftool-section {
  padding: 30px 0 10px;
  background: #0f172a;
  color: #ffffff;
}

.tariftool-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.tariftool-card p {
  margin: 0;
  color: #cbd5f5;
  max-width: 680px;
}

.global-section {
  padding: 20px 0 40px;
  background: #0f172a;
  color: #ffffff;
}

.global-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.global-card p {
  margin: 0 0 12px;
  color: #cbd5f5;
}

.select-label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}

#country-select {
  width: min(320px, 100%);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #ffffff;
}

.country-map {
  width: 100%;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.negotiation-section {
  padding: 40px 0 60px;
  background: #ffffff;
}

.negotiation-header {
  width: 100%;
  margin-bottom: 20px;
}

.negotiation-header h2 {
  margin: 6px 0 8px;
}

.negotiation-header p {
  margin: 0;
  color: #475569;
}

.negotiation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
}

.negotiation-visuals {
  margin-top: 18px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.negotiation-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.negotiation-card h3 {
  margin: 0 0 6px;
}

.score {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 6px 0;
}

.insight {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
}

.union-list {
  display: grid;
  gap: 10px;
}

.union-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ffffff;
  font-size: 13px;
}

.union-item span:last-child {
  color: #64748b;
  font-weight: 600;
}

.cta-section {
  padding: 20px 0 60px;
  background: #0f172a;
  color: #ffffff;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.cta-card p {
  margin: 0;
  color: #cbd5f5;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.open-source-section {
  padding: 32px 0 48px;
  background: #ffffff;
}

.open-source-top {
  padding: 28px 0 12px;
  background: #f8fafc;
}

.open-source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  width: 100%;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.open-source-card h2 {
  margin: 6px 0 8px;
}

.open-source-card p {
  margin: 0;
  color: #475569;
  max-width: 680px;
}

.open-source-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.open-source-actions .secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #0f172a;
}

.open-source-actions .primary {
  background: #38bdf8;
  color: #0f172a;
}

.terms-section {
  padding: 40px 0 50px;
  background: #f8fafc;
}

.terms-section h2 {
  margin-top: 0;
}

.terms-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.terms-grid h4 {
  margin: 0 0 6px;
}

.terms-grid p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.sources-section h2 {
  margin-top: 0;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 12px;
}

.sources-grid h4 {
  margin: 0 0 6px;
}

.sources-grid p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.disclaimer {
  font-size: 12px;
  color: #64748b;
}

.site-footer {
  padding: 20px 0 40px;
  color: #64748b;
}

.site-footer .container {
  align-items: center;
  justify-content: space-between;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
}

.footer-links a {
  color: inherit;
}

.consent-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
  max-width: 420px;
  width: min(420px, calc(100% - 48px));
  pointer-events: auto;
}

.consent-banner[data-state="visible"] {
  display: flex;
}

.consent-content {
  max-width: 720px;
}

.consent-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.consent-banner p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-actions button {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.consent-actions .primary {
  background: #38bdf8;
  color: #0f172a;
}

.consent-actions .secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #0f172a;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .oss-badge {
    display: none;
  }

  .hero-card {
    order: 3;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .open-source-card {
    grid-template-columns: 1fr;
  }

  .open-source-actions {
    justify-content: flex-start;
  }

  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
  }
}
