:root {
  --brand: #2f7a6b;
  --brand-hover: #3a8f7e;
  --brand-pressed: #266253;
  --brand-wash: #e8f2ef;
  --ink: #1a1d21;
  --ink-soft: #687078;
  --ink-faint: #9ca3aa;
  --line: #dedfe1;
  --line-soft: #e9e9f0;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --radius: 8px;
  --page: min(1180px, calc(100% - 48px));
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 4;
  width: var(--page);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--brand);
  fill: currentColor;
}

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

.site-nav a,
.language-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.language-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(26, 29, 33, 0.12);
}

.header-cta {
  min-height: 44px;
  padding: 0 15px;
}

.header-cta:hover,
.primary-button:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

.header-cta:active,
.primary-button:active {
  border-color: var(--brand-pressed);
  background: var(--brand-pressed);
  box-shadow: none;
  transform: translateY(1px);
}

.hero {
  width: var(--page);
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 72px 0 82px;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
}

.hero-copy {
  max-width: 570px;
}

.eyebrow,
.surface-label {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 10em;
  font-size: clamp(44px, 4.7vw, 64px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.hero-lead {
  max-width: 31em;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.primary-button {
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 5px;
}

.text-link:hover {
  text-decoration-color: var(--brand);
}

.start-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.map-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7d8d9;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(30, 36, 34, 0.1);
  animation: enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.window-bar {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 12px;
}

.window-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.sample-badge {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid #cbded9;
  border-radius: 4px;
  color: var(--brand-pressed);
  background: var(--brand-wash);
  font-size: 10px;
  font-weight: 650;
}

.map-stage {
  position: relative;
  min-height: 430px;
  overflow: clip;
  background: #fbfbfa;
  isolation: isolate;
}

.map-stage::before,
.map-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: #f1f0ec;
}

.map-stage::before {
  inset: 33.333% 0 auto;
  height: 1px;
}

.map-stage::after {
  inset: 0 auto 0 50%;
  width: 1px;
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-lines path {
  fill: none;
  stroke: #8fb8ae;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.map-lines .soft-line {
  stroke: #c9cfcd;
  stroke-width: 1.5;
}

.map-node {
  position: absolute;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d4d7d7;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(26, 29, 33, 0.06);
}

.root-node {
  top: 44.6%;
  left: 50%;
  min-width: 112px;
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translate(-50%, -50%);
  text-align: center;
}

.branch {
  max-width: 31%;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.branch:hover {
  border-color: var(--brand-soft, #7fb3a7);
}

.branch.is-active {
  border-color: var(--brand);
  color: var(--brand-pressed);
  background: var(--brand-wash);
  transform: translateY(-1px);
}

.branch-one {
  top: 15%;
  left: 12%;
}

.branch-two {
  top: 14%;
  right: 7%;
}

.branch-three {
  right: 6%;
  bottom: 21%;
}

.leaf {
  min-height: 0;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: #f8f8f6;
  font-size: 10px;
  font-weight: 500;
}

.leaf-one {
  top: 4%;
  left: 2%;
}

.leaf-two {
  top: 3%;
  right: 1%;
}

.leaf-three {
  right: 0;
  bottom: 8%;
}

.preview-detail {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 58%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}
