
:root {
  --bg: #07111f;
  --panel: #0d1a2b;
  --panel-2: #111f33;
  --text: #f8fafc;
  --muted: #a7b3c6;
  --line: rgba(255,255,255,.10);
  --gold: #d6a647;
  --blue: #65a8ff;
  --green: #28d19c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top left, #132943 0, var(--bg) 42%, #040812 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.hero {
  min-height: 640px;
  padding: 28px;
  background:
    linear-gradient(110deg, rgba(7,17,31,.96), rgba(7,17,31,.72)),
    url("https://images.unsplash.com/photo-1516937941344-00b4e0337589?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.hero-content {
  max-width: 1180px;
  margin: 118px auto 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .92;
  letter-spacing: -.07em;
}

.lede {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.65;
  color: #d6deea;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), #f4cf7a);
  color: #111827;
}

.button.secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -86px;
  position: relative;
}

.stat {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(13,26,43,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.stat span {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -.04em;
}

.stat p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.intro {
  margin: 70px 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.05em;
}

.intro p:last-child,
.insights p,
.sources p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}

.country-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(17,31,51,.96), rgba(13,26,43,.96));
  border: 1px solid var(--line);
  border-radius: 24px;
}

.country-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(214,166,71,.14);
  color: var(--gold);
  font-weight: 900;
}

.country-card h3 {
  font-size: 26px;
  margin: 22px 0 6px;
}

.country-card p {
  color: var(--muted);
  line-height: 1.55;
}

.country-card .reserve {
  color: var(--text);
  font-weight: 900;
  margin-top: 0;
}

.table-section {
  background: rgba(13,26,43,.68);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: #081322;
}

th {
  text-align: left;
  padding: 16px;
  background: #102038;
  color: #dbe7f5;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

td {
  padding: 16px;
  border-top: 1px solid var(--line);
  color: #eaf1fb;
  vertical-align: top;
}

td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

td.rank {
  color: var(--gold);
  font-weight: 900;
}

tbody tr:hover {
  background: rgba(101,168,255,.07);
}

.insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 60px 0;
}

.insights article,
.sources {
  padding: 30px;
  background: rgba(17,31,51,.76);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.source-links a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: var(--blue);
  font-weight: 800;
}

.source-links a:hover {
  background: rgba(101,168,255,.10);
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

footer strong {
  color: var(--text);
  font-size: 20px;
}

@media (max-width: 860px) {
  .nav { align-items: flex-start; gap: 18px; flex-direction: column; }
  .hero { min-height: 720px; }
  .stats-section, .feature-grid, .intro, .insights, .source-links {
    grid-template-columns: 1fr;
  }
  footer { flex-direction: column; }
}
