:root {
  --ink: #16221f;
  --muted: #5e6c66;
  --paper: #f7f3e8;
  --porcelain: #fffaf0;
  --lake: #0e7772;
  --lake-deep: #064f52;
  --moss: #839b54;
  --amber: #d5923d;
  --line: rgba(22, 34, 31, 0.14);
  --shadow: 0 24px 70px rgba(18, 47, 43, 0.16);
  --radius: 28px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 15% 0%, rgba(213, 146, 61, 0.24), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(14, 119, 114, 0.22), transparent 38rem),
    linear-gradient(135deg, #f5efdf 0%, #eef2e6 52%, #f8f0dc 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 34, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 34, 31, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
  z-index: -1;
}

body.nav-open {
  overflow: hidden;
}

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

p {
  line-height: 1.85;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 48px;
  padding: 14px 16px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(22, 34, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  background: conic-gradient(from 160deg, var(--lake), var(--amber), var(--moss), var(--lake));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), 0 12px 26px rgba(6, 79, 82, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  overflow: hidden;
  max-width: 340px;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.site-nav a {
  padding: 11px 15px;
  border-radius: 999px;
  color: rgba(22, 34, 31, 0.78);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--lake-deep);
  background: rgba(14, 119, 114, 0.1);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  min-height: 620px;
  align-items: center;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lake-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 86px);
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
}

h3 {
  font-size: 21px;
}

.en {
  color: rgba(94, 108, 102, 0.78);
  font-size: 0.94em;
  line-height: 1.72;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-lead.en {
  max-width: 700px;
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fffaf0;
  background: linear-gradient(135deg, var(--lake-deep), var(--lake));
  box-shadow: 0 18px 34px rgba(6, 79, 82, 0.22);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.42);
}

.hero-card {
  position: relative;
  min-height: 560px;
}

.orbit {
  position: absolute;
  inset: 18px 0 auto 28px;
  width: min(96%, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(6, 79, 82, 0.2);
  border-radius: 50%;
  animation: slowTurn 22s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(213, 146, 61, 0.24);
  border-radius: 50%;
}

.orbit::before {
  inset: 12%;
}

.orbit::after {
  inset: 27%;
}

.orbit span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 10px rgba(213, 146, 61, 0.14);
}

.orbit span:nth-child(1) {
  top: 12%;
  right: 17%;
}

.orbit span:nth-child(2) {
  bottom: 10%;
  left: 26%;
  background: var(--lake);
}

.orbit span:nth-child(3) {
  top: 50%;
  left: -7px;
  background: var(--moss);
}

.card-panel,
.mini-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 250, 240, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.main-panel {
  right: 0;
  bottom: 36px;
  width: min(92%, 470px);
  padding: 30px;
  border-radius: var(--radius);
}

