:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --paper-soft: #faf9f6;
  --ink: #191a1a;
  --muted: #6f7471;
  --line: #d8d9d5;
  --teal: #0f6b5e;
  --teal-soft: #d8ece7;
  --night: #17191b;
  --night-soft: #22252a;
  --coral: #ee6a4e;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --page: min(1200px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-weight: 800; }
.brand img { border-radius: 7px; }
.site-header nav { display: flex; align-items: center; gap: 34px; color: var(--muted); font-size: 14px; }
.site-header nav a { position: relative; padding: 28px 0; }
.site-header nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform 180ms ease; }
.site-header nav a:hover::after, .site-header nav .is-active::after { transform: scaleX(1); }
.site-header .is-active { color: var(--ink); font-weight: 700; }
.header-download { justify-self: end; padding: 11px 22px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; }

.grid-paper {
  background-color: var(--paper);
  background-image: linear-gradient(to right, rgba(25,26,26,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(25,26,26,.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero { min-height: 650px; padding: 88px 0 78px; overflow: hidden; }
.hero-inner { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: .86fr 1.18fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 22px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1, .section-heading h2 { margin: 0; font-family: var(--serif); font-weight: 800; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(54px, 5.6vw, 82px); line-height: 1.08; }
.hero-lede { max-width: 540px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.9; }
.hero-actions, .download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--line); border-radius: 6px; font-weight: 750; transition: transform 160ms ease, background-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button-secondary { background: rgba(255,255,255,.48); }
.meta-line { margin: 24px 0 0; color: #8a8d89; font-size: 12px; }
.hero-visual { filter: drop-shadow(0 26px 30px rgba(0,0,0,.14)); }

.source-crop { position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--ratio); background: #e8e7e3; }
.source-crop img { position: absolute; width: calc(100% / var(--cw)); max-width: none; transform: translate(calc(var(--x) * -100%), calc(var(--y) * -100%)); transform-origin: top left; }
.crop-hero { --ratio: 1.365; --cw: .4285; --x: .4712; --y: .0228; border-radius: 9px; }
.crop-compare { --ratio: 3.389; --cw: .8014; --x: .0986; --y: .1289; }
.crop-canvas { --ratio: 3; --cw: .8; --x: .0997; --y: .2329; }
.crop-color { --ratio: 1.437; --cw: .4153; --x: .4844; --y: .3227; border-radius: 8px; box-shadow: 0 24px 44px rgba(0,0,0,.16); }
.crop-handoff { --ratio: 3.524; --cw: .799; --x: .0997; --y: .4308; }
.crop-interface { --ratio: 2.95; --cw: .8194; --x: .0903; --y: .6368; }

.section { padding: 112px max(24px, calc((100vw - 1200px) / 2)); }
.section-heading { max-width: 680px; }
.section-heading h2 { font-size: clamp(38px, 4vw, 58px); line-height: 1.18; }
.section-heading > p:not(.eyebrow) { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.centered-heading { margin-right: auto; margin-left: auto; text-align: center; }
.compact-heading { max-width: 760px; }
.compare-section { background: #fff; }
.compare-section .source-crop { margin-top: 64px; border: 1px solid var(--line); border-radius: 8px; }

.dark-section, .download-section, footer { background: var(--night); color: #f6f5f1; }
.light-heading > p:not(.eyebrow) { color: #9ca3a4; }
.canvas-section .section-heading { margin-bottom: 56px; }
.canvas-section .source-crop { border-radius: 8px; background: var(--night-soft); }

.color-section { padding-top: 130px; padding-bottom: 130px; }
.split-layout { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: 110px; }
.handoff-section { background: #fff; }
.handoff-section .source-crop { margin-top: 72px; border-radius: 8px; }

.feature-section { background: #f1f0ec; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 58px; }
.feature-grid article { min-height: 190px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.feature-grid article > span { display: inline-flex; padding: 7px 9px; border-radius: 5px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.feature-grid h3 { margin: 24px 0 10px; font-size: 18px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.start-section { background: #fff; }
.start-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 68px 0 76px; padding: 0; list-style: none; text-align: center; }
.start-steps li { position: relative; }
.start-steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -28px; width: 16px; height: 1px; background: var(--line); }
.start-steps span { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); font-weight: 800; }
.start-steps strong { display: block; margin-top: 18px; }
.start-steps p { margin: 12px auto 0; max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.start-section .source-crop { border-radius: 8px; box-shadow: 0 22px 42px rgba(0,0,0,.1); }

.download-section { text-align: center; }
.download-inner { width: min(760px, 100%); margin: 0 auto; }
.download-actions { justify-content: center; }
.button-light { border-color: #fff; background: #fff; color: var(--ink); }
.button-outline-light { border-color: #52565a; color: #fff; }
.download-note { margin: 22px auto 0; max-width: 680px; color: #9ca3a4; font-size: 13px; line-height: 1.75; }
.text-link-light { display: inline-block; margin-top: 14px; border-bottom: 1px solid #777d7e; color: #d8dcdb; font-size: 14px; }
.release-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 52px auto 0; padding: 0; border: 1px solid #34383c; border-radius: 8px; text-align: left; }
.release-card div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #34383c; }
.release-card div:nth-last-child(-n+2) { border-bottom: 0; }
.release-card dt { color: #7f8688; }
.release-card dd { margin: 0; color: #dadddc; }

.faq-section { background: #fff; }
.faq-list { width: min(820px, 100%); margin: 56px auto 0; }
.faq-list details { border: 1px solid var(--line); border-radius: 8px; background: var(--paper-soft); }
.faq-list details + details { margin-top: 14px; }
.faq-list summary { padding: 22px 26px; cursor: pointer; font-weight: 750; }
.faq-list p { margin: 0; padding: 0 26px 24px; color: var(--muted); line-height: 1.8; }

footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; padding: 62px max(24px, calc((100vw - 1200px) / 2)); border-top: 1px solid #2e3236; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 6px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { margin-top: 3px; color: #747a7d; font-size: 11px; }
footer nav { display: flex; gap: 24px; color: #858b8d; font-size: 13px; }
footer > p { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 24px; border-top: 1px solid #2e3236; color: #686e70; font-size: 12px; }

@media (max-width: 900px) {
  :root { --page: min(100% - 34px, 720px); }
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .site-header nav { display: none; }
  .hero { min-height: 0; padding: 64px 0; }
  .hero-inner, .split-layout { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: min(760px, 100%); }
  .section { padding: 88px 24px; }
  .split-layout { gap: 48px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header { min-height: 64px; }
  .brand { gap: 9px; font-size: 14px; }
  .brand img { width: 30px; height: 30px; }
  .header-download { padding: 9px 15px; font-size: 13px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero-lede { font-size: 16px; line-height: 1.75; }
  .hero-actions, .download-actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 72px 17px; }
  .section-heading h2 { font-size: 36px; }
  .section-heading > p:not(.eyebrow) { font-size: 15px; }
  .feature-grid, .start-steps { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .start-steps { gap: 48px; margin: 50px 0 60px; }
  .start-steps li:not(:last-child)::after { top: auto; right: auto; bottom: -25px; left: 50%; width: 1px; height: 14px; }
  .release-card { grid-template-columns: 1fr; }
  .release-card div, .release-card div:nth-last-child(-n+2) { border-bottom: 1px solid #34383c; }
  .release-card div:last-child { border-bottom: 0; }
  footer { grid-template-columns: 1fr; padding: 48px 24px; }
  footer nav { flex-wrap: wrap; }
}

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