html {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  background: #080808;
  color: #f5f5f5;
  font-family: var(--font-hanken);
}

/* --- hero --- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 0 20rem;
  padding-top: 10rem;
}

.hero .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .text h1 {
  margin: 0;
  font-size: 4.25rem;
  font-weight: 900;
  font-family: var(--font-space);
  letter-spacing: -2;
  line-height: 1;
}

.hero .text p {
  margin: 2rem 0;
  font-size: 1.1rem;
  opacity: 0.8;
}

.hero .text .cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.hero .text .cta a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  outline: 1px solid #34303daa;
  color: #f5f5f5;
  font-size: 1.1rem;
  font-weight: 300;
  font-family: var(--font-space);
  text-decoration: none;
  transition: 0.15s;
}

.hero .text .cta a:hover {
  background: #34303daa;
}

.hero .text .cta a.primary {
  outline: none;
  background: #8000ff;
}

.hero .text .cta a.primary:hover {
  opacity: 0.9;
}

.hero .text .cta a.primary:hover .icon-arrow-left {
  transform: translateX(0.25rem);
}

.hero .terminal {
  height: max-content;
  padding: 0.25rem;
  border: 1px solid #34303daa;
  background: #000;
  transform: perspective(1200px) rotateX(8deg) rotateY(-12deg) scale(1.1);
  transform-style: preserve-3d;
  box-shadow:
    0 20px 40px #12101d73,
    0 0 0 1px #ffffff08;
  animation: float 8s ease-in-out infinite;
  transition: transform 0.3s;
}

@keyframes float {
  0% {
    transform: perspective(1200px) rotateX(8deg) rotateY(-12deg) scale(1.1) translateY(0px);
  }
  50% {
    transform: perspective(1200px) rotateX(8deg) rotateY(-12deg) scale(1.1) translateY(-8px);
  }
  100% {
    transform: perspective(1200px) rotateX(8deg) rotateY(-12deg) scale(1.1) translateY(0px);
  }
}

.hero .terminal:hover {
  transform: perspective(1200px) rotateX(6deg) rotateY(-9deg) translateY(-2px) scale(1.08);
}

.hero .terminal .head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 2rem);
  padding: 0.25rem 1rem;
  background: #34303daa;
}

.hero .terminal .head .left {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
}

.hero .terminal .head .left span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #45404daa;
}

.hero .terminal .head p {
  margin: 0;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  opacity: 0.9;
}

.hero .terminal .command {
  padding: 1.5rem;
}

.hero .terminal .command pre {
  margin: 0;
  margin-bottom: 0.25rem;
  color: #f5f5f5;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.hero .terminal .command hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid #34303daa;
}

/* --- stats --- */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin: 0 20rem;
  padding: 3rem 0;
  border-bottom: 1px solid #34303daa;
}

.stats div {
  padding: 1.5rem;
  border: 1px solid #34303daa;
  background: #12101daa;
}

.stats div p {
  margin: 0;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  opacity: 0.8;
}

.stats div b {
  color: #d5baff;
  font-size: 2rem;
  font-weight: 600;
  font-family: var(--font-space);
  letter-spacing: -0.2;
}

/* --- reference --- */

.reference {
  margin: 0 20rem;
  padding: 3rem 0;
  padding-bottom: calc(3rem + 1.66rem);
  border-bottom: 1px solid #34303daa;
}

.reference h2 {
  margin-bottom: 3rem;
  text-align: center;
  font-size: 2rem;
  font-family: var(--font-space);
}

.reference .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem;
}

.reference .container .select {
  display: flex;
  flex-direction: column;
}

.reference .container .select button {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid #34303daa;
  background: transparent;
  color: #f5f5f5;
  font-size: 1rem;
  font-family: var(--font-space);
  cursor: pointer;
  transition: 0.15s;
}

.reference .container .select button:hover {
  background: #24202d90;
}

.reference .container .select button.active {
  border-left: 3px solid #d5baff;
  background: #24202daa;
}

.reference .container .select button.active span {
  background-color: #d5baff;
}

.reference .container .example {
  padding: 1rem;
  border: 1px solid #34303daa;
  background: #000;
}

