:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #201d2b;
  --muted: #645d6b;
  --accent: #4c3cc5;
  --accent-hover: #392ba5;
  --rule: #e5dfd8;
  --white: #fffdf9;
  --focus: #5747db;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --standard: 220ms;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 var(--font); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }

.site {
  color: var(--ink);
  background:
    radial-gradient(ellipse 42% 420px at 95% 0%, #e5d9fa88, transparent),
    radial-gradient(ellipse 45% 450px at 0% 9%, #f5dfcb69, transparent),
    var(--paper);
}
.wrap { width: min(calc(100% - 48px), 1000px); margin-inline: auto; }
.nav, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.nav { padding-block: 14px; border-bottom: 1px solid #33234f14; }
.brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  font-weight: 730;
  letter-spacing: -.035em;
}
.brand img { width: 32px; height: 32px; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 580;
  color: var(--muted);
}
.link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 24px;
  padding-block: clamp(42px, 7vw, 92px) clamp(44px, 7vw, 76px);
}
.hero-actions { padding-bottom: 2px; }
.hero-intro { animation: hero-in 400ms var(--ease) both; }
.hero-actions { animation: hero-in 420ms var(--ease) 55ms both; }
@keyframes hero-in {
  from { transform: translateY(8px); }
  to { transform: none; }
}
@keyframes intro-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
h1, h2, p { margin: 0; }
h1 {
  font-size: clamp(40px, 7.3vw, 88px);
  line-height: .99;
  letter-spacing: -.064em;
  font-weight: 760;
}
.hero-line { display: block; color: var(--accent); }
@supports (background-clip: text) {
  .hero-line {
    background: linear-gradient(101deg, #4030ad 12%, #6042bf 75%, #88558e);
    background-clip: text;
    color: transparent;
  }
}
.hero-copy {
  margin: 20px 0 0;
  max-width: 37ch;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.46;
  text-wrap: pretty;
}
.key {
  display: inline-block;
  font: 630 .86em/1.15 var(--font);
  letter-spacing: .035em;
  white-space: nowrap;
}
.hero-copy .key {
  padding: .24em .42em;
  vertical-align: .03em;
  margin-inline: .1em;
  border: 1px solid #e0d8d0;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 1px 0 #e0d8d0;
  color: var(--ink);
}
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 10px 20px;
  margin-top: 25px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 3px 8px #3f2da026;
  color: white;
  text-decoration: none;
  font-weight: 650;
  transition: background-color 150ms ease, box-shadow var(--standard) var(--ease), transform 150ms var(--ease);
}
.download:hover, .action:hover { background-color: var(--accent-hover); }
.download:hover { box-shadow: 0 6px 16px #3f2da030; }
.download:active, .action:active { transform: translateY(1px) scale(.985); }
.download span { transition: transform var(--standard) var(--ease); }
.download:hover span { transform: translateY(2px); }
.platform { margin-top: 11px; color: var(--muted); font-size: 13px; }

.demo { margin-inline: auto; }
.demo-bar, .demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.demo-bar { padding-bottom: 9px; }
.demo-title { font-size: 14px; color: var(--muted); font-weight: 650; }
.mode-picker {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 3px;
  padding-inline: 3px;
  border-radius: 10px;
  background: #ede7e9;
}
.mode-picker::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px auto 5px 4px;
  width: calc(50% - 6px);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 1px 3px #27223720;
  transition: transform 240ms var(--ease);
}
.mode-picker:has([data-mode="window"][aria-pressed="true"])::before {
  transform: translateX(calc(100% + 4px));
}
.mode {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 68px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: transparent;
}
.mode span { padding: 6px 8px; border-radius: 6px; }
.mode[aria-pressed="true"] { color: var(--ink); font-weight: 650; }
.mode:hover { color: var(--accent); }
.stage {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 5vw, 65px) 16% clamp(20px, 5vw, 65px) 14%;
  overflow: hidden;
  border: 1px solid #bbaacf;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 16% 112%, #7d75c3 6%, transparent 77%),
    radial-gradient(ellipse at 99% -14%, #f9cba1 7%, transparent 67%),
    linear-gradient(129deg, #c8b2de, #b69bcd 53%, #af92c2);
  box-shadow: inset 0 1px 0 #ffffffa6, 0 16px 38px #432c651f;
}
.stage::before, .stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.stage::before {
  z-index: -1;
  top: -56%;
  right: -18%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid #fff6;
  border-radius: 50%;
  box-shadow: 0 0 0 24px #fff2, 0 0 0 58px #fff2, 0 0 0 100px #fff1;
  background: radial-gradient(circle at 36% 68%, #ffd8b980, transparent 68%);
}
.stage::after {
  inset: 0;
  z-index: -1;
  opacity: .37;
  background-image: radial-gradient(circle, #fff7 .65px, transparent .8px);
  background-size: 7px 7px;
  mask-image: linear-gradient(120deg, #000, transparent 67%);
}
.stage.is-introduced::before { animation: bloom-in 720ms var(--ease) both; }
.stage.is-introduced .window-content { animation: window-in 450ms var(--ease) both; }
@keyframes bloom-in {
  from { opacity: .35; transform: translate(11px, -8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes window-in {
  from { opacity: .85; filter: saturate(.88); }
  to { opacity: 1; filter: none; }
}
.sample {
  position: relative;
  width: 100%;
  border-radius: 11px;
  box-shadow: 0 15px 28px #211a4259, 0 0 0 1px #fff6;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}
.stage[data-mode="window"] .sample { cursor: default; }
.window-content {
  position: relative;
  display: grid;
  grid-template-rows: 27px minmax(0, 1fr);
  overflow: hidden;
  aspect-ratio: 1.67;
  border-radius: inherit;
  color: #e4dce8;
  background-color: #262238;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: .03em;
}
.lights { display: flex; gap: 4px; }
.lights i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #f6a29a; }
.lights i:nth-child(2) { background: #f6cd91; }
.lights i:nth-child(3) { background: #9bd3aa; }
.window-content img { width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.overlay { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.selection {
  position: absolute;
  left: 17%;
  top: 24%;
  width: 65%;
  height: 62%;
  box-shadow: 0 0 0 1600px #17122668, inset 0 0 0 1.5px white;
}
.selection::before, .selection::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
}
.selection::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.selection::after { bottom: 0; right: 0; border-top: 0; border-left: 0; }
.stage[data-mode="window"] .selection { border-radius: 11px; }
.stage[data-mode="window"] .selection::before, .stage[data-mode="window"] .selection::after { opacity: 0; }
.sample.is-dragging .selection { box-shadow: 0 0 0 1600px #17122654, inset 0 0 0 1.5px white; }
.capture-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: inherit;
  background: #fff5ee;
}
.measure {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #211d30e8;
  color: white;
  font: 600 10px/1.45 ui-monospace, monospace;
  white-space: nowrap;
}
.selection.is-small .measure { display: none; }
.stage[data-step="copied"] .selection,
.stage[data-step="pasted"] .selection { box-shadow: 0 0 0 1600px #17122642, inset 0 0 0 2px #e6ddff; }
.draft {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 14%;
  width: clamp(104px, 24%, 204px);
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fffcf9;
  box-shadow: 0 6px 24px #30214434;
  pointer-events: none;
  opacity: .74;
  transform: translate(1px, 5px) rotate(3deg) scale(.94);
  transform-origin: center 75%;
  transition: opacity var(--standard) var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.stage:is([data-step="copied"], [data-step="pasted"]) .draft { opacity: 1; transform: none; }
.stage[data-step="copied"] .draft { box-shadow: 0 0 0 2px #c3aff7, 0 9px 25px #30214438; }
.stage.is-transferring .draft { transition-property: opacity, box-shadow; }
.stage.is-transferring .draft-preview canvas { visibility: hidden; }
.transfer {
  position: absolute;
  z-index: 2;
  border-radius: 5px;
  box-shadow: 0 5px 14px #211a4250;
  transform-origin: top left;
  pointer-events: none;
}
.draft-title { margin-bottom: 7px; color: #51465d; font-size: 11px; font-weight: 700; }
.draft-preview {
  position: relative;
  aspect-ratio: 1.55;
  overflow: hidden;
  border-radius: 5px;
  background: #f0eaf1;
}
.draft-preview:empty { border: 1px dashed #b6a7bd; }
.draft-preview canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-foot { padding-top: 14px; }
.status { color: var(--muted); font-size: 14px; text-wrap: pretty; }
.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 117px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: white;
  background-color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  transition: background-color 150ms ease, box-shadow var(--standard) var(--ease), transform 150ms var(--ease);
}
.action .key {
  min-width: 21px;
  padding: 2px 3px;
  border: 1px solid #ffffff60;
  border-radius: 4px;
}
.action[data-step="pasted"] { color: var(--ink); background: var(--white); border-color: #d7ccd2; }
.action[data-step="pasted"]:hover { color: var(--accent); border-color: var(--accent); }

.extras {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: 18px 7%;
  margin-block: clamp(76px, 12vw, 148px) clamp(58px, 10vw, 116px);
}
.extras h2 {
  color: var(--ink);
  font-size: clamp(30px, 4.5vw, 47px);
  line-height: 1.08;
  letter-spacing: -.053em;
  font-weight: 740;
  text-wrap: balance;
}
.details-list { border-top: 1px solid var(--rule); }
.extras h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, #6750cf, #d49d9a);
}
details { border-bottom: 1px solid var(--rule); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 53px;
  list-style: none;
  font-weight: 635;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary { position: relative; padding-right: 24px; }
summary::after, summary::before {
  content: "";
  position: absolute;
  right: 2px;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent);
}
summary::before { transform: rotate(90deg); transition: transform 180ms var(--ease); }
details[open] summary::before { transform: rotate(0); }
details[open] .detail-body { animation: intro-in var(--standard) var(--ease) both; }
summary:hover { color: var(--accent); }
.detail-body { padding-block: 0 17px; color: var(--muted); }
.detail-body img { display: block; max-width: 100%; height: auto; margin-top: 13px; border-radius: 9px; }
.detail-body img.preview-photo { width: min(76%, 340px); }
.footer { flex-wrap: wrap; padding-block: 14px; border-top: 1px solid var(--rule); }
.footer .link { font-size: 13px; }

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero-actions { justify-self: start; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 36px); }
  .nav { padding-block: 8px; }
  .hero { padding-top: 40px; }
  h1 { font-size: clamp(33px, 10.5vw, 43px); }
  .hero-copy { margin-top: 19px; }
  .stage { padding: 17px; border-radius: 16px; }
  .draft { bottom: 8%; opacity: 0; transform: translateY(8px) scale(.95); }
  .stage:is([data-step="copied"], [data-step="pasted"]) .draft { opacity: 1; transform: none; }
  .extras { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.8vw, 24px);
}
.language-link { color: var(--accent); white-space: nowrap; }
.install {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px 7%;
  align-items: baseline;
  padding-block: 26px;
  border-top: 1px solid var(--rule);
}
.install h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.install p { max-width: 52ch; color: var(--muted); }
[lang="zh-CN"] h1 {
  letter-spacing: -.04em;
  line-height: 1.1;
  font-size: clamp(37px, 6.5vw, 74px);
}
[lang="zh-CN"] .hero-copy { max-width: 26em; }
[lang="zh-CN"] .extras h2 { letter-spacing: -.04em; }
@media (max-width: 570px) {
  .install { grid-template-columns: 1fr; }
  [lang="zh-CN"] h1 { font-size: clamp(32px, 9vw, 43px); }
}
@media (forced-colors: active) {
  .hero-line { background: none; color: CanvasText; }
}
