:root {
  --bg: #f5f7fa;
  --bg-soft: #edf5f2;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-strong: #101820;
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #d8e1ea;
  --line-strong: #b8c4d2;
  --teal: #0f766e;
  --teal-bright: #44d7be;
  --blue: #2563eb;
  --coral: #c2410c;
  --amber: #b7791f;
  --focus: #0f766e;
  --shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 24px 64px rgba(15, 23, 42, 0.14);
  --radius-card: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 78% 0%, rgba(37, 99, 235, 0.09), transparent 340px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.05), transparent 420px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

button {
  font: inherit;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--ink);
  border-radius: var(--radius-card);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.lang-en,
.lang-zh {
  display: inline;
}

body[data-lang="zh"] .lang-en,
body[data-lang="en"] .lang-zh {
  display: none;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 225, 234, 0.72);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  left: 24px;
  min-height: 64px;
  padding: 7px 9px;
  position: fixed;
  right: 24px;
  top: 18px;
  z-index: 20;
}

@supports (backdrop-filter: blur(16px)) {
  .site-header {
    backdrop-filter: blur(16px);
  }
}

.site-header__brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  min-height: 44px;
  padding: 0 6px;
}

.site-header__brand img {
  border-radius: 8px;
  height: 34px;
  width: 34px;
}

.site-header__nav {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.site-header__nav a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 13px;
  transition: background 180ms ease, color 180ms ease;
}

.site-header__nav a:hover {
  background: #edf5f2;
  color: var(--ink);
}

.lang-toggle {
  background: var(--surface-strong);
  border: 1px solid var(--surface-strong);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  min-width: 56px;
  padding: 0 12px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lang-toggle:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.hero {
  align-items: center;
  color: #fff;
  display: flex;
  min-height: 82dvh;
  overflow: hidden;
  padding: 128px 24px 78px;
  position: relative;
}

.hero__backdrop {
  filter: saturate(1.08) contrast(1.04);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(6, 10, 14, 0.74) 0%, rgba(6, 10, 14, 0.5) 36%, rgba(6, 10, 14, 0.12) 72%, rgba(6, 10, 14, 0.02) 100%),
    linear-gradient(180deg, rgba(6, 10, 14, 0.08) 0%, rgba(6, 10, 14, 0.36) 100%);
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero__inner,
.section-block,
.site-footer {
  margin: 0 auto;
  max-width: var(--content);
  width: 100%;
}

.hero__inner {
  max-width: 820px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--teal-bright);
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  font-size: 4.9rem;
  font-weight: 800;
  max-width: 820px;
}

h2 {
  font-size: 2.55rem;
  font-weight: 800;
}

h3 {
  font-size: 1.18rem;
  font-weight: 800;
}

p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
  line-height: 1.62;
  margin-top: 20px;
  max-width: 740px;
  overflow-wrap: anywhere;
}

.hero__lead-extra {
  display: block;
  margin-top: 6px;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: var(--ink);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero__flow {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  max-width: 720px;
}

.hero__flow article {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-left: 3px solid var(--teal-bright);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 86px;
  padding: 14px 15px;
}

.hero__flow article:nth-child(2) {
  border-left-color: #93c5fd;
}

.hero__flow article:nth-child(3) {
  border-left-color: #fdba74;
}

.hero__flow article > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hero__flow strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.25;
}

.section-block {
  padding: 84px 24px;
}

.section-block--compact {
  padding-top: 68px;
}

.section-block--band {
  background:
    linear-gradient(180deg, rgba(237, 245, 242, 0.72), rgba(255, 255, 255, 0.82)),
    var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-width: none;
  padding-left: max(24px, calc((100% - var(--content)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--content)) / 2 + 24px));
}

.section-block__header {
  margin: 0 auto 34px;
  max-width: 960px;
  text-align: center;
}

.section-copy {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 18px auto 0;
  max-width: 68ch;
}

.value-grid,
.screenshot-grid,
.architecture-grid,
.capability-grid,
.artifact-strip {
  display: grid;
  gap: 18px;
}

.proof-layout {
  display: grid;
  gap: 18px;
}

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

.value-grid--path {
  gap: 14px;
}

.value-card,
.screenshot-card,
.diagram-card,
.feature-row,
.capability-grid article,
.setup-list article,
.code-shell,
.media-stage,
.diagram-panel,
.stage-list article,
.proof-summary,
.prereq-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.value-card,
.screenshot-card,
.diagram-card,
.media-stage,
.diagram-panel,
.code-shell,
.proof-summary,
.prereq-panel {
  box-shadow: var(--shadow-soft);
}

.value-card,
.feature-row,
.capability-grid article,
.setup-list article,
.stage-list article,
.proof-summary,
.prereq-panel {
  padding: 22px;
}

.value-card {
  position: relative;
}

