* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

main {
  background: #03131b;
}

/* Navigation */

#nav-container {
  background: url("https://picsum.photos/id/1019/1920/1080"),
    linear-gradient(transparent, #03131b);

  background-size: cover;
  background-blend-mode: lighten;
}

#nav-container nav {
  text-align: center;

  height: 50vw;
  max-height: 100vh;
}

#nav-container #logo {
  width: 40vw;
  margin-top: 1em;
}

#nav-container #mobile-menu-button {
  font-size: 2em;
  font-weight: 800;
  border: 0.1em solid rgb(25, 156, 150);
  border-radius: 1em;
  position: fixed;
  color: white;
  background: black;
  padding: 0.2em 0.4em;
  margin: 0.5em 0 0 0.5em;
}

#nav-container #mobile-menu-button:hover,
#nav-container #mobile-menu-button:active {
  background: rgb(25, 156, 150);
  cursor: pointer;
}

#nav-container ul {
  list-style: none;
  margin: 0;
  padding: 0;

  position: fixed;
  display: grid;
  align-content: center;
  top: -100vh;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10;
  transition: top 0.5s;
}

#nav-container li:not(:first-child) {
  margin-top: 3em;
}

#nav-container a {
  text-decoration: none;
  font-size: clamp(2em, 8vw, 4em);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 0.5em black;
}

#nav-container a:hover,
#nav-container a:focus {
  color: rgb(0, 183, 255);
  text-shadow: 0 0 30px white;
}

#nav-container .selected {
  border-bottom: 0.3em solid #c2e42950;
  border-radius: 0.4em;
}

/* Home Page */

#home-container {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1em;

  padding: 2em 0 1em 0;
}

#home-container > * {
  margin: 0 1em 0;
}

#home-container div {
  border-radius: 1em;
}

#home-container #home {
  font-size: clamp(16px, 4vw, 64px);
  margin: 0 1em;
  color: #fff;
}

#home-container #legacy {
  background-color: #ddde;
  text-align: center;
  border-radius: 0;
  padding: 0 1em;
  margin: 0;
  width: 100%;
}

#home-container #legacy h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 0;
  margin-top: 0.5em;
}

#home-container #legacy p {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  max-width: 700px;
  margin: 1em auto;
  line-height: 1.5em;
}

#home-container #product {
  font-size: clamp(24px, 4vw, 48px);
  margin: 0;
  color: #ddde;
}

#home-container #schemes h3 {
  font-size: clamp(14px, 3vw, 19px);
  text-decoration: underline;
  margin: 0;
}

#home-container #schemes {
  background: hsl(60deg 100% 42%);
  padding: 1em;
}

#home-container #schemes ul {
  font-size: clamp(14px, 2vw, 16px);
  margin: 0.4em 0;
  padding-left: 1.5em;
  list-style-type: square;
}

#home-container #schemes li:not(:last-child) {
  margin-bottom: 0.2em;
}

#home-container #more {
  text-align: center;
}

#home-container #service p,
#home-container #system li {
  color: white;
}

#home-container #service,
#home-container #system {
  color: white;
  background: rgb(22, 28, 53);
  padding: 1.5em;
  color: lightsteelblue;
}

#home-container #service h2,
#home-container #system h2 {
  margin: 0;
}

#home-container #service p:last-child {
  margin-bottom: 0;
}

#home-container #system ul {
  margin-bottom: 0;
}

#home-container #system li:not(:last-child) {
  margin-bottom: 0.3em;
}

/* About Page */

#about-container {
  font-size: clamp(16px, 1.2vw, 21px);
  display: flex;
  flex-direction: column;
  padding: 1em;
  color: gray;
}

#about-container h1 {
  margin: 0;
  color: #32ff7e;
}

#about-container span {
  color: rgb(228, 250, 31);
}

#about-container h3 {
  color: #3ae374;
}

#about-container p {
  margin-bottom: 0;
}

#about-container ol {
  margin: 0;
}

#about-container li:not(:last-child) {
  margin-bottom: 1em;
}

#about-container li::marker {
  color: rgb(0, 183, 255);
}

#about-container ol {
  padding: 0;
  counter-reset: n;
  list-style: none;
}

#about-container li {
  counter-increment: n;

  color: #b1b1b1;
  background: #06273a80;
  border-radius: 0.3em;
  padding: 0.5em;
}

#about-container li::before {
  font-size: 1.3em;
  color: rgb(0, 183, 255);
  content: counter(n) ". ";
  display: block;
  border-bottom: 1px solid;
  margin-bottom: 0.2em;
  padding-bottom: 0.2em;
  border-image: linear-gradient(
      to right,
      transparent,
      rgb(0, 183, 255) 5%,
      transparent
    )
    1 round;
}

#about-container li::after {
  display: block;
  content: "✔️";
  text-align: right;
}

#about-container li:hover::before {
  animation: inflate 1s;
}

#about-container li:hover::after {
  animation: move 2s;
}

/* System Page */

#system-container {
  display: grid;
  justify-items: center;
  gap: 1em 0;
  padding: 1em;
}

#system-container div {
  border-radius: 1em;
  align-self: flex-start;
  width: 100%;
  padding: clamp(1px, 3vw, 24px);
}

