:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --pale: #eeece0;
  --ink: #222923;
  --muted: #4e574d;
  --green: #254233;
  --dark: #1f362c;
  --olive: #cbc69f;
  --rule: #d5d5c7;
  --serif: 'Songti SC', 'Noto Serif CJK SC', SimSun, serif;
  --sans: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font: 16px/1.8 var(--sans);
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
figure,
h1,
h2,
h3,
p {
  margin: 0;
}

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

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #ae7645;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  background: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  min-height: 81px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font: 700 27px/1 var(--serif);
  letter-spacing: 0.12em;
  color: var(--green);
}

.brand img {
  flex: 0 0 auto;
}

.masthead nav {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  color: var(--muted);
  font-size: 14px;
}

.masthead nav a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-action {
  justify-self: end;
  border: 1px solid #8a9788;
  padding: 7px 15px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.header-action:hover {
  background: var(--pale);
}

.header-action span,
.button span,
.text-link span {
  margin-left: 0.55em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5.2vw, 78px);
  padding-block: 70px 76px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.5;
}

.eyebrow::before {
  content: '';
  width: 23px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  margin-block: 22px 24px;
  color: var(--green);
  font-size: clamp(48px, 5.25vw, 78px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 27em;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.95;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 33px;
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 9px 19px;
  font-size: 15px;
  font-weight: 650;
}

.button-primary {
  color: var(--paper);
  background: var(--green);
}

.button-primary:hover {
  background: #375844;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green);
  font-size: 15px;
  font-weight: 650;
}

.hero-figure {
  padding: 10px;
  background: #e9e5d8;
  border: 1px solid var(--rule);
}

.hero-image {
  overflow: hidden;
  background: #cec6af;
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 49%;
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 16px;
  padding: 9px 4px 1px;
  font-size: 12px;
  color: var(--muted);
}

.hero-figure figcaption span:first-child {
  color: var(--green);
  font-weight: 650;
}

.showcase {
  color: var(--paper);
  background: var(--dark);
}

.showcase-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(37px, 8vw, 116px);
  min-height: 625px;
  padding-block: 68px;
}

.showcase .eyebrow {
  color: var(--olive);
}

h2 {
  margin-block: 17px 20px;
  font-size: clamp(36px, 4vw, 55px);
  line-height: 1.26;
  letter-spacing: -0.024em;
}

.showcase-intro {
  max-width: 29em;
  color: #e1e3d6;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.demo-tabs button {
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid #89998a;
  color: var(--paper);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.demo-tabs button:hover {
  border-color: var(--paper);
}

.demo-tabs button[aria-selected='true'] {
  border-color: var(--olive);
  color: var(--dark);
  background: var(--olive);
  font-weight: 650;
}

.demo-notes {
  margin-top: 16px;
  min-height: 3.5em;
  font-size: 14px;
  color: #e1e3d6;
}

.demo-notes p + p:not([hidden]) {
  margin-top: 6px;
}

.demo-screens {
  display: grid;
  gap: 16px;
  justify-content: center;
}

.demo-screens.interactive {
  place-items: center;
  border: 1px solid #697d6e;
  background: radial-gradient(ellipse at 50% 52%, #41584a 0%, #293f33 58%, #243a30 100%);
  padding: 25px 16px;
}

.screen {
  max-width: 273px;
  padding: 7px;
  background: #ded9c6;
  border: 1px solid #ded9c6;
  border-radius: 20px;
  box-shadow: 0 14px 42px #14271e88;
}

.screen img {
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.cooperation {
  padding-block: 96px 87px;
}

.cooperation-heading {
  margin-bottom: 33px;
}

.cooperation h2,
.contact h2 {
  color: var(--green);
}

.cooperation-heading > p:last-child {
  color: var(--muted);
}

.cooperation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(28px, 7vw, 104px);
}

.detail-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9e5d8;
}

.detail-figure figcaption {
  padding-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.steps li {
  position: relative;
  counter-increment: step;
  border-bottom: 1px solid var(--rule);
  padding: 18px 0 21px 50px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: Georgia, serif;
  font-size: 20px;
  color: #6b755f;
}

.steps h3,
.contact h3 {
  color: var(--green);
  font-size: 23px;
  text-wrap: wrap;
  line-height: 1.4;
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(25px, 6vw, 80px);
  border-top: 2px solid var(--green);
  padding: clamp(26px, 5vw, 64px);
  background: var(--pale);
}

.contact h2 {
  margin-top: 0;
  font-size: clamp(32px, 3.6vw, 48px);
}

.contact p {
  color: var(--muted);
  max-width: 32em;
}

.contact-action {
  border-left: 1px solid #bdc2b2;
  padding-left: 28px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contact-action p,
.contact-action .button {
  margin-top: 9px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 30px;
}

.footer .brand {
  font-size: 22px;
}

.footer p {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 64px);
  }

  h1 {
    font-size: clamp(44px, 6vw, 64px);
  }

  .showcase-inner {
    gap: 45px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }

  .masthead-inner {
    min-height: 65px;
    gap: 12px;
  }

  .masthead nav {
    gap: 16px;
  }

  .hero,
  .showcase-inner,
  .cooperation-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 31px;
    padding-block: 43px 47px;
  }

  .hero-copy h1 {
    margin-block: 16px 17px;
    font-size: clamp(42px, 8.6vw, 62px);
  }

  .actions {
    margin-top: 23px;
  }

  .showcase-inner {
    gap: 25px;
    padding-block: 48px;
  }

  .cooperation {
    padding-block: 59px 52px;
  }

  .cooperation-grid {
    gap: 25px;
  }

  .contact-action {
    border-left: 0;
    border-top: 1px solid #bdc2b2;
    padding: 19px 0 0;
  }
}

@media (max-width: 490px) {
  .masthead-inner {
    grid-template-columns: 1fr auto;
  }

  .masthead nav {
    grid-row: 2;
    grid-column: 1 / -1;
    padding-bottom: 8px;
  }

  .masthead .brand,
  .header-action {
    margin-top: 9px;
  }

  .masthead nav a {
    padding: 3px 0;
  }

  .hero-figure {
    padding: 7px;
  }

  .demo-screens.interactive {
    padding-block: 19px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
