/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
@import url('https://fonts.googleapis.com/css2?family=Caudex:ital,wght@0,400;0,700;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import '../../demo/styling/demo.css';

*,
*::before,
*::after {
  box-sizing: border-box !important;
}

html {
  scroll-behavior: smooth;
  font-family: 'DM Sans', sans-serif;
}

a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

:root {
  --ifm-color-primary: #E46B39;
  --ifm-color-primary-dark: #E46B39;
  --ifm-color-primary-darker: #E46B39;
  --ifm-color-primary-darkest: #E46B39;
  --ifm-color-primary-light: #E46B39;
  --ifm-color-primary-lighter: #E46B39;
  --ifm-color-primary-lightest: #E46B39;
  --ifm-code-font-size: 95%;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);

  --landing-text-color: #F6F6F6;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
  --ifm-color-primary: #E46B39;
  --ifm-color-primary-dark: #E46B39;
  --ifm-color-primary-darker: #E46B39;
  --ifm-color-primary-darkest: #E46B39;
  --ifm-color-primary-light: #E46B39;
  --ifm-color-primary-lighter: #E46B39;
  --ifm-color-primary-lightest: #E46B39;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);

  --landing-text-color: #F6F6F6;
  --landing-bg-color: #272828;
}

[data-theme='light'] {
  --ifm-color-primary: #E46B39;
  --ifm-color-primary-dark: #E46B39;
  --ifm-color-primary-darker: #E46B39;
  --ifm-color-primary-darkest: #E46B39;
  --ifm-color-primary-light: #E46B39;
  --ifm-color-primary-lighter: #E46B39;
  --ifm-color-primary-lightest: #E46B39;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);

  --landing-text-color: #272828;
  --landing-bg-color: #F6F6F6;
}

[data-theme='dark'] .landing-title-line__third img {
  filter: invert(100%);
}

[data-theme='light'] .landing-logo {
  background-image: url('../../static/img/haiku-logo-dark.svg');
}

[data-theme='dark'] .landing-logo.invertedLogo {
  background-image: url('../../static/img/haiku-logo-dark.svg');
}

[data-theme='light'] .landing-logo.invertedLogo {
  background-image: url('../../static/img/haiku-logo.svg');
}

[data-theme='light'] .navbar__logo {
  filter: invert(80%);
}

[data-theme='light'] .docs-logo img {
  filter: invert(100%) !important;
}

.home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 99999999;
  background-color: var(--landing-bg-color);
  opacity: 1;
}

