/* CrossDesk palette derived from the two colors in the product logo. */
:root {
  color-scheme: light;
  --brand-cross: #4587db;
  --brand-desk: #255397;
  --ink: #19365b;
  --blue: var(--brand-desk);
  --blue-hover: #1e4279;
  --muted: #526a87;
  --line: #d6e3f2;
  --paper: #f5f8fc;
  --blue-soft: #edf4fc;
  --gutter: max(6%, calc((100% - 1280px) / 2));
  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family:
    "Sora",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
[hidden],
html[lang="zh-CN"] [data-lang="en"],
html[lang="en"] [data-lang="zh"] {
  display: none !important;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex-shrink: 0;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
::selection {
  color: var(--brand-desk);
  background: #d5e5f8;
}
.page-shell {
  padding-inline: var(--gutter);
}
.text-blue {
  color: var(--brand-cross);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  color: #fff;
  background: var(--blue);
}
.skip-link:focus {
  top: 16px;
}

/* Navigation */
.brand {
  color: var(--brand-cross);
}
.brand-desk {
  color: var(--brand-desk);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.055em;
}
.brand img {
  display: block;
  width: 36px;
  height: 36px;
}
.brand-caption {
  padding-left: 22px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.site-desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.site-desktop-nav a {
  padding-block: 12px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.18s;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #91a5bf;
  font-size: 12px;
  white-space: nowrap;
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  color: var(--muted);
  background: transparent;
  border: 0;
}
.language-switch a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}
#menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
}
#mobile-menu {
  position: absolute;
  inset: 100% 0 auto;
  max-height: calc(100dvh - 76px);
  overflow: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px #2553970a;
}
#mobile-menu nav {
  display: grid;
  padding-block: 12px 20px;
}
#mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--blue-soft);
}

/* Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 14px 23px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    transform 0.2s var(--ease);
}
.button-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.button-secondary {
  color: var(--brand-desk);
  border-color: #b9cfe9;
  background: #ffffffc9;
}
.header-cta {
  min-height: 44px;
  padding: 10px 17px;
  background: var(--brand-desk);
  border-color: var(--brand-desk);
  color: #fff;
  font-size: 12px;
  gap: 12px;
  white-space: nowrap;
}
.github-link,
#mobile-menu .github-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.github-stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.github-stars [data-github-stars] {
  min-width: 4ch;
}
.header-cta .github-stars {
  padding-left: 12px;
  border-left: 1px solid #ffffff4d;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: #b9cfe9;
  text-underline-offset: 5px;
}
.button:active {
  transform: translateY(1px);
}

/* Product hero */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(115deg, #f5f9fe 0%, #edf4fc 52%, #e0ebf8 100%);
}
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, var(--paper), transparent 32%);
  pointer-events: none;
}
.hero-wordmark {
  position: absolute;
  inset: auto 0 0;
  overflow: hidden;
  z-index: -1;
  color: transparent;
  background: linear-gradient(
    165deg,
    #ffffffa6 8%,
    #4587db26 48%,
    #ffffff66 88%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px #ffffff66;
  font-size: min(18vw, 300px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 5px 22px #2553971a;
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 40px;
  padding-block: 64px 36px;
}
.hero-copy,
.hero-visual {
  min-width: 0;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.085em;
}
.section-kicker::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}
h1 {
  margin: 0 0 26px;
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.05em;
}
.hero-description {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 14px;
}
.hero-visual {
  position: relative;
  margin: 8px -28px 0 0;
  padding-top: 12px;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 25px #25539719);
}
.hero-bottom {
  padding-block: 20px;
  position: relative;
}
.hero-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}
.live-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  color: var(--muted);
  font-size: 11px;
}
.live-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.live-stats strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Homepage sponsors */
.hero-sponsors {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "title brands";
  align-items: center;
  gap: 0 16px;
  padding-block: 8px;
  background: #fff;
  border-block: 1px solid var(--line);
}
.hero-sponsors + .hero-bottom::before {
  display: none;
}
#hero-sponsors-title {
  grid-area: title;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
}
.hero-sponsor-track {
  grid-area: brands;
  min-width: 0;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
}
.hero-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding-inline: 8px;
  line-height: 1.45;
  outline-offset: -2px;
}
.hero-sponsor img {
  flex: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-sponsor strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.hero-sponsor strong [lang] {
  display: inline-block;
  max-width: 100%;
}
.hero-sponsor:is(:hover, :focus-visible) {
  background: var(--blue-soft);
}
.hero-sponsor-row,
.hero-sponsor-group {
  display: flex;
  gap: 8px;
}
.hero-sponsor-row {
  width: max-content;
}
#hero-sponsor-list {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
#hero-sponsor-list.is-scrolling {
  scrollbar-width: none;
}
.hero-sponsor-group {
  flex: none;
}
.hero-sponsor-group .hero-sponsor {
  flex: none;
  width: 190px;
}
.sponsor-section {
  padding-block: clamp(40px, 5vw, 72px);
}
.home-sponsors {
  text-align: center;
}
.home-sponsors h2 {
  margin-bottom: 24px;
}
.sponsor-tier-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.sponsor-tier-title::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.sponsor-tier[data-tier="gold"] { --sponsor-logo-limit: 80px; }
.sponsor-tier[data-tier="silver"] { --sponsor-logo-limit: 64px; }
.sponsor-tier[data-tier="community"] { --sponsor-logo-limit: 48px; }
.home-sponsors .sponsor-tier {
  max-width: 1040px;
  margin: 0 auto 24px;
}
.sponsor-tier-cards {
  display: grid;
  gap: 12px;
}
.home-sponsors .sponsor-tier-cards {
  grid-template-columns: minmax(0, 1fr);
}
.home-sponsor-card {
  display: grid;
  grid-template-columns: clamp(56px, 12vw, 128px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  min-width: 0;
  padding: clamp(12px, 2vw, 20px) clamp(12px, 3vw, 24px);
  background: var(--paper);
  text-align: start;
  overflow-wrap: anywhere;
}
.home-sponsor-logo {
  justify-self: center;
  width: min(100%, var(--sponsor-logo-limit, 128px));
}
.home-sponsor-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.home-sponsor-description h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.home-sponsor-brand > [aria-hidden] {
  color: var(--muted);
  font-size: 0.8em;
}
.home-sponsor-brand:is(:hover, :focus-visible),
.project-sponsor-identity:is(:hover, :focus-visible) h5 {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 4px;
}
.home-sponsor-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.home-sponsor-description p {
  margin: 0;
}
.home-sponsor-description p + p {
  margin-top: 6px;
}

/* Capabilities and section hierarchy */
.capability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 32px;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.capability-strip article {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-inline: 30px;
  border-right: 1px solid var(--line);
}
.capability-strip article:first-child {
  padding-left: 0;
}
.capability-strip article:last-of-type {
  padding-right: 0;
  border-right: 0;
}
.capability-links {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.capability-index {
  color: var(--brand-cross);
  font:
    12px/1.9 ui-monospace,
    monospace;
}
.capability-strip h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.8;
}
.capability-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.preview-section {
  padding-block: 92px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}
.section-kicker {
  margin-bottom: 16px;
  font-size: 11px;
}
h2 {
  margin: 0;
  font-size: clamp(27px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.04em;
}
.section-summary {
  max-width: 330px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* Download dialog */
html:has(.download-dialog[open]) {
  overflow: hidden;
}
.download-dialog {
  position: fixed;
  inset: 0;
  width: min(940px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px #122d5238;
}
/* Fragment links on the guide also open the panel without JavaScript. */
.download-dialog:not([open]):is(:target, :has(:target)) {
  display: block;
  z-index: 60;
  height: fit-content;
  box-shadow: 0 0 0 100vmax rgb(15 35 60 / 48%);
}
.download-dialog::backdrop {
  background: rgb(15 35 60 / 48%);
}
.download-dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.download-dialog h2 {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.35;
}
.dialog-release {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.dialog-release strong {
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
}
.download-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
}
.dialog-packages {
  padding: 24px;
}
.download-dialog h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.download-dialog p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.dialog-packages details {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.dialog-packages summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 14px;
  color: var(--blue);
  background: var(--paper);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.dialog-packages summary::-webkit-details-marker {
  display: none;
}
.dialog-packages summary svg {
  width: 18px;
  height: 18px;
}
.dialog-packages summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.dialog-packages details[open] summary {
  background: var(--blue-soft);
}
.dialog-packages details[open] summary::after {
  transform: rotate(225deg);
}
.platform-packages {
  display: grid;
  gap: 8px;
  padding: 6px 12px 12px;
}
.download-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 4px 24px;
  border-top: 1px solid var(--line);
}
.dialog-packages .download-link {
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--blue);
}
.dialog-packages .download-link[href]::after {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23255397' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4'/%3E%3C/svg%3E");
}
.dialog-packages .download-link[aria-disabled="true"] {
  color: var(--muted);
  cursor: not-allowed;
}
.dialog-sponsorship {
  padding: clamp(24px, 3vw, 36px);
  background: var(--blue-soft);
  border-left: 1px solid var(--line);
}
.dialog-sponsorship h3 {
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.3;
}
.dialog-sponsorship p {
  margin: 8px 0 0;
  font-size: 14px;
}
.project-sponsor-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  align-items: start;
}
.project-sponsor {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.project-sponsor-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.project-sponsor-identity img {
  width: min(clamp(60px, 9vw, 72px), var(--sponsor-logo-limit, 72px));
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}
.project-sponsor-identity h5 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.project-sponsor-identity h5 [lang] {
  font-size: 0.85em;
}
.project-sponsor-identity h5 [aria-hidden] {
  color: var(--blue);
  font-size: 0.85em;
  line-height: 1;
}
.project-sponsor-description {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.project-sponsor-description p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.project-sponsor-description p + p {
  margin-top: 6px;
}
.sponsor-directory {
  margin-top: 10px;
}
.sponsor-directory summary {
  width: fit-content;
  padding-block: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.sponsor-directory summary::-webkit-details-marker,
.sponsor-directory:not([open]) .directory-back,
.sponsor-directory[open] .directory-open {
  display: none;
}
.sponsor-directory:not([open]) + .project-sponsor-list,
.sponsor-directory:not([open]) + .project-sponsor-list .sponsor-tier-cards:has([data-preview] + [data-preview]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sponsor-directory:not([open]) + .project-sponsor-list .sponsor-tier:has([data-preview] + [data-preview]) {
  grid-column: 1 / -1;
}
.project-sponsor-list .sponsor-tier:not(:has(.project-sponsor:not([hidden]))),
.sponsor-directory:not([open]) + .project-sponsor-list .project-sponsor:not([data-preview]),
.sponsor-directory:not([open]) + .project-sponsor-list .project-sponsor-description {
  display: none;
}
.sponsor-directory:not([open]) + .project-sponsor-list .project-sponsor-identity {
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.sponsor-directory:not([open]) + .project-sponsor-list h5 {
  font-size: 15px;
}
.sponsor-directory[open] + .project-sponsor-list .sponsor-tier-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.download-dialog:has(.sponsor-directory[open]) .download-dialog-body {
  display: block;
}
.download-dialog:has(.sponsor-directory[open]) :is(.dialog-packages, .dialog-support-title, .dialog-sponsor-links) {
  display: none;
}
.sponsor-search {
  display: grid;
  gap: 4px;
  max-width: 32em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.sponsor-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b9cfe9;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font-size: 16px;
}
.sponsor-results:empty {
  display: none;
}
.dialog-support-title {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 600;
}
.dialog-sponsor-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.dialog-sponsor-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 86px;
  padding: 10px 4px;
  border: 1px solid #b9cfe9;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.dialog-sponsor-links img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .download-dialog {
    width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .download-dialog-header {
    gap: 10px;
    padding: 12px 14px;
  }
  .download-dialog-header img {
    width: 32px;
    height: 32px;
  }
  .download-dialog-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .dialog-packages,
  .dialog-sponsorship {
    padding: 16px;
  }
  .dialog-packages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
  }
  .dialog-packages h3,
  .dialog-packages details[open] {
    grid-column: 1 / -1;
  }
  .dialog-packages details {
    margin-top: 0;
  }
  .dialog-packages summary {
    gap: 6px;
    padding-inline: 8px;
    font-size: 13px;
  }
  .dialog-sponsorship {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Product screenshots */
.preview-section {
  padding-top: 80px;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.preview-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.preview-tabs button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  transition:
    color 0.18s,
    background 0.18s;
}
.preview-tabs button[aria-pressed="true"] {
  color: var(--blue);
  background: var(--blue-soft);
}
.preview-tabs button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-cross);
}
.mySwiper {
  border: 1px solid var(--line);
  background: #fff;
  --swiper-theme-color: var(--blue);
  --swiper-pagination-bottom: 22px;
}
.mySwiper .swiper-slide {
  height: auto;
  align-items: stretch;
}
.preview-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 34px 48px 54px;
}
.preview-slide h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.6;
}
.preview-slide p {
  min-height: 26px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.preview-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 24px;
}
.preview-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px #2553970a;
}
.preview-slide .mobile-client-image {
  width: min(100%, 860px);
  max-height: none;
  border: 0;
  box-shadow: none;
}

.preview-caption {
  margin-block: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.mcp-demo-media {
  display: block;
  width: 100%;
  max-width: 742px;
}

.mcp-demo {
  display: block;
  width: 100%;
  max-width: 742px;
  height: auto;
  margin-inline: auto;
  background: #080808;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px #2553970a;
}

.cli-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin-block: 24px 12px;
}
.cli-gallery figure {
  min-width: 0;
  margin: 0;
}
.cli-gallery a {
  display: block;
}
.cli-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border: 1px solid var(--line);
}
.cli-gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.preview-slide .cli-capture-note {
  min-height: 0;
  margin-bottom: 16px;
  font-size: 12px;
}

@media (max-width: 680px) {
  .cli-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

.mySwiper .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 0;
  opacity: 1;
  background: #b9cfe9;
  transition: width 0.18s;
}
.mySwiper .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--blue);
}

