:root {
  --ink: #10201d;
  --muted: #61716d;
  --paper: #f6f7f4;
  --white: #ffffff;
  --line: #dbe2de;
  --green: #0f6b55;
  --green-bright: #77d8b7;
  --amber: #e99a3e;
  --dark: #0d1b18;
  --dark-soft: #142824;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px;
  color: #eaf3ef;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 650; letter-spacing: .01em; }
.brand-mark { position: relative; width: 27px; height: 27px; display: inline-block; }
.brand-mark span { position: absolute; width: 18px; height: 18px; border-radius: 4px; }
.brand-mark span:first-child { top: 0; left: 0; background: var(--green-bright); }
.brand-mark span:last-child { right: 0; bottom: 0; border: 2px solid var(--amber); background: rgba(13, 27, 24, .5); }
.brand-mark.small { width: 23px; height: 23px; }
.brand-mark.small span { width: 15px; height: 15px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #a9bbb5; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: #fff; }
.header-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: #b8c6c2;
  font-size: 12px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #8c9b96; }
.header-status.online .live-dot { background: var(--green-bright); box-shadow: 0 0 0 5px rgba(119,216,183,.1); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 880px;
  padding: 150px 32px 86px;
  color: #f7fbf9;
  background: var(--dark);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 930px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a9bbb5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}
.eyebrow-line { width: 34px; height: 1px; background: var(--amber); }
h1 {
  margin: 26px 0 24px;
  font-family: "Iowan Old Style", "Songti SC", Georgia, serif;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
h1 span { color: var(--green-bright); }
.hero-lead {
  max-width: 720px;
  margin: 0 auto;
  color: #b4c3be;
  font-size: 17px;
  line-height: 1.8;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 650;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #0d1b18; background: var(--green-bright); }
.button-primary:hover { background: #8ce4c7; }
.button-quiet { color: #eaf3ef; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.button-quiet:hover { border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.08); }
.hero-proof {
  display: flex;
  justify-content: center;
  gap: 10px 24px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: #879a94;
  font-size: 12px;
}
.hero-proof span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--amber); }
.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100vw - 48px));
  margin: 58px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: #ecf0ee;
  box-shadow: 0 38px 110px rgba(0,0,0,.34);
}
.stage-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 38px;
  padding: 0 14px;
  color: #60716c;
  background: #e7ece9;
  border-bottom: 1px solid #d4ddd8;
  font-size: 11px;
}
.stage-dots { display: flex; gap: 5px; }
.stage-dots i { width: 7px; height: 7px; border-radius: 50%; background: #bac5c0; }
.stage-meta { margin-left: auto; }
.hero-stage img { display: block; width: 100%; height: auto; }

.section { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 104px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
.section-heading h2, .architecture-copy h2 {
  margin: 12px 0 0;
  font-family: "Iowan Old Style", "Songti SC", Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}
.section-heading p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.section-index { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-heading.compact { margin-bottom: 42px; }

.download-list { border-top: 1px solid var(--line); }
.download-row {
  display: grid;
  grid-template-columns: 62px minmax(220px, 1fr) 160px 180px;
  gap: 24px;
  align-items: center;
  min-height: 128px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}
.os-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.os-windows { color: #effaf6; background: var(--green); }
.os-mac { color: #2c2115; background: #f0cda2; }
.download-copy h3 { margin: 0 0 7px; font-size: 18px; }
.download-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.download-version { display: flex; flex-direction: column; gap: 5px; }
.download-version strong { font-size: 15px; }
.download-version span { color: var(--muted); font-size: 12px; }
.download-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 650; }
.download-link:hover .icon { transform: translateX(3px); }
.download-link .icon { transition: transform .18s ease; }
.download-note { margin: 22px 0 0; color: #7d8a86; font-size: 12px; }

.workflow-section { color: #eaf3ef; background: var(--dark-soft); }
.workflow-inner { padding-top: 94px; padding-bottom: 94px; }
.workflow-section .section-index { color: var(--green-bright); }
.workflow-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.13); }
.workflow-step { position: relative; min-height: 290px; padding: 34px 34px 10px 0; border-right: 1px solid rgba(255,255,255,.13); }
.workflow-step + .workflow-step { padding-left: 34px; }
.workflow-step:last-child { border-right: 0; }
.step-number { position: absolute; top: 22px; right: 28px; color: rgba(255,255,255,.18); font-family: Georgia, serif; font-size: 42px; }
.step-icon { width: 26px; height: 26px; margin-top: 22px; fill: none; stroke: var(--amber); stroke-width: 1.6; }
.workflow-step h3 { margin: 25px 0 12px; font-size: 20px; }
.workflow-step p { max-width: 300px; margin: 0; color: #9eb0aa; font-size: 13px; line-height: 1.75; }

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.refresh-button:disabled { opacity: .5; cursor: wait; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-item { min-height: 138px; padding: 24px 22px; border-right: 1px solid var(--line); }
.status-item:last-child { border-right: 0; }
.status-label { display: block; margin-bottom: 20px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.status-item strong { display: block; margin-bottom: 6px; font-size: 22px; font-weight: 600; }
.status-item small { color: var(--muted); }
.endpoint-row { display: flex; align-items: center; gap: 14px; padding: 18px 0 0; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.endpoint-row code { padding: 5px 8px; color: var(--ink); background: #e8edea; border-radius: 4px; }
.endpoint-state { margin-left: auto; color: var(--green); font-weight: 650; }

.architecture-section {
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 70px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
}
.architecture-copy p { max-width: 450px; color: var(--muted); line-height: 1.8; }
.architecture-flow { display: flex; align-items: center; gap: 12px; align-self: center; }
.architecture-flow div { flex: 1; min-width: 0; padding: 24px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.45); }
.architecture-flow div strong { display: block; margin-bottom: 7px; font-size: 15px; }
.architecture-flow div span { color: var(--muted); font-size: 11px; }
.architecture-flow b { color: var(--amber); font-weight: 500; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 34px max(32px, calc((100vw - 1180px) / 2));
  color: #a7b8b2;
  background: var(--dark);
  font-size: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; color: #eef6f2; font-size: 14px; font-weight: 650; }
.site-footer p { margin: 0; }
.footer-links { justify-self: end; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: #fff; }
.footer-links .icon { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { min-height: auto; padding-top: 128px; }
  h1 { font-size: 52px; }
  .section-heading h2, .architecture-copy h2 { font-size: 42px; }
  .download-row { grid-template-columns: 54px 1fr 150px; }
  .download-version { display: none; }
  .download-link { justify-self: end; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-step, .workflow-step + .workflow-step { min-height: 220px; padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .workflow-step:last-child { border-bottom: 0; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .status-item:nth-child(2) { border-right: 0; }
  .status-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .architecture-section { grid-template-columns: 1fr; gap: 44px; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-self: start; }
}

@media (max-width: 620px) {
  .site-header { padding: 18px 18px; gap: 14px; }
  .header-status { padding: 7px 9px; }
  .header-status span:last-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 118px 18px 56px; }
  .hero-copy { text-align: left; }
  h1 { font-size: 34px; line-height: 1.12; }
  .section-heading h2, .architecture-copy h2 { font-size: 36px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { justify-content: flex-start; }
  .button { width: 100%; }
  .hero-proof { justify-content: flex-start; gap: 8px 16px; }
  .hero-stage { width: 100%; margin-top: 38px; }
  .stage-meta { display: none; }
  .section { width: calc(100% - 36px); padding: 72px 0; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading p { margin-top: 18px; }
  .download-row { grid-template-columns: 48px 1fr; gap: 16px; min-height: 0; padding: 22px 0; }
  .os-mark { width: 44px; height: 44px; }
  .download-link { grid-column: 2; justify-self: start; margin-top: 2px; }
  .workflow-inner { width: calc(100% - 36px); padding-top: 72px; padding-bottom: 72px; }
  .status-grid { grid-template-columns: 1fr; }
  .status-item { border-right: 0; border-bottom: 1px solid var(--line); min-height: 110px; }
  .status-item:last-child { border-bottom: 0; }
  .status-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .architecture-section { width: calc(100% - 36px); padding: 72px 0 84px; }
  .architecture-flow { display: grid; grid-template-columns: 1fr; }
  .architecture-flow b { transform: rotate(90deg); justify-self: center; }
  .site-footer { padding: 30px 18px; }
}

@media (max-width: 380px) {
  h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
