@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Commit Mono";
  src: url("/fonts/commit-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Commit Mono";
  src: url("/fonts/commit-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0a2540;
  --body: #425466;
  --muted: #6b7c93;
  --accent: #6a4cf5;
  --tint: #f6f9fc;
  --line: rgba(66, 71, 112, 0.08);
  --c1: #9db8ff;
  --c2: #8b6cff;
  --c3: #f06bc8;
  --c4: #ff8a3c;
  --working: #3b82f6;
  --waiting: #e8890c;
  --done: #22a35a;
  --failed: #e5484d;
  --radius: 12px;
  --shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.22), 0 30px 60px -30px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 13px 27px -5px rgba(50, 50, 93, 0.2), 0 8px 16px -8px rgba(0, 0, 0, 0.22);
  --container: 1120px;
  --sans: "Mona Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "Commit Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
  position: relative;
}

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

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

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe5ef;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.05em 0.38em;
  margin: 0 0.06em;
  white-space: nowrap;
}

/* Content sits inside the outer guide lines, never on them. */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  padding-inline: 32px;
}
.guides .container {
  padding-inline: 0;
}

/* Stripe-like column guides behind the page. */
.guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.guides .container {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: space-between;
}
.guides i {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--line) 0 50%, transparent 0) 0 0 / 1px 8px;
}
.guides i:first-child,
.guides i:last-child {
  background: var(--line);
}

