:root {
  --ink: #1b1a17;
  --ink-soft: #3f3b34;
  --muted: #746e62;
  --paper: #f8f5ee;
  --surface: #fffdf8;
  --line: #e4ddce;
  --line-strong: #c9bfa9;
  --accent: #a96334;
  --accent-deep: #8a4f27;
  --accent-wash: #f1e6d8;
  --max: 1120px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: 180ms ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

a:hover {
  color: var(--accent-deep);
}

::selection {
  background: var(--accent-wash);
  color: var(--ink);
}

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

.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 245, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-sub {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  text-decoration: none;
  transition: color var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.header-cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.9;
}

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

.accent {
  color: var(--accent-deep);
}

.hero h1 .accent {
  white-space: nowrap;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Buttons ---------- */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--ease), color var(--ease),
    border-color var(--ease), transform var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: transparent;
  border-color: rgba(248, 245, 238, 0.55);
  color: var(--paper);
}

.btn-outline-light {
  border-color: rgba(248, 245, 238, 0.35);
  color: var(--paper);
}

.btn-outline-light:hover {
  border-color: var(--paper);
  color: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy .lead {
  max-width: 36em;
  margin-top: 26px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-panel {
  position: relative;
  padding: 30px 30px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 8px 8px auto auto;
  width: 34px;
  height: 34px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  pointer-events: none;
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.panel-label strong {
  color: var(--ink);
  font-weight: 600;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.panel-list li:last-child {
  border-bottom: 0;
}

.panel-list .num {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.panel-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.panel-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.panel-foot {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-tint {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head .lead {
  max-width: 34em;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-aside {
  padding-top: 6px;
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--ease), transform var(--ease),
    box-shadow var(--ease);
}

.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -34px rgba(27, 26, 23, 0.5);
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-top .num {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
}

.card-top .tag {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.85;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--accent-deep);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.card-link::after {
  content: "→";
  transition: transform var(--ease);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Feature list ---------- */

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

.feature-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list .num {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.feature-list h3 {
  margin-bottom: 8px;
}

.feature-list p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.85;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 26px 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 40px;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ---------- Notice / boundary ---------- */

.boundary {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.boundary-box {
  padding: 28px 30px;
  border-left: 2px solid var(--accent);
  background: var(--accent-wash);
}

.boundary-box p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.9;
}

.boundary-box p + p {
  margin-top: 12px;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: clamp(52px, 7vw, 80px) 0;
  background: var(--ink);
  color: var(--paper);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner h2 {
  max-width: 18em;
  color: var(--paper);
}

.cta-inner p {
  max-width: 32em;
  margin-top: 14px;
  color: rgba(248, 245, 238, 0.66);
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Page intro ---------- */

.page-intro {
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 22em;
}

.page-intro .lead {
  max-width: 46em;
  margin-top: 22px;
}

/* ---------- Prose ---------- */

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 1.32rem;
  letter-spacing: 0;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.02rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.95;
}

.prose p + p {
  margin-top: 14px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose .meta {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.prose a {
  color: var(--accent-deep);
}

.prose .note {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: var(--accent-wash);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 30px 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-card .label {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.contact-card h2 {
  margin: 14px 0 10px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.contact-card a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--ease), color var(--ease);
}

.contact-card a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.meta-item {
  padding: 22px 26px;
  border: 1px solid var(--line);
}

.meta-item .label {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}

.meta-item p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.44fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

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

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.fact-list dt,
.fact-list .label {
  color: var(--muted);
  white-space: nowrap;
}

.fact-list .value {
  text-align: right;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 28px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.75fr));
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 30em;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.85;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a,
.footer-col p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.79rem;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-deep);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

  .section-head,
  .boundary,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

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

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

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

  .steps {
    grid-template-columns: 1fr;
  }

  .step::before {
    margin-bottom: 24px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
  }

  .brand-sub {
    display: none;
  }

  .card-grid,
  .contact-grid,
  .contact-meta {
    grid-template-columns: 1fr;
  }

  .service-card,
  .hero-panel,
  .contact-card {
    padding: 24px 22px;
  }

  .feature-list li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cta-actions {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

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