:root {
  --ink: #15181b;
  --paper: #f7f8f4;
  --muted: #687076;
  --line: #d8ded2;
  --panel: #ffffff;
  --green: #1f7a58;
  --green-dark: #0f4634;
  --blue: #275d86;
  --amber: #b96d1d;
  --red: #b34848;
  --shadow: 0 24px 70px rgba(21, 24, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(247, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 6vw, 88px) 40px;
  border-bottom: 1px solid var(--line);
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
}

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

.button,
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  font-weight: 800;
  cursor: pointer;
}

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

.secondary,
.copy {
  background: transparent;
  color: var(--ink);
}

.button:focus-visible,
.copy:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(39, 93, 134, 0.35);
  outline-offset: 3px;
}

.relay-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head,
.base-url,
.ledger div,
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.panel-head {
  padding: 16px 18px;
  background: var(--green-dark);
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.status-dot {
  color: #a9f2ce;
}

.base-url {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.base-url span,
.ledger span,
.route-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.base-url strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.route-grid div {
  min-height: 140px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.route-grid div:last-child {
  border-right: 0;
}

.route-grid div:nth-child(2n) {
  border-right: 0;
}

.route-grid div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.route-grid strong {
  display: block;
  margin: 16px 0 4px;
  color: var(--green);
  font-size: 34px;
}

.route-grid small {
  color: var(--muted);
}

.ledger {
  padding: 14px 20px 20px;
}

.ledger div {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.ledger div:last-child {
  border-bottom: 0;
}

.section,
.contact,
.disclaimer {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.section-title {
  max-width: 780px;
  margin-bottom: 28px;
}

.model-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.row {
  grid-template-columns: 1.2fr 0.8fr 0.7fr 1.3fr;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row.head {
  background: #edf1e8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.plan.featured {
  border-color: var(--green);
  box-shadow: inset 0 5px 0 var(--green);
}

.price {
  color: var(--green-dark);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.plan ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.note {
  margin: 22px 0 0;
  color: var(--muted);
}

.split,
.limits,
.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(22px, 5vw, 72px);
}

.flow {
  margin: 0;
  padding-left: 22px;
}

.flow li {
  margin-bottom: 12px;
}

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

.limits p,
.contact p,
.disclaimer p {
  color: var(--muted);
}

.contact {
  align-items: center;
  background: #edf1e8;
}

.contact-card {
  justify-self: start;
  display: grid;
  gap: 16px;
  width: min(100%, 340px);
}

.copy {
  justify-self: start;
  width: 100%;
  min-width: 260px;
  background: var(--panel);
}

.copy.copied {
  border-color: var(--green);
  color: var(--green-dark);
}

.wechat-qr {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1.35;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(21, 24, 27, 0.1);
}

.disclaimer {
  background: var(--ink);
  color: var(--paper);
}

.disclaimer p {
  max-width: 1040px;
  color: #d6dbdc;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 6vw, 88px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .limits,
  .contact,
  .plans {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .route-grid,
  .row {
    grid-template-columns: 1fr;
  }

  .route-grid div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-grid div:last-child {
    border-bottom: 0;
  }

  .row {
    gap: 6px;
  }

  .footer {
    flex-direction: column;
  }
}

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