/* ============================================================
   Variables
   ============================================================ */
:root {
  --bg: #0f172a;
  --bg2: #08101f;
  --panel: #1e293b;
  --panel2: #0b1220;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent2: #22c55e;
  /* Reserved for financial/energy highlights */
  --gold: #f59e0b;
  --line: rgba(148, 163, 184, 0.16);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  --maxw: 1220px;
}

/* ============================================================
   Reset
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 28%),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 20%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #8fdcff;
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link { position: absolute; left: -9999px; }

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  color: #0b1220;
  z-index: 999;
  border-radius: 8px;
  font-weight: 700;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(34, 197, 94, 0.16));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.site-footer-links a:hover,
.breadcrumbs a:hover,
.card-link:hover {
  color: var(--text);
}

/* ============================================================
   Layout
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.breadcrumbs a { color: var(--muted); }

/* ============================================================
   Hero
   ============================================================ */
.hero,
.panel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero { padding: 28px; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(15, 23, 42, 0.72);
  margin: 0 auto 14px 0;
}

.center .eyebrow { margin: 0 auto 14px; }

h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 { margin: 0 0 8px; font-size: 20px; }

.sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 850px;
  line-height: 1.65;
}

.center .sub { margin-left: auto; margin-right: auto; }
.lead { font-size: 18px; }

.kicker {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.center .cta-row { justify-content: center; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.btn.primary {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}

.btn.secondary {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.68);
}

/* ============================================================
   Components
   ============================================================ */
.section { margin-top: 26px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.grid-2,
.grid-3,
.grid-4,
.counter-grid {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4,
.counter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================
   Cards
   ============================================================ */
.card,
.feature-card,
.article-card,
.counter-box,
.stat-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.counter-box { text-align: center; }

/* Hero: center the big barrel/value figures and pills, space before counter grid */
.hero .value.big,
.hero .value.money { text-align: center; }

.hero .meta-row { justify-content: center; }

.hero .counter-grid { margin-top: 20px; }

/* Unit label beneath big values and counter boxes */
.value-unit {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.value {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.big { font-size: clamp(34px, 5vw, 62px); color: var(--accent); }
.money { color: var(--gold); }

.note,
.muted,
.panel p,
.feature-card p,
.article-card p,
.counter-box p {
  color: var(--muted);
  line-height: 1.75;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.hero-split,
.dual {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.side-stack { display: flex; flex-direction: column; gap: 14px; }

.ad-slot {
  min-height: 110px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.52);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 18px;
}

.ad-slot strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 15px;
}

.pill-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td:last-child,
th:last-child { text-align: right; }

.share-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 6px;
}

.share-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
}

.chart {
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(11, 18, 32, 0.92));
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 16px;
}

.bar {
  flex: 1;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.95), rgba(34, 197, 94, 0.75));
  position: relative;
}

.bar span {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.search-box {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  font: inherit;
}

.small { font-size: 13px; }
.fine { font-size: 12px; color: var(--muted); }

.inline-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.loading { opacity: 0.8; }

.flag {
  width: 34px;
  height: 24px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  object-fit: cover;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.site-footer-links a { color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid-4,
  .counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .grid-3,
  .grid-2,
  .hero-split,
  .dual { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 18px 14px 42px; }

  .hero,
  .panel { border-radius: 12px; }

  .grid-4,
  .counter-grid { grid-template-columns: 1fr; }
}
