:root {
  color-scheme: dark;
  --bg: #07100b;
  --panel: #101c15;
  --panel-2: #15241b;
  --text: #edf6e9;
  --muted: #a9b9a4;
  --line: rgba(221, 239, 211, 0.16);
  --leaf: #79c267;
  --leaf-2: #b7e16b;
  --soil: #d3a55f;
  --shadow: rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(121, 194, 103, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 8%, rgba(211, 165, 95, 0.12), transparent 24rem),
    linear-gradient(180deg, #07100b 0%, #0a130e 52%, #07100b 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(237, 246, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 246, 233, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 11, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 2px 10px 2px 10px;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-2));
  transform: rotate(-18deg);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a,
footer a {
  text-underline-offset: 0.22em;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--leaf-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
}

.lede,
.section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lede {
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  background: rgba(16, 28, 21, 0.7);
}

.button.primary {
  color: #07100b;
  border-color: transparent;
  background: var(--leaf-2);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.metric-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(16, 28, 21, 0.72);
  box-shadow: 0 24px 80px var(--shadow);
}

.metric-card.large {
  min-height: 220px;
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(121, 194, 103, 0.2), rgba(16, 28, 21, 0.76)),
    var(--panel);
}

.metric-label,
.metric-note {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.metric-card strong {
  display: block;
  margin: 0.5rem 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.two-column,
.results {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.sample-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.sample-tab {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--panel);
}

.sample-tab.active {
  color: #07100b;
  border-color: transparent;
  background: var(--leaf);
}

.comparison {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.image-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  background: var(--panel);
}

.image-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.image-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #050806;
}

.image-card:first-child img {
  image-rendering: pixelated;
}

.image-card.featured {
  background:
    linear-gradient(180deg, rgba(121, 194, 103, 0.18), rgba(16, 28, 21, 0.9)),
    var(--panel);
}

.sample-metrics {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.sample-metrics div {
  padding: 1rem;
  background: var(--panel);
}

.sample-metrics span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sample-metrics strong {
  font-size: 1.6rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.pipeline article {
  min-height: 220px;
  padding: 1.1rem;
  background: var(--panel);
}

.pipeline span {
  display: inline-block;
  margin-bottom: 2.25rem;
  color: var(--soil);
  font-weight: 900;
}

.pipeline p {
  font-size: 0.94rem;
}

.diagram {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1.2fr 40px 1fr;
  align-items: center;
  gap: 0;
}

.diagram div {
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
  text-align: center;
  background: var(--panel);
}

.diagram span {
  height: 2px;
  background: var(--leaf);
}

.diagram span::after {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  margin-left: auto;
  content: "";
  border-top: 2px solid var(--leaf);
  border-right: 2px solid var(--leaf);
  transform: rotate(45deg);
}

.result-table {
  border: 1px solid var(--line);
  background: var(--panel);
}

.result-table div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.result-table div:last-child {
  border-bottom: 0;
}

.result-table .highlight {
  color: #07100b;
  background: var(--leaf-2);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

  .hero {
    min-height: auto;
  }

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

  .sample-metrics {
    grid-column: auto;
  }

  .diagram {
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }

  .diagram div {
    border: 0;
  }

  .diagram span {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .metric-grid,
  .comparison,
  .pipeline,
  .sample-metrics {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }
}
