/* Inter Display and Inter, latin subset of rsms/inter 4.1 (SIL OFL 1.1). */
@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/InterDisplay-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/InterDisplay-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Inter-Medium.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f4f5f7;
  --border: #e3e6eb;
  --text: #15171c;
  --muted: #6b7382;
  --accent: #2b59ff;
  --display: "Inter Display", "PingFang SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
  --body: Inter, "PingFang SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --window-shadow:
    0 16px 40px -18px rgba(21, 23, 28, 0.3),
    0 0 0 1px rgba(21, 23, 28, 0.06);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: -0.006em;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

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

a:hover { text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.skip:focus { transform: none; }

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

h1, h2 { font-family: var(--display); color: var(--text); font-weight: 500; }

h1 {
  max-width: 880px;
  text-wrap: balance;
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

h2 {
  font-size: 52px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.rails {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header .rails {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

nav { display: flex; align-items: center; gap: 28px; }

nav a {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.2s var(--ease);
}

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

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 72px 0 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(880px, 100%);
  text-align: center;
}

.platform {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.button-secondary {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover { background: var(--surface); }

.button-secondary:active { background: var(--border); }

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover,
.button-primary:active {
  background: var(--accent);
  color: var(--bg);
}

.showcase {
  width: 100%;
  padding: 44px 48px 28px;
  border-radius: 24px;
  background: var(--surface);
}

.showcase figcaption {
  max-width: 40em;
  margin: 24px auto 0;
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
}

.app-window {
  max-width: 960px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--window-shadow);
  transform-origin: center top;
}

.app-window picture,
.app-window img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.band .rails {
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.band-body { padding: 96px 64px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.stack p { max-width: 36em; color: var(--muted); }

.feature figure {
  margin: 0;
  padding: 32px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
}

.feature img {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: var(--window-shadow);
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.notes article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-right: 32px;
}

.notes article + article {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.notes p { color: var(--muted); }

.notes h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.release {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px 48px;
}

.release-download {
  display: grid;
  justify-items: start;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.install-steps {
  display: grid;
  gap: 0.55em;
  max-width: 36em;
  margin: 0;
  padding-inline-start: 1.6em;
  color: var(--muted);
}

.install-steps a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.release-download .button {
  margin-bottom: 8px;
  padding-inline: 20px;
  font-size: 15px;
}

.site-footer .rails {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.site-footer .brand { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  h1 {
    animation: phrase-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .app-window {
    animation: window-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes phrase-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes window-in {
  from {
    opacity: 0;
    transform: translateY(56px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1199.98px) {
  .rails { width: min(1280px, calc(100% - 48px)); }

  h2 { font-size: 42px; }

  .showcase {
    padding: 32px 32px 24px;
  }

  .band-body { padding: 96px 48px; }
}

@media (max-width: 809.98px) {
  .rails { width: min(1280px, calc(100% - 32px)); }

  h2 { font-size: 34px; }

  .lead { font-size: 17px; }

  .hero-stack {
    gap: 40px;
    padding-top: 56px;
  }

  .showcase {
    padding: 12px 10px 18px;
    border-radius: 18px;
  }

  .showcase figcaption {
    margin: 16px 8px 0;
    font-size: 14px;
    text-align: start;
  }

  .band-body { padding: 64px 20px; }

  .feature { grid-template-columns: 1fr; gap: 36px; }

  .feature figure { padding: 12px; }

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

  .notes article { padding: 0; }

  .notes article + article {
    margin-top: 28px;
    padding: 28px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  nav { gap: 18px; }

  .site-footer .rails { align-items: flex-start; }
}

@media (max-width: 600px) {
  .lead br { display: none; }
  .feature figure { padding: 0; }
  .feature img { box-shadow: none; }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
