: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-text {
  padding: 3rem 6vw;
}

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

.hero-tagline {
  margin-top: 0.5rem;
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
}

.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;
}

.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;
}

.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;
}
