:root {
  color-scheme: dark;
  --page: #080809;
  --ink: #f4f4f5;
  --muted: #9b9ba3;
  --subtle: #72727a;
  --line: #2c2c31;
  --control: #f4f4f5;
  --control-ink: #080809;
  --focus: #d5d5da;
  --white: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
}

::selection {
  background: var(--line);
  color: var(--white);
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

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

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

main {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.text-link:hover {
  color: var(--ink);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 20px;
  border: 1px solid var(--control);
  border-radius: 12px;
  background: var(--control);
  color: var(--control-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button:hover {
  border-color: var(--muted);
  background: var(--control);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
  padding: 72px 0 96px;
}

.hero-copy {
  max-width: 580px;
}

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

h1 {
  margin-bottom: 19px;
  font-size: 54px;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.2;
  text-wrap: balance;
}

.hero-description {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  gap: 22px;
  margin-top: 30px;
}

.hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.5vw, 18px);
  width: min(100%, 560px);
  justify-self: center;
}

.hero-call-frame {
  width: min(100%, 230px);
  justify-self: center;
  margin: 0;
}

.hero-call-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(74svh, 470px);
  object-fit: contain;
}

.hero-cat-frame {
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0;
  justify-self: center;
}

.hero-cat-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-row {
  display: grid;
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  padding: 80px 0 88px;
}

.scene-row--memory {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "image copy";
}

.scene-row--share {
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  grid-template-areas: "copy screen";
}

.share-screen {
  grid-area: screen;
  width: min(100%, 624px);
  justify-self: center;
  margin: 0;
}

.share-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.scene-row--ledger {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.7fr);
  grid-template-areas: "copy image";
}

.scene-copy {
  grid-area: copy;
  max-width: 440px;
}

.scene-copy h2 {
  margin-bottom: 13px;
  font-size: 31px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  text-wrap: balance;
}

.scene-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.scene-image {
  grid-area: image;
  min-width: 0;
  margin: 0;
}

.scene-image--memory img {
  display: block;
  width: 100%;
  height: auto;
}

.scene-image--ledger {
  width: min(260px, 100%);
  justify-self: center;
}

.scene-image--ledger img {
  display: block;
  width: 100%;
  height: auto;
}

.scene-image--ledger figcaption {
  width: 100%;
}

.scene-showcase .scene-row--memory .scene-copy {
  justify-self: end;
}

.scene-showcase .scene-row--ledger .scene-copy {
  justify-self: start;
}

@media (max-width: 980px) {
  main {
    width: min(100% - 48px, 760px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 34px;
    padding-block: 28px 72px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-gallery {
    width: min(100%, 540px);
  }

  .scene-row,
  .scene-row--memory,
  .scene-row--ledger,
  .scene-row--share {
    gap: 38px;
  }

  .scene-row--memory {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }

  .scene-row--ledger {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.7fr);
  }

  .scene-row--share {
    grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
  }
}

@media (max-width: 720px) {
  main {
    width: calc(100% - 36px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0 66px;
  }

  .hero-copy {
    max-width: 520px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 40px;
  }

  .hero-description {
    max-width: 470px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 17px;
    margin-top: 22px;
  }

  .button {
    min-height: 50px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    width: 100%;
    justify-self: center;
  }

  .hero-call-frame {
    width: min(78vw, 230px);
    justify-self: center;
  }

  .hero-cat-frame {
    width: min(82vw, 300px);
    justify-self: center;
  }

  .scene-image--memory {
    width: min(100%, 640px);
    justify-self: center;
  }

  .scene-image--memory img {
    width: 100%;
  }

  .scene-row,
  .scene-row--memory,
  .scene-row--ledger,
  .scene-row--share {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "image";
    gap: 22px;
    padding: 54px 0 68px;
  }

  .scene-row--share {
    grid-template-areas: "copy" "screen";
  }

  .scene-copy h2 {
    margin-bottom: 9px;
    font-size: 27px;
  }

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

  .scene-image--memory img {
    width: 100%;
  }

  .scene-image--ledger {
    width: min(240px, 78vw);
    justify-self: center;
  }

  .share-screen {
    width: min(100%, 624px);
    justify-self: center;
  }
}

@media (max-width: 380px) {
  main {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: 39px;
  }
}

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

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