:root {
  --ink: #151a21;
  --muted: #59636f;
  --line: #dce1e6;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --night: #0b1019;
  --night-soft: #171f2d;
  --accent: #087f5b;
  --accent-dark: #056347;
  --signal: #e87835;
  --focus: #f2b84b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid rgba(220, 225, 230, 0.86);
  background: rgba(255, 255, 255, 0.96);
}

.brand,
.main-nav a,
.language-link,
.icon-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.brand {
  justify-self: start;
  gap: 9px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a,
.language-link {
  color: #46515d;
  font-size: 14px;
}

.main-nav a:hover,
.language-link:hover {
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.icon-link {
  justify-content: center;
  width: 44px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 580px;
  height: min(720px, calc(100dvh - 112px));
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("/assets/desktop-theme-hero.v1.webp");
  background-position: center;
  background-size: cover;
}

.hero-background::after {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.34);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: #c4ccd5;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: var(--accent-dark);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: 56px;
  font-weight: 650;
  line-height: 1.14;
}

.hero-lead {
  max-width: 690px;
  margin: 24px 0 30px;
  color: #e5eaf0;
  font-size: 20px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.primary-action:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.secondary-action {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-note {
  margin: 20px 0 0;
  color: #c4ccd5;
  font-size: 13px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.proof-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  color: #394450;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.proof-strip span + span {
  border-left: 1px solid var(--line);
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.workflow-section,
.feature-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

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

.section-heading h2,
.page-cta h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
}

.section-heading > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 54px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.workflow-list li {
  min-height: 240px;
  padding: 32px 36px 32px 0;
}

.workflow-list li + li {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.workflow-list span {
  color: var(--signal);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
}

.workflow-list h3 {
  margin: 42px 0 8px;
  font-size: 22px;
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
}

.product-band {
  padding: 104px 0;
  background: var(--night);
  color: var(--paper);
}

.section-heading.light > p:not(.eyebrow) {
  color: #b9c3ce;
}

.product-media {
  margin: 54px 0 0;
  overflow: hidden;
  border: 1px solid #323d4a;
  border-radius: 6px;
  background: var(--night-soft);
}

.product-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 54px;
}

.product-media-grid .product-media {
  margin: 0;
}

.product-media img {
  width: 100%;
  height: auto;
}

.product-media figcaption,
.theme-media figcaption,
.content-media figcaption {
  padding: 14px 16px;
  color: #b9c3ce;
  font-size: 13px;
}

.theme-band {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.theme-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: 64px;
  align-items: center;
}

.theme-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.theme-media img {
  width: 100%;
  height: auto;
}

.theme-media figcaption,
.content-media figcaption {
  color: var(--muted);
}

.feature-list {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.feature-list a {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(280px, 1.3fr) 44px;
  gap: 28px;
  align-items: center;
  min-height: 112px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.feature-list strong {
  font-size: 19px;
}

.feature-list span {
  color: var(--muted);
}

.feature-list b {
  color: var(--accent);
  font-size: 24px;
  text-align: right;
}

.feature-list a:hover strong {
  color: var(--accent-dark);
}

.release-band {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background: #edf5f1;
}

.release-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.release-facts,
.download-facts dl {
  margin: 0;
  border-top: 1px solid #c5d7ce;
}

.release-facts div,
.download-facts dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #c5d7ce;
}

.release-facts dt,
.download-facts dt {
  font-weight: 700;
}

.release-facts dd,
.download-facts dd {
  min-width: 0;
  margin: 0;
  color: #4b5a52;
  overflow-wrap: anywhere;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.content-hero {
  padding-top: 76px;
  padding-bottom: 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  min-height: 24px;
}

.content-hero h1 {
  color: var(--ink);
  font-size: 50px;
}

.content-lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.content-hero .download-actions {
  margin-top: 32px;
}

.content-hero .secondary-action {
  color: var(--accent-dark);
}

.content-media-list {
  display: grid;
  gap: 28px;
  margin-bottom: 82px;
}

.content-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--night);
}

.content-media img {
  width: 100%;
  height: auto;
}

.content-media--compact {
  width: min(760px, 100%);
  margin-inline: auto;
}

.download-facts {
  margin-bottom: 84px;
  padding: 32px 40px;
  border: 1px solid #c5d7ce;
  border-radius: 6px;
  background: #edf5f1;
}

.download-facts dl div:last-child {
  border-bottom: 0;
}

.prose-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  padding-bottom: 112px;
}

.prose-shell section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.prose-shell section:last-child {
  border-bottom: 1px solid var(--line);
}

.prose-shell h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.3;
}

.prose-shell p,
.prose-shell li {
  color: #414d59;
  font-size: 17px;
}

.prose-shell p {
  margin: 14px 0 0;
}

.prose-shell ul {
  margin: 18px 0 0;
  padding-left: 23px;
}

.prose-shell li + li {
  margin-top: 8px;
}

.prose-shell pre {
  margin: 22px 0 0;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: 5px;
  background: var(--night);
  color: #eff4f8;
}

.inline-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent-dark);
  font-weight: 700;
}

