:root {
  --bg: #eef8ef;
  --panel: #d3eee1;
  --panel-strong: #c4ead8;
  --ink: #0d6d4b;
  --ink-soft: #32554a;
  --line: rgba(10, 109, 75, 0.18);
  --accent: #5e8ef3;
  --accent-soft: #c8f8ec;
  --shadow: 0 24px 60px rgba(9, 53, 39, 0.08);
  --radius: 24px;
  --content: min(1160px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(180, 236, 212, 0.45), transparent 36%),
    linear-gradient(180deg, #edf8ef 0%, #e8f5ea 100%);
  color: var(--ink-soft);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--content);
  margin: 0 auto;
  padding: 16px 0 0;
  border-radius: 36px;
}

.topbar-shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(13, 109, 75, 0.14);
  background: rgba(237, 248, 239, 0.7);
  backdrop-filter: blur(14px);
  border-radius: 24px;
}

.language-switcher {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 1.08rem;
  line-height: 1;
}

.language-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.55;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.language-switcher__link.is-active {
  opacity: 1;
}

.language-switcher__link:not(.is-active):hover {
  opacity: 1;
  transform: translateY(-1px);
}

.brand,
h1,
h2,
h3 {
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
}

.brand {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  color: #31b96b;
}

.brand-badge {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(13, 109, 75, 0.08),
    0 12px 26px rgba(9, 53, 39, 0.08);
}

.brand-badge img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-lockup {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-title {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.brand-subtitle {
  color: rgba(50, 85, 74, 0.8);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-title span,
.brand-mark span {
  font-size: 0.65em;
  vertical-align: top;
}

.toc {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(13, 109, 75, 0.86);
  white-space: nowrap;
  transition: color 160ms ease;
}

.toc a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(13, 109, 75, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.toc a:hover {
  color: #083d2c;
}

.toc a:hover::after,
.toc a:focus-visible::after {
  transform: scaleX(1);
}

.toc a:focus-visible,
.brand:focus-visible,
.language-switcher__link:focus-visible {
  outline: 2px solid rgba(13, 109, 75, 0.35);
  outline-offset: 3px;
}

main {
  padding-top: 18px;
  padding-bottom: 72px;
}

.hero,
.section {
  width: var(--content);
  margin: 0 auto;
}

.hero {
  min-height: clamp(620px, 78vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(239, 250, 242, 0.96), rgba(231, 246, 234, 0.96));
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 22px;
  padding: clamp(42px, 5vw, 68px) clamp(34px, 4vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-mark {
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  padding: 0;
  background: transparent;
  color: #31b96b;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-panel {
  width: fit-content;
  max-width: 40rem;
  padding: clamp(24px, 2.5vw, 34px) clamp(26px, 2.8vw, 38px);
  border-radius: 30px;
  background: linear-gradient(180deg, #bde8c3 0%, #b5e4be 100%);
}

.hero-panel h1 {
  margin: 0;
  color: var(--ink);
  max-width: 16ch;
  font-size: 2.8rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-text {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.34rem);
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 35rem;
  margin: 0;
}

.stats div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 14px 8px;
}

.stats dt {
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  width: 100%;
  font-size: 3rem;
  line-height: 0.95;
  color: #4a4d50;
  letter-spacing: -0.05em;
}

.stats dd {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  line-height: 1.35;
  color: #435646;
}

.hero-media,
.media-photo {
  min-height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-media {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02)), url("assets/hero-reference.jpg");
  background-position: center center;
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(238, 248, 239, 0.18) 0%, transparent 22%);
}

.section {
  margin-top: 28px;
  padding: clamp(28px, 3vw, 42px);
  border-radius: 32px;
  background: rgba(233, 247, 236, 0.82);
  box-shadow: 0 10px 40px rgba(9, 53, 39, 0.04);
}

.section-heading {
  max-width: 960px;
}

.section-heading h2 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 3.9rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.section-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-lead--strong {
  font-size: 1.16rem;
  font-weight: 700;
}

.split-intro {
  display: grid;
  gap: 24px;
}

.two-col,
.three-col,
.detail-grid,
.benefits-grid {
  display: grid;
  gap: 18px;
}

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

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.soft-card,
.benefit-card,
.mini-benefit,
.detail-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(207, 235, 222, 0.55);
}

.soft-card,
.benefit-card,
.detail-item {
  padding: 24px 22px;
}

.soft-card--compact {
  min-height: 100%;
}

.soft-card h3,
.benefit-card h3,
.mini-benefit h3,
.detail-item h3,
.panel-copy h2,
.stacked-features h3,
.usage-grid h3 {
  margin: 0 0 10px;
  color: #36553f;
  font-size: 1.28rem;
}

.soft-card p,
.benefit-card p,
.mini-benefit p,
.detail-item p,
.panel-copy p,
.stacked-features p,
.usage-grid p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.02rem;
}

.watercolor {
  position: relative;
  overflow: hidden;
}

.watercolor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(188, 220, 198, 0.3), transparent 25%),
    radial-gradient(circle at 70% 40%, rgba(178, 213, 201, 0.2), transparent 26%),
    radial-gradient(circle at 40% 80%, rgba(196, 232, 212, 0.42), transparent 28%);
  pointer-events: none;
}

