@import url("/fonts/global/global-fonts.css");

:root {
  --ink: #080b0d;
  --ink-soft: #11161a;
  --graphite: #171d22;
  --graphite-2: #232b31;
  --paper: #f6f1e8;
  --paper-soft: #efe7d8;
  --cream: #fffaf0;
  --text: #f7f1e7;
  --text-soft: #c7beb0;
  --text-muted: #9d9588;
  --day-text: #1b1f22;
  --day-muted: #626861;
  --line: rgba(255, 250, 240, 0.16);
  --day-line: #d9d0c0;
  --accent: #d8b16f;
  --accent-strong: #f0c982;
  --signal: #8fe4e7;
  --green: #58b884;
  --radius: 8px;
  --font-brand: "Metropolis", "Inter", "PingFang SC", "PingFang TC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft JhengHei UI",
    sans-serif;
  --font-ui: "Inter", "PingFang SC", "PingFang TC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft JhengHei UI", sans-serif;
  --font-cjk: "PingFang SC", "PingFang TC", "Hiragino Sans GB",
    "Hiragino Kaku Gothic ProN", "Noto Sans SC", "Noto Sans CJK SC",
    "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft JhengHei UI",
    "Yu Gothic UI", Meiryo, "Malgun Gothic", sans-serif;
  --font-mono: "Ioskeley Mono", "SF Mono", "SFMono-Regular", "Cascadia Code",
    ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html:lang(zh) body,
html:lang(zh-Hans) body,
html:lang(zh-Hant) body {
  font-family: var(--font-cjk);
  line-height: 1.68;
  letter-spacing: 0.01em;
}

html:lang(zh) :is(h1, h2, h3, .headline, .section-title, .brand-name),
html:lang(zh-Hans) :is(h1, h2, h3, .headline, .section-title, .brand-name),
html:lang(zh-Hant) :is(h1, h2, h3, .headline, .section-title, .brand-name) {
  font-family: var(--font-cjk);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

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

button {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 13, 0.72);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: var(--radius);
  background: #07090b;
  object-fit: contain;
}

.brand-name {
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 500;
}

.topnav a {
  position: relative;
  padding: 4px 0;
  transition: color 160ms ease;
}

.topnav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--accent-strong);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.topnav a:hover {
  color: var(--cream);
}

.topnav a.is-active {
  color: var(--cream);
}

.topnav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.topnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
  color: var(--text);
  cursor: pointer;
}

.topnav-toggle svg {
  width: 18px;
  height: 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #15120d;
}

.secondary-button {
  border: 1px solid rgba(255, 250, 240, 0.3);
  background: rgba(255, 250, 240, 0.08);
  color: var(--cream);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button:hover {
  border-color: rgba(255, 250, 240, 0.5);
  background: rgba(255, 250, 240, 0.13);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding: 132px 0 96px;
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  transform: scale(1.02);
  transform-origin: 72% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.88) 33%, rgba(8, 11, 13, 0.46) 58%, rgba(8, 11, 13, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 11, 13, 0.18) 0%, rgba(8, 11, 13, 0.16) 58%, rgba(8, 11, 13, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: calc(92vh - 228px);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: clamp(3.1rem, 8.6vw, 6.9rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-body {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: 1.16rem;
  line-height: 1.72;
}

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

.hero-legal {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-legal a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-facts {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 44px 0 0;
}

.hero-facts div {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
}

.hero-facts div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-strong), transparent);
  content: "";
  opacity: 0.72;
}

.hero-facts dt {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-facts dd {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.48;
}

.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c1013;
  padding: 62px 0;
}

.intro-grid,
.integrations-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  column-gap: 64px;
  row-gap: 14px;
  align-items: start;
}

.intro-grid .section-kicker {
  grid-column: 1;
  grid-row: 1;
}

.intro-grid h2,
.section h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.95rem, 3vw, 2.72rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro-grid h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 500px;
}

