@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-graphite: #0f1f17;
  --bg-page: #eef3ee;
  --surface: #ffffff;
  --surface-muted: #f6f8f6;
  --surface-strong: #e3efe6;
  --brand-primary: #1f7a4d;
  --brand-primary-strong: #115233;
  --brand-secondary: #95c9a2;
  --text-strong: #14241b;
  --text-muted: #4c5a52;
  --border-soft: #d8e2dc;
  --shadow-elevated: 0 24px 60px rgba(17, 37, 27, 0.16);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 10% 20%, rgba(31, 122, 77, 0.24), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(27, 72, 48, 0.18), transparent 50%),
    var(--bg-page);
  color: var(--text-strong);
}

a {
  color: var(--brand-primary-strong);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--brand-primary);
  text-decoration: underline;
}

header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(239, 244, 239, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-strong);
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--text-strong);
  line-height: 1;
}

.brand .logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #0f172a;
  padding: 0.45rem;
  box-shadow: 0 12px 28px rgba(12, 23, 27, 0.3);
}

.brand .logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.brand .logo-text {
  font-size: 1.75rem;
  color: var(--brand-primary-strong);
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

nav a {
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus {
  background: var(--surface-strong);
  color: var(--brand-primary-strong);
}

nav a.active {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 94, 59, 0.22);
}

main.page {
  flex: 1;
  width: 100%;
  padding: 3rem 0 4rem;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.surface {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.75rem;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(37, 66, 51, 0.06);
}

h1,
h2,
h3 {
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text-strong);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

section + section {
  margin-top: 2.5rem;
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), var(--surface));
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid rgba(39, 77, 54, 0.08);
  box-shadow: 0 16px 40px rgba(17, 37, 27, 0.08);
}

.card h2 {
  margin-bottom: 0.75rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.list li + li {
  margin-top: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(31, 122, 77, 0.12);
  color: var(--brand-primary-strong);
}

.priority-high {
  background: linear-gradient(120deg, #1f7a4d, #145835);
  color: #ffffff;
}

.priority-medium {
  background: linear-gradient(120deg, #ffcc66, #d6a240);
  color: #472d04;
}

.priority-low {
  background: linear-gradient(120deg, #d9e3da, #c8d2c9);
  color: #344132;
}

.table-wrapper {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(9, 27, 20, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}

thead {
  background: linear-gradient(180deg, rgba(24, 76, 48, 0.12), rgba(24, 76, 48, 0.06));
  color: var(--text-strong);
}

th,
td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(32, 58, 44, 0.08);
  vertical-align: top;
}

th {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

tbody tr:hover {
  background: rgba(31, 122, 77, 0.06);
  transition: background 0.2s ease;
}

strong {
  color: var(--text-strong);
}

.lead-in {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2rem;
}

footer {
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

footer span {
  color: var(--brand-primary-strong);
  font-weight: 600;
}

@media (max-width: 860px) {
  nav {
    width: 100%;
    justify-content: flex-start;
  }

  nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.92rem;
  }

  .surface {
    padding: 2.25rem;
  }
}

@media (max-width: 720px) {
  header {
    position: static;
  }

  .surface {
    padding: 1.75rem;
  }

  .card {
    padding: 1.4rem;
  }

  .table-wrapper,
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 1.2rem;
    padding: 1.2rem 1rem;
    box-shadow: 0 18px 42px rgba(17, 37, 27, 0.08);
  }

  td {
    border: none;
    padding: 0.35rem 0;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 540px) {
  main.page {
    padding: 2.5rem 0 3rem;
  }
}
