:root {
  --ink: #16212e;
  --body: #3d4a59;
  --muted: #64748b;
  --line: #dde3ea;
  --bg: #ffffff;
  --panel: #f4f6f9;
  --accent: #1e4e79;
  --accent-dark: #163a5b;
  --accent-soft: #e8eef5;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}

html[lang^="zh"] body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.75;
}

html[lang^="zh"] h1 {
  letter-spacing: 0;
  line-height: 1.25;
}

html[lang^="zh"] .kicker {
  letter-spacing: 0.15em;
}

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.kicker {
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  color: var(--ink);
  overflow-wrap: break-word;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem max(4vw, calc((100vw - 1120px) / 2));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(22, 33, 46, 0.07);
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand b {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
}

.lang-switch {
  color: var(--muted);
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.menu-button {
  display: none;
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 8.5rem;
  background: #0e1e30;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 58% 62% at 50% 45%,
    rgba(14, 30, 48, 0.82) 0%,
    rgba(14, 30, 48, 0) 72%
  );
  pointer-events: none;
}

.hero-intro {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero .kicker {
  color: #8fb4d9;
}

h1 {
  max-width: 17em;
  margin: 0 auto;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero .lede {
  max-width: 38em;
  margin: 1.2rem auto 0;
  font-size: 1.13rem;
  color: #a9b8c8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.1rem;
}

.hero .btn {
  background: #2e69a4;
}

.hero .btn:hover {
  background: #3d7ab8;
}

.hero .link-arrow {
  color: #8fb4d9;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-map canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}

.btn:hover {
  background: var(--accent-dark);
}

.link-arrow {
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 600;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.diagram-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.diagram-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Section scaffolding */

section {
  padding: 5rem 0;
}

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

.section-head {
  max-width: 40em;
  margin-bottom: 3rem;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Services */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.svc {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.svc {
  transition: border-color 160ms ease;
}

.svc:hover {
  border-color: rgba(30, 78, 121, 0.4);
}

.svc-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.svc-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc h3 {
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
  font-weight: 650;
}

.svc p {
  font-size: 0.95rem;
}

/* Approach */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 20%;
  height: 1px;
  background: var(--line);
}

.step .n {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.step p {
  font-size: 0.95rem;
}

/* Company details */

.company {
  border-top: 1px solid var(--line);
}

.company-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4rem;
  align-items: start;
}

.company .lede {
  max-width: 34em;
  margin-top: 0.9rem;
}

.company-details {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.company-details div {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 2fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.company-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-details dd {
  color: var(--ink);
  font-weight: 600;
}

.company-details a {
  color: var(--accent);
}

.company-details a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Connect section: flow diagram + audience/system lists */

.connect-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4rem;
  align-items: center;
}

.connect h2 {
  margin-bottom: 0.4rem;
}

.pill-group {
  margin-top: 1.8rem;
}

.pill-group .label {
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.pill-group li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-grid .lede {
  max-width: 28em;
  margin-top: 0.9rem;
}

.mail {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.mail:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  width: fit-content;
}

.form-note {
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.svc-grid > :nth-child(2),
.steps > :nth-child(2) {
  transition-delay: 70ms;
}

.svc-grid > :nth-child(3),
.steps > :nth-child(3) {
  transition-delay: 140ms;
}

.svc-grid > :nth-child(5) {
  transition-delay: 70ms;
}

.svc-grid > :nth-child(6) {
  transition-delay: 140ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

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

/* Responsive */

@media (max-width: 900px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 4vw 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 33, 46, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
  }

  .site-nav .nav-cta {
    margin-top: 0.6rem;
    text-align: center;
  }

  .hero {
    padding: 4.5rem 0 5.5rem;
  }

  section {
    padding: 4rem 0;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .connect-grid .diagram-card {
    order: 2;
    max-width: 540px;
  }

  .section-head {
    margin-bottom: 2.2rem;
  }

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

  .steps::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

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

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
    text-align: center;
  }

  .company-details div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
