:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.corner-link-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 150px; 
  height: 150px;
}

#corner-link-background {
  width: 0;
  height: 0;
  border-top: 100px solid black;
  border-left: 100px solid transparent;
  position: absolute;
  top: 0;
  right: 0;
}

#corner-link-image {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 55px;
  height: 55px;
  transform: rotate(45deg);
}

.hero {
	display: flex;
	justify-content: center;
  align-items: center;
	height: 100%;
	padding: 48px;
  gap: 32px;
}

.preview {
  flex: 3;
  position: relative;
}

#preview-screenshot-image {
  max-width: 100%;
  height: auto;
}

.preview::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.details {
  flex: 2;
  position: relative;
}

#button-container {
  display: flex;
  gap: 8px;
}

.features {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-header {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.feature-icon {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-weight: bold;
  font-size: normal;
}

.feature-description {
  flex: 1;
  font-weight: normal;
  font-size: small;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #eeeeee;
    transition: background-color 0.25s;
  }
  button:hover {
    background-color: #cecece;
  }

  #corner-link-background {
    border-top-color: #000000;
  }

  #corner-link-image {
    fill: white;
  }

  .preview::after {
    background: linear-gradient(to right, rgba(255,255,255,0), #ffffff);
    box-shadow: -4px 0 8px #eeeeee;
  }

  #button-download {
    background-color: #333333;
    color: #ffffff;
  }

  #button-download:hover {
    background-color: #444444;
  }

  .feature-card:focus {
    outline: none;
  }

  .feature-card:hover {
    background-color: #333333;
    color: #ffffff;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: rgba(255, 255, 255, 0.87);
    background-color: #242424;
  }
  a:hover {
    color: #646cff;
  }
  button {
    background-color: #333333;
    color: #ffffff;
    transition: background-color 0.5s;
  }
  button:hover {
    background-color: #444444;
  }

  #corner-link-background {
    border-top-color: #ffffff;
  }

  #corner-link-image {
    fill: black;
  }

  .preview::after {
    background: linear-gradient(to right, rgba(36,36,36,0), #242424);
    box-shadow: -4px 0 8px #333333;
  }

  #button-download {
    background-color: #eeeeee;
    color: #000000;
  }
  #button-download:hover {
    background-color: #cecece;
  }

  .feature-card:focus {
    outline: none;
  }

  .feature-card:hover {
    background-color: #eeeeee;
    color: #000000;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 24px;
  }

  .preview, .details {
    width: 100%;
    max-width: 100%;
  }

  .preview::after {
    background: none;
  }
}