:root {
  --ink: #0f172a;
  --muted: #5f6b7a;
  --paper: #f6f4f0;
  --cream: #ffffff;
  --line: #e6e2db;
  --accent: #e4572e;
  --accent-2: #0f766e;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 10% -10%, #fff0d6 0, transparent 60%),
    radial-gradient(900px 600px at 90% 0%, #e7f4f1 0, transparent 55%),
    var(--paper);
}

header {
  padding: 56px 24px 20px;
  max-width: 1440px;
  margin: 0 auto;
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
  line-height: 1.5;
}

.nav {
  display: flex;
  gap: 12px;
  margin: 22px 0 10px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
  transition: all 0.2s ease;
}

.nav-link.is-active {
  color: var(--ink);
  border-color: #e6d8c6;
  box-shadow: var(--shadow-soft);
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px 64px;
}

.landing-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.landing-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.landing-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.landing-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.cta-button:hover {
  transform: translateY(-1px);
}

.cta-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: #e6d8c6;
}

.landing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.landing-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.landing-panel h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.landing-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.card .value {
  font-size: 28px;
  font-weight: 600;
}

.section {
  margin-top: 26px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
}

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.panel-header h2 {
  margin-bottom: 0;
}

.table-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.table-sort select {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.filters {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  background: #f3efe8;
  border-radius: 999px;
  padding: 4px;
}

.tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.tab-note {
  font-size: 13px;
  color: var(--muted);
}

.chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 130px 1fr 110px;
  align-items: center;
}

.bar-label {
  font-size: 14px;
}

.bar-track {
  height: 10px;
  background: #f2eee7;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  border: 1px solid #efe7db;
}

.bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8b5e);
  border-radius: inherit;
  transform-origin: left;
  animation: grow 0.8s ease-out;
}

.bar-value {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

@keyframes grow {
  from { transform: scaleX(0.2); }
  to { transform: scaleX(1); }
}

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

.table-wrap {
  overflow-x: auto;
}

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

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

.table-wrap table tbody tr:hover {
  background: #fbf7f1;
}

.status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  max-width: 1440px;
  margin: 0 auto 32px;
  padding: 0 24px 32px;
  color: var(--muted);
  font-size: 12px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.footer-legal {
  margin-top: 10px;
  max-width: 820px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .section {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-value {
    text-align: left;
  }

  .tabs {
    width: 100%;
    justify-content: space-between;
  }

  .filters {
    align-items: flex-start;
  }
}