.squares-bg {
  position: fixed;
  z-index: -5;
  top: 0;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(#e46c3924 1.6px, transparent 1.6px), linear-gradient(to right, #e46c392a 1.6px, var(--landing-bg-color) 1.6px);
  background-size: 32px 32px;
  animation: move 30s linear infinite;
}

@keyframes move {
  0% {
    transform: translate(50px, 0);
  }

  10% {
    transform: translate(70.71px, 29.29px);
  }

  20% {
    transform: translate(100px, 50px);
  }

  30% {
    transform: translate(70.71px, 70.71px);
  }

  40% {
    transform: translate(50px, 100px);
  }

  50% {
    transform: translate(29.29px, 70.71px);
  }

  60% {
    transform: translate(0, 50px);
  }

  70% {
    transform: translate(29.29px, 29.29px);
  }

  80% {
    transform: translate(50px, 0);
  }

  90% {
    transform: translate(29.29px, -29.29px);
  }

  100% {
    transform: translate(50px, 0);
  }
}

.no-scroll {
  overflow: hidden !important;
}

/* SplitText.css */
.letter {
  display: inline-block;
  will-change: transform, opacity;
}

.split-parent {
  display: inline;
}

.swiper-pagination-bullet-active {
  background-color: #272828 !important;
}

/* NAVIGATION STUFF */
.landing-header {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  transition: .3s ease;
}

.landing-nav {
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  transition: .5s ease;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 4em;
}

.landing-logo {
  width: 110px;
  height: 60px;
  background-image: url('../../static/img/haiku-logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  transition: filter .3s ease;
}

.landing-links a {
  font-size: 18px;
  font-weight: 500;
  color: var(--landing-text-color);
  transition: opacity .3s ease;
}

.landing-links a:hover {
  opacity: 0.5;
  transition: opacity .3s ease;
  text-decoration: none;
}

.landing-menu a {
  color: var(--landing-bg-color);
  border-bottom: 1px solid var(--landing-bg-color);
  padding: .5em 0;
  font-size: 2rem;
  transition: opacity .3s ease;
}

.landing-menu a:hover {
  text-decoration: none;
  opacity: 0.5;
  transition: opacity .3s ease;
}

.pills {
  display: flex;
  align-items: center;
  gap: 1em;
}

.pills .landing-version,
.menu-toggle {
  font-size: 18px;
  font-weight: 600;
  color: #F6F6F6;
  padding: .5em 1em;
  border-radius: 50px;
}

.menu-toggle {
  color: var(--landing-bg-color)
}

.landing-version {
  transition: transform .3s ease;
  background-color: var(--ifm-color-primary);
}

.landing-version:hover {
  color: #F6F6F6;
  text-decoration: none;
  transform: scale(0.9);
  transition: transform .3s ease;
}

.menu-toggle {
  cursor: pointer;
  background-color: var(--landing-text-color);
  display: none;
  user-select: none;
  transition: color .3s ease, background-color .3s ease;
}

.landing-menu {
  position: fixed;
  top: -100%;
  height: auto;
  z-index: 5;
  width: 100%;
  background-color: var(--landing-text-color);
  border-radius: 0 0 30px 30px;
  transition: top .3s ease;

  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px 40px;
}

.menu-open {
  top: 0;
  transition: top .3s ease;
}

.inverted {
  background-color: var(--landing-bg-color);
  color: var(--landing-text-color);
  transition: color .3s ease, background-color .3s ease;
}

.collapsed {
  height: 80px;
  max-width: 100%;
  transition: .5s ease;
}

.header-bg {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: .3s ease;
}

.pagination-nav__label::after {
  display: none;
}

.pagination-nav__label::before {
  display: none;
}

@media only screen and (max-width: 1000px) {
  .landing-logo {
    min-width: 80px;
    height: 30px;
  }

  .menu-toggle {
    display: inline;
  }

  .landing-links {
    display: none;
  }

  .pills {
    gap: .5em;
  }

  .pills .landing-version,
  .menu-toggle {
    font-size: 16px;
  }
}

/* END NAVIGATION STUFF */

/* LANDING PAGE HERO*/
.landing {
  position: relative;
  z-index: -1;
  width: 100%;
  user-select: none;
  max-width: 1600px;
  padding: 0 40px;
  margin: 0 auto;
  margin-top: 180px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;

  --landing-fontsize: clamp(6.9rem, 2rem + 1vw, 6.75rem);
}

.landing p {
  margin: 0;
}

.landing-title-line__first {
  font-family: 'Caudex', sans-serif;
  font-size: var(--landing-fontsize);
  margin: 0;
  white-space: nowrap;
  letter-spacing: -5px;
  font-weight: bolder;
  font-style: italic;
}

.landing-title-line__second {
  font-size: var(--landing-fontsize);
  display: flex;
  white-space: nowrap;
  gap: .2em;
  font-weight: bolder;
  align-items: center;
  letter-spacing: -5px;
  position: relative;
  top: -80px;
}

.landing-title-line__second p,
.landing-title-line__third p {
  margin: 0;
}

.landing-title-line__third {
  display: flex;
  white-space: nowrap;
  font-weight: bolder;
  align-items: center;
  gap: .2em;
  letter-spacing: -5px;
  position: relative;
  top: -150px;
  font-size: var(--landing-fontsize);
}

.landing-title-line__third p:nth-child(3) {
  font-family: 'Caudex', sans-serif;
  position: relative;
  top: -15px;
}

.landing-title-line__third img {
  position: relative;
  left: 8px;
  top: 5px;
  width: 100px;
  height: 100px;
  animation: rotate 10s linear infinite;
}

.battery-video {
  position: relative;
  left: 10px;
  background-color: #fff;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 30px;
  width: 110px;
  height: 140px;
  transform: rotate(15deg);
}

@media only screen and (max-width: 1000px) {
  .landing {
    --landing-fontsize: clamp(6rem, 2rem + 1vw, 6.75rem);
    ;
  }

  .battery-video {
    width: 90px;
    border-radius: 20px;
    height: 120px;
  }

  .landing-title-line__third img {
    width: 80px;
    height: 80px;
  }
}

@media only screen and (max-width: 870px) {
  .landing {
    --landing-fontsize: clamp(4.5rem, 2rem + 1vw, 5.45rem);
    ;
  }

  .battery-video {
    width: 70px;
    border-radius: 20px;
    height: 90px;
  }

  .landing-title-line__second {
    letter-spacing: -2px;
    top: -40px;
  }

  .landing-title-line__third {
    letter-spacing: -2px;
    top: -70px;
  }

  .landing-title-line__third img {
    width: 60px;
    height: 60px;
    left: 3px;
  }

  .landing-title-line__third p:nth-child(3) {
    font-family: 'Caudex', sans-serif;
    position: relative;
    top: 0px;
  }
}

@media only screen and (max-width: 730px) {
  .landing {
    align-items: flex-start;
    --landing-fontsize: clamp(4rem, 2rem + 1vw, 5.75rem);
  }

  .landing-title-line__second {
    letter-spacing: -2px;
    top: -35px;
  }

  .landing-title-line__third {
    letter-spacing: -2px;
    top: -70px;
  }

  .battery-video {
    position: absolute;
    left: calc(100% - 20px);
    z-index: -1;
    top: -20px;
    width: 120px;
    height: 160px;
  }

  .landing-title-line__third img {
    width: 60px;
    left: 4px;
    height: 60px;
  }

  .landing-title-line__third p:nth-child(3) {
    font-family: 'Caudex', sans-serif;
    position: relative;
    top: 0px;
  }
}

@media only screen and (max-width: 650px) {
  .landing {
    --landing-fontsize: clamp(2.6rem, 2rem + 1vw, 5.75rem);
  }

  .battery-video {
    left: 130%;
    width: 100px;
    top: -25px;
    height: 120px;
  }

  .landing-title-line__first {
    font-style: normal;
    letter-spacing: -1px;
  }

  .landing-title-line__second {
    letter-spacing: -2px;
    top: -20px;
  }

  .landing-title-line__third {
    letter-spacing: -2px;
    top: -40px;
  }

  .landing-title-line__third img {
    width: 30px;
    left: 2px;
    height: 30px;
  }

  .landing-title-line__third p:nth-child(3) {
    font-family: 'Caudex', sans-serif;
    position: relative;
    top: 0;
  }
}

@media only screen and (max-width: 575px) {
  .battery-video {
    left: 100%;
  }
}

@media only screen and (max-width: 480px) {
  .battery-video {
    display: none;
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

/* END LANDING PAGE HERO */

/* LANDING PAGE CARDS */
.landing-cards {
  width: 100%;
  max-width: 1600px;
  min-height: 300px;
  padding: 0 40px;
  margin: 0 auto;
  margin-bottom: 2em;
  display: flex;
  justify-content: space-between;
  gap: 2em;
}

.landing-card {
  background-color: rebeccapurple;
  border-radius: 30px;
  flex-grow: 1;
  max-width: 500px;
  min-height: 350px;
  padding: 2em;
}

.card-open-source {
  background-color: #D7DADF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 310px;
}

.card-open-source:hover {
  text-decoration: none;

}

.open-source-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.open-source-tag {
  display: flex;
  padding: .6em 1.2em;
  border-radius: 50px;
  border: 2px solid #272828;
  align-items: center;
}

.open-source-tag p {
  user-select: none;
  font-weight: 600;
  color: #272828;
  margin: 0 0 0 .5em;
}

.open-source-tag img {
  user-select: none;
  width: 20px;
  height: auto;
}

.open-source-est {
  margin: 0;
  font-weight: 600;
  color: #272828;
}

.open-source-bottom {
  display: flex;
  flex-direction: column;
}

.open-source-bottom p {
  margin: 0;
  font-weight: bolder;
  font-size: 2em;
  color: #272828;
  line-height: 1.2em;
  letter-spacing: -1px;
}

.open-source-bottom p span {
  color: var(--ifm-color-primary);
}

.card-installation {
  background-image: url('../../static/img/install-bg.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  background-color: #B2ADEB;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 300px;
}

.npm-install {
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(12px);

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1em;
  color: #272828;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .3s ease;
}

.npm-install:hover {
  transform: scale(1.05);
  transition: transform .3s ease;
}

.haiku-stats p {
  margin: -30px 0;
  text-align: right;
  font-size: 2.2rem;
  font-weight: bolder;
  color: #272828;
  letter-spacing: -2px;
}

.haiku-stats p:last-child {
  margin-bottom: -15px;
}

.haiku-stats p span {
  color: #f6f6f6;
  font-family: 'Caudex', sans-serif;
  font-size: 3.6rem;
}

.haiku-stats p a {
  color: #272828;
  font-size: 2.2rem;
}

.haiku-stats p a:hover {
  text-decoration: none;
}

.card-demo {
  position: relative;
  background-color: var(--ifm-color-primary);
  max-width: 450px;
  padding: 0;
}

.try-it {
  position: absolute;
  right: 1em;
  z-index: 2;
  font-family: 'Caudex', sans-serif;
  font-weight: 700;
  margin: 0;
  top: 2em;
  background-color: #272828;
  color: #F6F6F6;
  padding: .6em 1.2em;
  border-radius: 50px;
}

.demo-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  color: #f6f6f6;
  font-size: 2rem;
}

.read-the-docs {
  background-color: var(--ifm-color-primary);
  width: 100%;
  height: 100px;
  border-radius: 30px;
  color: #F6F6F6;
  align-items: center;
  justify-content: center;
  font-family: 'Caudex', sans-serif;
  border: 2px solid var(--ifm-color-primary);
  letter-spacing: -1px;
  font-weight: 800;
  font-size: 2rem;
  transition: .3s ease;
  display: none;
  margin-bottom: 2em;
}

.read-the-docs:hover {
  text-decoration: none;
  color: var(--ifm-color-primary);
  background-color: #F6F6F6;
  transition: .3s ease;
}

.hook-title {
  font-size: 1.8rem;
  position: relative;
  top: 4px;
  color: #f6f6f6;
  font-weight: bolder;
  letter-spacing: -1px;
  line-height: normal;
  font-family: 'Caudex', sans-serif;
  margin: 0;
}

.demo-slider {
  border-radius: 30px;
  padding: 2em !important;
  height: 100%;
}

.mouse-leave,
.click-outside,
.demo-debounce,
.demo-hold {
  max-width: 15ch;
  line-height: 1.2em;
  margin-bottom: .5em;
  font-weight: bolder;
}

.mouse-leave span,
.click-outside span,
.demo-debounce span,
.demo-hold span {
  border-radius: 10px;
  background-color: #272828;
  font-family: 'Caudex', sans-serif;
  padding: 0 .4em;
  color: #f6f6f6;
}

.demo-debounce span {
  margin-left: .5em;
  min-width: 20px;
  height: auto;
  bottom: 0;
}

.demo-hold span {
  margin: 0 .3em;
}

.demo-hold button {
  width: 100%;
  height: 50px;
  margin-top: 1em;
  font-family: 'Caudex', sans-serif;
  background-color: #272828;
  color: #F6F6F6;
  font-weight: 800;
  font-size: 1.6rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: transform .3s ease;
}

.demo-hold button:active {
  transform: scale(0.9);
  transition: transform .3s ease;
  cursor: grabbing;
}

.demo-hold {
  max-width: 100%;
}

.debounce-input::placeholder {
  color: #272828;
}

.debounce-input {
  color: #272828 !important;
  background-color: #F6F6F6;
  border: 1px solid var(--ifm-color-primary);
}

.demo-debounce {
  max-width: 100%;
  font-size: 1.4rem;
  line-height: 2em;
}

.grain {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
}

.radial-gradient-bg {
  background-image: radial-gradient(transparent 0%, var(--landing-bg-color) 60%);
  position: fixed;
  z-index: -1;
  top: 0;
  width: 100%;
  height: 100vh;
}

@media only screen and (max-width: 1185px) {
  .landing-cards {
    flex-wrap: wrap;
  }

  .landing-card {
    max-width: 100% !important;
  }
}


@media only screen and (max-width: 650px) {
  .grain {
    display: none;
  }
}

@media only screen and (max-width: 480px) {
  .card-demo {
    display: none;
  }

  .haiku-stats p {
    font-size: 1rem !important;
  }

  .haiku-stats p span {
    color: #f6f6f6;
    font-family: 'Caudex', sans-serif;
    font-size: 3rem;
  }

  .haiku-stats p a {
    color: #272828;
    font-size: 2.2rem;
  }

  .haiku-stats p a:hover {
    text-decoration: none;
  }

  .read-the-docs {
    display: flex;
  }
}

.product-hunt-badge {
  position: fixed;
  z-index: 10;
  left: 1em;
  bottom: 1em;
  opacity: 0.6;
  transition: opacity .3s ease;
}

.product-hunt-badge:hover {
  opacity: 1;
  transition: opacity .3s ease;
}

/* END LANDING PAGE CARDS */