.page-cta {
  padding: 80px 0;
  background: var(--night);
  color: var(--paper);
}

.page-cta .section-shell {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.5fr) auto;
  gap: 40px;
  align-items: center;
}

.page-cta p {
  margin: 0;
  color: #bbc5cf;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  min-height: 104px;
  padding: 24px max(24px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.site-footer p {
  margin: 0;
}

.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100dvh;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
}

.not-found h1 {
  color: var(--ink);
  font-size: 48px;
}

.not-found .secondary-action {
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    height: min(680px, calc(100dvh - 84px));
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip span:nth-child(3) {
    border-left: 0;
  }

  .proof-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .workflow-list,
  .release-grid,
  .product-media-grid,
  .theme-grid,
  .page-cta .section-shell {
    grid-template-columns: 1fr;
  }

  .workflow-list li,
  .workflow-list li + li {
    min-height: 180px;
    padding: 28px 0;
    border-left: 0;
  }

  .workflow-list li + li {
    border-top: 1px solid var(--line);
  }

  .workflow-list h3 {
    margin-top: 20px;
  }

  .feature-list a {
    grid-template-columns: minmax(180px, 0.8fr) 1.2fr 32px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 30px 18px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 60px;
  }

  .brand span {
    font-size: 14px;
  }

  .language-link {
    font-size: 13px;
  }

  .hero {
    min-height: 560px;
    height: calc(100dvh - 86px);
  }

  .hero-content,
  .section-shell {
    width: min(100% - 36px, var(--max));
  }

  h1,
  .content-hero h1 {
    font-size: 38px;
  }

  .hero-lead,
  .content-lead {
    font-size: 17px;
  }

  .hero-actions,
  .download-actions {
    display: grid;
  }

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

  .proof-strip span {
    min-height: 58px;
    padding: 10px;
    font-size: 12px;
  }

  .workflow-section,
  .feature-section,
  .product-band,
  .theme-band,
  .release-band {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-heading h2,
  .page-cta h2 {
    font-size: 32px;
  }

  .feature-list a {
    grid-template-columns: 1fr 28px;
    gap: 10px;
    min-height: 132px;
  }

  .feature-list span {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .release-grid {
    gap: 48px;
  }

  .release-facts div,
  .download-facts dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .content-hero {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  .content-media-list,
  .download-facts {
    margin-bottom: 58px;
  }

  .download-facts {
    padding: 20px 18px;
  }

  .prose-shell {
    padding-bottom: 76px;
  }

  .prose-shell section {
    padding: 34px 0;
  }

  .prose-shell h2 {
    font-size: 26px;
  }

  .prose-shell p,
  .prose-shell li {
    font-size: 16px;
  }

  .page-cta {
    padding: 64px 0;
  }
}

@media (max-height: 680px) and (orientation: landscape) {
  .hero {
    min-height: 480px;
    height: calc(100dvh - 112px);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    margin: 14px 0 18px;
    font-size: 16px;
  }

  .hero-note {
    margin-top: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
