:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #666b68;
  --soft: #8b908d;
  --line: #ececea;
  --paper: #ffffff;
  --wash: #fafafa;
  --green: #06d083;
  --green-2: #62d78b;
  --green-soft: #d8f6df;
  --purple: #c48ff2;
  --purple-soft: #e8c8ff;
  --yellow: #f4ff75;
  --dark: #131313;
  --cream: #fffcef;
  --display: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-synthesis: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 24px 0;
}

.nav-shell {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1280px, calc(100vw - 48px));
  min-height: 64px;
  margin: 0 auto;
  padding: 0 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 144px;
  height: 24px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  color: #2b2d2c;
  font-size: 14px;
  font-weight: 700;
}

.nav-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 33px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #6b6f6d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nav-icon {
  width: 18px;
  height: 17px;
  object-fit: contain;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 88px;
  min-height: 33px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.login-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-section {
  position: relative;
  min-height: 516px;
  overflow: hidden;
  padding: 72px 24px 18px;
}

.grid-floor {
  position: absolute;
  inset: 148px -90px auto;
  height: 520px;
  background-image:
    linear-gradient(rgba(18, 18, 18, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.075) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.58;
  transform: perspective(650px) rotateX(69deg) translateY(-72px);
  transform-origin: top;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, transparent 96%);
  pointer-events: none;
}

.hero-inner,
.services-section,
.plans-section,
.workflow-section,
.models-section,
.footer {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(390px, 540px) minmax(480px, 650px);
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.hero-copy {
  padding-left: 25px;
}

.eyebrow {
  margin: 0 0 26px;
  color: #8c908d;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.hero-copy h1 {
  max-width: 500px;
  margin-bottom: 24px;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  margin-bottom: 4px;
  font-size: 56px;
  line-height: 1;
  font-weight: 750;
}

.hero-subtitle {
  margin-bottom: 28px;
  color: #484d4a;
  font-size: 18px;
  line-height: 1.58;
  font-weight: 500;
}

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

.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
}

button.primary-button,
button.outline-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  gap: 12px;
  min-width: 154px;
  padding: 0 22px;
  background: var(--dark);
  color: #fff;
  box-shadow: 8px 8px 0 var(--green);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 5px 5px 0 var(--green);
}

.outline-button {
  min-width: 152px;
  border: 1px solid var(--ink);
  background: #fff;
}

.text-command {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.text-command:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 340px;
}

.banner-art {
  position: relative;
  width: min(670px, 100%);
  aspect-ratio: 2819 / 1486;
}

.banner-main,
.sapling {
  position: absolute;
  display: block;
}

.banner-main {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sapling {
  z-index: 4;
  top: 3.7%;
  left: 62.2%;
  width: 8.1%;
  height: auto;
  transform-origin: 50% 92%;
  animation: sapling-float 3.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 9px 9px rgba(17, 25, 35, 0.08));
}

@keyframes sapling-float {
  from {
    transform: translateY(0) rotate(-1.4deg);
  }
  to {
    transform: translateY(-12px) rotate(1.8deg);
  }
}

.pills-row {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 34px;
  width: min(600px, calc(100vw - 48px));
  margin: 4px auto 50px;
}

.pills-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 138px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  color: #303330;
  font-size: 14px;
  font-weight: 700;
}

.pills-row b {
  color: #00a86a;
  font-family: var(--mono);
}

.pill-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.services-section {
  padding-bottom: 20px;
}

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

.service-card {
  display: flex;
  min-height: 348px;
  flex-direction: column;
  padding: 29px 32px 28px;
  border-radius: 8px;
  color: #101010;
}

.service-card.green {
  background: var(--green);
}

.service-card.black {
  background: var(--dark);
  color: #fff;
}

.service-card.purple {
  background: var(--purple);
}

.service-card.yellow {
  background: var(--yellow);
}

.card-top,
.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-top span {
  color: rgba(0, 0, 0, 0.42);
  font-size: 13px;
  font-weight: 700;
}

.black .card-top span {
  color: rgba(255, 255, 255, 0.42);
}

