:root {
  --green-950: #0b2e1a;
  --green-900: #134d2e;
  --green-800: #1a6640;
  --green-700: #228b52;
  --green-600: #2ea86a;
  --green-100: #e8f5ec;
  --green-50: #f3faf5;
  --gold-500: #c9a227;
  --gold-400: #dbb84a;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  color: var(--green-700);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 18px;
  color: var(--green-900);
}

.brand-text small {
  font-size: 12px;
  color: var(--slate-500);
}

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

.site-nav a {
  font-size: 14px;
  color: var(--slate-700);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--green-700);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--green-800);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--slate-900);
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(46, 168, 106, 0.18), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(201, 162, 39, 0.12), transparent 35%),
    linear-gradient(180deg, var(--green-50) 0%, #fff 72%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 139, 82, 0.1);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--green-700);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 17px;
  color: var(--slate-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(34, 139, 82, 0.28);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--slate-200);
  color: var(--slate-700);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-stats strong {
  display: block;
  font-size: 16px;
  color: var(--green-900);
}

.hero-stats span {
  font-size: 12px;
  color: var(--slate-500);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-card {
  position: absolute;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-card-main {
  inset: 0 60px 40px 0;
  padding: 24px;
}

.hero-card-side {
  right: 0;
  bottom: 0;
  width: 220px;
  padding: 18px;
}

.hero-card-head {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green { background: #34c759; }
.dot.amber { background: #ff9500; }
.dot.blue { background: #007aff; }

.hero-card-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-900);
}

.hero-cert-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.hero-cert-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--slate-200);
  font-size: 14px;
}

.hero-cert-list span {
  color: var(--slate-500);
}

.hero-cert-list em {
  font-style: normal;
  font-weight: 600;
}

.hero-qr {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qr-box {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #111 2px, transparent 2px) 0 0 / 10px 10px,
    linear-gradient(#111 2px, transparent 2px) 0 0 / 10px 10px;
  opacity: 0.85;
}

.hero-qr p {
  margin: 0;
  font-size: 13px;
  color: var(--slate-500);
}

.hero-card-side p {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.hero-card-side ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--slate-700);
}

.hero-card-side li {
  margin-bottom: 8px;
}

.hero-card-side li.done {
  color: var(--green-700);
}

.hero-card-side li.active {
  font-weight: 700;
  color: var(--green-900);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--green-50);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
}

.section-head h2,
.product-copy h2,
.cta-copy h2,
.tech-layout h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
}

.about-grid,
.feature-grid,
.scenario-grid {
  display: grid;
  gap: 24px;
}

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

.about-card,
.feature-card,
.scenario-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.section-alt .about-card,
.section-alt .feature-card,
.section-alt .scenario-card {
  background: var(--white);
}

.about-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
}

.about-card h3,
.feature-card h3,
.scenario-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.about-card p,
.feature-card p,
.scenario-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 15px;
}

/* Product */
.product-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.product-copy p {
  color: var(--slate-700);
  font-size: 16px;
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--slate-700);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.6 3.4 8.8l1.2-1.2 1.6 1.6 4.2-4.2 1.2 1.2z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.product-flow {
  display: grid;
  gap: 16px;
}

.flow-step {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.flow-num {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

.flow-step h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.flow-step p {
  margin: 0;
  color: var(--slate-700);
  font-size: 14px;
}

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

.scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scenario-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.scenario-badge.producer { background: #dcfce7; color: #166534; }
.scenario-badge.distributor { background: #dbeafe; color: #1d4ed8; }
.scenario-badge.retailer { background: #ffedd5; color: #c2410c; }
.scenario-badge.regulator { background: #ede9fe; color: #6d28d9; }

/* Tech */
.tech-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.tech-list {
  display: grid;
  gap: 16px;
}

.tech-item {
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  border: 1px solid rgba(34, 139, 82, 0.12);
}

.tech-item span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--green-900);
}

.tech-item p {
  margin: 0;
  color: var(--slate-700);
  font-size: 14px;
}

/* Contact */
.cta-section {
  background: linear-gradient(135deg, var(--green-950), var(--green-800));
  color: var(--white);
}

.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.cta-copy .section-tag {
  color: var(--gold-400);
}

.cta-copy p,
.contact-list span {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-list strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.contact-list a {
  color: var(--gold-400);
}

.contact-form {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate-900);
}

.contact-form h3 {
  margin: 0 0 20px;
  font-size: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--slate-500);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(34, 139, 82, 0.25);
  border-color: var(--green-600);
}

.form-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--slate-500);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: #071912;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .product-layout,
  .tech-layout,
  .cta-layout,
  .about-grid,
  .feature-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-card-main {
    inset: 0 20px 80px 0;
  }

  .hero-card-side {
    width: 200px;
  }

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .site-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .site-header.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-card-main {
    inset: 0 0 72px 0;
  }

  .hero-card-side {
    width: 180px;
  }
}
