:root {
  color-scheme: light;
  --ink: #063847;
  --ink-soft: #2f5964;
  --muted: #61747a;
  --paper: #f4f5ef;
  --surface: #fffefa;
  --surface-strong: #eef4f0;
  --line: #dce7e3;
  --teal: #0f8d8a;
  --blue: #083f65;
  --green: #60a85a;
  --amber: #e99b1f;
  --red: #a93435;
  --shadow: 0 24px 70px rgba(6, 56, 71, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(244, 245, 239, .9);
  border-bottom: 1px solid rgba(6, 56, 71, .1);
  backdrop-filter: blur(18px);
}

.brand {
  width: min(210px, 52vw);
  text-decoration: none;
}

.brand img {
  width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: #e7f2ef;
}

.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--teal);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section,
.hero,
.community {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-band {
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 141, 138, .08), transparent 30%),
    linear-gradient(135deg, #f4f5ef 0%, #f2f6ef 58%, #f7f4ea 100%);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  padding-top: clamp(42px, 6vw, 72px);
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-text,
.community-copy p {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(6, 56, 71, .2);
}

.button.primary:hover {
  background: var(--teal);
}

.button.secondary {
  background: rgba(255, 255, 255, .72);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--teal);
}

.hero-visual {
  align-self: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.intro-section,
.matrix-section {
  background: var(--paper);
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

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

.metric,
.feature-card,
.pipeline-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(6, 56, 71, .07);
}

.metric {
  min-height: 150px;
  padding: 28px;
}

.metric strong {
  display: block;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  color: var(--blue);
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 310px;
  padding: 28px;
}

.feature-card:nth-child(1) {
  border-top: 5px solid var(--blue);
}

.feature-card:nth-child(2) {
  border-top: 5px solid var(--green);
}

.feature-card:nth-child(3) {
  border-top: 5px solid var(--amber);
}

.feature-card:nth-child(4) {
  border-top: 5px solid var(--red);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  font-size: 26px;
}

.feature-card p,
.pipeline-step p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.matrix-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

th {
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td:first-child {
  width: 34%;
  color: var(--ink);
  font-weight: 900;
}

tr:nth-child(even) td {
  background: #f7fbf8;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.community-copy .button {
  margin-top: 30px;
}

.governance-panel {
  display: grid;
  gap: 14px;
}

.pipeline-step {
  position: relative;
  padding: 24px 24px 24px 74px;
}

.pipeline-step span {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f2ef;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.pipeline-step.active {
  border-color: rgba(15, 141, 138, .46);
}

.pipeline-step.active span {
  background: var(--teal);
  color: #fff;
}

.pipeline-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer img {
  width: 170px;
}

.site-footer a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: transform .7s ease, opacity .7s ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 640px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .section,
  .hero,
  .community {
    padding: 54px 18px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .site-footer {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
}