.value-card::before {
  background: var(--teal);
  border-radius: 8px 8px 0 0;
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.value-card:nth-child(2)::before {
  background: var(--blue);
}

.value-card:nth-child(3)::before {
  background: var(--coral);
}

.value-card__label {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.value-card:nth-child(2) .value-card__label {
  color: var(--blue);
}

.value-card:nth-child(3) .value-card__label {
  color: var(--coral);
}

.value-card p:not(.value-card__label),
.proof-summary p:not(.value-card__label),
.feature-row p,
.capability-grid p:not(.capability-card__type),
.setup-list p,
.stage-list p,
.media-stage__copy p {
  color: var(--muted);
  margin-top: 12px;
}

.artifact-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.artifact-strip span {
  background: #eef7f4;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 44px;
  padding: 11px 12px;
  text-align: center;
}

.mobile-jump-nav {
  display: none;
}

.media-stage {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.62fr) minmax(320px, 0.58fr);
  margin-bottom: 22px;
  overflow: hidden;
}

.media-stage {
  box-shadow: var(--shadow-lift);
}

.media-stage video {
  aspect-ratio: 16 / 9;
  background: #0f172a;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-stage__copy {
  align-self: center;
  padding: 32px;
}

.signal-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.signal-list li {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-weight: 800;
  gap: 10px;
}

.signal-list li::before {
  background: var(--teal);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

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

.screenshot-card--wide {
  grid-column: 1 / -1;
}

.screenshot-card,
.diagram-card {
  margin: 0;
  overflow: hidden;
}

.screenshot-card img {
  aspect-ratio: 1600 / 966;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.screenshot-card figcaption,
.diagram-card figcaption {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
}

.screenshot-card figcaption span,
.diagram-card figcaption span {
  color: var(--muted);
  font-size: 0.95rem;
}

.split-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

.split-layout--reverse {
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
}

.diagram-panel {
  margin: 0;
  overflow: hidden;
}

.diagram-panel img,
.diagram-card img {
  background: #fff;
  width: 100%;
}

.stage-list,
.feature-stack,
.setup-list {
  display: grid;
  gap: 14px;
}

.stage-list article {
  align-items: start;
  display: grid;
  gap: 4px 16px;
  grid-template-columns: auto minmax(0, 1fr);
}

.stage-list article > span {
  grid-row: span 2;
}

.stage-list article,
.setup-list article,
.feature-row {
  box-shadow: none;
}

.stage-list article > span,
.setup-list article > span {
  color: var(--teal);
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

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

.capability-grid article {
  box-shadow: none;
}

.capability-grid article:nth-child(3n + 1) {
  border-top: 4px solid var(--teal);
}

.capability-grid article:nth-child(3n + 2) {
  border-top: 4px solid var(--blue);
}

.capability-grid article:nth-child(3n) {
  border-top: 4px solid var(--coral);
}

.capability-card {
  display: grid;
  gap: 8px;
}

.capability-card__type {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.quickstart-layout {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 0.52fr) minmax(260px, 0.68fr) minmax(0, 1.28fr);
}

.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.check-list li {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-weight: 800;
  gap: 10px;
}

.check-list li::before {
  background: var(--teal);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.code-shell {
  background: #101820;
  color: #edf5f2;
  overflow: hidden;
}

.code-shell__bar {
  align-items: center;
  background: #0b1117;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
}

.code-shell__bar a {
  color: var(--teal-bright);
  font-weight: 800;
}

.code-shell__hint {
  color: #a7f3d0;
  font-size: 0.84rem;
  font-weight: 800;
  margin: 16px 22px 0;
  text-transform: uppercase;
}

.code-shell pre {
  margin: 0;
  overflow-x: auto;
  padding: 12px 22px 22px;
}

.code-shell code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.96rem;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px 24px 46px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin-top: 6px;
  max-width: 720px;
}

.site-footer__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer__links a {
  color: var(--ink-soft);
  font-weight: 800;
  min-height: 44px;
  padding: 10px 0;
}

body.reveal-ready [data-reveal] {
  transform: translateY(22px);
  transition: transform 420ms ease;
}

body.reveal-ready [data-reveal].is-visible,
[data-reveal].is-visible {
  transform: translateY(0);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  section[id] {
    scroll-margin-top: 96px;
  }

  .site-header__nav a {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    min-height: 78dvh;
    padding-top: 122px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .value-grid,
  .screenshot-grid,
  .architecture-grid,
  .capability-grid,
  .artifact-strip,
  .split-layout,
  .split-layout--reverse,
  .quickstart-layout,
  .media-stage {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(15, 118, 110, 0.06), transparent 280px),
      var(--bg);
  }

  section[id] {
    scroll-margin-top: 82px;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.86);
    gap: 10px;
    left: 12px;
    min-height: 58px;
    right: 12px;
    top: 12px;
  }

  .site-header__brand {
    min-width: 0;
  }

  .site-header__brand img {
    height: 34px;
    width: 34px;
  }

  .site-header__brand span {
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header__nav {
    display: none;
  }

  .lang-toggle {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 54px;
  }

  .hero {
    align-items: flex-end;
    min-height: 76dvh;
    padding: 98px 18px 34px;
  }

  .hero__backdrop {
    object-position: 46% top;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(6, 10, 14, 0.26) 0%, rgba(6, 10, 14, 0.62) 34%, rgba(6, 10, 14, 0.9) 100%);
  }

  h1 {
    font-size: 2.52rem;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.16;
  }

  body[data-lang="zh"] h2 {
    word-break: break-all;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 34ch;
  }

  .hero__lead-extra {
    display: none;
  }

  .hero__actions {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .hero__flow {
    display: none;
  }

  .section-block,
  .section-block--band {
    padding: 62px 18px;
  }

  .section-block__header {
    margin-bottom: 26px;
    text-align: left;
  }

  .mobile-jump-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 18px;
  }

  .mobile-jump-nav a {
    align-items: center;
    background: var(--surface-subtle);
    border-radius: 8px;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    overflow-wrap: anywhere;
    padding: 8px;
    text-align: center;
  }

  .media-stage__copy,
  .value-card,
  .feature-row,
  .capability-grid article,
  .setup-list article,
  .stage-list article,
  .proof-summary,
  .prereq-panel {
    padding: 18px;
  }

  .media-stage__copy {
    padding-top: 22px;
  }

  .stage-list article {
    grid-template-columns: 1fr;
  }

  .artifact-strip {
    gap: 8px;
  }

  .artifact-strip span {
    text-align: left;
  }

  .screenshot-card figcaption,
  .diagram-card figcaption {
    padding: 14px 16px 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}
