:root {
  color-scheme: light;
  --paper: #f5f5f2;
  --white: #ffffff;
  --ink: #111111;
  --muted: #686864;
  --line: #d9d9d3;
  --soft: #e9e9e4;
  --red: #e73b2f;
  --red-dark: #b9231b;
  --green: #21855b;
  --yellow: #f2c94c;
  --max-width: 1240px;
  --header-height: 68px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

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

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

button,
input,
a {
  font: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red) 60%, transparent);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand img,
.footer-brand img {
  border-radius: 7px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #393936;
  font-size: 14px;
}

.site-header nav a,
.footer-links a,
.text-action {
  transition: color 140ms ease;
}

.site-header nav a:hover,
.footer-links a:hover,
.text-action:hover {
  color: var(--red);
}

.header-download {
  justify-self: end;
  min-width: 92px;
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 650px;
  padding: calc(var(--header-height) + 82px) max(24px, calc((100vw - var(--max-width)) / 2)) 110px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.hero-backdrop {
  position: absolute;
  z-index: -1;
  width: 680px;
  height: 680px;
  right: -190px;
  top: 26px;
  opacity: 0.035;
  transform: rotate(-7deg);
  pointer-events: none;
}

.hero-copy {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 14px 0 12px;
  font-size: 88px;
  line-height: 0.98;
  font-weight: 820;
}

.hero-lead {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 680;
}

.hero-detail {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.primary-action,
.download-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  font-weight: 730;
  transition: transform 140ms ease, background 140ms ease;
}

.primary-action {
  min-width: 245px;
  padding: 0 18px 0 22px;
}

.primary-action:not(.is-disabled):hover,
.download-button:not(.is-disabled):hover {
  transform: translateY(-2px);
  background: var(--red);
}

.primary-action.is-disabled,
.download-button.is-disabled {
  color: #85857f;
  background: #deded8;
  cursor: default;
}

.action-arrow {
  font-size: 20px;
}

.text-action {
  font-weight: 720;
}

.compatibility {
  min-height: 22px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 0;
  color: var(--muted);
  font-size: 12px;
}

.compatibility span + span::before {
  content: "/";
  margin: 0 10px;
  color: #b0b0aa;
}

.product-preview-section {
  min-height: 480px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  overflow: hidden;
  background: linear-gradient(to bottom, var(--paper) 0 38%, var(--white) 38% 100%);
}

.product-stage {
  width: min(980px, 100%);
  margin: 0 auto;
  perspective: 1400px;
}

.app-window {
  height: 520px;
  display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
  border: 1px solid #c9c9c3;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.16);
  transform: rotateX(2deg);
  transform-origin: bottom;
}

.window-sidebar {
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #eeeeea;
}

.window-brand {
  margin: 0 8px 34px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.window-brand img {
  border-radius: 8px;
}

.window-brand div,
.setting-copy,
.window-heading div {
  display: flex;
  flex-direction: column;
}

.window-brand strong {
  font-size: 14px;
}

.window-brand span {
  color: var(--muted);
  font-size: 11px;
}

.sidebar-item {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #454542;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.sidebar-item.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.08);
  font-weight: 700;
}

.sidebar-icon {
  width: 22px;
  color: var(--muted);
  text-align: center;
}

.window-device {
  margin: auto 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.window-device span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.window-content {
  padding: 36px 42px;
}

.window-heading {
  min-height: 56px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.window-heading span {
  color: var(--muted);
  font-size: 12px;
}

.window-heading strong {
  font-size: 24px;
}

.switch {
  display: inline-flex;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c4c4be;
  transition: background 150ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.setting-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--soft);
}

.setting-copy strong {
  font-size: 13px;
}

.setting-copy span {
  color: var(--muted);
  font-size: 11px;
}

.segmented {
  height: 34px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #efefeb;
}

.segmented button {
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.segmented button.is-selected {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.14);
  font-weight: 700;
}

.range-wrap {
  display: grid;
  grid-template-columns: 1fr 62px;
  align-items: center;
  gap: 14px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.range-wrap output {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #41413e;
  background: var(--white);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.native-badge {
  justify-self: end;
  padding: 5px 9px;
  border: 1px solid #b7d7c8;
  border-radius: 999px;
  color: #176744;
  background: #eaf5ef;
  font-size: 10px;
  font-weight: 700;
}

.motion-preview {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.motion-track {
  grid-column: 1 / -1;
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cfcfc9, var(--red));
}

.motion-track span {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
  transform: translate(-50%, -50%);
  transition: left 180ms ease;
}

.motion-preview p {
  margin: 0;
}

.feature-intro,
.feature-band,
.privacy-band,
.download-section,
footer {
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2));
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2));
}

.feature-intro {
  padding-top: 110px;
  padding-bottom: 86px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.feature-intro h2,
.privacy-band h2,
.download-section h2 {
  max-width: 830px;
  margin: 14px 0 0;
  font-size: 54px;
  line-height: 1.1;
}

.feature-band {
  min-height: 470px;
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 70px minmax(280px, 0.7fr) minmax(420px, 1.3fr);
  align-items: center;
  gap: 52px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.feature-number {
  align-self: start;
  padding-top: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.feature-copy h3 {
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.15;
}

.feature-copy p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.feature-band-dark {
  color: var(--white);
  border-top-color: #292927;
  background: var(--ink);
}

.feature-band-dark .feature-copy p {
  color: #adada7;
}

.direction-visual {
  width: 100%;
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--line);
}

.direction-visual div {
  min-width: 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.direction-visual div + div {
  border-left: 1px solid var(--line);
}

.direction-visual span,
.direction-visual small {
  color: var(--muted);
  font-size: 12px;
}

.direction-visual strong {
  font-size: 82px;
  line-height: 1;
  font-weight: 400;
}

.direction-visual div:first-child strong {
  color: var(--red);
}

.curve-visual {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-left: 1px solid #353532;
  border-bottom: 1px solid #353532;
}

.curve-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: linear-gradient(#30302e 1px, transparent 1px), linear-gradient(90deg, #30302e 1px, transparent 1px);
  background-size: 64px 64px;
}

.curve-line {
  position: absolute;
  left: 4%;
  bottom: 8%;
  width: 94%;
  height: 86%;
  border-top: 5px solid var(--yellow);
  border-radius: 50% 0 0 0;
  transform: rotate(-18deg) skewX(-18deg);
  transform-origin: bottom left;
}

.curve-point {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
}

.point-a { left: 23%; bottom: 17%; }
.point-b { left: 50%; bottom: 44%; }
.point-c { right: 8%; top: 8%; }

.button-visual {
  position: relative;
  min-height: 310px;
}

.mouse-shape {
  position: absolute;
  top: 8px;
  right: 18%;
  width: 190px;
  height: 292px;
  border: 2px solid var(--ink);
  border-radius: 46% 46% 42% 42%;
  transform: rotate(9deg);
}

.mouse-shape::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid var(--line);
}

.mouse-shape::after {
  content: "";
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}

.mouse-shape span {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 50%;
  width: 16px;
  height: 46px;
  border-radius: 9px;
  background: var(--red);
  transform: translateX(-50%);
}

.mouse-shape i,
.mouse-shape b {
  position: absolute;
  left: -8px;
  width: 17px;
  height: 48px;
  border-radius: 4px;
  background: var(--ink);
}

.mouse-shape i { top: 112px; }
.mouse-shape b { top: 170px; }

.button-label {
  position: absolute;
  left: 5%;
  padding-right: 115px;
  font-size: 14px;
  font-weight: 750;
}

.button-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 96px;
  border-top: 1px solid var(--ink);
}

.button-label span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.label-one { top: 108px; }
.label-two { top: 170px; }

.privacy-band {
  min-height: 410px;
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  align-items: end;
  gap: 70px;
  color: var(--white);
  background: var(--red-dark);
}

.privacy-band .section-label {
  color: #f3c8c5;
}

.privacy-band h2 {
  margin-bottom: 0;
}

.privacy-band p {
  margin-bottom: 22px;
  color: #f1d8d6;
  font-size: 16px;
}

.privacy-band a {
  font-weight: 750;
}

.download-section {
  min-height: 420px;
  padding-top: 90px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: 136px 1fr auto;
  align-items: center;
  gap: 50px;
  background: var(--paper);
}

.download-section > img {
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.16);
}

.download-copy h2 {
  margin-top: 8px;
  font-size: 42px;
}

.download-copy p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.release-meta {
  margin-top: 16px;
  display: flex;
  gap: 0;
  color: var(--muted);
  font-size: 12px;
}

.release-meta span + span::before {
  content: "·";
  margin: 0 8px;
}

.download-button {
  width: 190px;
  padding: 0 18px 0 22px;
}

.checksum {
  grid-column: 2 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.checksum code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  min-height: 180px;
  padding-top: 46px;
  padding-bottom: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 20px 40px;
  color: #a8a8a2;
  background: var(--ink);
  font-size: 11px;
}

.footer-brand {
  color: var(--white);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--white);
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

.legal-page {
  background: var(--white);
}

.legal-header {
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border-bottom-color: var(--line);
}

.legal-main {
  width: min(760px, calc(100% - 48px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 138px 0 100px;
}

.legal-main h1 {
  margin-bottom: 18px;
  font-size: 52px;
}

.legal-meta {
  margin-bottom: 56px;
  color: var(--muted);
  font-size: 13px;
}

.legal-main section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-main h2 {
  margin-bottom: 12px;
  font-size: 21px;
}

.legal-main h3 {
  margin: 20px 0 8px;
  font-size: 15px;
}

.legal-main p,
.legal-main li {
  color: #4d4d49;
  font-size: 15px;
}

.legal-main ul,
.legal-main ol {
  padding-left: 22px;
}

.legal-main a {
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}

.support-grid article {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.support-grid h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

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

  .site-header nav {
    display: none;
  }

  h1 {
    font-size: 68px;
  }

  .hero-lead {
    font-size: 26px;
  }

  .app-window {
    grid-template-columns: 178px 1fr;
  }

  .window-content {
    padding: 30px 28px;
  }

  .setting-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .setting-row .native-badge {
    justify-self: start;
  }

  .feature-band {
    grid-template-columns: 44px 1fr;
  }

  .feature-band > :last-child {
    grid-column: 2;
  }

  .privacy-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .download-section {
    grid-template-columns: 110px 1fr;
  }

  .download-section > img {
    width: 110px;
    height: 110px;
  }

  .download-button {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-download {
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
  }

  .hero {
    min-height: 610px;
    padding: calc(var(--header-height) + 52px) 18px 82px;
  }

  .hero-backdrop {
    width: 480px;
    height: 480px;
    right: -260px;
    top: 70px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-lead {
    font-size: 23px;
  }

  .hero-detail {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .compatibility {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .product-stage {
    margin-top: 0;
  }

  .product-preview-section {
    min-height: 390px;
    padding-left: 18px;
    padding-right: 18px;
    background: linear-gradient(to bottom, var(--paper) 0 30%, var(--white) 30% 100%);
  }

  .app-window {
    height: 420px;
    grid-template-columns: 58px 1fr;
  }

  .window-sidebar {
    padding: 18px 8px;
  }

  .window-brand {
    margin: 0 auto 24px;
  }

  .window-brand div,
  .sidebar-item:not(.is-active) {
    display: none;
  }

  .window-brand img {
    width: 34px;
    height: 34px;
  }

  .sidebar-item.is-active {
    width: 40px;
    padding: 0;
    justify-content: center;
    color: transparent;
    overflow: hidden;
  }

  .sidebar-item.is-active .sidebar-icon {
    flex: 0 0 22px;
    color: var(--ink);
  }

  .window-device {
    margin: auto auto 0;
    font-size: 0;
  }

  .window-content {
    padding: 22px 18px;
  }

  .window-heading strong {
    font-size: 20px;
  }

  .setting-row {
    min-height: 64px;
    padding: 10px 0;
  }

  .setting-copy span,
  .motion-preview {
    display: none;
  }

  .range-wrap {
    grid-template-columns: 1fr 55px;
    gap: 8px;
  }

  .feature-intro,
  .feature-band,
  .privacy-band,
  .download-section,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature-intro {
    padding-top: 76px;
    padding-bottom: 66px;
  }

  .feature-intro h2,
  .privacy-band h2,
  .download-section h2 {
    font-size: 38px;
  }

  .feature-band {
    min-height: 0;
    padding-top: 64px;
    padding-bottom: 64px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .feature-band > :last-child,
  .feature-number {
    grid-column: 1;
  }

  .feature-copy h3 {
    font-size: 27px;
  }

  .direction-visual {
    min-height: 230px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .direction-visual div {
    padding: 24px 16px;
  }

  .direction-visual strong {
    font-size: 62px;
  }

  .curve-visual {
    height: 230px;
  }

  .button-visual {
    min-height: 280px;
  }

  .mouse-shape {
    right: 8%;
    width: 160px;
    height: 252px;
  }

  .button-label {
    left: 0;
    padding-right: 72px;
  }

  .button-label::after {
    width: 60px;
  }

  .privacy-band {
    min-height: 390px;
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 34px;
  }

  .download-section {
    min-height: 460px;
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: 76px 1fr;
    gap: 24px;
  }

  .download-section > img {
    width: 76px;
    height: 76px;
    border-radius: 17px;
  }

  .download-copy h2 {
    font-size: 31px;
  }

  .download-copy p {
    font-size: 14px;
  }

  .download-button,
  .checksum {
    grid-column: 1 / -1;
  }

  .download-button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  footer p:last-child {
    justify-self: start;
  }

  .legal-main {
    width: calc(100% - 40px);
    padding-top: 110px;
  }

  .legal-main h1 {
    font-size: 40px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

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