@import url("fonts.css");

html {
  width: 100%;
}

body {
  font-family: "Geist Sans", sans-serif;
  background: #000000;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-direction: column;
  overflow-x: hidden;
}

.header {
  width: 100%;
  padding: 2px 0;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #323232;
  background: linear-gradient(180deg, #000000, #181818);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: 10px 20px;
  margin: 0 auto;
  transition: all 0.2s linear;
  position: relative;
}

@media (min-width: 768px) {
  .header__inner {
    padding: 10px;
  }
}

.header__inner-left {
  display: flex;
  align-items: center;
}

.header__title {
  margin: 0;
  font-size: 24px;
  background: -webkit-linear-gradient(280deg, #ffffff, #4d4d4d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__nav {
  display: none;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__nav.active {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 2rem;
}

.header__link {
  color: #8a8a8a;
  text-decoration: none;
  font-size: 16px;
}

.header__link:hover {
  color: #ffffff;
}

.header__auth {
  display: none;
  align-items: center;
  margin-right: 20px;
  padding: 20px 0px;
}

@media (min-width: 768px) {
  .header__auth {
    display: flex;
  }
}

.header__button {
  background-color: transparent;
  font-family: "Geist Sans", sans-serif;
  color: #ffffff;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #525252;
  padding: 10px 20px;
  transition: all 0.2s linear;
  cursor: pointer;
  margin-left: 10px;
}

.header__button:hover {
  background-color: #262626;
  color: #ffffff;
  border: 1px solid #a4a4a4;
}

.header__button--sign-in {
  background-color: cadetblue;
}

.header__mobile__icon {
  position: absolute;
  z-index: 99;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  display: flex;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .header__mobile__icon {
    display: none;
  }
}

.header__mobile-button {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000000;
  z-index: 98;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .header__mobile-button {
    display: none !important;
  }
}

.header__mobile-link {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mobile__link {
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  color: #8a8a8a;
  letter-spacing: 0.05rem;
  transition: all 0.2s linear;
  display: block;
  position: relative;
  padding: 10px;
}

.mobile__link:hover {
  color: #ffffff;
}

.header__mobile-button nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile__button--create,
.mobile__button--sign-in {
  margin: 5px 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  width: 200px;
}

.container {
  position: relative;
  top: 10rem;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 90px 0;
  padding-bottom: 20px;
  z-index: 1;
}

.container__title {
  font-size: 55px;
  margin: 20px 0;
  color: #ffffff;
}

.container__description {
  font-size: 18px;
  color: #bbbbbb;
  margin: 20px 0;
}

.container__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: auto;
}

.container__button {
  margin: 10px;
  padding: 10px 20px;
  background-color: #ffffff;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: all 0.2s linear;
  border-radius: 0.5rem;
  color: #222222;
}

.container__button:hover {
  background-color: #262626;
  border: 1px solid #d7d7d7;
  color: #ffffff;
  cursor: pointer;
}

.container__button.container__button--view-docs {
  background: transparent;
  color: #ffffff;
  border: 1px solid transparent;
}

button.container__button--view-docs::before,
button.container__button--view-docs::after {
  content: '';
  width: 0;
  height: 2px;
  position: absolute;
  transition: all 0.2s linear;
  background: #3f3f3f;
}

button.container__button--view-docs span::before,
button.container__button--view-docs span::after {
  content: '';
  width: 2px;
  height: 0;
  position: absolute;
  transition: all 0.2s linear;
  background: #a4a4a4;
}

button.container__button--view-docs:hover::before,
button.container__button--view-docs:hover::after {
  width: 100%;
}

button.container__button--view-docs:hover span::before,
button.container__button--view-docs:hover span::after {
  height: 100%;
}

button.container__button--view-docs::after {
  right: 0;
  bottom: 0;
  transition-duration: 0.4s;
}

button.container__button--view-docs span::after {
  right: 0;
  bottom: 0;
  transition-duration: 0.4s;
}

button.container__button--view-docs::before {
  left: 0;
  top: 0;
  transition-duration: 0.4s;
}

button.container__button--view-docs span::before {
  left: 0;
  top: 0;
  transition-duration: 0.4s;
}

button.container__button--view-docs {
  display: flex;
  align-items: center;
  position: relative;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  margin: 0;
  background: #1A2929;
}

button.container__button--view-docs span {
  display: block;
  padding: 2px 10px;
}

.code-container {
  background: radial-gradient(#444444, #000000);
  border: 1px solid #282828;
  border-radius: 10px;
  padding: 25px 0 0 0;
  width: 100%;
  max-width: 375px;
  margin: 120px auto 0 auto;
}

.code-container-bg-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 500px;
  z-index: -1;
  background: linear-gradient(
          to bottom,
          transparent,
          rgba(80,80,80, 0.8),
          transparent
  );
  filter: blur(100px);
  pointer-events: none;
}

@media (min-width: 500px) {
  .code-container {
    max-width: 500px;
  }
}

@media (min-width: 1050px) {
  .code-container {
    max-width: 960px;
  }
}

.code-container__tabs {
  display: flex;
  justify-content: start;
  border-radius: 5px;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 10px;
}

.code-container__tab {
  background-color: #121212;
  padding: 10px 15px;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border: 1px solid #323232;
  color: #4d4d4d;
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  align-items: center;
  gap: 0.6rem;
}

.code-container__tab--active {
  color: #d2d2d2;
  background: radial-gradient(circle, #2f2f2f, #121212);
}

.code-container__icon {
  font-size: 1.2rem;
  filter: grayscale(100%);
}

.code-container__content {
  position: relative;
  background: linear-gradient(180deg, #191919, #000000);
  border-radius: 0.6rem;
  padding: 20px;
  height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 #1a1a1a;
}

.code-container__content::-webkit-scrollbar {
  width: 8px;
}

.code-container__content::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 0 0.6rem 0.6rem 0;
}

.code-container__content::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 10px;
  border: 2px solid #1a1a1a;
}

.code-container__content::-webkit-scrollbar-thumb:hover {
  background-color: #444;
}

.code-container__code {
  display: none;
  background-color: transparent !important;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-container__code--active {
  display: flex;
}

pre[class*="language-"] {
  background: transparent;
  width: 100%;
  padding: 0;
  margin: 0;
}

.code-container__content pre[class*="language-"] {
  padding: 10px;
  border-radius: 5px;
}

pre[class*="language-"].line-numbers {
  position: relative;
  padding-left: 3.8em;
  counter-reset: linenumber;
}

pre[class*="language-"].line-numbers > code {
  position: relative;
  white-space: inherit;
}

.line-numbers .line-numbers-rows {
  position: absolute;
  pointer-events: none;
  top: 0;
  font-size: 100%;
  left: -3.8em;
  width: 3em;
  letter-spacing: -1px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.line-numbers-rows > span {
  display: block;
  counter-increment: linenumber;
}

.line-numbers-rows > span:before {
  content: counter(linenumber);
  color: #4f4f4f;
  display: block;
  padding-right: 0.8em;
  text-align: right;
}

.copy-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.25rem;
  width: 2rem;
  height: 2rem;
  color: #3b3b3b;
  z-index: 2;
}

.copy-icon:hover, .fa-copy:hover {
  color: #828282;
  cursor: pointer;
}

.open-source-section {
  text-align: center;
  padding: 50px 20px;
  width: 100%;
  margin: 0 auto;
  z-index: 1;
}

.section-subtitle {
  font-size: 18px;
  color: #888888;
  margin-bottom: 10px;
}

.section-title {
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.section-description {
  font-size: 18px;
  color: #bbbbbb;
  margin-bottom: 30px;
}

.github-button {
  background-color: #1A2929;
  border: 2px solid #3f3f3f;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s linear;
  display: inline-flex;
  align-items: center;
}

.github-button i {
  margin-right: 10px;
  font-size: 20px;
}

.github-button:hover {
  border-color: #a4a4a4;
}

.gitPulse {
  position: relative;
  padding: 100px 0;
}

.gitPulse img {
  width: 100%;
  max-width: 600px;
}

.gitPulse__bg {
  top: -200px;
  left: 0;
  margin: 140px 0 70px 0;
  opacity: 0.25;
  background-image: url("../images/circuits.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  -moz-filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
  -o-filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
  -webkit-filter: grayscale(100%);
  filter: gray;
  filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
}

.footer {
  padding-top: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: hidden;
}

.footer__inner {
  position: absolute;
  display: flex;
  gap: 10px;
  margin-top: 5rem;
}

@media screen and (min-width: 768px) {
  .footer__inner {
    margin-top: 1rem;
    overflow-y: hidden;
    height: 155px;
  }
}

.footer__inner span {
  font-size: 15vw;
  font-weight: bold;
  letter-spacing: -0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in, transform 0.5s ease-in;
  background: linear-gradient(to right, #404040, #212121);
  background-clip: text;
  color: transparent;
}

.footer__inner span.animate {
  opacity: 0.75;
  transform: translateY(0);
}

@keyframes fall {
  0% {
    transform: translateY(-10vh);
    opacity: 0;
  }
  10% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

.star {
  position: fixed;
  top: -10vh;
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #ffffff, transparent);
  opacity: 0;
  animation: fall 3s linear infinite;
}

.star::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100px;
  background: linear-gradient(to top, #ffffff, #ffffff, transparent);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: twinkling 4s infinite;
}

@keyframes twinkling {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}