:root {
  --ink: #172628;
  --muted: #617072;
  --line: #d9e1df;
  --paper: #f5f7f4;
  --white: #ffffff;
  --brand: #52777a;
  --brand-deep: #395c60;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  width: min(1200px, calc(100% - 64px));
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--ink);
}

.nav-download {
  padding: 12px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.hero {
  width: min(1200px, calc(100% - 64px));
  min-height: 720px;
  margin: 0 auto;
  padding: 76px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 80px;
}

.eyebrow,
.section-index {
  margin: 0 0 26px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--brand);
}

.hero-description {
  max-width: 570px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: var(--brand-deep);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--ink);
}

.hero-facts {
  max-width: 550px;
  margin: 72px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-facts div {
  display: grid;
  gap: 5px;
}

.hero-facts dt {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 580px;
}

.hero-image {
  position: absolute;
  width: min(280px, 60%);
  overflow: hidden;
  border: 10px solid var(--white);
  background: #87a4a4;
}

.hero-image img {
  width: 100%;
}

.hero-image-back {
  top: 0;
  right: 0;
}

.hero-image-front {
  left: 0;
  bottom: 0;
}

.intro,
.features,
.screenshots {
  padding: 120px max(32px, calc((100vw - 1200px) / 2));
}

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  gap: 100px;
  align-items: end;
}

.intro h2,
.section-heading h2,
.screenshots h2,
.closing h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.intro-grid > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.features {
  background: var(--brand);
  color: var(--white);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.features .section-index {
  color: #dce8e7;
}

.section-heading {
  position: sticky;
  top: 48px;
  align-self: start;
}

.feature-list {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.feature-item {
  min-height: 148px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  grid-template-columns: 48px 0.65fr 1fr;
  gap: 20px;
  align-items: start;
}

.feature-item > span {
  color: #dce8e7;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.feature-item h3 {
  margin: -4px 0 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.feature-item p {
  margin: 0;
  color: #e4eceb;
  font-size: 14px;
  line-height: 1.8;
}

.screenshots {
  overflow: hidden;
  background: var(--white);
}

.screenshots-heading {
  margin-bottom: 62px;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 100px;
  align-items: end;
}

.screenshots-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.screenshot-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
}

.screenshot-track figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #87a4a4;
}

.screenshot-track img {
  width: 100%;
  height: auto;
}

.closing {
  min-height: 620px;
  padding: 112px 32px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.closing img {
  margin-bottom: 30px;
  border-radius: 24px;
}

.closing .section-index {
  margin-bottom: 24px;
  color: #afc2c1;
}

.closing > p:not(.section-index) {
  margin: 28px 0 36px;
  color: #afbbba;
  font-size: 14px;
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  background: #dce8e7;
}

footer {
  min-height: 112px;
  padding: 30px max(32px, calc((100vw - 1200px) / 2));
  background: var(--white);
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: center;
  font-size: 12px;
}

footer p {
  margin: 0;
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header,
  .hero {
    width: min(100% - 40px, 700px);
  }

  .site-header {
    height: 82px;
  }

  nav > a:not(.nav-download) {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 74px 0 100px;
    grid-template-columns: 1fr;
    gap: 72px;
  }

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

  .hero-visual {
    min-height: 640px;
    max-width: 570px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-image {
    width: 58%;
  }

  .intro-grid,
  .features,
  .screenshots-heading {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .section-heading {
    position: static;
  }

  .screenshot-track {
    width: calc(100vw - 32px);
    margin-left: 0;
    padding-bottom: 16px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .screenshot-track figure {
    flex: 0 0 250px;
    scroll-snap-align: start;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero {
    width: calc(100% - 32px);
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-download {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    padding-top: 60px;
  }

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

  .hero-description {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts {
    margin-top: 52px;
  }

  .hero-facts dt {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-image {
    width: 62%;
    border-width: 7px;
  }

  .intro,
  .features,
  .screenshots {
    padding: 88px 20px;
  }

  .intro h2,
  .section-heading h2,
  .screenshots h2,
  .closing h2 {
    font-size: 40px;
  }

  .feature-item {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .feature-item p {
    grid-column: 2;
  }

  .screenshots-heading {
    margin-bottom: 44px;
  }

  .screenshot-track {
    width: calc(100vw - 20px);
  }

  .screenshot-track figure {
    flex-basis: min(72vw, 270px);
  }

  .closing {
    min-height: 580px;
    padding: 88px 20px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .footer-brand {
    grid-column: auto;
    margin-bottom: 12px;
  }
}

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

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