@font-face {
  font-family: "Smiley Sans";
  src: url("assets/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #143a32;
  --ink-soft: #2a5349;
  --mint: #dcefe8;
  --mint-deep: #c5e3d8;
  --cream: #f6f3eb;
  --paper: #f3faf7;
  --line: rgba(20, 58, 50, 0.12);
  --hero-photo: url("assets/hero-city.jpg");
  --font-display: "Smiley Sans", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 1.25rem;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(197, 227, 216, 0.7), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(220, 239, 232, 0.9), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 0.85rem 1.1rem;
}

.top__brand {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 58, 50, 0.12);
  background: var(--mint);
  opacity: 0;
  animation: rise 0.8s ease 0.15s forwards;
}

.top__brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 36, 30, 0.35) 0%,
      rgba(12, 36, 30, 0.42) 45%,
      rgba(12, 36, 30, 0.82) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 36rem);
  padding: 5.5rem 0 4rem;
}

.hero__title,
.hero__lead,
.hero__sub {
  text-shadow: 0 2px 24px rgba(8, 24, 20, 0.45);
}

.hero__logo {
  width: clamp(6.5rem, 18vw, 9rem);
  height: auto;
  margin: 0 auto 0.85rem;
  border-radius: 1.4rem;
  opacity: 0;
  animation: rise 0.9s ease 0.1s forwards;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0;
  animation: rise 0.9s ease 0.25s forwards;
}

.hero__lead {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: rise 0.9s ease 0.4s forwards;
}

.hero__sub {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  color: rgba(246, 243, 235, 0.86);
  opacity: 0;
  animation: rise 0.9s ease 0.55s forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background-color 0.25s ease;
  opacity: 0;
  animation: rise 0.9s ease 0.7s forwards;
}

.hero__cta:hover {
  transform: translateY(-2px);
  background: #fff;
}

.hero__cta:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.section__desc {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.services {
  background:
    linear-gradient(180deg, rgba(220, 239, 232, 0.65), rgba(243, 250, 247, 0.2));
}

.service-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards;
}

.service-list li:nth-child(1) { animation-delay: 0.05s; }
.service-list li:nth-child(2) { animation-delay: 0.12s; }
.service-list li:nth-child(3) { animation-delay: 0.19s; }
.service-list li:nth-child(4) { animation-delay: 0.26s; }
.service-list li:nth-child(5) { animation-delay: 0.33s; }

.service-list__name {
  font-weight: 700;
  font-size: 1.12rem;
}

.service-list__text {
  color: var(--ink-soft);
}

.why {
  background:
    radial-gradient(700px 280px at 80% 0%, rgba(197, 227, 216, 0.55), transparent 60%),
    linear-gradient(180deg, transparent, rgba(220, 239, 232, 0.35));
}

.why__grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.why__item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.why__item p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.close {
  padding-bottom: 4rem;
}

.close__inner {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem;
  border-radius: calc(var(--radius) + 0.4rem);
  background:
    linear-gradient(145deg, var(--ink) 0%, #1f4d42 55%, #27584c 100%);
  color: var(--cream);
}

.close .section__desc {
  margin-left: auto;
  margin-right: auto;
  color: rgba(246, 243, 235, 0.82);
}

.close__mark {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.16em;
}

.footer {
  padding: 1.25rem 1.25rem 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer__icp {
  margin-top: 0.35rem;
}

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

.footer a:hover {
  text-decoration: underline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (min-width: 720px) {
  .top {
    padding: 1.1rem 1.5rem;
  }

  .top__brand {
    width: 3.6rem;
    height: 3.6rem;
  }

  .service-list li {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
    padding: 1.4rem 0;
  }

  .why__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

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

  .top__brand,
  .hero__logo,
  .hero__title,
  .hero__lead,
  .hero__sub,
  .hero__cta,
  .service-list li,
  .hero__media {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