.panel-kicker {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-panel h2 {
  margin-top: 12px;
  font-size: 30px;
}

.main-panel dl {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
}

.main-panel div {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.main-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.main-panel em,
.identity-list em {
  color: rgba(94, 108, 102, 0.7);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.02em;
}

.main-panel dd {
  margin: 0;
  font-weight: 800;
}

.mini-panel {
  padding: 17px 20px;
  border-radius: 22px;
  color: #fffaf0;
  font-weight: 900;
  line-height: 1.55;
}

.mini-panel.one {
  top: 62px;
  right: 24px;
  background: rgba(6, 79, 82, 0.82);
}

.mini-panel.two {
  left: 4px;
  bottom: 142px;
  background: rgba(131, 155, 84, 0.88);
}

.about,
.developer {
  align-items: start;
  padding: 110px 0;
}

.section-heading h2 {
  max-width: 720px;
}

.section-subtitle {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading.centered {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.about-copy {
  border-left: 2px solid rgba(6, 79, 82, 0.22);
  padding-left: 34px;
  color: var(--muted);
  font-size: 17px;
}

.about-copy strong {
  color: var(--lake-deep);
}

.services,
.process,
.contact {
  padding: 98px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 410px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.58);
  box-shadow: 0 18px 45px rgba(22, 34, 31, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
}

.service-card span {
  display: inline-grid;
  width: 45px;
  height: 45px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf0;
  font-family: var(--serif);
  font-weight: 900;
  background: var(--lake-deep);
}

.service-card:nth-child(2) span {
  background: var(--amber);
}

.service-card:nth-child(3) span {
  background: var(--moss);
}

.service-card:nth-child(4) span {
  background: var(--lake);
}

.service-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.service-card small,
.process-track small {
  display: block;
  margin-top: 8px;
  color: var(--lake-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card p.en {
  margin-top: 12px;
}

.developer-card {
  padding: 38px;
  border-radius: var(--radius);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(6, 79, 82, 0.96), rgba(14, 119, 114, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(213, 146, 61, 0.62), transparent 20rem);
  box-shadow: var(--shadow);
}

.developer-card .eyebrow,
.developer-card p {
  color: rgba(255, 250, 240, 0.78);
}

.developer-card p {
  margin-bottom: 0;
}

.identity-list {
  display: grid;
  gap: 14px;
}

.identity-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.62);
  box-shadow: 0 14px 34px rgba(22, 34, 31, 0.06);
}

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

.identity-list strong {
  overflow-wrap: anywhere;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 32px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 79, 82, 0.28), transparent);
}

.process-track li {
  position: relative;
  min-height: 260px;
  padding: 74px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.5);
}

.process-track li::before {
  content: counter(list-item);
  position: absolute;
  top: 18px;
  left: 24px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf0;
  font-weight: 900;
  background: var(--lake);
}

.process-track strong,
.process-track span {
  display: block;
}

.process-track span {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.process-track span.en {
  margin-top: 8px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
  padding: 42px;
  border-radius: calc(var(--radius) + 8px);
  color: #fffaf0;
  background:
    linear-gradient(120deg, rgba(22, 34, 31, 0.94), rgba(6, 79, 82, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(213, 146, 61, 0.72), transparent 24rem);
  box-shadow: var(--shadow);
}

.contact-panel .eyebrow,
.contact-panel p {
  color: rgba(255, 250, 240, 0.75);
}

.contact-panel p {
  margin-bottom: 0;
}

.contact-methods {
  display: grid;
  gap: 12px;
}

.contact-methods a,
.contact-methods div {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.contact-methods a:hover,
.contact-methods a:focus-visible {
  background: rgba(255, 250, 240, 0.15);
  transform: translateX(4px);
}

.contact-methods span {
  color: rgba(255, 250, 240, 0.65);
  font-size: 13px;
}

.contact-methods strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--lake-deep);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 119, 114, 0.2), transparent 32rem),
    linear-gradient(135deg, #f7f3e8, #eef2e6);
}

.legal-shell {
  width: min(850px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--lake-deep);
  font-weight: 800;
}

.legal-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(38px, 6vw, 58px);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-card p {
  color: var(--muted);
}

.legal-card a {
  color: var(--lake-deep);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

@keyframes slowTurn {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 28px, 760px);
  }

  .site-header {
    align-items: center;
    border-radius: 26px;
  }

  .brand strong {
    max-width: 52vw;
  }

  .nav-toggle {
    position: relative;
    z-index: 31;
    display: grid;
    gap: 4px;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--ink);
    background: rgba(14, 119, 114, 0.1);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }

  .nav-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .site-nav {
    position: fixed;
    inset: 88px 14px auto;
    z-index: 30;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 24px;
    background: rgba(255, 250, 240, 0.94);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 14px 16px;
  }

  .section-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-card {
    min-height: 500px;
  }

  .service-grid,
  .process-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-track::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 520px);
  }

  .site-header {
    top: 10px;
    margin: 10px 0 36px;
    padding: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand strong {
    max-width: 54vw;
    font-size: 13px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-lead,
  .about-copy {
    font-size: 16px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .section-grid {
    gap: 34px;
  }

  .hero-card {
    min-height: 430px;
  }

  .orbit {
    width: 360px;
    max-width: 100%;
  }

  .main-panel {
    bottom: 20px;
    width: 100%;
    padding: 24px;
  }

  .main-panel h2 {
    font-size: 24px;
  }

  .main-panel div,
  .identity-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mini-panel {
    display: none;
  }

  .about,
  .services,
  .developer,
  .process,
  .contact {
    padding: 68px 0;
  }

  .about-copy {
    padding-left: 18px;
  }

  .service-grid,
  .process-track {
    grid-template-columns: 1fr;
  }

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

  .service-card span {
    margin-bottom: 30px;
  }

  .developer-card,
  .contact-panel {
    padding: 28px;
  }

  .contact-methods strong {
    font-size: 17px;
  }

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