:root {
  --ink: #172b2d;
  --muted: #637272;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #d9e1dd;
  --olive: #627f38;
  --wine: #733337;
  --gold: #b7772d;
  --blue: #315d73;
  --shadow: 0 22px 60px rgba(23, 43, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(98, 127, 56, 0.09), transparent 360px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.9);
  padding: 14px clamp(18px, 4vw, 52px);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav a,
.primary,
.secondary,
.final-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
}

.nav a {
  min-height: 40px;
  color: var(--muted);
  padding: 0 14px;
}

.nav a:hover {
  background: #eef2ed;
  color: var(--ink);
}

.primary,
.secondary {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.primary {
  border: 1px solid rgba(23, 43, 45, 0.82);
  background: linear-gradient(135deg, var(--ink), #1f3c35 72%, #8b6a35 155%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(23, 43, 45, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.secondary {
  border: 1px solid rgba(159, 115, 55, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 230, 0.94));
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(23, 43, 45, 0.08);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

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

.hero {
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 535px);
  align-items: start;
  gap: clamp(28px, 5vw, 66px);
  padding: 48px 0 24px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(340px, 535px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 66px);
  padding: 48px 0 26px;
}

.food-hero {
  display: grid;
  grid-template-columns: minmax(340px, 535px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 66px);
  padding: 48px 0 26px;
}

.mystery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 66px);
  padding: 48px 0 28px;
}

.mystery-hero > div {
  min-width: 0;
}

.mystery-hero > p,
.mystery-hero div > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.mystery-hero img {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 540px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-hero-image img {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 520px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.food-hero-image img {
  display: block;
  width: 100%;
  height: clamp(390px, 44vw, 560px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-hero-copy {
  min-width: 0;
}

.food-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.product-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.food-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-copy {
  min-width: 0;
  padding-top: 2px;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(44px, 5.4vw, 70px);
  line-height: 1.02;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(34px, 7vw, 74px);
}

.hero-actions a {
  min-height: 58px;
  padding: 0 24px;
  font-size: 16px;
}

.micro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 5vw, 56px);
}

.micro-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(98, 127, 56, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.food-tags {
  width: 100%;
  justify-content: flex-start;
  margin-top: clamp(28px, 5vw, 56px);
}

.food-demo-entry {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 14px 0 34px;
}

.food-main-cta {
  width: min(420px, 100%);
  min-height: 60px;
  font-size: 16px;
}

.food-qr-card {
  display: grid;
  width: min(360px, 100%);
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
  box-shadow: 0 14px 34px rgba(23, 43, 45, 0.06);
  text-align: center;
}

.food-qr-card img {
  width: min(190px, 58vw);
  height: auto;
}

.food-qr-card span {
  max-width: 260px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  padding-right: 0;
  padding-bottom: 34px;
}

.stage-main {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.qr-card {
  position: absolute;
  right: 20px;
  bottom: 0;
  display: grid;
  width: 150px;
  gap: 8px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px;
  box-shadow: 0 18px 45px rgba(23, 43, 45, 0.18);
}

.qr-card img {
  width: 104px;
  height: 104px;
}

.qr-card span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.how-it-works,
.ai-note,
.choice-grid {
  padding: 28px 0 18px;
}

.product-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 24px;
}

.mystery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 56px;
}

.mystery-grid article {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
  box-shadow: 0 14px 34px rgba(23, 43, 45, 0.06);
}

.mystery-grid span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mystery-grid h2 {
  margin: 18px 0 10px;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.06;
}

.mystery-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.product-demo-grid article {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 14px 34px rgba(23, 43, 45, 0.06);
}

.product-demo-grid span {
  display: inline-flex;
  align-self: flex-start;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  background: #eef2ed;
  color: var(--olive);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-demo-grid h2 {
  margin: 18px 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.04;
}

.product-demo-grid p {
  min-height: 78px;
  color: var(--muted);
  line-height: 1.5;
}

.product-demo-grid a {
  width: 100%;
  min-height: 54px;
  margin-top: auto;
}

.product-demo-grid figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.product-demo-grid img {
  width: min(172px, 56vw);
  height: auto;
}

.product-demo-grid figcaption {
  max-width: 220px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading h2,
.ai-note h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

.ai-note h2 {
  font-size: clamp(28px, 3.2vw, 44px);
}

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

.steps-grid article,
.choice-grid article,
.ai-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(23, 43, 45, 0.06);
}

.steps-grid article {
  min-height: 210px;
  padding: 22px;
}

.steps-grid span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.steps-grid h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.steps-grid p,
.choice-grid p,
.ai-note p {
  color: var(--muted);
  line-height: 1.55;
}

.ai-note {
  padding: clamp(22px, 3vw, 34px);
}

.ai-note p {
  max-width: 860px;
  margin-bottom: 0;
  font-size: 16px;
}

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

.choice-grid article {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: clamp(22px, 3vw, 34px);
}

.choice-grid span {
  display: inline-flex;
  align-self: flex-start;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: #eef2ed;
  color: var(--olive);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.choice-grid h2 {
  margin: 20px 0 12px;
  font-size: clamp(28px, 3.4vw, 43px);
  line-height: 1.04;
}

.choice-grid p {
  min-height: 96px;
  font-size: 17px;
}

.choice-grid a {
  margin-top: auto;
  min-height: 54px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 56px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: clamp(24px, 4vw, 44px);
}

.final-cta h2 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

.final-cta p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.55;
}

.final-cta a {
  flex: 0 0 auto;
  min-height: 58px;
  background: #fff;
  color: var(--ink);
  padding: 0 28px;
  font-size: 16px;
}

.site-footer {
  display: flex;
  width: calc(100% - 32px);
  max-width: 1180px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 52px);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

.site-footer span {
  display: block;
}

@media (max-width: 860px) {
  .hero,
  .product-hero,
  .food-hero,
  .mystery-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .hero-stage {
    min-height: auto;
    padding-right: 0;
    padding-bottom: 0;
  }

  .stage-main {
    height: clamp(280px, 62vw, 420px);
  }

  .qr-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(240px, 70vw);
    margin: 14px auto 0;
    transform: none;
  }

  .steps-grid,
  .choice-grid,
  .product-demo-grid,
  .mystery-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 10px;
    padding: 12px 16px;
  }

  .nav a {
    min-height: 36px;
    background: #eef2ed;
    padding: 0 9px;
    font-size: 12px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions a {
    width: 100%;
  }

  .stage-main {
    height: 260px;
  }

  .product-hero-image img {
    height: 280px;
  }

  .food-hero-image img {
    height: 280px;
  }

  .mystery-hero img {
    height: 280px;
  }

  .section-heading h2,
  .ai-note h2 {
    font-size: 30px;
  }

  .steps-grid article,
  .choice-grid article,
  .ai-note {
    min-height: auto;
    padding: 18px;
  }

  .choice-grid p {
    min-height: 0;
  }

  .choice-grid a,
  .product-demo-grid a,
  .food-main-cta,
  .final-cta a {
    width: 100%;
  }

  .food-hero-copy {
    min-height: auto;
  }

  .food-hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .food-tags {
    margin-top: 0;
    padding-top: 24px;
  }

  .final-cta {
    margin-bottom: 42px;
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-right: 0;
    padding-left: 0;
  }

  .site-footer span {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 390px) {
  main {
    width: calc(100% - 24px);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
  }
}