.reference .container .example .head {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.reference .container .example .head button {
  padding: 0.2rem 0.75rem;
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-family: var(--font-mono);
  cursor: pointer;
  opacity: 0.8;
  transition: 0.15s;
}

.reference .container .example .head button:hover {
  background: #34303d90;
  opacity: 0.9;
}

.reference .container .example .head button.active {
  background: #34303daa;
  opacity: 1;
}

.reference .container .example #code pre {
  margin: 0;
  margin-bottom: 0.25rem;
  color: #f5f5f5;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

/* --- more --- */

.more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin: 0 20rem;
  padding: 3rem 0;
}

.more h2 {
  font-size: 2rem;
  font-family: var(--font-space);
}

.more .news .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.more .news .container .item {
  display: flex;
  flex-direction: column;
  width: max-content;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.more .news .container .item small {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  opacity: 0.8;
}

.more .news .container .item b {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-family: var(--font-space);
  transition: 0.15s;
}

.more .news .container .item:hover b {
  color: #d5baff;
}

.more .news .container .item p {
  margin: 0;
  opacity: 0.9;
}

.more .faq .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.more .faq .container .card {
  position: relative;
  padding: 1rem;
  border: 1px solid #34303daa;
  background: #12101daa;
}

.more .faq .container .card b {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.more .faq .container .card.active b span {
  background-color: #d5baff;
  transform: rotate(180deg);
}

.more .faq .container .card .content {
  display: none;
  z-index: -100;
}

.more .faq .container .card.active .content {
  display: block;
  margin-top: 1.5rem;
}

/* --- icons --- */

.icon-arrow-left {
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #f5f5f5;
  -webkit-mask: url('/static/icon/arrow-small-right.svg') no-repeat center;
  mask: url('/static/icon/arrow-small-right.svg') no-repeat center;
  mask-size: contain;
  transition: 0.15s;
}

.icon-document {
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #f5f5f5;
  -webkit-mask: url('/static/icon/document.svg') no-repeat center;
  mask: url('/static/icon/document.svg') no-repeat center;
  mask-size: contain;
  transition: 0.15s;
}

.icon-graphic-style {
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #f5f5f5;
  -webkit-mask: url('/static/icon/graphic-style.svg') no-repeat center;
  mask: url('/static/icon/graphic-style.svg') no-repeat center;
  mask-size: contain;
  transition: 0.15s;
}

.icon-phishing {
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #f5f5f5;
  -webkit-mask: url('/static/icon/phishing.svg') no-repeat center;
  mask: url('/static/icon/phishing.svg') no-repeat center;
  mask-size: contain;
  transition: 0.15s;
}

.icon-brain-question-mark {
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #f5f5f5;
  -webkit-mask: url('/static/icon/brain-question-mark.svg') no-repeat center;
  mask: url('/static/icon/brain-question-mark.svg') no-repeat center;
  mask-size: contain;
  transition: 0.15s;
}

.icon-arrow-up {
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #f5f5f5;
  -webkit-mask: url('/static/icon/angle-small-up.svg') no-repeat center;
  mask: url('/static/icon/angle-small-up.svg') no-repeat center;
  mask-size: contain;
  transition: 0.15s;
}

/* --- pre colors --- */

span.purple {color: #d5baff;}
span.green {color: #10b981;}
span.red{color: #ef4444;}
span.orange{color: #ffb692;}

/* --- Laptop --- */

@media (max-width: 1600px) {
  .hero {
    padding: 0 12.5rem;
    padding-top: 10rem;
  }

  .stats {
    margin: 0 12.5rem;
    padding: 3rem 0;
  }

  .reference {
    margin: 0 12.5rem;
  }

  .more {
    margin: 0 12.5rem;
  }
}

/* --- tablet --- */

@media (max-width: 768px) {

}

/* --- mobile --- */

@media (max-width: 480px) {
  * {
    box-sizing: border-box;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .hero .text {
    margin-top: 10rem;
  }

  .hero .terminal {
    width: 100%;
    transform: none;
    overflow-x: hidden;
    animation: none;
  }

  .hero .terminal:hover {
    transform: none;
  }

  .hero .terminal .head {
    width: 100%;
  }

  .hero .terminal .command {
    padding: 0.5rem;
    overflow-x: auto;
  }

  .stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 1rem;
    padding: 0;
    padding-top: 6rem;
  }

  .reference {
    margin: 0 1rem;
  }

  .reference .container {
    display: flex;
    flex-direction: column;
  }

  .reference .container .example #code {
    overflow-x: auto;
  }

  .more {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 0 1rem;
  }

  .more .news .container .item {
    width: 100%;
  }
}