.intro-grid p:not(.section-kicker),
.integrations-grid p,
.section-heading p:not(.section-kicker),
.final-panel p:not(.section-kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.intro-grid p:not(.section-kicker) {
  grid-column: 2;
  grid-row: 2;
  max-width: 560px;
  margin-top: 3px;
}

.section {
  padding: 68px 0;
}

.section-flow,
.section-tools {
  background: var(--paper);
  color: var(--day-text);
}

.section-flow .section-kicker,
.section-tools .section-kicker {
  color: #8f6a2f;
}

.section-flow h2,
.section-tools h2 {
  color: var(--day-text);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.wide {
  max-width: 900px;
}

.section-heading.wide p:not(.section-kicker) {
  margin-top: 16px;
}

.section-heading.compact {
  max-width: 820px;
}

.section-heading.split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: end;
}

.section-heading.split p:not(.section-kicker) {
  color: var(--day-muted);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-grid article {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--day-line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.62);
}

.flow-grid article::before,
.tool-grid article::before,
.system-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--signal), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.flow-grid span,
.tool-grid span,
.workflow-list span {
  color: #8f6a2f;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.flow-grid h3,
.system-grid h3,
.tool-grid h3,
.workflow-list h3 {
  margin: 14px 0 0;
  color: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.flow-grid p,
.system-grid p,
.tool-grid p,
.workflow-list p {
  margin: 9px 0 0;
  color: var(--day-muted);
  line-height: 1.64;
  text-wrap: pretty;
}

.section-system {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(143, 228, 231, 0.07), rgba(8, 11, 13, 0) 42%),
    #0b0f12;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.system-grid article {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.02)),
    rgba(255, 250, 240, 0.03);
}

.system-grid span {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.system-grid h3 {
  color: var(--text);
  font-size: clamp(1.18rem, 1.7vw, 1.52rem);
  line-height: 1.2;
}

.system-grid p {
  color: var(--text-soft);
}

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

.tool-grid article {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--day-line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.66);
}

.tool-grid h3 {
  color: var(--day-text);
}

.section-workflows {
  background: #0a0e11;
}

.workflow-list {
  position: relative;
  display: grid;
  border-top: 1px solid var(--line);
}

.workflow-list::before,
.workflow-list::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
}

.workflow-list::before {
  background: var(--line);
}

.workflow-list::after {
  background: linear-gradient(180deg, var(--accent-strong), var(--signal));
  transform: scaleY(0);
  transform-origin: top;
}

