:root {
  color-scheme: light;
  --bg: #050b1a;
  --panel: #0f172a;
  --panel-muted: #131c35;
  --card: #ffffff;
  --primary: #36a0ff;
  --secondary: #7dd3fc;
  --text: #e6ecff;
  --text-muted: #94a3b8;
  --surface: #020617;
  --accent-gradient: linear-gradient(135deg, #36a0ff, #7c3aed);
  --shadow: 0 25px 60px rgba(2, 6, 23, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-hero {
  position: relative;
  min-height: 320px;
  background: radial-gradient(circle at top right, rgba(54, 160, 255, 0.6), transparent),
    url('../images/header-planet.png') center/cover no-repeat,
    var(--surface);
  overflow: hidden;
}

.hero-overlay {
  backdrop-filter: blur(4px);
  background: rgba(5, 11, 26, 0.62);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.hero-topbar {
  padding: 2rem 6vw;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.06em;
}

.primary-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 150ms ease;
}

.nav-link:hover {
  opacity: 1;
}

.site-main {
  flex: 1;
  width: min(1100px, 92vw);
  margin: -120px auto 0;
  z-index: 1;
}

.site-footer {
  background: #030814;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

.index-panel {
  background: var(--panel);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.panel-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--secondary);
}

.panel-header h1 {
  margin: 0.35rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.panel-header .lead {
  color: var(--text-muted);
  margin: 0;
}

.panel-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 240px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--panel-muted);
  color: var(--text);
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.stat {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(54, 160, 255, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.3);
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat strong {
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: normal;
}

.panel-body {
  margin-top: 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.map-panel {
  margin-top: 2rem;
  background: var(--panel);
  border-radius: 28px;
  padding: 1.5rem 2rem 2rem;
  box-shadow: var(--shadow);
}

.map-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

#country-map {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
}

.map-marker {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--secondary);
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.6);
  cursor: pointer;
}

.maplibregl-popup-content {
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
}

.country-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.country-card {
  background: #fff;
  color: #0f172a;
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.country-card h2 {
  margin: 0.25rem 0 0;
}

.country-region {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.country-metric span {
  font-size: 0.85rem;
  color: #64748b;
}

.country-metric strong {
  display: block;
  font-size: 1.5rem;
  color: #0f172a;
}

.country-cta {
  margin-top: auto;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.country-cta:hover {
  color: #2563eb;
}

/* Ideas listing */
.ideas-panel {
  background: var(--panel);
  border-radius: 28px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}

.ideas-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.idea-card {
  background: var(--panel-muted);
  border-radius: 24px;
  padding: 1.5rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 16px 35px rgba(3, 7, 18, 0.35);
}

.idea-card-date {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.idea-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.idea-card-tags span {
  background: rgba(54, 160, 255, 0.15);
  border: 1px solid rgba(54, 160, 255, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.75rem;
}

.idea-card-link {
  margin-top: auto;
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
}

.country-hero {
  background: #fff;
  padding: 2.5rem;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.metric {
  background: #f4f7ff;
  padding: 1rem;
  border-radius: 20px;
}

.metric .label {
  font-size: 0.85rem;
  color: #475569;
}

.metric .value {
  font-size: 1.25rem;
  font-weight: 600;
}

.country-body,
.country-industries {
  margin-top: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 30px;
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.industry-card {
  background: #f9fbff;
  padding: 1.5rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.industry-card h3 {
  margin-top: 0;
}

/* Idea article */
.idea-article {
  background: #fff;
  color: #0f172a;
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

.idea-header h1 {
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.idea-date {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  font-size: 0.75rem;
}

.idea-description {
  color: #475569;
  margin-bottom: 1rem;
}

.idea-tags {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.idea-tags li {
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
}

.idea-body {
  margin-top: 1.5rem;
  line-height: 1.7;
}

.idea-footer {
  margin-top: 2rem;
}

.idea-back {
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
}