#system-container #solution {
  background: repeating-linear-gradient(
      orange,
      orange 15%,
      transparent 20%,
      transparent
    ),
    repeating-linear-gradient(orange, white);
}

#system-container #incentivize {
  background: repeating-linear-gradient(
      rgb(41, 163, 92),
      rgb(41, 163, 92) 15%,
      transparent 20%,
      transparent
    ),
    repeating-linear-gradient(rgb(41, 163, 92), white);
}

#system-container #automate {
  background: repeating-linear-gradient(
      rgb(228, 250, 31),
      rgb(228, 250, 31) 15%,
      transparent 20%,
      transparent
    ),
    repeating-linear-gradient(rgb(228, 250, 31), white);
}

#system-container #bonus-system {
  background: repeating-linear-gradient(
      rgb(0, 160, 172),
      rgb(0, 160, 172) 15%,
      transparent 20%,
      transparent
    ),
    repeating-linear-gradient(rgb(0, 160, 172), white);
}

#system-container h1 {
  margin-top: 0;
  font-size: clamp(12px, 4vw, 64px);
  color: white;
}

#system-container h2 {
  font-size: clamp(12px, 3vw, 48px);
  margin: 0 0 0.5em 0;
}

#system-container ul {
  margin: 0;
}

#system-container li {
  font-size: clamp(12px, 2vw, 32px);
}

#system-container li:not(:last-child) {
  margin-bottom: 0.5em;
}

/* Contact Page */
#contact-container #contact {
  font-size: clamp(12px, 12vw, 64px);
  color: white;
  margin-top: 0;
}

#contact-container {
  display: grid;
  place-items: center;
  padding: 1em;
}

#contact-container span {
  color: red;
}

#contact-container #svgMail,
#contact-container #svgPhone {
  width: 50%;
}

#contact-container p {
  color: white;
  font-size: clamp(12px, 9vw, 64px);
  text-align: center;
}

#contact-container pre {
    color: white;
    font-size: clamp(12px, 9vw, 64px);
    text-align: left;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type="submit"] {
  background-color: #04aa6d;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

.form-container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  margin: 4rem;
}

@keyframes move {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-0.8em);
  }
  40% {
    transform: translateX(0);
  }
  60% {
    transform: translateX(-0.4em);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes inflate {
  0% {
    transform: scale(1, 1);
    color: default;
  }
  50% {
    transform: scale(1, 1.2);
    color: #3ae374;
  }
  100% {
    transform: scale(1, 1);
    color: default;
  }
}

@media (min-width: 500px) {
  #home-container #schemes {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #home-container #more {
    grid-column: span 2;
  }

  #home-container #schemes div {
    background-color: hsl(60deg 100% 57%);
    margin: 1em;
    padding: 1em;
  }
}

@media (min-width: 800px) {
  #nav-container #mobile-menu-button {
    display: none;
  }

  #nav-container nav {
    display: grid;
  }

  #nav-container ul {
    margin: 0 0 1em 2em;

    position: initial;
    display: flex;
    align-content: initial;
    top: initial;
    left: initial;
    height: initial;
    width: initial;
    background-color: initial;
    z-index: initial;
    transition: initial;
    align-self: end;
  }

  #nav-container #logo {
    justify-self: end;
  }

  #nav-container li:not(:first-child) {
    margin-top: 0;
  }

  #nav-container img {
    align-self: flex-start;
    margin: 1em 2em 0 0;
  }

  #nav-container .nav-item:not(:first-child) a {
    margin: 0 0 0 1em;
  }

  #nav-container a {
    font-size: clamp(14px, 4vw, 40px);
  }

  #nav-container a:hover,
  #nav-container a:focus {
    color: #052435;
  }

  /* Home Page */

  #home-container {
    grid-template-columns: 1fr 1fr;
    gap: 1em 0;
  }

  #home-container #home,
  #home-container #legacy,
  #home-container #product,
  #home-container #schemes {
    grid-column: span 2;
  }

  #home-container #service {
    margin-right: 0.5em;
  }

  #home-container #bonus-system {
    margin-left: 0.5em;
  }

  /* System Page */

  #system-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }

  #system-container #system {
    grid-column: span 2;
    margin: 0.5em 0 0 0;
  }

  /* Contact Page */

  #contact-container {
    grid-template-columns: 1fr 1fr;
  }

  #contact-container #contact {
    grid-column: span 2;
  }
}

@media (min-width: 1300px) {
  #home-container {
    grid-template-columns: 1fr auto 1fr;
  }

  #home-container #home,
  #home-container #legacy {
    grid-column: span 3;
  }

  #home-container #product {
    color: unset;
    justify-self: stretch;
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    margin-left: 0.33em;
    z-index: 0;
    text-align: center;
  }

  #home-container #schemes {
    grid-row: span 2;
    grid-column: 1;
    margin: -4.6em 0 0 1em;
    padding-top: 4em;
    width: 95%;
  }

  #home-container #service,
  #home-container #system {
    grid-column: 3 / 4;
    width: 95%;

    margin: 0 1em 0 1em;
  }

  #home-container #service {
    grid-row: 3 / span 2;
  }

  /* Contact Page */

  #contact-container #svgPhone {
    grid-row: 2;
    grid-column: 2;
  }
}
