:root {
  --mint: #7fe0b0;
  --mint-deep: #36bd8c;
  --cyan: #00a5d5;
  --ink: #101114;
  --coal: #191b1e;
  --paper: #fbfbf7;
  --line: #dfe5df;
  --soft: #eef7f1;
  --sun: #f2cb61;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 251, 247, 0.92);
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(116px, 15vw, 178px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--mint-deep);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(78svh - 72px);
  padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 56px) clamp(24px, 4vw, 44px);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(46vw, 540px);
  aspect-ratio: 1;
  background: url("/assets/tam-graphic-shapes.png") center / cover no-repeat;
  opacity: 0.18;
  transform: translate(23%, 40%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 10vw, 8rem);
  line-height: 0.9;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 880;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.08;
}

.hero-text {
  max-width: 580px;
  margin-bottom: 30px;
  font-size: clamp(1.18rem, 2.3vw, 1.7rem);
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  border-color: var(--mint-deep);
  background: var(--mint);
  color: var(--ink);
}

.hero-product {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 820px);
}

.hero-product img {
  width: 100%;
  filter: drop-shadow(0 32px 36px rgba(0, 0, 0, 0.12));
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.signal-strip span {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px clamp(16px, 3vw, 36px);
  border-right: 1px solid var(--line);
  font-weight: 850;
}

.signal-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto clamp(28px, 5vw, 56px);
}

.section-heading h2 {
  max-width: 900px;
}

.solution-section {
  background: var(--soft);
}

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

.feature {
  min-height: 270px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.feature p,
.project-copy p,
.project-copy li,
.robot-copy p,
.image-band-copy p,
.pigcare-callout p,
.results-copy p,
.results-copy li,
.stack-grid p,
.funding-note p,
.funding-note blockquote {
  color: #3c403f;
  font-size: 1rem;
  line-height: 1.65;
}

.shape {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  background: var(--mint);
}

.shape.plus {
  position: relative;
  width: 48px;
  height: 48px;
  background: transparent;
}

.shape.plus::before,
.shape.plus::after {
  content: "";
  position: absolute;
  background: var(--mint);
}

.shape.plus::before {
  inset: 18px 0;
}

.shape.plus::after {
  inset: 0 18px;
}

.shape.circle {
  border-radius: 50%;
}

.shape.diamond {
  transform: rotate(45deg);
}

.image-band {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--coal);
}

.image-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.image-band-copy {
  position: relative;
  max-width: 680px;
  padding: clamp(70px, 12vw, 140px) clamp(18px, 4vw, 56px);
  color: #ffffff;
}

.image-band-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
}

.robot-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  max-width: calc(var(--max) + 112px);
  margin: 0 auto;
}

.robot-specs {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.robot-specs div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: #ffffff;
}

.robot-specs strong {
  font-size: 1.1rem;
}

.robot-specs span {
  color: #3c403f;
  line-height: 1.55;
}

.pigcare-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 56px);
  background: var(--sun);
}

.pigcare-callout div {
  max-width: 760px;
}

.pigcare-callout h2 {
  margin-bottom: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px) clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: #ffffff;
}

.site-footer img {
  width: min(430px, 46vw);
  height: auto;
  background: #ffffff;
}

.site-footer p {
  margin-bottom: 8px;
  font-weight: 850;
}

.site-footer a {
  color: var(--mint);
  text-decoration-thickness: 2px;
}

.pigcare-hero {
  position: relative;
  min-height: calc(82svh - 72px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--coal);
}

.pigcare-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.pigcare-title {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 150px) clamp(18px, 4vw, 56px) clamp(46px, 8vw, 90px);
  color: #ffffff;
}

.pigcare-title h1 {
  margin-bottom: 12px;
}

.pigcare-title p:last-child {
  max-width: 560px;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  max-width: calc(var(--max) + 112px);
  margin: 0 auto;
}

.project-copy {
  padding-top: 10px;
}

.project-copy p,
.results-copy p {
  margin-bottom: 20px;
}

.project-stack {
  background: #ffffff;
}

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

.stack-grid article {
  min-height: 265px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
}

.results-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
  max-width: calc(var(--max) + 112px);
  margin: 0 auto;
}

.results-section img {
  width: min(520px, 100%);
  justify-self: center;
}

.results-copy ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding-left: 22px;
}

.results-copy li::marker {
  color: var(--mint-deep);
}

.funding-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 56px) clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.funding-copy {
  max-width: 780px;
}

.funding-note blockquote {
  margin: 0 0 18px;
  padding-left: 20px;
  border-left: 5px solid var(--mint);
  font-size: 0.98rem;
}

.funding-note p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.funding-note a {
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.funding-logos {
  width: min(500px, 38vw);
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .robot-section,
  .project-intro,
  .results-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-product {
    width: min(100%, 760px);
    justify-self: center;
  }

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

  .pigcare-callout,
  .funding-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .funding-logos {
    width: min(100%, 620px);
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.86rem;
  }

  .hero {
    gap: 18px;
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(3.6rem, 19vw, 5rem);
  }

  h2 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .signal-strip,
  .feature-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip span {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature,
  .stack-grid article {
    min-height: auto;
  }

  .hero-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-product {
    width: min(100%, 300px);
    justify-self: start;
  }

  .robot-specs div {
    grid-template-columns: 1fr;
  }

  .image-band,
  .pigcare-hero {
    min-height: 560px;
  }

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

  .site-footer img {
    width: min(100%, 360px);
  }
}
