:root {
  --ink: #1f1f1f;
  --muted: #6a6258;
  --line: #e9e3db;
  --paper: #fbfaf7;
  --clay: #9a6548;
  --sand: #f1e6d7;
  --charcoal: #2d2a27;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(46, 34, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.hero {
  padding: 28px min(5vw, 72px) 64px;
  background:
    radial-gradient(circle at 78% 20%, rgba(154, 101, 72, 0.18), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f8f2e8 100%);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 70px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--white);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.brand-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 34px;
  align-items: end;
}

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

h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.button.primary {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.hero-card,
.panel,
.metric-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
}

.card-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.layer-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layer-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--paper);
}

.layer-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: var(--clay);
  font-size: 12px;
  font-weight: 900;
}

main {
  padding: 34px min(5vw, 72px) 64px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -72px;
  margin-bottom: 22px;
}

.metric-card {
  padding: 24px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 42px;
  letter-spacing: -0.05em;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  margin-bottom: 22px;
}

.panel {
  padding: 26px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.bars {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 90px;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: var(--sand);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--clay);
  transition: width 600ms ease;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--sand);
  font-weight: 800;
}

.search {
  width: min(100%, 320px);
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

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

footer {
  padding: 26px min(5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero-grid,
  .panel-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-top: -44px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

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