main,
.nav,
.footer {
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand img {
  border-radius: 7px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 520;
  color: var(--ink);
}
.nav-links a {
  opacity: 0.82;
  transition: opacity 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
}
.nav-links a[aria-current="page"] {
  font-weight: 620;
}
.nav .btn-small {
  margin-left: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.005em;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover {
  background: #1a3a5c;
}
.btn span {
  transition: transform 0.15s;
}
.btn:hover span {
  transform: translateX(3px);
}
.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 15px;
}

/* The gradient band, skewed like Stripe's. */
.wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  transform: skewY(-9deg);
  transform-origin: 0 0;
  overflow: hidden;
  background: #e9ecff;
}
.wave-inner {
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(38% 55% at 18% 38%, var(--c1) 0, transparent 70%),
    radial-gradient(34% 50% at 46% 24%, var(--c2) 0, transparent 70%),
    radial-gradient(36% 56% at 72% 46%, var(--c3) 0, transparent 70%),
    radial-gradient(30% 48% at 92% 22%, var(--c4) 0, transparent 70%),
    radial-gradient(40% 50% at 60% 80%, #b9a7ff 0, transparent 70%);
  filter: saturate(1.05);
  animation: drift 22s ease-in-out infinite alternate;
}
.wave::after {
  /* Keeps the left of the band light enough for the headline. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0) 70%);
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate3d(-5%, 3%, 0) rotate(3deg) scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wave-inner {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Hero: a box between two rules, the icon orbited on its right. */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 188px 0 132px;
  border-bottom: 1px solid var(--line);
}
.orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.orbits.on {
  opacity: 1;
}
/* The icon the orbits circle: its tile is 80% of the image. */
.hero-art {
  position: absolute;
  z-index: 1;
  top: calc(50% + 38px);
  right: calc(max(24px, 50% - 560px) + 60px);
  width: 200px;
  translate: 0 -50%;
}
.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c1));
  filter: blur(64px);
  opacity: 0.38;
  animation: glow 28s linear infinite;
}
@keyframes glow {
  to {
    rotate: 360deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art::before {
    animation: none;
  }
}
.hero-art img {
  position: relative;
  width: 125%;
  max-width: none;
  margin: -12.5%;
  filter: drop-shadow(0 30px 40px rgba(50, 50, 93, 0.28)) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}
.hero-copy {
  position: relative;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero h1 span {
  color: var(--accent);
}
.lede {
  margin-top: 28px;
  max-width: 540px;
  font-size: 20px;
  line-height: 1.5;
  color: #31445a;
}
.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 36px;
}
.meta {
  font-size: 15px;
  color: var(--muted);
}
.hero-shot {
  position: relative;
  padding-top: 88px;
}

.nowrap {
  white-space: nowrap;
}

/* Screenshots */
.window,
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px rgba(10, 37, 64, 0.08);
}
.window img,
.card img {
  width: 100%;
}
.card {
  border-radius: 10px;
}
.fade-bottom img {
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.fade-right img {
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.fade-left img {
  -webkit-mask-image: linear-gradient(270deg, #000 88%, transparent);
  mask-image: linear-gradient(270deg, #000 88%, transparent);
}
.fade-bottom,
.fade-right,
.fade-left {
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(10, 37, 64, 0.06);
}

/* Sections */
.section {
  position: relative;
  padding: 136px 0;
}
.section-tint {
  background: var(--tint);
}
.section-tint::before,
.section-tint::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.section-tint::before {
  top: 0;
}
.section-tint::after {
  bottom: 0;
}
.eyebrow {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent);
  margin-bottom: 14px;
}
.copy h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.12;
  margin-bottom: 18px;
}
.copy p + p {
  margin-top: 14px;
}
.copy-center {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 72px;
}
.split .copy {
  max-width: 440px;
}
.split-reverse {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.split-reverse .copy {
  order: 2;
}
.card-dialog {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
}
.card-dialog img {
  width: auto;
  max-width: 100%;
}
.split .card-tall {
  justify-self: center;
  width: min(100%, 340px);
}

.legend {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 32px;
  font-size: 16px;
  font-weight: 520;
  color: var(--ink);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.dot.working {
  background: var(--working);
}
.dot.waiting {
  background: var(--waiting);
}
.dot.done {
  background: var(--done);
}
.dot.failed {
  background: var(--failed);
}

.chips {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chips li {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  padding: 5px 12px;
}

.window-wide {
  max-width: 1040px;
  margin-inline: auto;
}

/* Light and dark, overlapping. */
.themes {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding-bottom: 18%;
}
.theme-light {
  width: 72%;
}
.theme-dark {
  position: absolute;
  width: 72%;
  right: 0;
  bottom: 0;
}

/* Details grid */
.grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
}
.grid li {
  border-left: 1px solid #dfe5ef;
  padding-left: 18px;
}
.grid h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  position: relative;
}
.grid h3::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: var(--accent);
}
.grid p {
  font-size: 16px;
  line-height: 1.5;
}

/* Closing call to action */
.cta {
  position: relative;
  overflow: hidden;
  padding: 330px 0 220px;
}
.wave-cta {
  top: 250px;
  height: 640px;
  transform: skewY(-9deg);
}
.wave-cta::after {
  background: rgba(255, 255, 255, 0.28);
}
.cta-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-inner img {
  filter: drop-shadow(0 18px 30px rgba(10, 37, 64, 0.3));
  margin-bottom: 28px;
}
.cta h2 {
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.cta p {
  margin-top: 14px;
  color: #31445a;
}
.cta-row-center {
  justify-content: center;
  margin-top: 30px;
}
.cta .meta {
  margin-top: 16px;
  color: #3d4f66;
}

/* Changelog */
.page-head {
  position: relative;
  padding: 176px 0 72px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.release {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.release-meta {
  position: sticky;
  top: 32px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.release-meta h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.release-meta time {
  font-size: 15px;
  color: var(--muted);
}
.release-meta .btn {
  margin-top: 12px;
}
.tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  background: #f0ecff;
  border-radius: 999px;
  padding: 3px 10px;
}
.changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.changes li {
  position: relative;
  border-left: 1px solid #dfe5ef;
  padding-left: 18px;
  font-size: 17px;
  line-height: 1.55;
  max-width: 640px;
}
.changes li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 4px;
  height: 18px;
  width: 1px;
  background: var(--accent);
}
.changes strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}
.releases-note {
  padding: 40px 0 120px;
  font-size: 15px;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  font-size: 14px;
}
.footer-links {
  margin-left: auto;
  margin-right: 32px;
  color: var(--body);
}
.footer-links a:hover {
  color: var(--ink);
}
.brand-small {
  font-size: 16px;
  gap: 8px;
}
.brand-small img {
  border-radius: 5px;
}
.muted {
  color: var(--muted);
}

/* Narrow screens */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 330px 0 88px;
  }
  .hero-art {
    top: 200px;
    right: auto;
    left: 50%;
    width: 132px;
    translate: -50% -50%;
  }
  .hero-shot {
    padding-top: 56px;
  }
  .lede {
    font-size: 18px;
  }
  .section {
    padding: 96px 0;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .split-reverse {
    grid-template-columns: 1fr;
  }
  .split-reverse .copy {
    order: 0;
  }
  .split .copy {
    max-width: none;
  }
  .page-head {
    padding: 128px 0 48px;
  }
  .release {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0;
  }
  .release-meta {
    position: static;
  }
  .copy-center {
    margin-bottom: 44px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .themes {
    padding-bottom: 0;
  }
  .theme-light {
    width: 100%;
  }
  .theme-dark {
    position: relative;
    width: 92%;
    margin: -18% 0 0 auto;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .container {
    width: calc(100% - 32px);
    padding-inline: 16px;
  }
  .guides .container {
    padding-inline: 0;
  }
  .footer-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 24px 0;
    gap: 10px 20px;
  }
  .footer-links {
    margin-right: 0;
  }
  .footer-inner .muted {
    width: 100%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .legend {
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }
}

/* 404 */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.notfound h1 {
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.04em;
}