.card-top small {
  max-width: 106px;
  overflow: hidden;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: rgba(0, 0, 0, 0.42);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.black .card-top small {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.service-card h2 {
  margin: 48px 0 30px;
  font-size: 32px;
  line-height: 1.14;
  font-weight: 760;
}

.service-card p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.74;
  font-weight: 500;
  opacity: 0.72;
}

.metric {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.black .metric {
  border-top-color: rgba(255, 255, 255, 0.13);
}

.metric span {
  color: currentColor;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.45;
}

.metric strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 780;
}

.plans-section {
  position: relative;
  padding: 62px 0 82px;
  background: var(--wash);
  box-shadow: 0 0 0 100vmax var(--wash);
  clip-path: inset(0 -100vmax);
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 760;
}

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

.plan-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plan-card.featured {
  background: var(--dark);
  color: #fff;
}

.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.green-label {
  background: #84efae;
  color: #1c7d4a;
}

.yellow-label {
  background: var(--yellow);
  color: #6f721d;
}

.purple-label {
  background: var(--purple);
  color: #7c3fac;
}

.plan-card h3 {
  margin-bottom: 29px;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 760;
}

.plan-card p:not(.plan-label) {
  max-width: 350px;
  margin-bottom: 34px;
  color: currentColor;
  font-size: 15px;
  line-height: 1.74;
  font-weight: 500;
  opacity: 0.65;
}

.plan-card a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.workflow-section {
  padding: 72px 0 34px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.workflow-grid article {
  min-height: 202px;
  padding: 32px 30px;
}

.workflow-grid article + article {
  border-left: 1px solid var(--line);
}

.workflow-grid strong {
  display: block;
  margin-bottom: 58px;
  font-size: 28px;
  line-height: 1;
  font-weight: 760;
}

.workflow-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.74;
  font-weight: 500;
}

.models-section {
  padding: 35px 0 107px;
}

.models-heading {
  margin-bottom: 48px;
  text-align: center;
}

.models-heading h2 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 760;
}

.models-heading p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  font-weight: 600;
}

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

.models-grid article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  min-height: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.model-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
}

.model-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.more {
  background: #919191;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
}

.models-grid strong {
  color: #6c716f;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.models-grid small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 7px;
  background: #6be39d;
  color: #218052;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.muted-model {
  opacity: 0.5;
}

.muted-model small {
  background: #f1f1f1;
  color: #999;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 74px 0 112px;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 144px;
  height: 24px;
}

.footer p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 500;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}

.footer-actions .primary-button {
  min-width: 188px;
}

.footer .copyright {
  margin: 0;
  color: #b7bbb8;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  text-align: right;
}

.footer .copyright a {
  margin-left: 10px;
  color: #a4aaa6;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.58);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 48px));
  padding: 32px;
  border: 1px solid #deded8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 10px 10px 0 var(--green), 0 24px 70px rgba(0, 0, 0, 0.22);
  outline: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 10px;
  color: #8c908d;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.modal-panel h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
}

.modal-copy {
  margin: 0 auto 22px;
  max-width: 300px;
  color: #555a57;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.qr-frame {
  overflow: hidden;
  width: min(300px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    padding-left: 0;
    text-align: center;
  }

  .hero-copy h1,
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

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

  .models-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .menu-button {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-right,
  .nav-links {
    display: none;
  }

  .nav-shell.open .nav-links,
  .nav-shell.open .nav-right {
    display: flex;
    grid-column: 1 / 3;
  }

  .nav-shell.open .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
    padding: 14px 0 4px;
  }

  .nav-shell.open .nav-right {
    justify-content: flex-start;
    margin-bottom: 14px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 78px;
  }

  .hero-inner,
  .services-section,
  .plans-section,
  .workflow-section,
  .models-section,
  .footer {
    width: calc(100vw - 32px);
  }

  .hero-inner {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy h1 span {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .pills-row {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
  }

  .services-grid,
  .plans-grid,
  .workflow-grid,
  .models-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article + article {
    border-left: none;
    border-top: 1px solid var(--line);
  }

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

  .footer {
    flex-direction: column;
  }

  .footer-actions {
    align-items: flex-start;
  }

  .footer .copyright {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .brand img,
  .footer img {
    width: 132px;
    height: auto;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h1 span {
    font-size: 36px;
  }

  .modal-panel {
    width: calc(100vw - 36px);
    padding: 28px 20px 24px;
    box-shadow: 7px 7px 0 var(--green), 0 18px 54px rgba(0, 0, 0, 0.2);
  }

  .modal-panel h2 {
    font-size: 26px;
  }

  .qr-frame {
    width: min(276px, 100%);
  }

  .hero-subtitle br,
  .footer p br {
    display: none;
  }

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

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

  .banner-art {
    width: 112%;
    max-width: none;
  }

  .service-card {
    min-height: 320px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