.workflow-list article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
  column-gap: 42px;
  row-gap: 8px;
  padding: 26px 0 26px 28px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.workflow-list article::before {
  position: absolute;
  top: 30px;
  left: -1px;
  width: 18px;
  height: 1px;
  background: var(--accent-strong);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.workflow-list span {
  color: var(--accent-strong);
  white-space: nowrap;
  word-break: keep-all;
}

.workflow-list h3 {
  grid-column: 2;
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  line-height: 1.22;
}

.workflow-list p {
  grid-column: 2;
  max-width: 900px;
  margin-top: 0;
  color: var(--text-soft);
}

.section-integrations {
  background: var(--ink-soft);
}

.integrations-grid p + p {
  margin-top: 18px;
}

.connection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.connection-pills span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
  padding: 0 13px;
  color: var(--cream);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image {
    animation: hero-pan 18s ease-in-out infinite alternate;
  }

  .hero-facts div::before {
    animation: fact-scan 3.8s ease-in-out infinite;
    animation-delay: calc(var(--motion-index, 0) * 220ms);
  }

  .motion-ready [data-motion].is-visible {
    animation: reveal-up 560ms cubic-bezier(0.19, 1, 0.22, 1) both;
    animation-delay: calc(var(--motion-index, 0) * 45ms);
  }

  .motion-ready .hero-content > [data-motion] {
    animation-duration: 720ms;
  }

  .motion-ready .flow-grid article::before,
  .motion-ready .tool-grid article::before,
  .motion-ready .system-grid article::before {
    transition:
      opacity 600ms ease,
      transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
    transition-delay: calc(var(--motion-index, 0) * 80ms + 220ms);
  }

  .motion-ready .flow-grid article.is-visible::before,
  .motion-ready .tool-grid article.is-visible::before,
  .motion-ready .system-grid article.is-visible::before {
    opacity: 0.78;
    transform: scaleX(1);
  }

  .motion-ready .workflow-list::after {
    transition: transform 1400ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .motion-ready .workflow-list.is-visible::after {
    transform: scaleY(1);
  }

  .motion-ready .workflow-list article::before {
    transition:
      opacity 420ms ease,
      transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
    transition-delay: calc(var(--motion-index, 0) * 90ms + 300ms);
  }

  .motion-ready .workflow-list article.is-visible::before {
    opacity: 1;
    transform: scaleX(1);
  }

  .system-grid article,
  .tool-grid article,
  .flow-grid article,
  .connection-pills span {
    transition:
      border-color 180ms ease,
      background 180ms ease,
      transform 180ms ease;
  }

  .system-grid article:hover,
  .tool-grid article:hover,
  .flow-grid article:hover {
    transform: translateY(-2px);
  }

  .system-grid article:hover {
    border-color: rgba(143, 228, 231, 0.34);
    background:
      linear-gradient(135deg, rgba(255, 250, 240, 0.1), rgba(143, 228, 231, 0.06)),
      rgba(255, 250, 240, 0.04);
  }

  .tool-grid article:hover,
  .flow-grid article:hover {
    border-color: #c1a46f;
    background: rgba(255, 250, 240, 0.86);
  }

  .connection-pills span:hover {
    border-color: rgba(143, 228, 231, 0.42);
    background: rgba(143, 228, 231, 0.08);
    transform: translateY(-1px);
  }
}

@keyframes hero-pan {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.06) translate3d(-1.3%, 0.7%, 0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fact-scan {
  0%,
  100% {
    opacity: 0.34;
    transform: translateY(-100%);
  }

  48%,
  58% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

.section-final {
  background: #0a0d10;
  padding-top: 42px;
}

.final-panel {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.02)),
    var(--graphite);
}

.final-panel p:not(.section-kicker) {
  margin-top: 20px;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 250, 240, 0.7);
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.86) 54%, rgba(8, 11, 13, 0.48) 100%),
      linear-gradient(180deg, rgba(8, 11, 13, 0.12) 0%, rgba(8, 11, 13, 0.9) 100%);
  }

  .intro-grid,
  .integrations-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .intro-grid .section-kicker,
  .intro-grid h2,
  .intro-grid p:not(.section-kicker) {
    grid-column: auto;
    grid-row: auto;
  }

  .intro-grid h2 {
    max-width: 680px;
  }

  .intro-grid p:not(.section-kicker) {
    max-width: 680px;
    margin-top: 0;
  }

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

  .workflow-list article {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 24px;
  }

  .workflow-list h3,
  .workflow-list p {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    position: sticky;
  }

  .topbar-inner {
    min-height: 0;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topnav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .topbar.is-open .topnav {
    display: flex;
  }

  .topnav a {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.08);
    padding: 11px 12px;
  }

  .topnav-toggle {
    order: 2;
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 68px;
  }

  .hero-image {
    opacity: 0.34;
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 11, 13, 0.9) 0%, rgba(8, 11, 13, 0.92) 48%, rgba(8, 11, 13, 0.98) 100%);
  }

  .hero-content {
    min-height: auto;
  }

  .hero h1 {
    font-size: 3.1rem;
    line-height: 1;
  }

  .hero-body {
    font-size: 1.02rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .intro-band,
  .section {
    padding: 56px 0;
  }

  .intro-grid h2,
  .section h2 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .flow-grid,
  .system-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid article,
  .tool-grid article,
  .system-grid article {
    min-height: 0;
  }

  .final-panel {
    padding: 30px 20px;
  }
}
