:root {
  --header-height: 68px;
  --ink: #111817;
  --muted: #53615d;
  --teal: #30b8c8;
  --teal-dark: #16616b;
  --green: #78a963;
  --coral: #e86f5d;
  --amber: #e6a93f;
  --paper: #fbfcf7;
  --surface: #ffffff;
  --line: #d9e2dc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 32px;
  background: rgba(251, 252, 247, 0.92);
  border-bottom: 1px solid rgba(17, 24, 23, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 760;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #263431;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e8f3ef;
  outline: none;
}

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

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: #253431;
}

.hero {
  position: relative;
  min-height: calc(92svh - var(--header-height));
  overflow: hidden;
  padding: 78px 32px 52px;
  background: #edf7f4;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: 88px;
  line-height: 0.95;
  font-weight: 820;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: #2d3a37;
  font-size: 23px;
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 760;
  white-space: nowrap;
}

.button.primary {
  color: #ffffff;
  background: var(--teal-dark);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #0f4f57;
  outline: none;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 23, 0.14);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #ffffff;
  outline: none;
}

.button.inverted {
  color: var(--ink);
  background: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 16px;
  max-width: 620px;
  margin: 44px 0 0;
}

.hero-stats div {
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 23, 0.18);
}

.hero-stats dt {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 780;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.product-preview {
  position: absolute;
  top: 54px;
  right: max(28px, calc((100vw - 1160px) / 2));
  width: 430px;
  min-height: 520px;
  padding: 24px;
  transform: rotate(-2deg);
  background: #151b1a;
  color: #f6fbfa;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(17, 24, 23, 0.24);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce9e6;
  font-size: 20px;
  font-weight: 760;
}

.preview-title {
  margin-top: 38px;
  font-size: 32px;
  font-weight: 780;
}

.search-preview {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 16px;
  color: #93a19e;
  background: #202928;
  border: 1px solid #34413e;
  border-radius: 8px;
  font-size: 15px;
}

.plate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  background: #1f2826;
  border: 1px solid #34413e;
  border-radius: 8px;
}

.plate-row div,
.plate-row strong,
.plate-row span {
  display: block;
}

.plate-row strong {
  font-size: 15px;
}

.plate-row span {
  margin-top: 4px;
  color: #aebfbb;
  font-size: 13px;
}

.plate-row b {
  color: #9ddbe3;
  font-size: 16px;
}

.nutrient-board {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.nutrient-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 680;
}

.nutrient-line i {
  display: block;
  height: 10px;
  background: #2d3836;
  border-radius: 8px;
  overflow: hidden;
}

.nutrient-line i::before {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
  content: "";
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.preview-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: #dce9e6;
  background: #283230;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 720;
}

.balance-panel {
  position: absolute;
  right: max(360px, calc((100vw - 1160px) / 2 + 330px));
  bottom: 52px;
  width: 250px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 23, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(17, 24, 23, 0.14);
}

.balance-panel strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.balance-grid span {
  aspect-ratio: 1;
  background: #dcefeb;
  border-radius: 6px;
}

.balance-grid span:nth-child(2n) {
  background: #f8dfd7;
}

.balance-grid span:nth-child(3n) {
  background: #e9efdb;
}

.food-rail {
  position: absolute;
  display: flex;
  gap: 10px;
  transform: rotate(-4deg);
  opacity: 0.8;
}

.food-rail span {
  padding: 8px 12px;
  color: #24302d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 23, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 720;
}

.food-rail-a {
  top: 34px;
  left: max(18px, calc((100vw - 1160px) / 2));
}

.food-rail-b {
  right: 12%;
  bottom: 28px;
  transform: rotate(3deg);
}

.section {
  padding: 78px 32px;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section h2,
.final-cta h2 {
  max-width: 650px;
  margin: 0;
  font-size: 46px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
}

.features {
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-item {
  min-height: 230px;
  padding: 28px 28px 30px 0;
  border-right: 1px solid var(--line);
}

.feature-item:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 28px;
}

.feature-item:nth-child(2) {
  padding-left: 28px;
}

.feature-marker {
  display: block;
  width: 34px;
  height: 6px;
  background: var(--teal);
  border-radius: 6px;
}

.marker-green {
  background: var(--green);
}

.marker-coral {
  background: var(--coral);
}

.feature-item h3 {
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.feature-item p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.workflow {
  background: #f2f5ed;
}

.workflow-inner {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 56px;
  align-items: start;
}

.workflow-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  counter-increment: workflow;
  display: grid;
  grid-template-columns: 54px 180px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 0;
  border-bottom: 1px solid rgba(17, 24, 23, 0.14);
}

.workflow-list li::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 780;
  content: counter(workflow);
}

.workflow-list strong {
  font-size: 18px;
}

.workflow-list span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.final-cta {
  padding: 64px 32px;
  color: #ffffff;
  background: #111817;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 0 32px;
  color: #51605c;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 780;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal-dark);
  outline: none;
}

@media (max-width: 1020px) {
  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 68px;
  }

  .hero-copy {
    max-width: 500px;
    font-size: 21px;
  }

  .product-preview {
    right: -80px;
    width: 380px;
    opacity: 0.72;
  }

  .balance-panel {
    right: 250px;
    width: 220px;
  }

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

  .feature-item,
  .feature-item:nth-child(2),
  .feature-item:last-child {
    min-height: 0;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 16px;
  }

  .site-nav {
    position: absolute;
    top: 13px;
    right: max(16px, calc(100vw - 374px));
  }

  .brand {
    font-size: 21px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .site-nav a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    min-height: calc(91svh - var(--header-height));
    padding: 54px 18px 38px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 19px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    min-height: 46px;
    padding: 0 16px;
    font-size: 15px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 300px;
    margin-top: 30px;
  }

  .hero-stats div {
    padding-top: 10px;
  }

  .product-preview {
    top: 230px;
    right: -170px;
    width: 330px;
    min-height: 430px;
    padding: 18px;
    opacity: 0.44;
  }

  .preview-title {
    margin-top: 26px;
    font-size: 25px;
  }

  .balance-panel,
  .food-rail {
    display: none;
  }

  .section {
    padding: 58px 18px;
  }

  .section h2,
  .final-cta h2 {
    font-size: 34px;
  }

  .feature-grid {
    margin-top: 30px;
  }

  .feature-item p {
    max-width: none;
    font-size: 16px;
  }

  .workflow-list li {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    min-height: 92px;
    padding: 12px 0;
  }

  .workflow-list li span {
    grid-column: 2;
  }

  .final-cta {
    padding: 48px 18px;
  }

  .final-cta-inner {
    display: grid;
  }

  .site-footer {
    min-height: 88px;
    padding: 0 18px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}
