:root {
  --bg: #0b1019;
  --bg-soft: #121a29;
  --bg-card: rgba(18, 26, 41, 0.85);
  --accent: #00c6b7;
  --accent-soft: rgba(0, 198, 183, 0.2);
  --highlight: #f2b705;
  --text: #f5f7fa;
  --text-muted: rgba(245, 247, 250, 0.68);
  --divider: rgba(255, 255, 255, 0.08);
  --container-width: min(1120px, 92vw);
  font-size: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(0, 198, 183, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(242, 183, 5, 0.1), transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(0, 136, 255, 0.15), transparent 50%);
  opacity: 0.7;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 25, 0.9);
  border-bottom: 1px solid var(--divider);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a,
.footer-links a,
.social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.cta-primary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #00ffa3);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(0, 198, 183, 0.25);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--divider);
  text-decoration: none;
  transition: border 0.2s ease, background 0.2s ease;
}

.cta-secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 198, 183, 0.08);
}

.hero {
  padding: 8rem 0 6rem;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}

.hero-actions__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-actions__buttons {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(10, 20, 35, 0.35);
  position: relative;
}

.hero-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.hero-card__stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.hero-card__stats .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.hero-card__source {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.hero-card__source:hover {
  text-decoration: underline;
}

.stat-meta {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.stat-meta--error {
  color: #ff8c8c;
}

.hero-card__footer a {
  color: var(--accent);
  text-decoration: none;
}

.hero-card__footer a:hover {
  text-decoration: underline;
}

.hero-card__stats .value {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.delta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.06);
}

.delta.up {
  color: #38ffbc;
  background: rgba(56, 255, 188, 0.12);
}

.delta.down {
  color: #ff7676;
  background: rgba(255, 118, 118, 0.12);
}

.hero-card__footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.6rem;
}

section {
  padding: 6rem 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pillars,
.dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.pillars article,
.dataset-grid article,
.analysis-card,
.updates-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.pillars h3,
.dataset-grid h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.pillars p,
.dataset-grid p {
  color: var(--text-muted);
}

.dataset-grid .meta {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.analysis-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.analysis-card ul {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.analysis-card li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
}

.analysis-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.analysis-visual {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.viz-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.viz-chart {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin: 2rem 0 1.4rem;
  height: 160px;
}

.viz-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(0, 198, 183, 0.8), rgba(0, 198, 183, 0));
  border-radius: 12px 12px 6px 6px;
  position: relative;
}

.viz-chart .bar::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 8px 8px 4px 4px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.35), transparent 60%);
}

.viz-footer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.updates .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.updates-copy ol {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.updates-copy li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 500;
}

.updates-copy time {
  font-family: 'Roboto Mono', monospace;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.updates-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.updates-card p {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.updates-card small {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 3rem 0;
  background: rgba(11, 16, 25, 0.95);
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footnote {
  color: var(--text-muted);
  margin-top: 0.6rem;
  max-width: 280px;
  font-size: 0.9rem;
}

.footer-links,
.social {
  display: grid;
  gap: 0.6rem;
}

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

  .hero .container,
  .analysis-card,
  .updates .container {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-card {
    order: -1;
  }
}

@media (max-width: 600px) {
  :root {
    font-size: 15px;
  }

  .site-header .container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0;
  }

  .site-header .cta-primary {
    align-self: center;
    white-space: nowrap;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero-card,
  .pillars article,
  .dataset-grid article,
  .analysis-card,
  .updates-card,
  .updates-copy li {
    padding: 1.6rem;
  }

  .hero-actions__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions__buttons .cta-primary,
  .hero-actions__buttons .cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .updates-card .cta-primary {
    width: 100%;
    text-align: center;
  }
}

::selection {
  background: rgba(0, 198, 183, 0.3);
  color: var(--text);
}
