:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-dark: #101827;
  --text: #172033;
  --muted: #65728a;
  --accent: #0f766e;
  --accent-dark: #0b514c;
  --border: #dbe3ef;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.hero {
  min-height: 620px;
  background: linear-gradient(90deg, rgba(16, 24, 39, 0.88), rgba(16, 24, 39, 0.35)), url("../assets/boston.png") center/cover no-repeat;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.brand,
.nav-links a {
  color: white;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 24px 160px;
}

.hero-content > div {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #7dd3fc;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.2rem;
}

.hero-text {
  margin: 24px 0 32px;
  font-size: 1.2rem;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px;
}

.intro-grid,
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: start;
}

.project-card,
.metric-card,
.table-card,
.method-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.project-card {
  padding: 28px;
}

.project-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.status {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 700;
}

.status.error {
  color: #b91c1c;
}

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

.metric-card {
  padding: 24px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.05em;
}

.controls {
  display: grid;
  grid-template-columns: 180px 200px 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

select,
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: white;
  color: var(--text);
}

.table-card {
  overflow: hidden;
}

.table-header {
  padding: 26px 28px;
  border-bottom: 1px solid var(--border);
}

.table-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.methodology {
  padding-top: 40px;
}

.method-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.method-grid article {
  padding: 26px;
}

.footer {
  background: var(--surface-dark);
  color: white;
  text-align: center;
  padding: 28px 20px;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 850px) {
  .navbar,
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-grid,
  .method-grid,
  .metrics-grid,
  .controls {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 70px;
  }
}
