:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-muted: #edf0f2;
  --ink: #15191d;
  --text: #30363d;
  --muted: #66707a;
  --faint: #8b949e;
  --line: #d8dde2;
  --line-strong: #b9c1c9;
  --accent: #2f6f58;
  --accent-soft: #e0ebe6;
  --shadow: 0 26px 80px rgba(31, 35, 40, 0.14);
  --radius: 22px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 247, 248, 0.98) 44%, #f6f7f8 100%),
    radial-gradient(circle at 50% 0%, rgba(197, 204, 211, 0.42), transparent 44%);
  color: var(--text);
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  backdrop-filter: blur(20px);
}

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

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.nav a,
.language-toggle {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
}

.nav a:hover,
.nav a:focus-visible,
.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
}

.language-toggle {
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: min(880px, 88vh);
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 28px 42px;
}

.product-shot {
  position: relative;
  order: 2;
  width: 100%;
  height: 430px;
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid rgba(145, 154, 163, 0.34);
  border-radius: 32px;
  background: #eef1f3;
  box-shadow: 0 30px 90px rgba(31, 35, 40, 0.11);
}

.product-shot::after {
  display: none;
}

.window-bar {
  display: flex;
  gap: 8px;
  height: 42px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid #dce1e5;
  background: rgba(255, 255, 255, 0.72);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid #b8c0c8;
  background: #f7f8f9;
}

.app-preview {
  display: grid;
  grid-template-columns: 300px minmax(420px, 1fr) 220px;
  min-width: 1020px;
  height: calc(100% - 42px);
}

.preview-sidebar,
.preview-reader,
.preview-outline {
  min-width: 0;
  border-right: 1px solid #dce1e5;
}

.preview-sidebar {
  padding: 28px 18px;
  background: #e8ecef;
}

.preview-title strong,
.preview-title small {
  display: block;
}

.preview-title strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.1;
}

.preview-title small {
  margin-top: 8px;
  color: var(--muted);
}

.preview-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 26px 0;
}

.preview-filters span {
  border: 1px solid #aeb7bf;
  border-radius: 10px;
  padding: 10px;
  color: #293039;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.preview-tree {
  display: grid;
  gap: 8px;
  color: #49515a;
  font-size: 13px;
}

.tree-row {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  border-radius: 9px;
  padding: 0 8px;
  white-space: nowrap;
}

.tree-row span {
  border: 1px solid #c2c9d0;
  border-radius: 5px;
  padding: 2px 4px;
  color: #6d7680;
  font-size: 10px;
  font-weight: 760;
}

.tree-row time {
  margin-left: auto;
  color: #8b949e;
}

.tree-row.project {
  color: #1f252b;
  font-weight: 740;
}

.tree-row.folder {
  color: #59636d;
  font-weight: 690;
}

.tree-row.active {
  background: #d9dee3;
  color: #1f252b;
}

.preview-reader {
  padding: 26px 34px;
  background: #ffffff;
}

.reader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7b858f;
  font-size: 12px;
}

.preview-reader article {
  max-width: 670px;
  margin-top: 40px;
}

.doc-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.preview-reader h2 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.05;
}

.preview-reader p:not(.doc-label) {
  max-width: 540px;
  margin: 18px 0 0;
  color: #4b5560;
  font-size: 17px;
  line-height: 1.6;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 18px;
}

.doc-grid span {
  border: 1px solid #dbe0e5;
  border-radius: 10px;
  padding: 13px 12px;
  color: #293039;
  font-size: 13px;
  font-weight: 720;
}

.flow-diagram {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) 32px minmax(76px, 1fr) 32px minmax(76px, 1fr) 32px minmax(76px, 1fr);
  align-items: center;
  gap: 8px;
  overflow: hidden;
  min-height: 86px;
  border: 1px solid #dbe0e5;
  border-radius: 14px;
  background: #f5f6f7;
  padding: 18px;
}

.flow-node {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid #cfd6dd;
  border-radius: 12px;
  background: #ffffff;
  color: #293039;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 1px 0 rgba(31, 35, 40, 0.03);
}

.flow-arrow {
  position: relative;
  height: 2px;
  background: #aeb8c2;
}

.flow-arrow::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #aeb8c2;
  border-right: 2px solid #aeb8c2;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.preview-outline {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px 22px;
  background: #fbfcfd;
  color: #7b858f;
}

.preview-outline span {
  color: #5e6872;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.preview-outline b,
.preview-outline small {
  display: block;
  font-size: 13px;
}

.preview-outline b {
  color: #1f252b;
}

.recent-demo-header,
.recents-tabs,
.recents-list div {
  display: flex;
  align-items: center;
}

.recent-demo-header {
  justify-content: space-between;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
}

.recent-demo-header small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 680;
}

.recents-tabs {
  gap: 4px;
  margin-top: 12px;
  padding: 3px;
  border: 1px solid #dce1e5;
  border-radius: 999px;
  background: #f3f5f6;
}

.recents-tabs span {
  flex: 1;
  border-radius: 999px;
  padding: 6px 5px;
  color: #7b858f;
  text-align: center;
  font-size: 11px;
  font-weight: 740;
}

.recents-tabs .active {
  background: #ffffff;
  color: #252b31;
  box-shadow: 0 1px 4px rgba(31, 35, 40, 0.08);
}