.watercolor > * {
  position: relative;
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.feature-rail article {
  position: relative;
  padding-top: 38px;
}

.feature-rail article::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5d8ef1, #648ef0);
}

.rail-dot {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}

.feature-rail h3 {
  margin: 18px 0 10px;
  font-size: 1.08rem;
}

.feature-rail p {
  margin: 0;
  line-height: 1.65;
}

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

.panel-copy {
  min-height: 100%;
  padding: 28px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(235, 249, 239, 0.95), rgba(215, 239, 228, 0.95)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 28%);
  border: 1px solid var(--line);
}

.panel-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.benefits-grid--large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.benefits-grid--small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.benefit-card {
  min-height: 140px;
}

.mini-benefit {
  padding: 14px 16px 14px 18px;
  border-left: 5px solid var(--ink);
  background: rgba(244, 249, 245, 0.7);
}

.mini-benefit h3 {
  font-size: 1.04rem;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.media-split {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.media-split--right {
  grid-template-columns: 1.1fr 0.9fr;
}

.media-split--left {
  grid-template-columns: 0.85fr 1.15fr;
}

.media-copy {
  padding: clamp(28px, 3vw, 40px);
}

.media-photo--roots {
  background-image: url("assets/root-system-reference.jpg");
  background-position: right center;
}

.media-photo--farmer {
  background-image: url("assets/farmer-reference.jpg");
  background-position: left center;
}

.stacked-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 26px;
}

.stacked-features article {
  position: relative;
  padding-top: 24px;
}

.stacked-features article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 10%;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.stacked-features article:last-child {
  grid-column: 1 / 2;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.usage-grid article {
  padding-top: 10px;
  border-top: 2px solid rgba(13, 109, 75, 0.8);
}

.usage-grid article span {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(13, 109, 75, 0.74);
}

.usage-grid__wide {
  grid-column: 1 / -1;
}

.closing-note {
  margin: 18px 0 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(90deg, #9ef1d5 0%, #b4f5e1 100%);
  color: #03291f;
  font-weight: 700;
  line-height: 1.5;
}

.section--ending {
  margin-bottom: 24px;
}

@media (max-width: 1040px) {
  .topbar-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .toc {
    margin-left: 0;
    justify-content: flex-start;
  }

  .hero,
  .media-split--right,
  .media-split--left,
  .duo-panels,
  .two-col,
  .three-col,
  .benefits-grid--large,
  .benefits-grid--small,
  .detail-grid,
  .feature-rail,
  .stacked-features {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 420px;
  }

  .media-photo {
    min-height: 420px;
  }

  .stacked-features article:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100vw - 24px, 1000px);
  }

  .topbar {
    position: static;
    padding: 14px 0 0;
  }

  .topbar-shell {
    gap: 12px;
    padding: 8px 4px 12px;
  }

  .toc {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy,
  .media-copy,
  .section {
    padding: 22px;
  }

  .hero-panel {
    max-width: none;
  }

  .stats,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .media-photo {
    min-height: 300px;
  }

  .section-heading h2,
  .hero-panel h1 {
    text-wrap: balance;
  }

  .brand {
    width: 100%;
  }

  .brand-badge {
    width: 54px;
    height: 54px;
  }

  .brand-subtitle {
    white-space: normal;
  }
}
