@import url(https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap);

:root {
  --dark: rgba(0, 0, 20, 0.8);
  --muted: rgba(0, 0, 20, 0.5);
  --light: #fff;
}

* {
  font-family: "Google Sans Flex", sans-serif;
  font-optical-sizing: auto;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  margin: 0;
  padding: 0;
  color: var(--dark);
  background: transparent;
  transition: all 0.2s ease;
}

body {
  margin: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

::selection {
  background: var(--dark);
  color: #fff;
}

.column {
  width: 360px;
  position: fixed;
  background: white;
  margin: 0 auto;
  height: auto;
  min-height: 100vh;
  pointer-events: auto;
  top: 0;
  filter: blur(20px);
}

header {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  text-align: right;
}

header > :nth-child(1),
header > :nth-child(2) {
  flex: 1;
}
header > :nth-child(n + 3) {
  flex: 0 0 100%;
}

header div {
  flex: 1;
  position: relative;
  height: 100vh;
  overflow: hidden;
  justify-content: center;
  user-select: none;
  pointer-events: none;
  background: #fff;
  gap: 20px;
  display: flex;
  flex-direction: column;
  padding: 100px 30px;
  text-align: center;
}

header div:nth-child(1) {
  align-items: end;
}

header p {
  user-select: none;
  pointer-events: none;
  position: absolute;
  bottom: 50px;
  margin: auto;
  left: 50%;
  transform: translateX(-50%);
  animation: blink 2s infinite linear;
}

.cmd {
  font-size: 14px;
  line-height: 1.6;
  color: #24292e;
  margin: 0;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: hidden;
  line-height: 1.2;
  position: relative;
  padding: 5px 20px;
}

.cmd-line {
  display: block;
  height: 12px;
  content: "";
}

.cmd-lang {
  opacity: 1;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: fit-content;
  margin-bottom: 10px;
  transition:
    opacity 0.5s ease,
    color 0.5s ease;
}

.cmd.typing .cmd-lang {
  opacity: 0.2;
  color: #000 !important;
}

.cmd-cm {
  color: #a0a1a7;
  font-style: italic;
}
.cmd-kw {
  color: #0098dd;
  font-weight: bold;
}
.cmd-fn {
  color: #23974a;
}
.cmd-prop {
  color: #a05a48;
}
.cmd-st {
  color: #c5a332;
}
.cmd-num {
  color: #ce33c0;
}
.cmd-const {
  color: #823ff1;
}
.cmd-tag {
  color: #275fe4;
}
.cmd-attr {
  color: #df631c;
}
.cmd-type {
  color: #d52753;
}
.cmd-op {
  color: #7a82da;
}

.cmd::after {
  content: "|";
  animation: blink 1s infinite;
  color: var(--muted);
  font-weight: bold;
}

.cmd.typing::after {
  animation: none;
  opacity: 1;
}

.frame {
  width: 320px;
  height: auto;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.track {
  display: flex;
  width: fit-content;
  height: auto;
  min-height: 100vh;
  transition: transform 0.5s cubic-bezier(0.79, 0.14, 0.15, 0.86);
}

.step {
  width: 320px;
  padding: 150px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto;
  height: auto;
  max-height: 0px;
  overflow: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    max-height 0.5s ease;
}

.step.active {
  opacity: 1;
  max-height: 5000px;
  transition:
    opacity 1s ease,
    max-height 0s ease;
}

nav {
  display: flex;
  align-items: center;
  padding: 25px 50px;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  flex-wrap: wrap;
  column-gap: 100px;
  justify-content: center;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.2);
  row-gap: 20px;
  backdrop-filter: blur(25px);
  user-select: none;
}

nav > div:first-of-type {
  font-weight: 500;
  font-size: 16px;
  color: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
}

nav > div:first-of-type svg {
  width: 18px;
  position: absolute;
  left: -22px;
  bottom: 2px;
}

nav > div:last-of-type {
  display: flex;
  gap: 35px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  align-items: center;
}

.logo svg {
  width: 40px;
  display: block;
  margin: auto;
  animation: float 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.words {
  font-size: 20px;
  width: 100%;
  min-width: 100px;
  transition: width 1.5s cubic-bezier(0.6, 0, 0.4, 1);
  margin: auto;
  user-select: none;
  pointer-events: none;
  margin-bottom: 50px;
  margin-top: 10px;
}

.words p {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  color: var(--muted);
}

.words .word {
  position: absolute;
  width: fit-content;
  opacity: 0;
  font-weight: 700;
}

.words .word:nth-child(1) .letter {
  rotate: 5deg;
}

.words .letter {
  display: inline-block;
  position: relative;
  transition: transform 0s;
  transform: translateZ(25px);
  transform-origin: 50% 50% 25px;
  color: inherit;
}

.words .letter.out {
  transform: rotateX(90deg);
  transition: transform 0.32s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.words .letter.behind {
  transform: rotateX(-90deg);
}

.words .letter.in {
  transform: rotateX(0deg);
  transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

h1 {
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  z-index: 1;
}

h2 {
  font-size: 40px;
  font-weight: 200;
  cursor: default;
}

h3 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

ol {
  margin: 5px 0px;
  display: grid;
  gap: 10px;
  margin-left: 20px;
}

li {
  padding: 10px;
  color: var(--dark);
}

input[type="file"] {
  display: none;
}

input[type="text"],
input[type="password"],
textarea {
  display: block;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  outline: none;
  text-transform: lowercase;
}

textarea {
  font-family: monospace;
  height: 120px;
  resize: none;
}

input[type="password"] {
  text-transform: uppercase;
  letter-spacing: 5px;
}

table {
  text-align: left;
  font-size: 13px;
  display: block;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  outline: none;
}

th {
  padding: 5px;
}

small {
  margin-bottom: -8px;
  color: var(--muted);
  margin-top: 5px;
}

pre {
  font-family: monospace;
  padding: 20px;
  border-radius: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  overflow-x: scroll;
  scrollbar-width: none;
  white-space: nowrap;
}

pre b,
pre span {
  font-family: monospace;
}

code {
  padding: 2px 4px;
  background: var(--dark);
  border-radius: 4px;
  color: #fff;
}

a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  width: fit-content;
  cursor: pointer;
  position: relative;
  user-select: none;
}

a:hover {
  color: var(--dark);
}

a svg {
  width: 18px;
  position: absolute;
  right: 50%;
  opacity: 0;
  pointer-events: none;
  bottom: 50%;
  transform: translate(50%, 50%);
}

a:hover svg {
  opacity: 1;
  margin-bottom: 15px;
  rotate: 0deg;
}

footer {
  margin: 5px 0px;
  display: grid;
  letter-spacing: 1px;
  gap: 10px;
  justify-items: right;
}

.tip {
  font-size: 12px;
  overflow: auto;
  color: var(--muted);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 12px;
}

.packageInfo {
  font-size: 12px;
  margin-top: -10px;
  overflow: auto;
  max-height: 100px;
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 12px;
}

button {
  width: 100%;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px;
  box-sizing: border-box;
  cursor: pointer;
  border: none;
  background: var(--dark);
  color: white;
  letter-spacing: 1px;
  text-align: left;
  padding-left: 15px;
  display: grid;
  align-items: center;
  font-weight: 500;
  position: relative;
  transition: 0.3s ease;
  user-select: none;
}

button:hover {
  padding-left: 20px;
}

button:disabled {
  opacity: 0.2;
  pointer-events: none;
  filter: grayscale(1);
}

button.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--dark);
}

button.tertiary {
  background: transparent;
  color: var(--dark);
}

button.back {
  background: none;
  color: var(--muted);
  border: none;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  width: auto;
  margin: 5px auto 0 auto;
  display: block;
}

button.back:hover {
  text-decoration: underline;
}

button svg {
  width: 20px;
  position: absolute;
  right: 20px;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

button:hover svg {
  opacity: 1;
  transform: scale(1);
}

select {
  width: 100%;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.popup {
  opacity: 0;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid #ccc;
  outline: calc(100vh + 100vw) solid rgba(0, 0, 0, 0.3);
  display: flex;
  pointer-events: none;
  align-items: center;
  text-align: center;
}

.popup p {
  max-width: 320px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
}

.fileList {
  font-size: 12px;
  overflow: auto;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  color: var(--muted);
  padding: 4px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  max-height: 200px;
  min-height: 30px;
}

.fileList div {
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
  color: #fff;
  width: fit-content;
  font-weight: 500;
  font-size: 13px;
  line-break: anywhere;
}

.blobs {
  opacity: 1;
  position: fixed;
  inset: 0;
  margin: auto;
  width: 100vw;
  height: 100vh;
  max-width: 1000px;
  max-height: 1000px;
  z-index: -1;
  overflow: hidden;
  filter: blur(80px);
  transition: scale 1s ease;
  animation: rotate 10s linear infinite;
}

.blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: #fff;
  border-radius: 50%;
  will-change: transform;
  filter: hue-rotate(50deg);
  transition: 1s background ease;
  animation-duration: 20s;
  animation: move 20s infinite alternate ease-in-out;
}

.blob:nth-child(2) {
  filter: hue-rotate(0deg);
  background: #fff;
  width: 500px;
  height: 500px;
  left: 30%;
  top: 20%;
  animation-duration: 10s;
  animation-delay: -5s;
}

.blob:nth-child(3) {
  filter: hue-rotate(-50deg);
  background: #fff;
  width: 350px;
  height: 350px;
  right: 10%;
  bottom: 10%;
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes move {
  from {
    transform: translate(-10%, -10%) rotate(0deg) scale(0.8);
  }
  to {
    transform: translate(20%, 20%) rotate(360deg) scale(1.5);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.viewport {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
}

.page {
  display: none;
  position: relative;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.page.active.slideUp {
  display: flex;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page.active.slideDown {
  display: flex;
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.words-content {
  text-align: center;
  max-width: 300px;
}

.logo-text {
  font-size: 42px;
  letter-spacing: -2px;
  margin-bottom: 10px;
}

.home-actions {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.waiting {
  pointer-events: none;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: 0s;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.viewport.waiting + .loader {
  opacity: 1;
  transition-delay: 0.5s;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 1px solid transparent;
  border-top: 1px solid var(--dark);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(5deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(-5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

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

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

@media (max-width: 320px) {
  .blobs {
    display: none;
  }
}

@media (max-width: 800px) {
  header div:nth-child(1) {
    align-items: center;
  }
  header div:nth-child(2) {
    display: none;
  }
}
