:root {
  --ink: #1f2933;
  --muted: #68737d;
  --subtle: #8b97a1;
  --line: #e6ebef;
  --soft: #f7fafb;
  --paper: #ffffff;
  --green: #1f7a4d;
  --green-dark: #105f3a;
  --blue: #0f6fbf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
}

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

.topbar,
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo,
.qr-logo {
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  padding: 24px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--green);
  border-color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 70px 0 82px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.9;
}

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

.primary-link,
.secondary-link,
.product-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.primary-link {
  color: #fff;
  background: var(--green);
}

.primary-link:hover,
.product-grid a:hover {
  background: var(--green-dark);
}

.secondary-link {
  color: var(--green);
  border: 1px solid #b9d6c8;
}

.secondary-link:hover {
  border-color: var(--green);
}

.qr-panel {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.qr-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.qr-title p {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.qr-title h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.2;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.qr-frame img {
  display: block;
  width: min(100%, 290px);
  height: auto;
  image-rendering: pixelated;
}

.qr-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.products,
.about {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.product-grid article {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 28px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.product-grid article:last-child {
  border-right: 0;
}

.product-grid span {
  margin-bottom: 40px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.product-grid h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.3;
}

.product-grid p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.75;
}

.product-grid a {
  width: fit-content;
  margin-top: auto;
  color: #fff;
  background: var(--green);
}

.about {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: start;
}

.about .section-heading {
  display: block;
  margin-bottom: 0;
}

.about > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 2;
}

@media (max-width: 860px) {
  .topbar,
  main {
    width: min(100% - 28px, 640px);
  }

  .hero,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 64px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid article {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .topbar,
  main {
    width: min(100% - 22px, 420px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 8px 0;
  }

  h1 {
    font-size: 38px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .products,
  .about {
    padding: 54px 0;
  }
}