.recents-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.recents-list div {
  min-width: 0;
  justify-content: space-between;
  gap: 14px;
  border-radius: 12px;
  background: #f7f8f9;
  padding: 13px 14px;
}

.recents-list strong,
.recents-list span {
  overflow: hidden;
  white-space: nowrap;
}

.recents-list strong {
  color: #30363d;
  font-size: 14px;
  font-weight: 720;
  text-overflow: ellipsis;
}

.recents-list span {
  flex: 0 0 auto;
  color: #8b949e;
  font-size: 12px;
  text-align: right;
}

.hero-copy {
  position: relative;
  order: 1;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 760px;
  padding: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 7vw, 84px);
  line-height: 0.98;
}

#hero-title {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.brand-word {
  display: inline-block;
  color: var(--accent);
}

html[lang="zh-CN"] .hero-copy {
  max-width: 920px;
}

html[lang="zh-CN"] #hero-title {
  max-width: 920px;
  font-size: clamp(52px, 6.2vw, 78px);
  line-height: 1.08;
  white-space: nowrap;
}

.hero-lede {
  max-width: 600px;
  margin: 24px 0 0;
  color: #3a4149;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 760;
}

.primary-link {
  border: 1px solid #15191d;
  background: #15191d;
  color: #ffffff;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: #30363d;
  outline: none;
}

.secondary-link {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
  color: #2f3740;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: #8a949e;
  background: #ffffff;
  outline: none;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  max-width: 1124px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.proof-strip div {
  min-height: 116px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--ink);
  font-size: 18px;
}

.proof-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.recent-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 70px;
  align-items: center;
}

.recent-demo {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 70px rgba(31, 35, 40, 0.08);
  padding: 26px;
}

.section,
.download-section,
.footer {
  max-width: 1124px;
  margin: 0 auto;
}

.section {
  padding: 110px 28px 0;
}

.section-copy h2,
.section-heading h2,
.comparison h2,
.download-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.section-copy p:not(.eyebrow),
.download-section p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.feature-grid article,
.comparison-grid div,
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.feature-mark {
  color: var(--faint);
  font-size: 12px;
  font-weight: 820;
}

.feature-grid h3,
.feature-grid p,
.comparison-grid strong,
.comparison-grid p {
  display: block;
}

.section-heading {
  display: grid;
  gap: 0;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article {
  min-height: 234px;
  padding: 26px;
}

.feature-grid h3 {
  margin: 42px 0 0;
  color: var(--ink);
  font-size: 22px;
}

.feature-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.comparison {
  display: grid;
  gap: 48px;
}

.comparison > div:first-child {
  display: grid;
  justify-items: center;
  text-align: center;
}

.comparison h2 {
  margin-inline: auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.comparison-grid div {
  padding: 24px;
}

.comparison-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.comparison-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: center;
  padding: 112px 28px 88px;
}

.download-card {
  display: grid;
  justify-items: center;
  padding: 32px;
  text-align: center;
}

.download-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.download-card strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: 20px;
}

.primary-link.full,
.secondary-link.full {
  width: 100%;
  margin-top: 24px;
}

.secondary-link.full {
  margin-top: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 740;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 18px;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .nav a {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: auto;
    padding: 52px 18px 36px;
  }

  .product-shot {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 380px;
    margin-top: 36px;
    border-radius: 24px;
  }

  .product-shot::after {
    display: none;
  }

  .app-preview {
    grid-template-columns: 230px 500px 190px;
    min-width: 920px;
    transform: translateX(-38px);
  }

  .hero-copy {
    order: 1;
    align-self: center;
    width: min(680px, calc(100vw - 36px));
    min-width: 0;
    max-width: min(680px, calc(100vw - 36px));
    padding: 0;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(42px, 10vw, 64px);
    line-height: 1;
  }

  html[lang="zh-CN"] .hero-copy {
    width: min(680px, calc(100vw - 36px));
    max-width: min(680px, calc(100vw - 36px));
  }

  html[lang="zh-CN"] #hero-title {
    max-width: 100%;
    font-size: clamp(42px, 10vw, 64px);
    white-space: normal;
  }

  .hero-lede {
    width: min(560px, 100%);
    max-width: min(560px, 100%);
    font-size: 17px;
  }

  .hero-actions {
    width: auto;
    max-width: 100%;
  }

  .proof-strip,
  .recent-showcase,
  .comparison,
  .comparison-grid,
  .download-section {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin: 0 18px;
  }

  .section {
    padding: 78px 18px 0;
  }

  .recent-showcase,
  .comparison,
  .download-section {
    gap: 28px;
  }

  .download-section {
    padding: 82px 18px 64px;
  }

  .footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  h1,
  .hero-lede,
  .hero-actions {
    width: min(340px, calc(100vw - 36px));
    max-width: min(340px, calc(100vw - 36px));
  }

  .hero-copy {
    align-self: flex-start;
    justify-items: start;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(38px, 11vw, 44px);
  }

  html[lang="zh-CN"] #hero-title {
    font-size: clamp(38px, 11vw, 44px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .proof-strip {
    border-radius: 16px;
  }

  .proof-strip div {
    min-height: 102px;
    padding: 20px;
  }

  .preview-sidebar {
    padding: 20px 14px;
  }

  .preview-title strong {
    font-size: 22px;
  }

  .preview-reader {
    padding: 22px;
  }

  .reader-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-reader article {
    margin-top: 30px;
  }
}