/* Contact and footer */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  row-gap: 32px;
  padding-block: 64px;
  background: var(--blue-soft);
}
.contact-section h2 {
  font-size: clamp(26px, 2.6vw, 36px);
}
.contact-section p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}
.contact-email {
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sponsorship {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}
.home-sponsors + .sponsorship {
  max-width: 1040px;
  margin: 28px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.sponsorship h2 {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: normal;
}
.sponsor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sponsor-link {
  min-height: 44px;
  padding: 8px 14px;
  gap: 8px;
  color: var(--brand-desk);
  background: #fff;
  border-color: var(--line);
  white-space: nowrap;
}
.sponsor-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.site-footer {
  color: var(--brand-desk);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 23px;
  color: var(--muted);
  font-size: 11px;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .site-desktop-nav a:hover,
  .text-link:hover,
  .contact-email:hover {
    color: var(--blue);
  }
  .button:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
  }
  .button-primary:hover,
  .header-cta:hover {
    background: var(--blue-hover);
    color: #fff;
  }
  .button-secondary:hover,
  .sponsor-link:hover,
  .dialog-packages summary:hover,
  .dialog-close:hover,
  .dialog-packages .download-link[href]:hover,
  .preview-tabs button:hover,
  #mobile-menu a:hover {
    background: var(--blue-soft);
    color: var(--blue);
  }
  .dialog-sponsor-links a:hover {
    border-color: var(--blue);
    background: var(--paper);
  }
  .site-footer a:hover {
    color: var(--brand-desk);
  }
}
@media (max-width: 1320px) {
  .brand-caption {
    display: none;
  }
}
@media (max-width: 1180px) {
  .site-header-inner {
    gap: 18px;
  }
  .site-desktop-nav {
    gap: 16px;
  }
  .hero-layout {
    gap: 24px;
  }
  h1 {
    font-size: 40px;
  }
  .hero-actions .button {
    padding-inline: 18px;
    gap: 16px;
  }
}
@media (max-width: 960px) {
  .site-header-inner {
    min-height: 76px;
  }
  #menu {
    display: none;
  }
  #menu-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .header-actions {
    gap: 18px;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-block: 48px 32px;
  }
  h1 {
    font-size: 34px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .button {
    font-size: 12px;
    min-height: 48px;
  }
  .hero-visual {
    margin-right: -12px;
  }
  .capability-strip article {
    padding-inline: 18px;
    gap: 12px;
  }
  .capability-strip h2 {
    font-size: 13px;
  }
  .capability-strip p {
    font-size: 11px;
  }

  .preview-section {
    padding-block: 64px;
  }
  .section-heading {
    gap: 30px;
  }
  .section-summary {
    max-width: 280px;
    font-size: 12px;
  }
  .preview-tabs button {
    padding-inline: 12px;
    font-size: 12px;
    gap: 8px;
  }
}
@media (max-width: 680px) {
  :root {
    --gutter: 6%;
  }
  html {
    scroll-padding-top: 92px;
  }
  .site-header-inner {
    min-height: 72px;
    gap: 12px;
  }
  .brand {
    font-size: 23px;
    gap: 7px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .header-actions {
    gap: 10px;
  }
  .language-switch {
    gap: 0;
  }
  .language-switch button {
    min-width: 28px;
  }
  #menu-toggle {
    width: 40px;
    height: 40px;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-block: 48px 28px;
  }
  h1 {
    font-size: clamp(31px, 7.6vw, 46px);
    line-height: 1.45;
    margin-bottom: 20px;
  }
  .hero-description {
    max-width: 500px;
    font-size: 14px;
  }
  .hero-actions {
    margin-top: 26px;
    gap: 10px;
  }
  .hero-actions .button {
    padding-inline: 16px;
    gap: 14px;
    min-height: 50px;
  }
  .hero-links {
    margin-top: 10px;
    gap: 24px;
  }
  .hero-visual {
    margin: 0;
    padding-top: 0;
  }
  .hero-bottom {
    padding-block: 18px;
  }
  .live-stats {
    gap: 8px 20px;
    font-size: 10px;
  }
  .live-stats > span {
    gap: 8px;
  }
  .live-stats strong {
    font-size: 13px;
  }
  .capability-strip {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }
  .capability-strip article,
  .capability-strip article:first-child,
  .capability-strip article:last-of-type {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .capability-strip article:last-of-type {
    border-bottom: 0;
  }
  .capability-links {
    margin-top: 0;
    padding-block: 20px 12px;
  }
  .capability-strip h2 {
    font-size: 14px;
  }
  .capability-strip p {
    font-size: 12px;
    margin-top: 4px;
  }

  .preview-section {
    padding-block: 52px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
  }
  .section-kicker {
    font-size: 10px;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 27px;
  }
  .section-summary {
    max-width: 100%;
    font-size: 13px;
  }
  .section-summary br {
    display: none;
  }
  .preview-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
  }
  .preview-tabs button {
    min-height: 50px;
    padding: 12px;
    font-size: 12px;
  }
  .preview-tabs button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .preview-slide {
    padding: 26px 16px 44px;
  }
  .preview-slide h3 {
    font-size: 19px;
  }
  .preview-slide p {
    min-height: 44px;
    font-size: 11px;
  }
  .preview-image {
    margin-top: 18px;
  }
  .preview-slide img {
    height: auto;
    max-height: 320px;
  }
  .contact-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-block: 48px;
  }
  .contact-section h2 {
    font-size: 26px;
  }
  .sponsorship {
    flex-direction: column;
  }
  .sponsor-links {
    justify-content: center;
    gap: 8px;
  }
  .sponsor-link {
    padding-inline: 10px;
    font-size: 12px;
  }
  .footer-bottom {
    align-items: flex-start;
    gap: 18px;
    font-size: 10px;
  }
  .footer-bottom nav {
    gap: 18px;
  }
  .footer-bottom > a:last-child {
    width: 100%;
  }
}
@media (max-width: 680px) {
  .hero-sponsors {
    gap: 0 10px;
  }
  .hero-sponsor-track {
    padding-inline-start: 4px;
  }
}
@media (max-width: 680px) and (max-height: 760px) {
  .hero:has(.hero-sponsors) {
    display: flex;
    flex-direction: column;
  }
  .hero:has(.hero-sponsors) .hero-layout {
    display: contents;
  }
  .hero:has(.hero-sponsors) .hero-copy {
    padding: 16px var(--gutter) 8px;
  }
  .hero:has(.hero-sponsors) .hero-actions {
    margin-top: 20px;
  }
  .hero:has(.hero-sponsors) .hero-visual {
    order: 1;
    padding: 12px var(--gutter) 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Download dialog, sponsorship removed: single column */
.download-dialog-body {
  grid-template-columns: minmax(0, 1fr);
}
.dialog-packages {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}
