:root {
  --color-cream: #f7f5ea;
  --color-surface: #fffef8;
  --color-sage: #a8c98f;
  --color-green: #58a94f;
  --color-forest: #225b3f;
  --color-lime: #c7f45a;
  --color-text: #12202b;
  --color-muted: #66706b;
  --content-width: 1280px;
  --page-gutter: clamp(24px, 5vw, 72px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 13%, rgba(199, 244, 90, 0.12), transparent 24rem),
    var(--color-cream);
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--color-forest);
  outline-offset: 4px;
}

.site-header,
.hero,
.business-grid,
.contact-band,
.site-footer {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(18, 32, 43, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand-short {
  display: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.site-header nav a {
  padding-block: 12px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:first-child {
  color: var(--color-forest);
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
}

.hero h1 {
  margin: 0;
  max-width: 5em;
  font-size: clamp(72px, 6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-copy > p {
  margin: 28px 0 36px;
  color: var(--color-muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.7;
}

.primary-cta {
  display: inline-flex;
  min-width: 186px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--color-lime);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(88, 169, 79, 0.18);
}

.hero-visual {
  position: relative;
  min-height: 650px;
  isolation: isolate;
  transform: translateY(-38px);
}

.hero-copy {
  transform: translateY(-58px);
}

.hero-landscape {
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: -18px;
  width: 280%;
  max-width: none;
}

.phone-product {
  position: absolute;
  z-index: 2;
  right: -1%;
  top: -3%;
  width: min(80%, 530px);
  aspect-ratio: 1024 / 1536;
  transform: perspective(1100px) rotateY(-7deg) rotateZ(2deg);
  filter: drop-shadow(0 32px 26px rgba(34, 91, 63, 0.18));
}

.phone-screen {
  position: absolute;
  z-index: -1;
  top: 5.2%;
  left: 20.7%;
  width: 59.2%;
  height: 90%;
  object-fit: cover;
  border-radius: 10% / 4%;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-mascot {
  position: absolute;
  z-index: 3;
  left: -5%;
  bottom: -2%;
  width: 58%;
  filter: drop-shadow(0 26px 22px rgba(34, 91, 63, 0.12));
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--color-surface);
}

.business-item {
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 56px;
}

.business-item + .business-item {
  border-left: 1px solid rgba(18, 32, 43, 0.12);
}

.business-icon {
  width: 112px;
  height: 112px;
  border-radius: 28px;
}

.business-item h2 {
  margin: 24px 0 12px;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.15;
}

.business-item p {
  max-width: 20em;
  margin: 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.7;
}

.contact-band {
  margin-top: 0;
  padding: clamp(84px, 9vw, 110px) var(--page-gutter);
  text-align: center;
  background:
    url("./assets/hero-landscape.webp") bottom center / 155% auto no-repeat,
    linear-gradient(180deg, rgba(236, 252, 188, 0.72), rgba(155, 207, 135, 0.78));
}

.contact-band h2 {
  max-width: 18em;
  margin: 0 auto 44px;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.contact-list div {
  min-width: 0;
}

.contact-list dt {
  font-size: 14px;
  color: var(--color-muted);
}

.contact-list dd {
  margin: 8px 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer small {
  color: var(--color-muted);
}

@media (max-width: 1099px) {
  .hero {
    min-height: 660px;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    gap: 30px;
  }

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

  .phone-product {
    width: min(88%, 520px);
  }

  .business-item {
    min-height: 340px;
    padding: 44px;
  }
}

@media (max-width: 767px) {
  :root {
    --page-gutter: 22px;
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    gap: 10px;
  }

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .site-header nav a:not([href="#contact"]) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 64px 24px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .hero-copy > p {
    margin: 22px 0 28px;
  }

  .hero-visual {
    min-height: min(620px, 138vw);
    transform: none;
  }

  .phone-product {
    right: 7%;
    width: min(63%, 390px);
  }

  .hero-mascot {
    left: -2%;
    width: 56%;
  }

  .hero-landscape {
    right: auto;
    left: calc(0px - var(--page-gutter));
    width: calc(100% + var(--page-gutter) + var(--page-gutter));
  }

  .business-grid {
    grid-template-columns: 1fr;
    border-radius: 28px 28px 0 0;
  }

  .business-item + .business-item {
    border-top: 1px solid rgba(18, 32, 43, 0.12);
    border-left: 0;
  }

  .contact-band {
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 28px;
  }
}

@media (max-width: 479px) {
  :root {
    --page-gutter: 20px;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .site-header nav {
    gap: 0;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-visual {
    min-height: min(540px, 145vw);
  }

  .business-item {
    min-height: 300px;
    padding: 36px 24px;
  }

  .business-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .business-item p {
    font-size: 16px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
