:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5d6b66;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --line: #dde3dc;
  --green: #176b55;
  --cobalt: #285b9d;
  --amber: #c27b23;
  --charcoal: #10231f;
  --shadow: 0 20px 60px rgba(20, 33, 29, 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",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 15, 13, 0.78), rgba(6, 15, 13, 0));
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  letter-spacing: 0;
}

.main-nav {
  gap: clamp(12px, 2.5vw, 30px);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 17, 14, 0.88) 0%, rgba(5, 17, 14, 0.64) 42%, rgba(5, 17, 14, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 17, 14, 0.8) 0%, rgba(5, 17, 14, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 138px 0 48px;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 44px 0 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 14px;
}

.hero-metrics dt {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: clamp(58px, 9vw, 104px) clamp(18px, 4vw, 56px);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 28px;
}

.section-heading h2 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.intro-grid,
.method-grid,
.tool-list,
.timeline,
.newsletter {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro {
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.method-card,
.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.intro-grid h3,
.method-card h3,
.tool-card h3,
.timeline h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.intro-grid p,
.method-card p,
.tool-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.methods-section {
  background: #eef3ef;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-card {
  min-height: 250px;
  box-shadow: none;
}

.method-card.featured {
  grid-column: span 2;
  background: var(--charcoal);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.method-card.featured p,
.method-card.featured li {
  color: rgba(255, 255, 255, 0.76);
}

.method-card ul {
  margin: 18px 0;
  padding-left: 20px;
  color: var(--muted);
}

.card-topline,
.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured .card-topline {
  color: #85d7b9;
}

.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: #9fe1c8;
  font-weight: 900;
}

.tools-section {
  background: #fff;
}

.filters {
  width: min(1120px, 100%);
  margin: 0 auto 22px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 107, 85, 0.45);
}

.tool-card.hidden {
  display: none;
}

.tool-badge {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 4px 9px;
  background: #e7f2ee;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.tool-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

.roadmap {
  background: #f8f3ea;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e2d6c3;
  background: #fffdfa;
}

.timeline li {
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid #e2d6c3;
}

.timeline li:last-child {
  border-right: 0;
}

.timeline span {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--cobalt);
  font-size: 14px;
  font-weight: 900;
}

.newsletter {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 28px;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  padding: clamp(28px, 5vw, 54px);
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.newsletter p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup-form input {
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #fff;
  background: #09110f;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .intro-grid,
  .method-grid,
  .tool-list,
  .timeline,
  .newsletter {
    grid-template-columns: 1fr 1fr;
  }

  .method-card.featured {
    grid-column: span 2;
  }

  .timeline li:nth-child(2) {
    border-right: 0;
  }

  .timeline li {
    border-bottom: 1px solid #e2d6c3;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 96vh;
  }

  .hero-content {
    width: min(100% - 28px, 780px);
    padding-bottom: 28px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .intro-grid,
  .method-grid,
  .tool-list,
  .timeline,
  .newsletter,
  .signup-form {
    grid-template-columns: 1fr;
  }

  .method-card.featured {
    grid-column: span 1;
  }

  .timeline li,
  .timeline li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e2d6c3;
  }

  .timeline li:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.data-source {
  display: inline-flex;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f2faf6;
  color: var(--green) !important;
  font-size: 13px;
  font-weight: 800;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 18px;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--charcoal);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}