:root {
  color-scheme: light dark;
  --canvas: #f3f3ef;
  --paper: #fafaf8;
  --surface: #ffffff;
  --line: #e9e9e3;
  --line-strong: #d8d8ce;
  --ink: #1b1b19;
  --muted: #67675f;
  --subtle: #8b8b82;
  --accent: #1b52bf;
  --accent-strong: #2a6be6;
  --accent-soft: #e6edfc;
  --success: #2f6d4e;
  --success-soft: #e3f2e9;
  --shadow: 0 1px 2px rgb(20 24 20 / 4%), 0 16px 48px rgb(20 24 20 / 7%);
  --sans: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Songti SC", "STSong", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #131313;
    --paper: #222222;
    --surface: #292929;
    --line: #2e2e2e;
    --line-strong: #3d3d3d;
    --ink: #f4f4ef;
    --muted: #c3c4ba;
    --subtle: #92958d;
    --accent: #84aeff;
    --accent-strong: #2a6be6;
    --accent-soft: rgb(42 107 230 / 18%);
    --success: #93d4ad;
    --success-soft: rgb(47 109 78 / 22%);
    --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 18px 50px rgb(0 0 0 / 34%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(12px);
}

.header-row,
.footer-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand strong {
  font-size: 15px;
  font-weight: 650;
}

.brand span {
  color: var(--subtle);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.language-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.language-link:hover {
  background: var(--paper);
  color: var(--ink);
}

.language-link {
  border: 1px solid var(--line-strong);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-strong);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--subtle);
}

.hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
  content: "";
}

.display {
  max-width: 720px;
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.quiet-note {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

.note-journey {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.note-journey::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent-strong);
  content: "";
}

.note-preview {
  padding: 28px 30px 26px 34px;
}

.note-preview small {
  color: var(--subtle);
  font-size: 12px;
}

.note-preview h2 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.note-preview p {
  margin: 0;
  color: var(--muted);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.journey-step {
  min-width: 0;
  padding: 18px;
}

.journey-step + .journey-step {
  border-left: 1px solid var(--line);
}

.journey-step strong,
.journey-step span {
  display: block;
}

.journey-step strong {
  font-size: 13px;
}

.journey-step span {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 11px;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 680px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.value-grid,
.choice-grid,
.management-grid,
.client-grid {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid {
  grid-template-columns: repeat(2, 1fr);
}

.management-grid {
  grid-template-columns: repeat(2, 1fr);
}

.client-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 24px;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card h3 {
  margin: 18px 0 7px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.choice {
  position: relative;
  overflow: hidden;
}

.choice::after {
  position: absolute;
  inset: auto 24px 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--line-strong);
  content: "";
}

.choice-nas::after {
  background: var(--accent-strong);
}

.choice-label {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.choice h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.choice-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.client {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.client:hover {
  border-color: var(--line-strong);
}

.client-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
}

.client-copy {
  min-width: 0;
}

.client-copy strong,
.client-copy span {
  display: block;
}

.client-copy span {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
}

.release-state {
  margin-left: auto;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.release-state[data-state="loading"] {
  color: var(--subtle);
}

.release-state[data-state="unavailable"] {
  color: var(--subtle);
}

.setup-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.setup-step {
  position: relative;
  padding: 0 22px 0 0;
}

.setup-step + .setup-step {
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
}

.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.setup-step h3 {
  margin: 16px 0 7px;
  font-size: 15px;
}

.setup-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.promise {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.promise-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 26px;
}

.promise-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.promise-row + .promise-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.check {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.promise-row strong,
.promise-row span {
  display: block;
}

.promise-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.plain-guide {
  margin-top: 30px;
  border-left: 3px solid var(--accent-strong);
  background: var(--paper);
  padding: 18px 20px;
  color: var(--muted);
}

.plain-guide strong {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.site-footer p {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
  text-align: right;
}

@media (max-width: 860px) {
  .hero {
    padding: 60px 0 52px;
  }

  .hero-grid,
  .promise {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .setup-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .setup-step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 32px, 1120px);
  }

  .site-header .brand span,
  .nav-link:not(.nav-primary) {
    display: none;
  }

  .header-row {
    min-height: 58px;
  }

  .nav {
    gap: 6px;
  }

  .nav-link,
  .language-link {
    min-height: 42px;
    padding-inline: 10px;
  }

  .hero {
    padding: 46px 0 44px;
  }

  .display {
    font-size: 42px;
  }

  .lead {
    font-size: 16px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .note-preview {
    padding: 23px 22px 22px 26px;
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

  .journey-step + .journey-step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 54px 0;
  }

  .choice-grid,
  .management-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .setup-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .setup-step,
  .setup-step + .setup-step,
  .setup-step:nth-child(3) {
    padding: 0 0 24px 44px;
    border: 0;
  }

  .setup-step + .setup-step {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .step-number {
    position: absolute;
    top: 24px;
    left: 0;
  }

  .setup-step:first-child .step-number {
    top: 0;
  }

  .setup-step h3 {
    margin-top: 0;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
